(self.webpackChunknit_profile_app=self.webpackChunknit_profile_app||[]).push([[179],{18739:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.AuthenticationClient=void 0;const e=_(40102),o=_(41329);class T extends e.FeathersError{constructor(N,R){super(N,"OauthError",401,"oauth-error",R)}}const A=(F,N)=>{const R=new RegExp(`(?:&?)${N}=([^&]*)`),P=F.hash?F.hash.match(R):null;if(null!==P){const[,y]=P;return[y,R]}return[null,R]};ve.AuthenticationClient=class G{constructor(N,R){const P=N.io,y=new o.StorageWrapper(N.get("storage")||R.storage);this.app=N,this.options=R,this.authenticated=!1,this.app.set("storage",y),P&&this.handleSocket(P)}get service(){return this.app.service(this.options.path)}get storage(){return this.app.get("storage")}handleSocket(N){N.on("disconnect",()=>{this.authenticated&&this.reAuthenticate(!0)})}getFromLocation(N){const[R,P]=A(N,this.options.locationKey);if(null!==R)return N.hash=N.hash.replace(P,""),Promise.resolve(R);const[y,j]=A(N,this.options.locationErrorKey);return null!==y?(N.hash=N.hash.replace(j,""),Promise.reject(new T(decodeURIComponent(y)))):Promise.resolve(null)}setAccessToken(N){return this.storage.setItem(this.options.storageKey,N)}getAccessToken(){return this.storage.getItem(this.options.storageKey).then(N=>!N&&typeof window<"u"&&window.location?this.getFromLocation(window.location):N||null)}removeAccessToken(){return this.storage.removeItem(this.options.storageKey)}reset(){return this.app.set("authentication",null),this.authenticated=!1,Promise.resolve(null)}handleError(N,R){if(N.code>400&&N.code<408){const P=this.removeAccessToken().then(()=>this.reset());return"logout"===R?P:P.then(()=>Promise.reject(N))}return this.reset().then(()=>Promise.reject(N))}reAuthenticate(N=!1,R){let P=this.app.get("authentication");return(!P||!0===N)&&(P=this.getAccessToken().then(y=>y?this.authenticate({strategy:R||this.options.jwtStrategy,accessToken:y}):this.handleError(new e.NotAuthenticated("No accessToken found in storage"),"authenticate")),this.app.set("authentication",P)),P}authenticate(N,R){if(!N)return this.reAuthenticate();const P=this.service.create(N,R).then(y=>{const{accessToken:j}=y;return this.authenticated=!0,this.app.emit("login",y),this.app.emit("authenticated",y),this.setAccessToken(j).then(()=>y)}).catch(y=>this.handleError(y,"authenticate"));return this.app.set("authentication",P),P}logout(){return Promise.resolve(this.app.get("authentication")).then(()=>this.service.remove(null).then(N=>this.removeAccessToken().then(()=>this.reset()).then(()=>(this.app.emit("logout",N),N)))).catch(N=>this.handleError(N,"logout"))}}},76138:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.authentication=void 0;const e=_(69815);ve.authentication=()=>(T,A)=>{const{app:G,params:F,path:N,method:R,app:{authentication:P}}=T;return(0,e.stripSlashes)(P.options.path)===N&&"create"===R?A():Promise.resolve(G.get("authentication")).then(y=>{y&&(T.params=Object.assign({},y,F))}).then(A)}},17113:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.populateHeader=ve.authentication=void 0;var e=_(76138);Object.defineProperty(ve,"authentication",{enumerable:!0,get:function(){return e.authentication}});var o=_(47982);Object.defineProperty(ve,"populateHeader",{enumerable:!0,get:function(){return o.populateHeader}})},47982:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.populateHeader=void 0,ve.populateHeader=()=>(e,o)=>{const{app:T,params:{accessToken:A}}=e,G=T.authentication;if(T.rest&&A){const{scheme:F,header:N}=G.options;e.params.headers=Object.assign({},{[N]:`${F} ${A}`},e.params.headers)}return o()}},39775:function(fn,ve,_){"use strict";var e=this&&this.__createBinding||(Object.create?function(P,y,j,Y){void 0===Y&&(Y=j);var ee=Object.getOwnPropertyDescriptor(y,j);(!ee||("get"in ee?!y.__esModule:ee.writable||ee.configurable))&&(ee={enumerable:!0,get:function(){return y[j]}}),Object.defineProperty(P,Y,ee)}:function(P,y,j,Y){void 0===Y&&(Y=j),P[Y]=y[j]}),o=this&&this.__setModuleDefault||(Object.create?function(P,y){Object.defineProperty(P,"default",{enumerable:!0,value:y})}:function(P,y){P.default=y}),T=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var y={};if(null!=P)for(var j in P)"default"!==j&&Object.prototype.hasOwnProperty.call(P,j)&&e(y,P,j);return o(y,P),y};Object.defineProperty(ve,"__esModule",{value:!0}),ve.defaults=ve.defaultStorage=ve.hooks=ve.MemoryStorage=ve.AuthenticationClient=ve.getDefaultStorage=void 0;const A=_(18739);Object.defineProperty(ve,"AuthenticationClient",{enumerable:!0,get:function(){return A.AuthenticationClient}});const G=T(_(17113));ve.hooks=G;const F=_(41329);Object.defineProperty(ve,"MemoryStorage",{enumerable:!0,get:function(){return F.MemoryStorage}}),ve.getDefaultStorage=()=>{try{return new F.StorageWrapper(window.localStorage)}catch{}return new F.MemoryStorage},ve.defaultStorage=(0,ve.getDefaultStorage)(),ve.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:A.AuthenticationClient,storage:ve.defaultStorage};const R=(P={})=>{const y=Object.assign({},ve.defaults,P),{Authentication:j}=y;return Y=>{const ee=new j(Y,y);Y.authentication=ee,Y.authenticate=ee.authenticate.bind(ee),Y.reAuthenticate=ee.reAuthenticate.bind(ee),Y.logout=ee.logout.bind(ee),Y.hooks([G.authentication(),G.populateHeader()])}};ve.default=R,fn.exports=Object.assign(R,fn.exports)},41329:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.StorageWrapper=ve.MemoryStorage=void 0,ve.MemoryStorage=class _{constructor(){this.store={}}getItem(T){return Promise.resolve(this.store[T])}setItem(T,A){return Promise.resolve(this.store[T]=A)}removeItem(T){const A=this.store[T];return delete this.store[T],Promise.resolve(A)}},ve.StorageWrapper=class e{constructor(T){this.storage=T}getItem(T){return Promise.resolve(this.storage.getItem(T))}setItem(T,A){return Promise.resolve(this.storage.setItem(T,A))}removeItem(T){return Promise.resolve(this.storage.removeItem(T))}}},99624:function(fn){var ve,_;fn.exports=(ve={"../authentication-client/lib/core.js":
/*!********************************************!*\
                    !*** ../authentication-client/lib/core.js ***!
                    \********************************************/function(T,A,G){"use strict";function F(Ue){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(vt){return typeof vt}:function(vt){return vt&&"function"==typeof Symbol&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt})(Ue)}function N(Ue,vt){return function Y(Ue){if(Array.isArray(Ue))return Ue}(Ue)||function j(Ue,vt){var ln=null==Ue?null:typeof Symbol<"u"&&Ue[Symbol.iterator]||Ue["@@iterator"];if(null!=ln){var Je,Ft,st,Ze,$e=[],Oe=!0,Nt=!1;try{if(st=(ln=ln.call(Ue)).next,0===vt){if(Object(ln)!==ln)return;Oe=!1}else for(;!(Oe=(Je=st.call(ln)).done)&&($e.push(Je.value),$e.length!==vt);Oe=!0);}catch(xt){Nt=!0,Ft=xt}finally{try{if(!Oe&&null!=ln.return&&(Ze=ln.return(),Object(Ze)!==Ze))return}finally{if(Nt)throw Ft}}return $e}}(Ue,vt)||function P(Ue,vt){if(Ue){if("string"==typeof Ue)return y(Ue,vt);var ln=Object.prototype.toString.call(Ue).slice(8,-1);if("Object"===ln&&Ue.constructor&&(ln=Ue.constructor.name),"Map"===ln||"Set"===ln)return Array.from(Ue);if("Arguments"===ln||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ln))return y(Ue,vt)}}(Ue,vt)||function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(Ue,vt){(null==vt||vt>Ue.length)&&(vt=Ue.length);for(var ln=0,Je=new Array(vt);ln<vt;ln++)Je[ln]=Ue[ln];return Je}function ee(Ue,vt){for(var ln=0;ln<vt.length;ln++){var Je=vt[ln];Je.enumerable=Je.enumerable||!1,Je.configurable=!0,"value"in Je&&(Je.writable=!0),Object.defineProperty(Ue,he(Je.key),Je)}}function se(Ue,vt,ln){return vt&&ee(Ue.prototype,vt),ln&&ee(Ue,ln),Object.defineProperty(Ue,"prototype",{writable:!1}),Ue}function he(Ue){var vt=function Se(Ue,vt){if("object"!==F(Ue)||null===Ue)return Ue;var ln=Ue[Symbol.toPrimitive];if(void 0!==ln){var Je=ln.call(Ue,vt||"default");if("object"!==F(Je))return Je;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===vt?String:Number)(Ue)}(Ue,"string");return"symbol"===F(vt)?vt:String(vt)}function te(Ue,vt){if(!(Ue instanceof vt))throw new TypeError("Cannot call a class as a function")}function oe(Ue,vt){if("function"!=typeof vt&&null!==vt)throw new TypeError("Super expression must either be null or a function");Ue.prototype=Object.create(vt&&vt.prototype,{constructor:{value:Ue,writable:!0,configurable:!0}}),Object.defineProperty(Ue,"prototype",{writable:!1}),vt&&q(Ue,vt)}function q(Ue,vt){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,Ft){return Je.__proto__=Ft,Je})(Ue,vt)}function we(Ue){var vt=function pe(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var Ft,Je=Ee(Ue);if(vt){var st=Ee(this).constructor;Ft=Reflect.construct(Je,arguments,st)}else Ft=Je.apply(this,arguments);return function ae(Ue,vt){if(vt&&("object"===F(vt)||"function"==typeof vt))return vt;if(void 0!==vt)throw new TypeError("Derived constructors may only return object or undefined");return function Q(Ue){if(void 0===Ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ue}(Ue)}(this,Ft)}}function Ee(Ue){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ln){return ln.__proto__||Object.getPrototypeOf(ln)})(Ue)}Object.defineProperty(A,"__esModule",{value:!0}),A.AuthenticationClient=void 0;var ke=G(
/*! @feathersjs/errors */
"../errors/lib/index.js"),Ye=G(
/*! ./storage */
"../authentication-client/lib/storage.js"),ct=function(Ue){oe(ln,Ue);var vt=we(ln);function ln(Je,Ft){return te(this,ln),vt.call(this,Je,"OauthError",401,"oauth-error",Ft)}return se(ln)}(ke.FeathersError),ut=function(vt,ln){var Je=new RegExp("(?:&?)".concat(ln,"=([^&]*)")),Ft=vt.hash?vt.hash.match(Je):null;return null!==Ft?[N(Ft,2)[1],Je]:[null,Je]},Ct=function(){function Ue(vt,ln){te(this,Ue);var Je=vt.io,Ft=new Ye.StorageWrapper(vt.get("storage")||ln.storage);this.app=vt,this.options=ln,this.authenticated=!1,this.app.set("storage",Ft),Je&&this.handleSocket(Je)}return se(Ue,[{key:"service",get:function(){return this.app.service(this.options.path)}},{key:"storage",get:function(){return this.app.get("storage")}},{key:"handleSocket",value:function(ln){var Je=this;ln.on("disconnect",function(){Je.authenticated&&Je.reAuthenticate(!0)})}},{key:"getFromLocation",value:function(ln){var Ft=N(ut(ln,this.options.locationKey),2),st=Ft[0];if(null!==st)return ln.hash=ln.hash.replace(Ft[1],""),Promise.resolve(st);var Oe=N(ut(ln,this.options.locationErrorKey),2),Nt=Oe[0];return null!==Nt?(ln.hash=ln.hash.replace(Oe[1],""),Promise.reject(new ct(decodeURIComponent(Nt)))):Promise.resolve(null)}},{key:"setAccessToken",value:function(ln){return this.storage.setItem(this.options.storageKey,ln)}},{key:"getAccessToken",value:function(){var ln=this;return this.storage.getItem(this.options.storageKey).then(function(Je){return!Je&&typeof window<"u"&&window.location?ln.getFromLocation(window.location):Je||null})}},{key:"removeAccessToken",value:function(){return this.storage.removeItem(this.options.storageKey)}},{key:"reset",value:function(){return this.app.set("authentication",null),this.authenticated=!1,Promise.resolve(null)}},{key:"handleError",value:function(ln,Je){var Ft=this;if(ln.code>400&&ln.code<408){var st=this.removeAccessToken().then(function(){return Ft.reset()});return"logout"===Je?st:st.then(function(){return Promise.reject(ln)})}return this.reset().then(function(){return Promise.reject(ln)})}},{key:"reAuthenticate",value:function(){var ln=this,Je=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Ft=arguments.length>1?arguments[1]:void 0,st=this.app.get("authentication");return(!st||!0===Je)&&(st=this.getAccessToken().then(function(Ze){return Ze?ln.authenticate({strategy:Ft||ln.options.jwtStrategy,accessToken:Ze}):ln.handleError(new ke.NotAuthenticated("No accessToken found in storage"),"authenticate")}),this.app.set("authentication",st)),st}},{key:"authenticate",value:function(ln,Je){var Ft=this;if(!ln)return this.reAuthenticate();var st=this.service.create(ln,Je).then(function(Ze){var $e=Ze.accessToken;return Ft.authenticated=!0,Ft.app.emit("login",Ze),Ft.app.emit("authenticated",Ze),Ft.setAccessToken($e).then(function(){return Ze})}).catch(function(Ze){return Ft.handleError(Ze,"authenticate")});return this.app.set("authentication",st),st}},{key:"logout",value:function(){var ln=this;return Promise.resolve(this.app.get("authentication")).then(function(){return ln.service.remove(null).then(function(Je){return ln.removeAccessToken().then(function(){return ln.reset()}).then(function(){return ln.app.emit("logout",Je),Je})})}).catch(function(Je){return ln.handleError(Je,"logout")})}}]),Ue}();A.AuthenticationClient=Ct},"../authentication-client/lib/hooks/authentication.js":
/*!************************************************************!*\
                    !*** ../authentication-client/lib/hooks/authentication.js ***!
                    \************************************************************/function(T,A,G){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.authentication=void 0;var F=G(
/*! @feathersjs/commons */
"../commons/lib/index.js");A.authentication=function(){return function(P,y){var j=P.app,Y=P.params,ee=P.path,se=P.method;return(0,F.stripSlashes)(P.app.authentication.options.path)===ee&&"create"===se?y():Promise.resolve(j.get("authentication")).then(function(Se){Se&&(P.params=Object.assign({},Se,Y))}).then(y)}}},"../authentication-client/lib/hooks/index.js":
/*!***************************************************!*\
                    !*** ../authentication-client/lib/hooks/index.js ***!
                    \***************************************************/function(T,A,G){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.populateHeader=A.authentication=void 0;var F=G(
/*! ./authentication */
"../authentication-client/lib/hooks/authentication.js");Object.defineProperty(A,"authentication",{enumerable:!0,get:function(){return F.authentication}});var N=G(
/*! ./populate-header */
"../authentication-client/lib/hooks/populate-header.js");Object.defineProperty(A,"populateHeader",{enumerable:!0,get:function(){return N.populateHeader}})},"../authentication-client/lib/hooks/populate-header.js":
/*!*************************************************************!*\
                    !*** ../authentication-client/lib/hooks/populate-header.js ***!
                    \*************************************************************/function(T,A){"use strict";function G(y){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(j){return typeof j}:function(j){return j&&"function"==typeof Symbol&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(y)}function F(y,j,Y){return(j=function N(y){var j=function R(y,j){if("object"!==G(y)||null===y)return y;var Y=y[Symbol.toPrimitive];if(void 0!==Y){var ee=Y.call(y,j||"default");if("object"!==G(ee))return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===j?String:Number)(y)}(y,"string");return"symbol"===G(j)?j:String(j)}(j))in y?Object.defineProperty(y,j,{value:Y,enumerable:!0,configurable:!0,writable:!0}):y[j]=Y,y}Object.defineProperty(A,"__esModule",{value:!0}),A.populateHeader=void 0,A.populateHeader=function(){return function(j,Y){var ee=j.app,se=j.params.accessToken;if(ee.rest&&se){var Se=ee.authentication.options,oe=Se.header,q="".concat(Se.scheme," ").concat(se);j.params.headers=Object.assign({},F({},oe,q),j.params.headers)}return Y()}}},"../authentication-client/lib/index.js":
/*!*********************************************!*\
                    !*** ../authentication-client/lib/index.js ***!
                    \*********************************************/function(T,A,G){"use strict";var F=this&&this.__createBinding||(Object.create?function(se,he,Se,te){void 0===te&&(te=Se);var oe=Object.getOwnPropertyDescriptor(he,Se);(!oe||("get"in oe?!he.__esModule:oe.writable||oe.configurable))&&(oe={enumerable:!0,get:function(){return he[Se]}}),Object.defineProperty(se,te,oe)}:function(se,he,Se,te){void 0===te&&(te=Se),se[te]=he[Se]}),N=this&&this.__setModuleDefault||(Object.create?function(se,he){Object.defineProperty(se,"default",{enumerable:!0,value:he})}:function(se,he){se.default=he}),R=this&&this.__importStar||function(se){if(se&&se.__esModule)return se;var he={};if(null!=se)for(var Se in se)"default"!==Se&&Object.prototype.hasOwnProperty.call(se,Se)&&F(he,se,Se);return N(he,se),he};Object.defineProperty(A,"__esModule",{value:!0}),A.defaults=A.defaultStorage=A.hooks=A.MemoryStorage=A.AuthenticationClient=A.getDefaultStorage=void 0;var P=G(
/*! ./core */
"../authentication-client/lib/core.js");Object.defineProperty(A,"AuthenticationClient",{enumerable:!0,get:function(){return P.AuthenticationClient}});var y=R(G(
/*! ./hooks */
"../authentication-client/lib/hooks/index.js"));A.hooks=y;var j=G(
/*! ./storage */
"../authentication-client/lib/storage.js");Object.defineProperty(A,"MemoryStorage",{enumerable:!0,get:function(){return j.MemoryStorage}}),A.getDefaultStorage=function(){try{return new j.StorageWrapper(window.localStorage)}catch{}return new j.MemoryStorage},A.defaultStorage=(0,A.getDefaultStorage)(),A.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:P.AuthenticationClient,storage:A.defaultStorage};var ee=function(){var Se=Object.assign({},A.defaults,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),te=Se.Authentication;return function(oe){var q=new te(oe,Se);oe.authentication=q,oe.authenticate=q.authenticate.bind(q),oe.reAuthenticate=q.reAuthenticate.bind(q),oe.logout=q.logout.bind(q),oe.hooks([y.authentication(),y.populateHeader()])}};A.default=ee,T.exports=Object.assign(ee,T.exports)},"../authentication-client/lib/storage.js":
/*!***********************************************!*\
                    !*** ../authentication-client/lib/storage.js ***!
                    \***********************************************/function(T,A){"use strict";function G(ee){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(se){return typeof se}:function(se){return se&&"function"==typeof Symbol&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se})(ee)}function F(ee,se){if(!(ee instanceof se))throw new TypeError("Cannot call a class as a function")}function N(ee,se){for(var he=0;he<se.length;he++){var Se=se[he];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(ee,P(Se.key),Se)}}function R(ee,se,he){return se&&N(ee.prototype,se),he&&N(ee,he),Object.defineProperty(ee,"prototype",{writable:!1}),ee}function P(ee){var se=function y(ee,se){if("object"!==G(ee)||null===ee)return ee;var he=ee[Symbol.toPrimitive];if(void 0!==he){var Se=he.call(ee,se||"default");if("object"!==G(Se))return Se;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===se?String:Number)(ee)}(ee,"string");return"symbol"===G(se)?se:String(se)}Object.defineProperty(A,"__esModule",{value:!0}),A.StorageWrapper=A.MemoryStorage=void 0,A.MemoryStorage=function(){function ee(){F(this,ee),this.store={}}return R(ee,[{key:"getItem",value:function(he){return Promise.resolve(this.store[he])}},{key:"setItem",value:function(he,Se){return Promise.resolve(this.store[he]=Se)}},{key:"removeItem",value:function(he){var Se=this.store[he];return delete this.store[he],Promise.resolve(Se)}}]),ee}(),A.StorageWrapper=function(){function ee(se){F(this,ee),this.storage=se}return R(ee,[{key:"getItem",value:function(he){return Promise.resolve(this.storage.getItem(he))}},{key:"setItem",value:function(he,Se){return Promise.resolve(this.storage.setItem(he,Se))}},{key:"removeItem",value:function(he){return Promise.resolve(this.storage.removeItem(he))}}]),ee}()},"../commons/lib/debug.js":
/*!*******************************!*\
                    !*** ../commons/lib/debug.js ***!
                    \*******************************/function(T,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.createDebug=A.setDebug=A.noopDebug=void 0;var G={};function F(){return function(){}}A.noopDebug=F;var N=F;A.setDebug=function R(y){N=y,Object.keys(G).forEach(function(j){G[j]=y(j)})},A.createDebug=function P(y){return G[y]||(G[y]=N(y)),function(){return G[y].apply(G,arguments)}}},"../commons/lib/index.js":
/*!*******************************!*\
                    !*** ../commons/lib/index.js ***!
                    \*******************************/function(T,A,G){"use strict";function F(ae,Q,pe){return(Q=function N(ae){var Q=function R(ae,Q){if("object"!==P(ae)||null===ae)return ae;var pe=ae[Symbol.toPrimitive];if(void 0!==pe){var Ee=pe.call(ae,Q||"default");if("object"!==P(Ee))return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(ae)}(ae,"string");return"symbol"===P(Q)?Q:String(Q)}(Q))in ae?Object.defineProperty(ae,Q,{value:pe,enumerable:!0,configurable:!0,writable:!0}):ae[Q]=pe,ae}function P(ae){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(ae)}function y(ae,Q){return function he(ae){if(Array.isArray(ae))return ae}(ae)||function se(ae,Q){var pe=null==ae?null:typeof Symbol<"u"&&ae[Symbol.iterator]||ae["@@iterator"];if(null!=pe){var Ee,ke,Ye,ct,ut=[],Ct=!0,Ue=!1;try{if(Ye=(pe=pe.call(ae)).next,0===Q){if(Object(pe)!==pe)return;Ct=!1}else for(;!(Ct=(Ee=Ye.call(pe)).done)&&(ut.push(Ee.value),ut.length!==Q);Ct=!0);}catch(vt){Ue=!0,ke=vt}finally{try{if(!Ct&&null!=pe.return&&(ct=pe.return(),Object(ct)!==ct))return}finally{if(Ue)throw ke}}return ut}}(ae,Q)||function Y(ae,Q){if(ae){if("string"==typeof ae)return ee(ae,Q);var pe=Object.prototype.toString.call(ae).slice(8,-1);if("Object"===pe&&ae.constructor&&(pe=ae.constructor.name),"Map"===pe||"Set"===pe)return Array.from(ae);if("Arguments"===pe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return ee(ae,Q)}}(ae,Q)||function j(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(ae,Q){(null==Q||Q>ae.length)&&(Q=ae.length);for(var pe=0,Ee=new Array(Q);pe<Q;pe++)Ee[pe]=ae[pe];return Ee}var Se=this&&this.__createBinding||(Object.create?function(ae,Q,pe,Ee){void 0===Ee&&(Ee=pe);var ke=Object.getOwnPropertyDescriptor(Q,pe);(!ke||("get"in ke?!Q.__esModule:ke.writable||ke.configurable))&&(ke={enumerable:!0,get:function(){return Q[pe]}}),Object.defineProperty(ae,Ee,ke)}:function(ae,Q,pe,Ee){void 0===Ee&&(Ee=pe),ae[Ee]=Q[pe]}),te=this&&this.__exportStar||function(ae,Q){for(var pe in ae)"default"!==pe&&!Object.prototype.hasOwnProperty.call(Q,pe)&&Se(Q,ae,pe)};Object.defineProperty(A,"__esModule",{value:!0}),A.createSymbol=A.isPromise=A._=A.stripSlashes=void 0,A.stripSlashes=function oe(ae){return ae.replace(/^(\/+)|(\/+)$/g,"")},A._={each:function(Q,pe){Q&&"function"==typeof Q.forEach?Q.forEach(pe):A._.isObject(Q)&&Object.keys(Q).forEach(function(Ee){return pe(Q[Ee],Ee)})},some:function(Q,pe){return Object.keys(Q).map(function(Ee){return[Q[Ee],Ee]}).some(function(Ee){var ke=y(Ee,2);return pe(ke[0],ke[1])})},every:function(Q,pe){return Object.keys(Q).map(function(Ee){return[Q[Ee],Ee]}).every(function(Ee){var ke=y(Ee,2);return pe(ke[0],ke[1])})},keys:function(Q){return Object.keys(Q)},values:function(Q){return A._.keys(Q).map(function(pe){return Q[pe]})},isMatch:function(Q,pe){return A._.keys(pe).every(function(Ee){return Q[Ee]===pe[Ee]})},isEmpty:function(Q){return 0===A._.keys(Q).length},isObject:function(Q){return"object"===P(Q)&&!Array.isArray(Q)&&null!==Q},isObjectOrArray:function(Q){return"object"===P(Q)&&null!==Q},extend:function(Q){for(var pe=arguments.length,Ee=new Array(pe>1?pe-1:0),ke=1;ke<pe;ke++)Ee[ke-1]=arguments[ke];return Object.assign.apply(Object,[Q].concat(Ee))},omit:function(Q){for(var pe=A._.extend({},Q),Ee=arguments.length,ke=new Array(Ee>1?Ee-1:0),Ye=1;Ye<Ee;Ye++)ke[Ye-1]=arguments[Ye];return ke.forEach(function(ct){return delete pe[ct]}),pe},pick:function(Q){for(var pe=arguments.length,Ee=new Array(pe>1?pe-1:0),ke=1;ke<pe;ke++)Ee[ke-1]=arguments[ke];return Ee.reduce(function(Ye,ct){return void 0!==Q[ct]&&(Ye[ct]=Q[ct]),Ye},{})},merge:function(Q,pe){return A._.isObject(Q)&&A._.isObject(pe)&&Object.keys(pe).forEach(function(Ee){A._.isObject(pe[Ee])?(Q[Ee]||Object.assign(Q,F({},Ee,{})),A._.merge(Q[Ee],pe[Ee])):Object.assign(Q,F({},Ee,pe[Ee]))}),Q}},A.isPromise=function q(ae){return A._.isObject(ae)&&"function"==typeof ae.then},A.createSymbol=function we(ae){return typeof Symbol<"u"?Symbol.for(ae):ae},te(G(
/*! ./debug */
"../commons/lib/debug.js"),A)},"../errors/lib/index.js":
/*!******************************!*\
                    !*** ../errors/lib/index.js ***!
                    \******************************/function(T,A){"use strict";var G=["message","errors"];function F($t,rt){if(null==$t)return{};var yt,it,We=function N($t,rt){if(null==$t)return{};var it,It,We={},yt=Object.keys($t);for(It=0;It<yt.length;It++)!(rt.indexOf(it=yt[It])>=0)&&(We[it]=$t[it]);return We}($t,rt);if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols($t);for(it=0;it<It.length;it++)!(rt.indexOf(yt=It[it])>=0)&&Object.prototype.propertyIsEnumerable.call($t,yt)&&(We[yt]=$t[yt])}return We}function R($t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})($t)}function P($t,rt){if(!($t instanceof rt))throw new TypeError("Cannot call a class as a function")}function y($t,rt){for(var We=0;We<rt.length;We++){var yt=rt[We];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Object.defineProperty($t,Y(yt.key),yt)}}function j($t,rt,We){return rt&&y($t.prototype,rt),We&&y($t,We),Object.defineProperty($t,"prototype",{writable:!1}),$t}function Y($t){var rt=function ee($t,rt){if("object"!==R($t)||null===$t)return $t;var We=$t[Symbol.toPrimitive];if(void 0!==We){var yt=We.call($t,rt||"default");if("object"!==R(yt))return yt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===rt?String:Number)($t)}($t,"string");return"symbol"===R(rt)?rt:String(rt)}function se($t,rt){if("function"!=typeof rt&&null!==rt)throw new TypeError("Super expression must either be null or a function");$t.prototype=Object.create(rt&&rt.prototype,{constructor:{value:$t,writable:!0,configurable:!0}}),Object.defineProperty($t,"prototype",{writable:!1}),rt&&Q($t,rt)}function he($t){var rt=we();return function(){var it,yt=pe($t);if(rt){var It=pe(this).constructor;it=Reflect.construct(yt,arguments,It)}else it=yt.apply(this,arguments);return function Se($t,rt){if(rt&&("object"===R(rt)||"function"==typeof rt))return rt;if(void 0!==rt)throw new TypeError("Derived constructors may only return object or undefined");return te($t)}(this,it)}}function te($t){if(void 0===$t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $t}function oe($t){var rt="function"==typeof Map?new Map:void 0;return oe=function(yt){if(null===yt||!function ae($t){return-1!==Function.toString.call($t).indexOf("[native code]")}(yt))return yt;if("function"!=typeof yt)throw new TypeError("Super expression must either be null or a function");if(typeof rt<"u"){if(rt.has(yt))return rt.get(yt);rt.set(yt,it)}function it(){return q(yt,arguments,pe(this).constructor)}return it.prototype=Object.create(yt.prototype,{constructor:{value:it,enumerable:!1,writable:!0,configurable:!0}}),Q(it,yt)},oe($t)}function q($t,rt,We){return(q=we()?Reflect.construct.bind():function(it,It,Tt){var wn=[null];wn.push.apply(wn,It);var an=new(Function.bind.apply(it,wn));return Tt&&Q(an,Tt.prototype),an}).apply(null,arguments)}function we(){if(typeof Reflect>"u"||!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{return!1}}function Q($t,rt){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(yt,it){return yt.__proto__=it,yt})($t,rt)}function pe($t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(We){return We.__proto__||Object.getPrototypeOf(We)})($t)}Object.defineProperty(A,"__esModule",{value:!0}),A.convert=A.errors=A.Unavailable=A.BadGateway=A.NotImplemented=A.GeneralError=A.TooManyRequests=A.Unprocessable=A.LengthRequired=A.Gone=A.Conflict=A.Timeout=A.NotAcceptable=A.MethodNotAllowed=A.NotFound=A.Forbidden=A.PaymentError=A.NotAuthenticated=A.BadRequest=A.FeathersError=void 0;var Ee=function($t){se(We,$t);var rt=he(We);function We(yt,it,It,Tt,wn){var Nn;P(this,We);var an="string"==typeof yt?yt:"Error",sn={name:it,code:It,className:Tt,type:"FeathersError"};if(Array.isArray(wn))sn.data=wn;else if("object"===R(yt)||void 0!==wn){var _n=null!==yt&&"object"===R(yt)?yt:wn,Ln=_n.message,Mn=_n.errors,pi=F(_n,G);an=Ln||an,sn.errors=Mn,sn.data=pi}return Nn=rt.call(this,an),Object.assign(te(Nn),sn),Nn}return j(We,[{key:"toJSON",value:function(){var it={name:this.name,message:this.message,code:this.code,className:this.className};return void 0!==this.data&&(it.data=this.data),void 0!==this.errors&&(it.errors=this.errors),it}}]),We}(oe(Error));A.FeathersError=Ee;var ke=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"BadRequest",400,"bad-request",it)}return j(We)}(Ee);A.BadRequest=ke;var Ye=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"NotAuthenticated",401,"not-authenticated",it)}return j(We)}(Ee);A.NotAuthenticated=Ye;var ct=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"PaymentError",402,"payment-error",it)}return j(We)}(Ee);A.PaymentError=ct;var ut=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Forbidden",403,"forbidden",it)}return j(We)}(Ee);A.Forbidden=ut;var Ct=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"NotFound",404,"not-found",it)}return j(We)}(Ee);A.NotFound=Ct;var Ue=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"MethodNotAllowed",405,"method-not-allowed",it)}return j(We)}(Ee);A.MethodNotAllowed=Ue;var vt=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"NotAcceptable",406,"not-acceptable",it)}return j(We)}(Ee);A.NotAcceptable=vt;var ln=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Timeout",408,"timeout",it)}return j(We)}(Ee);A.Timeout=ln;var Je=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Conflict",409,"conflict",it)}return j(We)}(Ee);A.Conflict=Je;var Ft=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Gone",410,"gone",it)}return j(We)}(Ee);A.Gone=Ft;var st=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"LengthRequired",411,"length-required",it)}return j(We)}(Ee);A.LengthRequired=st;var Ze=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Unprocessable",422,"unprocessable",it)}return j(We)}(Ee);A.Unprocessable=Ze;var $e=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"TooManyRequests",429,"too-many-requests",it)}return j(We)}(Ee);A.TooManyRequests=$e;var Oe=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"GeneralError",500,"general-error",it)}return j(We)}(Ee);A.GeneralError=Oe;var Nt=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"NotImplemented",501,"not-implemented",it)}return j(We)}(Ee);A.NotImplemented=Nt;var xt=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"BadGateway",502,"bad-gateway",it)}return j(We)}(Ee);A.BadGateway=xt;var Ot=function($t){se(We,$t);var rt=he(We);function We(yt,it){return P(this,We),rt.call(this,yt,"Unavailable",503,"unavailable",it)}return j(We)}(Ee);A.Unavailable=Ot,A.errors={FeathersError:Ee,BadRequest:ke,NotAuthenticated:Ye,PaymentError:ct,Forbidden:ut,NotFound:Ct,MethodNotAllowed:Ue,NotAcceptable:vt,Timeout:ln,Conflict:Je,LengthRequired:st,Unprocessable:Ze,TooManyRequests:$e,GeneralError:Oe,NotImplemented:Nt,BadGateway:xt,Unavailable:Ot,400:ke,401:Ye,402:ct,403:ut,404:Ct,405:Ue,406:vt,408:ln,409:Je,410:Ft,411:st,422:Ze,429:$e,500:Oe,501:Nt,502:xt,503:Ot},A.convert=function Kt($t){if(!$t)return $t;var rt=A.errors[$t.name],We=rt?new rt($t.message,$t.data):new Error($t.message||$t);return"object"===R($t)&&Object.assign(We,$t),We}},"../feathers/lib/application.js":
/*!**************************************!*\
                    !*** ../feathers/lib/application.js ***!
                    \**************************************/function(T,A,G){"use strict";function F(Ze){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function($e){return typeof $e}:function($e){return $e&&"function"==typeof Symbol&&$e.constructor===Symbol&&$e!==Symbol.prototype?"symbol":typeof $e})(Ze)}function N(){N=function(){return Ze};var Ze={},$e=Object.prototype,Oe=$e.hasOwnProperty,Nt=Object.defineProperty||function(pn,Vn,ot){pn[Vn]=ot.value},xt="function"==typeof Symbol?Symbol:{},Ot=xt.iterator||"@@iterator",Kt=xt.asyncIterator||"@@asyncIterator",$t=xt.toStringTag||"@@toStringTag";function rt(pn,Vn,ot){return Object.defineProperty(pn,Vn,{value:ot,enumerable:!0,configurable:!0,writable:!0}),pn[Vn]}try{rt({},"")}catch{rt=function(ot,en,lt){return ot[en]=lt}}function We(pn,Vn,ot,en){var In=Object.create((Vn&&Vn.prototype instanceof It?Vn:It).prototype),rn=new ki(en||[]);return Nt(In,"_invoke",{value:pi(pn,ot,rn)}),In}function yt(pn,Vn,ot){try{return{type:"normal",arg:pn.call(Vn,ot)}}catch(en){return{type:"throw",arg:en}}}Ze.wrap=We;var it={};function It(){}function Tt(){}function wn(){}var Nn={};rt(Nn,Ot,function(){return this});var an=Object.getPrototypeOf,sn=an&&an(an(Si([])));sn&&sn!==$e&&Oe.call(sn,Ot)&&(Nn=sn);var _n=wn.prototype=It.prototype=Object.create(Nn);function Ln(pn){["next","throw","return"].forEach(function(Vn){rt(pn,Vn,function(ot){return this._invoke(Vn,ot)})})}function Mn(pn,Vn){function ot(lt,In,rn,Qt){var yi=yt(pn[lt],pn,In);if("throw"!==yi.type){var Li=yi.arg,An=Li.value;return An&&"object"==F(An)&&Oe.call(An,"__await")?Vn.resolve(An.__await).then(function(Ht){ot("next",Ht,rn,Qt)},function(Ht){ot("throw",Ht,rn,Qt)}):Vn.resolve(An).then(function(Ht){Li.value=Ht,rn(Li)},function(Ht){return ot("throw",Ht,rn,Qt)})}Qt(yi.arg)}var en;Nt(this,"_invoke",{value:function(In,rn){function Qt(){return new Vn(function(yi,Li){ot(In,rn,yi,Li)})}return en=en?en.then(Qt,Qt):Qt()}})}function pi(pn,Vn,ot){var en="suspendedStart";return function(lt,In){if("executing"===en)throw new Error("Generator is already running");if("completed"===en){if("throw"===lt)throw In;return{value:void 0,done:!0}}for(ot.method=lt,ot.arg=In;;){var rn=ot.delegate;if(rn){var Qt=Yn(rn,ot);if(Qt){if(Qt===it)continue;return Qt}}if("next"===ot.method)ot.sent=ot._sent=ot.arg;else if("throw"===ot.method){if("suspendedStart"===en)throw en="completed",ot.arg;ot.dispatchException(ot.arg)}else"return"===ot.method&&ot.abrupt("return",ot.arg);en="executing";var yi=yt(pn,Vn,ot);if("normal"===yi.type){if(en=ot.done?"completed":"suspendedYield",yi.arg===it)continue;return{value:yi.arg,done:ot.done}}"throw"===yi.type&&(en="completed",ot.method="throw",ot.arg=yi.arg)}}}function Yn(pn,Vn){var ot=Vn.method,en=pn.iterator[ot];if(void 0===en)return Vn.delegate=null,"throw"===ot&&pn.iterator.return&&(Vn.method="return",Vn.arg=void 0,Yn(pn,Vn),"throw"===Vn.method)||"return"!==ot&&(Vn.method="throw",Vn.arg=new TypeError("The iterator does not provide a '"+ot+"' method")),it;var lt=yt(en,pn.iterator,Vn.arg);if("throw"===lt.type)return Vn.method="throw",Vn.arg=lt.arg,Vn.delegate=null,it;var In=lt.arg;return In?In.done?(Vn[pn.resultName]=In.value,Vn.next=pn.nextLoc,"return"!==Vn.method&&(Vn.method="next",Vn.arg=void 0),Vn.delegate=null,it):In:(Vn.method="throw",Vn.arg=new TypeError("iterator result is not an object"),Vn.delegate=null,it)}function gi(pn){var Vn={tryLoc:pn[0]};1 in pn&&(Vn.catchLoc=pn[1]),2 in pn&&(Vn.finallyLoc=pn[2],Vn.afterLoc=pn[3]),this.tryEntries.push(Vn)}function qn(pn){var Vn=pn.completion||{};Vn.type="normal",delete Vn.arg,pn.completion=Vn}function ki(pn){this.tryEntries=[{tryLoc:"root"}],pn.forEach(gi,this),this.reset(!0)}function Si(pn){if(pn){var Vn=pn[Ot];if(Vn)return Vn.call(pn);if("function"==typeof pn.next)return pn;if(!isNaN(pn.length)){var ot=-1,en=function lt(){for(;++ot<pn.length;)if(Oe.call(pn,ot))return lt.value=pn[ot],lt.done=!1,lt;return lt.value=void 0,lt.done=!0,lt};return en.next=en}}return{next:Ni}}function Ni(){return{value:void 0,done:!0}}return Tt.prototype=wn,Nt(_n,"constructor",{value:wn,configurable:!0}),Nt(wn,"constructor",{value:Tt,configurable:!0}),Tt.displayName=rt(wn,$t,"GeneratorFunction"),Ze.isGeneratorFunction=function(pn){var Vn="function"==typeof pn&&pn.constructor;return!!Vn&&(Vn===Tt||"GeneratorFunction"===(Vn.displayName||Vn.name))},Ze.mark=function(pn){return Object.setPrototypeOf?Object.setPrototypeOf(pn,wn):(pn.__proto__=wn,rt(pn,$t,"GeneratorFunction")),pn.prototype=Object.create(_n),pn},Ze.awrap=function(pn){return{__await:pn}},Ln(Mn.prototype),rt(Mn.prototype,Kt,function(){return this}),Ze.AsyncIterator=Mn,Ze.async=function(pn,Vn,ot,en,lt){void 0===lt&&(lt=Promise);var In=new Mn(We(pn,Vn,ot,en),lt);return Ze.isGeneratorFunction(Vn)?In:In.next().then(function(rn){return rn.done?rn.value:In.next()})},Ln(_n),rt(_n,$t,"Generator"),rt(_n,Ot,function(){return this}),rt(_n,"toString",function(){return"[object Generator]"}),Ze.keys=function(pn){var Vn=Object(pn),ot=[];for(var en in Vn)ot.push(en);return ot.reverse(),function lt(){for(;ot.length;){var In=ot.pop();if(In in Vn)return lt.value=In,lt.done=!1,lt}return lt.done=!0,lt}},Ze.values=Si,ki.prototype={constructor:ki,reset:function(Vn){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(qn),!Vn)for(var ot in this)"t"===ot.charAt(0)&&Oe.call(this,ot)&&!isNaN(+ot.slice(1))&&(this[ot]=void 0)},stop:function(){this.done=!0;var Vn=this.tryEntries[0].completion;if("throw"===Vn.type)throw Vn.arg;return this.rval},dispatchException:function(Vn){if(this.done)throw Vn;var ot=this;function en(Li,An){return rn.type="throw",rn.arg=Vn,ot.next=Li,An&&(ot.method="next",ot.arg=void 0),!!An}for(var lt=this.tryEntries.length-1;lt>=0;--lt){var In=this.tryEntries[lt],rn=In.completion;if("root"===In.tryLoc)return en("end");if(In.tryLoc<=this.prev){var Qt=Oe.call(In,"catchLoc"),yi=Oe.call(In,"finallyLoc");if(Qt&&yi){if(this.prev<In.catchLoc)return en(In.catchLoc,!0);if(this.prev<In.finallyLoc)return en(In.finallyLoc)}else if(Qt){if(this.prev<In.catchLoc)return en(In.catchLoc,!0)}else{if(!yi)throw new Error("try statement without catch or finally");if(this.prev<In.finallyLoc)return en(In.finallyLoc)}}}},abrupt:function(Vn,ot){for(var en=this.tryEntries.length-1;en>=0;--en){var lt=this.tryEntries[en];if(lt.tryLoc<=this.prev&&Oe.call(lt,"finallyLoc")&&this.prev<lt.finallyLoc){var In=lt;break}}In&&("break"===Vn||"continue"===Vn)&&In.tryLoc<=ot&&ot<=In.finallyLoc&&(In=null);var rn=In?In.completion:{};return rn.type=Vn,rn.arg=ot,In?(this.method="next",this.next=In.finallyLoc,it):this.complete(rn)},complete:function(Vn,ot){if("throw"===Vn.type)throw Vn.arg;return"break"===Vn.type||"continue"===Vn.type?this.next=Vn.arg:"return"===Vn.type?(this.rval=this.arg=Vn.arg,this.method="return",this.next="end"):"normal"===Vn.type&&ot&&(this.next=ot),it},finish:function(Vn){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var en=this.tryEntries[ot];if(en.finallyLoc===Vn)return this.complete(en.completion,en.afterLoc),qn(en),it}},catch:function(Vn){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var en=this.tryEntries[ot];if(en.tryLoc===Vn){var lt=en.completion;if("throw"===lt.type){var In=lt.arg;qn(en)}return In}}throw new Error("illegal catch attempt")},delegateYield:function(Vn,ot,en){return this.delegate={iterator:Si(Vn),resultName:ot,nextLoc:en},"next"===this.method&&(this.arg=void 0),it}},Ze}function R(Ze,$e,Oe,Nt,xt,Ot,Kt){try{var $t=Ze[Ot](Kt),rt=$t.value}catch(We){return void Oe(We)}$t.done?$e(rt):Promise.resolve(rt).then(Nt,xt)}function y(Ze,$e){var Oe=typeof Symbol<"u"&&Ze[Symbol.iterator]||Ze["@@iterator"];if(!Oe){if(Array.isArray(Ze)||(Oe=function j(Ze,$e){if(Ze){if("string"==typeof Ze)return Y(Ze,$e);var Oe=Object.prototype.toString.call(Ze).slice(8,-1);if("Object"===Oe&&Ze.constructor&&(Oe=Ze.constructor.name),"Map"===Oe||"Set"===Oe)return Array.from(Ze);if("Arguments"===Oe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe))return Y(Ze,$e)}}(Ze))||$e&&Ze&&"number"==typeof Ze.length){Oe&&(Ze=Oe);var Nt=0,xt=function(){};return{s:xt,n:function(){return Nt>=Ze.length?{done:!0}:{done:!1,value:Ze[Nt++]}},e:function(We){throw We},f:xt}}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 $t,Ot=!0,Kt=!1;return{s:function(){Oe=Oe.call(Ze)},n:function(){var We=Oe.next();return Ot=We.done,We},e:function(We){Kt=!0,$t=We},f:function(){try{!Ot&&null!=Oe.return&&Oe.return()}finally{if(Kt)throw $t}}}}function Y(Ze,$e){(null==$e||$e>Ze.length)&&($e=Ze.length);for(var Oe=0,Nt=new Array($e);Oe<$e;Oe++)Nt[Oe]=Ze[Oe];return Nt}function se(Ze,$e){for(var Oe=0;Oe<$e.length;Oe++){var Nt=$e[Oe];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(Ze,Se(Nt.key),Nt)}}function Se(Ze){var $e=function te(Ze,$e){if("object"!==F(Ze)||null===Ze)return Ze;var Oe=Ze[Symbol.toPrimitive];if(void 0!==Oe){var Nt=Oe.call(Ze,$e||"default");if("object"!==F(Nt))return Nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===$e?String:Number)(Ze)}(Ze,"string");return"symbol"===F($e)?$e:String($e)}function oe(Ze,$e){if("function"!=typeof $e&&null!==$e)throw new TypeError("Super expression must either be null or a function");Ze.prototype=Object.create($e&&$e.prototype,{constructor:{value:Ze,writable:!0,configurable:!0}}),Object.defineProperty(Ze,"prototype",{writable:!1}),$e&&q(Ze,$e)}function q(Ze,$e){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Nt,xt){return Nt.__proto__=xt,Nt})(Ze,$e)}function we(Ze){var $e=function pe(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var xt,Nt=Ee(Ze);if($e){var Ot=Ee(this).constructor;xt=Reflect.construct(Nt,arguments,Ot)}else xt=Nt.apply(this,arguments);return function ae(Ze,$e){if($e&&("object"===F($e)||"function"==typeof $e))return $e;if(void 0!==$e)throw new TypeError("Derived constructors may only return object or undefined");return Q(Ze)}(this,xt)}}function Q(Ze){if(void 0===Ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ze}function Ee(Ze){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Oe){return Oe.__proto__||Object.getPrototypeOf(Oe)})(Ze)}var ke=this&&this.__importDefault||function(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}};Object.defineProperty(A,"__esModule",{value:!0}),A.Feathers=void 0;var Ye=ke(G(
/*! ./version */
"../feathers/lib/version.js")),ct=G(
/*! events */
"../../node_modules/events/events.js"),ut=G(
/*! @feathersjs/commons */
"../commons/lib/index.js"),Ct=G(
/*! @feathersjs/hooks */
"../../node_modules/@feathersjs/hooks/script/index.js"),Ue=G(
/*! ./events */
"../feathers/lib/events.js"),vt=G(
/*! ./hooks */
"../feathers/lib/hooks.js"),ln=G(
/*! ./service */
"../feathers/lib/service.js"),Je=G(
/*! ./hooks */
"../feathers/lib/hooks.js"),Ft=(0,ut.createDebug)("@feathersjs/feathers"),st=function(Ze){oe(Oe,Ze);var Nt,$e=we(Oe);function Oe(){var Nt;return function ee(Ze,$e){if(!(Ze instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,Oe),(Nt=$e.call(this)).services={},Nt.settings={},Nt.mixins=[vt.hookMixin,Ue.eventMixin],Nt.version=Ye.default,Nt._isSetup=!1,Nt.registerHooks=(0,Je.enableHooks)(Q(Nt)),Nt.registerHooks({around:[Ue.eventHook]}),Nt}return function he(Ze,$e,Oe){return $e&&se(Ze.prototype,$e),Oe&&se(Ze,Oe),Object.defineProperty(Ze,"prototype",{writable:!1}),Ze}(Oe,[{key:"get",value:function(xt){return this.settings[xt]}},{key:"set",value:function(xt,Ot){return this.settings[xt]=Ot,this}},{key:"configure",value:function(xt){return xt.call(this,this),this}},{key:"defaultService",value:function(xt){throw new Error("Can not find service '".concat(xt,"'"))}},{key:"service",value:function(xt){var Ot=(0,ut.stripSlashes)(xt)||"/",Kt=this.services[Ot];return typeof Kt>"u"?(this.use(Ot,this.defaultService(Ot)),this.service(Ot)):Kt}},{key:"_setup",value:function(){var xt=this;return this._isSetup=!0,Object.keys(this.services).reduce(function(Ot,Kt){return Ot.then(function(){var $t=xt.service(Kt);if("function"==typeof $t.setup)return Ft("Setting up service for `".concat(Kt,"`")),$t.setup(xt,Kt)})},Promise.resolve()).then(function(){return xt})}},{key:"setup",get:function(){return this._setup},set:function(xt){this._setup=xt[Ct.HOOKS]?xt:(0,Ct.hooks)(xt,(0,Ct.middleware)().params("server").props({app:this}))}},{key:"_teardown",value:function(){var xt=this;return this._isSetup=!1,Object.keys(this.services).reduce(function(Ot,Kt){return Ot.then(function(){var $t=xt.service(Kt);if("function"==typeof $t.teardown)return Ft("Tearing down service for `".concat(Kt,"`")),$t.teardown(xt,Kt)})},Promise.resolve()).then(function(){return xt})}},{key:"teardown",get:function(){return this._teardown},set:function(xt){this._teardown=xt[Ct.HOOKS]?xt:(0,Ct.hooks)(xt,(0,Ct.middleware)().params("server").props({app:this}))}},{key:"use",value:function(xt,Ot,Kt){var $t=this;if("string"!=typeof xt)throw new Error("'".concat(xt,"' is not a valid service path."));var rt=(0,ut.stripSlashes)(xt)||"/",We=Ot;if("function"==typeof We.service&&We.services)return Object.keys(We.services).forEach(function(an){return $t.use("".concat(rt,"/").concat(an),We.service(an))}),this;var wn,it=(0,ln.wrapService)(rt,Ot,Kt),It=(0,ln.getServiceOptions)(it),Tt=y(ln.protectedMethods);try{for(Tt.s();!(wn=Tt.n()).done;){var Nn=wn.value;if(It.methods.includes(Nn))throw new Error("'".concat(Nn,"' on service '").concat(rt,"' is not allowed as a custom method name"))}}catch(an){Tt.e(an)}finally{Tt.f()}return Ft("Registering new service at `".concat(rt,"`")),this.mixins.forEach(function(an){return an.call($t,it,rt,It)}),this.services[rt]=it,this._isSetup&&"function"==typeof it.setup&&(Ft("Setting up service for `".concat(rt,"`")),it.setup(this,rt)),this}},{key:"unuse",value:(Nt=function P(Ze){return function(){var $e=this,Oe=arguments;return new Promise(function(Nt,xt){var Ot=Ze.apply($e,Oe);function Kt(rt){R(Ot,Nt,xt,Kt,$t,"next",rt)}function $t(rt){R(Ot,Nt,xt,Kt,$t,"throw",rt)}Kt(void 0)})}}(N().mark(function Ot(Kt){var $t,rt;return N().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if($t=(0,ut.stripSlashes)(Kt)||"/",!(rt=this.services[$t])||"function"!=typeof rt.teardown){yt.next=5;break}return yt.next=5,rt.teardown(this,$t);case 5:return delete this.services[$t],yt.abrupt("return",rt);case 7:case"end":return yt.stop()}},Ot,this)})),function xt(Ot){return Nt.apply(this,arguments)})},{key:"hooks",value:function(xt){var Ot=xt;return Ot.before||Ot.after||Ot.error||Ot.around?this.registerHooks(Ot):Ot.setup||Ot.teardown?(0,Ct.hooks)(this,Ot):this.registerHooks({around:Ot}),this}}]),Oe}(ct.EventEmitter);A.Feathers=st},"../feathers/lib/declarations.js":
/*!***************************************!*\
                    !*** ../feathers/lib/declarations.js ***!
                    \***************************************/function(T,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0})},"../feathers/lib/events.js":
/*!*********************************!*\
                    !*** ../feathers/lib/events.js ***!
                    \*********************************/function(T,A,G){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.eventMixin=A.eventHook=void 0;var F=G(
/*! events */
"../../node_modules/events/events.js"),N=G(
/*! ./service */
"../feathers/lib/service.js");A.eventHook=function R(y,j){var ee=(0,N.getServiceOptions)(y.self).events;return y.event=N.defaultEventMap[y.method]||null,j().then(function(){"string"!=typeof y.event||ee.includes(y.event)||(Array.isArray(y.result)?y.result:[y.result]).forEach(function(Se){return y.self.emit(y.event,Se,y)})})},A.eventMixin=function P(y){return"function"==typeof y.on&&"function"==typeof y.emit||Object.assign(y,F.EventEmitter.prototype),y}},"../feathers/lib/hooks.js":
/*!********************************!*\
                    !*** ../feathers/lib/hooks.js ***!
                    \********************************/function(T,A,G){"use strict";function N($e,Oe){for(var Nt=0;Nt<Oe.length;Nt++){var xt=Oe[Nt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty($e,P(xt.key),xt)}}function P($e){var Oe=function y($e,Oe){if("object"!==Ye($e)||null===$e)return $e;var Nt=$e[Symbol.toPrimitive];if(void 0!==Nt){var xt=Nt.call($e,Oe||"default");if("object"!==Ye(xt))return xt;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Oe?String:Number)($e)}($e,"string");return"symbol"===Ye(Oe)?Oe:String(Oe)}function j(){return j=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Oe,Nt,xt){var Ot=function Y($e,Oe){for(;!Object.prototype.hasOwnProperty.call($e,Oe)&&null!==($e=q($e)););return $e}(Oe,Nt);if(Ot){var Kt=Object.getOwnPropertyDescriptor(Ot,Nt);return Kt.get?Kt.get.call(arguments.length<3?Oe:xt):Kt.value}},j.apply(this,arguments)}function ee($e,Oe){if("function"!=typeof Oe&&null!==Oe)throw new TypeError("Super expression must either be null or a function");$e.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:$e,writable:!0,configurable:!0}}),Object.defineProperty($e,"prototype",{writable:!1}),Oe&&se($e,Oe)}function se($e,Oe){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Ot){return xt.__proto__=Ot,xt})($e,Oe)}function he($e){var Oe=function oe(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var Ot,xt=q($e);if(Oe){var Kt=q(this).constructor;Ot=Reflect.construct(xt,arguments,Kt)}else Ot=xt.apply(this,arguments);return function Se($e,Oe){if(Oe&&("object"===Ye(Oe)||"function"==typeof Oe))return Oe;if(void 0!==Oe)throw new TypeError("Derived constructors may only return object or undefined");return function te($e){if(void 0===$e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e}($e)}(this,Ot)}}function q($e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Nt){return Nt.__proto__||Object.getPrototypeOf(Nt)})($e)}function we($e){return function Ee($e){if(Array.isArray($e))return ke($e)}($e)||function pe($e){if(typeof Symbol<"u"&&null!=$e[Symbol.iterator]||null!=$e["@@iterator"])return Array.from($e)}($e)||function Q($e,Oe){if($e){if("string"==typeof $e)return ke($e,Oe);var Nt=Object.prototype.toString.call($e).slice(8,-1);if("Object"===Nt&&$e.constructor&&(Nt=$e.constructor.name),"Map"===Nt||"Set"===Nt)return Array.from($e);if("Arguments"===Nt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return ke($e,Oe)}}($e)||function ae(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke($e,Oe){(null==Oe||Oe>$e.length)&&(Oe=$e.length);for(var Nt=0,xt=new Array(Oe);Nt<Oe;Nt++)xt[Nt]=$e[Nt];return xt}function Ye($e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Oe){return typeof Oe}:function(Oe){return Oe&&"function"==typeof Symbol&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe})($e)}Object.defineProperty(A,"__esModule",{value:!0}),A.hookMixin=A.FeathersHookManager=A.createContext=A.enableHooks=A.collectHooks=A.convertHookData=void 0;var ct=G(
/*! @feathersjs/hooks */
"../../node_modules/@feathersjs/hooks/script/index.js"),ut=G(
/*! ./service */
"../feathers/lib/service.js"),Ct=["before","after","error","around"],Ue=function(Oe){return Ct.includes(Oe)};function vt($e){var Oe={};if(Array.isArray($e))Oe.all=$e;else if("object"!==Ye($e))Oe.all=[$e];else for(var Nt=0,xt=Object.keys($e);Nt<xt.length;Nt++){var Ot=xt[Nt],Kt=$e[Ot];Oe[Ot]=Array.isArray(Kt)?Kt:[Kt]}return Oe}function ln($e,Oe){var Nt=$e.__hooks,xt=Nt.collected,Ot=Nt.collectedAll,Kt=Nt.around;return[].concat(we(Kt.all||[]),we(Kt[Oe]||[]),we(Ot.before||[]),we(xt[Oe]||[]),we(Ot.after||[]))}function Je($e){return Object.defineProperty($e,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(xt){var Ot=this.__hooks,Kt=Object.keys(xt).reduce(function(rt,We){if(!Ue(We))throw new Error("'".concat(We,"' is not a valid hook type"));return rt[We]=vt(xt[We]),rt},{});return Object.keys(Kt).forEach(function(rt){return Object.keys(Kt[rt]).forEach(function(We){var yt,it=Kt[rt][We],It=(yt=Ot[rt])[We]||(yt[We]=[]);if(It.push.apply(It,we(it)),"all"===We){if(Ot.before[We]||Ot.error[We]){var Tt=(0,ct.collect)({before:Ot.before[We]||[],error:Ot.error[We]||[]});Ot.collectedAll.before=[Tt]}if(Ot.after[We]){var wn=(0,ct.collect)({after:Ot.after[We]||[]});Ot.collectedAll.after=[wn]}}else if(Ot.before[We]||Ot.after[We]||Ot.error[We]){var Nn=(0,ct.collect)({before:Ot.before[We]||[],after:Ot.after[We]||[],error:Ot.error[We]||[]});Ot.collected[We]=[Nn]}})}),this}}A.convertHookData=vt,A.collectHooks=ln,A.enableHooks=Je,A.createContext=function Ft($e,Oe){var Nt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},xt=$e[Oe].createContext;if("function"!=typeof xt)throw new Error("Can not create context for method ".concat(Oe));return xt(Nt)};var st=function($e){ee(Nt,$e);var Oe=he(Nt);function Nt(xt,Ot){var Kt;return function F($e,Oe){if(!($e instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,Nt),(Kt=Oe.call(this)).app=xt,Kt.method=Ot,Kt._middleware=[],Kt}return function R($e,Oe,Nt){return Oe&&N($e.prototype,Oe),Nt&&N($e,Nt),Object.defineProperty($e,"prototype",{writable:!1}),$e}(Nt,[{key:"collectMiddleware",value:function(Ot,Kt){var $t=ln(this.app,this.method),rt=j(q(Nt.prototype),"collectMiddleware",this).call(this,Ot,Kt),We=ln(Ot,this.method);return[].concat(we($t),we(rt),we(We))}},{key:"initializeContext",value:function(Ot,Kt,$t){var rt=j(q(Nt.prototype),"initializeContext",this).call(this,Ot,Kt,$t);return rt.params=rt.params||{},rt}},{key:"middleware",value:function(Ot){var Kt;return(Kt=this._middleware).push.apply(Kt,we(Ot)),this}}]),Nt}(ct.HookManager);A.FeathersHookManager=st,A.hookMixin=function Ze($e,Oe,Nt){var xt=this;if("function"==typeof $e.hooks)return $e;var Kt=(0,ut.getHookMethods)($e,Nt).reduce(function(rt,We){var yt,it=ut.defaultServiceArguments[We]||["data","params"];return rt[We]=(yt=new st(xt,We)).params.apply(yt,we(it)).props({app:xt,path:Oe,method:We,service:$e,event:null,type:"around",get statusCode(){var It;return null===(It=this.http)||void 0===It?void 0:It.status},set statusCode(It){this.http=this.http||{},this.http.status=It}}),rt},{}),$t=Je($e);return(0,ct.hooks)($e,Kt),$e.hooks=function(rt){var We=this;return rt.before||rt.after||rt.error||rt.around?$t.call(this,rt):Array.isArray(rt)?(0,ct.hooks)(this,rt):(Object.keys(rt).forEach(function(yt){var it=(0,ct.getManager)(We[yt]);if(!(it instanceof st))throw new Error("Method ".concat(yt," is not a Feathers hooks enabled service method"));it.middleware(rt[yt])}),this)},$e}},"../feathers/lib/index.js":
/*!********************************!*\
                    !*** ../feathers/lib/index.js ***!
                    \********************************/function(T,A,G){"use strict";var F=this&&this.__createBinding||(Object.create?function(ee,se,he,Se){void 0===Se&&(Se=he);var te=Object.getOwnPropertyDescriptor(se,he);(!te||("get"in te?!se.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return se[he]}}),Object.defineProperty(ee,Se,te)}:function(ee,se,he,Se){void 0===Se&&(Se=he),ee[Se]=se[he]}),N=this&&this.__exportStar||function(ee,se){for(var he in ee)"default"!==he&&!Object.prototype.hasOwnProperty.call(se,he)&&F(se,ee,he)},R=this&&this.__importDefault||function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(A,"__esModule",{value:!0}),A.Feathers=A.version=A.feathers=void 0;var P=G(
/*! @feathersjs/commons */
"../commons/lib/index.js"),y=R(G(
/*! ./version */
"../feathers/lib/version.js"));A.version=y.default;var j=G(
/*! ./application */
"../feathers/lib/application.js");function Y(){return new j.Feathers}Object.defineProperty(A,"Feathers",{enumerable:!0,get:function(){return j.Feathers}}),A.feathers=Y,Y.setDebug=P.setDebug,N(G(
/*! ./hooks */
"../feathers/lib/hooks.js"),A),N(G(
/*! ./declarations */
"../feathers/lib/declarations.js"),A),N(G(
/*! ./service */
"../feathers/lib/service.js"),A),T.exports=Object.assign(Y,T.exports)},"../feathers/lib/service.js":
/*!**********************************!*\
                    !*** ../feathers/lib/service.js ***!
                    \**********************************/function(T,A,G){"use strict";function F(Ee){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ke){return typeof ke}:function(ke){return ke&&"function"==typeof Symbol&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke})(Ee)}function N(Ee){return function j(Ee){if(Array.isArray(Ee))return Y(Ee)}(Ee)||function y(Ee){if(typeof Symbol<"u"&&null!=Ee[Symbol.iterator]||null!=Ee["@@iterator"])return Array.from(Ee)}(Ee)||function P(Ee,ke){if(Ee){if("string"==typeof Ee)return Y(Ee,ke);var Ye=Object.prototype.toString.call(Ee).slice(8,-1);if("Object"===Ye&&Ee.constructor&&(Ye=Ee.constructor.name),"Map"===Ye||"Set"===Ye)return Array.from(Ee);if("Arguments"===Ye||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ye))return Y(Ee,ke)}}(Ee)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(Ee,ke){(null==ke||ke>Ee.length)&&(ke=Ee.length);for(var Ye=0,ct=new Array(ke);Ye<ke;Ye++)ct[Ye]=Ee[Ye];return ct}function ee(Ee,ke){var Ye=Object.keys(Ee);if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(Ee);ke&&(ct=ct.filter(function(ut){return Object.getOwnPropertyDescriptor(Ee,ut).enumerable})),Ye.push.apply(Ye,ct)}return Ye}function se(Ee){for(var ke=1;ke<arguments.length;ke++){var Ye=null!=arguments[ke]?arguments[ke]:{};ke%2?ee(Object(Ye),!0).forEach(function(ct){he(Ee,ct,Ye[ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(Ye)):ee(Object(Ye)).forEach(function(ct){Object.defineProperty(Ee,ct,Object.getOwnPropertyDescriptor(Ye,ct))})}return Ee}function he(Ee,ke,Ye){return(ke=function Se(Ee){var ke=function te(Ee,ke){if("object"!==F(Ee)||null===Ee)return Ee;var Ye=Ee[Symbol.toPrimitive];if(void 0!==Ye){var ct=Ye.call(Ee,ke||"default");if("object"!==F(ct))return ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ke?String:Number)(Ee)}(Ee,"string");return"symbol"===F(ke)?ke:String(ke)}(ke))in Ee?Object.defineProperty(Ee,ke,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):Ee[ke]=Ye,Ee}Object.defineProperty(A,"__esModule",{value:!0}),A.wrapService=A.normalizeServiceOptions=A.getServiceOptions=A.getHookMethods=A.protectedMethods=A.defaultServiceEvents=A.defaultEventMap=A.defaultServiceMethods=A.defaultServiceArguments=A.SERVICE=void 0;var oe=G(
/*! events */
"../../node_modules/events/events.js"),q=G(
/*! @feathersjs/commons */
"../commons/lib/index.js");A.SERVICE=(0,q.createSymbol)("@feathersjs/service"),A.defaultServiceArguments={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]},A.defaultServiceMethods=["find","get","create","update","patch","remove"],A.defaultEventMap={create:"created",update:"updated",patch:"patched",remove:"removed"},A.defaultServiceEvents=Object.values(A.defaultEventMap),A.protectedMethods=Object.keys(Object.prototype).concat(Object.keys(oe.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish"]),A.getHookMethods=function we(Ee,ke){var Ye=ke.methods;return A.defaultServiceMethods.filter(function(ct){return"function"==typeof Ee[ct]&&!Ye.includes(ct)}).concat(Ye)},A.getServiceOptions=function ae(Ee){return Ee[A.SERVICE]},A.normalizeServiceOptions=function(ke){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ct=Ye.methods,ut=void 0===ct?A.defaultServiceMethods.filter(function(ln){return"function"==typeof ke[ln]}):ct,Ct=Ye.events,Ue=void 0===Ct?ke.events||[]:Ct,vt=Ye.serviceEvents||A.defaultServiceEvents.concat(Ue);return se(se({},Ye),{},{events:Ue,methods:ut,serviceEvents:vt})},A.wrapService=function pe(Ee,ke,Ye){if(ke[A.SERVICE])return ke;var ct=Object.create(ke),ut=(0,A.normalizeServiceOptions)(ke,Ye);if(0===Object.keys(ut.methods).length&&![].concat(N(A.defaultServiceMethods),["setup","teardown"]).some(function(Ct){return"function"==typeof ke[Ct]}))throw new Error("Invalid service object passed for path `".concat(Ee,"`"));return Object.defineProperty(ct,A.SERVICE,{value:ut}),ct}},"../feathers/lib/version.js":
/*!**********************************!*\
                    !*** ../feathers/lib/version.js ***!
                    \**********************************/function(T,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default="development"},"../rest-client/lib/axios.js":
/*!***********************************!*\
                    !*** ../rest-client/lib/axios.js ***!
                    \***********************************/function(T,A,G){"use strict";function F(ae){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(ae)}function R(ae,Q){for(var pe=0;pe<Q.length;pe++){var Ee=Q[pe];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ae,y(Ee.key),Ee)}}function y(ae){var Q=function j(ae,Q){if("object"!==F(ae)||null===ae)return ae;var pe=ae[Symbol.toPrimitive];if(void 0!==pe){var Ee=pe.call(ae,Q||"default");if("object"!==F(Ee))return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(ae)}(ae,"string");return"symbol"===F(Q)?Q:String(Q)}function Y(ae,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(Q&&Q.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),Q&&ee(ae,Q)}function ee(ae,Q){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ee,ke){return Ee.__proto__=ke,Ee})(ae,Q)}function se(ae){var Q=function te(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var ke,Ee=oe(ae);if(Q){var Ye=oe(this).constructor;ke=Reflect.construct(Ee,arguments,Ye)}else ke=Ee.apply(this,arguments);return function he(ae,Q){if(Q&&("object"===F(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function Se(ae){if(void 0===ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}(ae)}(this,ke)}}function oe(ae){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(pe){return pe.__proto__||Object.getPrototypeOf(pe)})(ae)}Object.defineProperty(A,"__esModule",{value:!0}),A.AxiosClient=void 0;var we=function(ae){Y(pe,ae);var Q=se(pe);function pe(){return function N(ae,Q){if(!(ae instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,pe),Q.apply(this,arguments)}return function P(ae,Q,pe){return Q&&R(ae.prototype,Q),pe&&R(ae,pe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}(pe,[{key:"request",value:function(ke,Ye){var ct=Object.assign({url:ke.url,method:ke.method,data:ke.body,headers:Object.assign({Accept:"application/json"},this.options.headers,ke.headers)},Ye.connection);return this.connection.request(ct).then(function(ut){return ut.data}).catch(function(ut){var Ct=ut.response||ut;throw Ct instanceof Error?Ct:Ct.data||Ct})}}]),pe}(G(
/*! ./base */
"../rest-client/lib/base.js").Base);A.AxiosClient=we},"../rest-client/lib/base.js":
/*!**********************************!*\
                    !*** ../rest-client/lib/base.js ***!
                    \**********************************/function(T,A,G){"use strict";function F(oe){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(oe)}function R(oe,q){for(var we=0;we<q.length;we++){var ae=q[we];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(oe,y(ae.key),ae)}}function y(oe){var q=function j(oe,q){if("object"!==F(oe)||null===oe)return oe;var we=oe[Symbol.toPrimitive];if(void 0!==we){var ae=we.call(oe,q||"default");if("object"!==F(ae))return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===q?String:Number)(oe)}(oe,"string");return"symbol"===F(q)?q:String(q)}var Y=this&&this.__importDefault||function(oe){return oe&&oe.__esModule?oe:{default:oe}};Object.defineProperty(A,"__esModule",{value:!0}),A.Base=void 0;var ee=Y(G(
/*! qs */
"../../node_modules/qs/lib/index.js")),se=G(
/*! @feathersjs/errors */
"../errors/lib/index.js"),he=G(
/*! @feathersjs/commons */
"../commons/lib/index.js");function Se(oe){throw"ECONNREFUSED"===oe.code?new se.Unavailable(oe.message,he._.pick(oe,"address","port","config")):(0,se.convert)(oe)}var te=function(){function oe(q){(function N(oe,q){if(!(oe instanceof q))throw new TypeError("Cannot call a class as a function")})(this,oe),this.name=(0,he.stripSlashes)(q.name),this.options=q.options,this.connection=q.connection,this.base="".concat(q.base,"/").concat(this.name)}return function P(oe,q,we){return q&&R(oe.prototype,q),we&&R(oe,we),Object.defineProperty(oe,"prototype",{writable:!1}),oe}(oe,[{key:"makeUrl",value:function(we,ae){var Q=this.base;return we=we||{},typeof ae<"u"&&null!==ae&&(Q+="/".concat(encodeURIComponent(ae))),Q+this.getQuery(we)}},{key:"getQuery",value:function(we){if(0!==Object.keys(we).length){var ae=ee.default.stringify(we);return"?".concat(ae)}return""}},{key:"methods",value:function(){for(var we=this,ae=arguments.length,Q=new Array(ae),pe=0;pe<ae;pe++)Q[pe]=arguments[pe];return Q.forEach(function(Ee){we[Ee]=function(ke){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request({body:ke,url:this.makeUrl(Ye.query),method:"POST",headers:Object.assign({"Content-Type":"application/json","X-Service-Method":Ee},Ye.headers)},Ye).catch(Se)}}),this}},{key:"find",value:function(we){return this.request({url:this.makeUrl(we.query),method:"GET",headers:Object.assign({},we.headers)},we).catch(Se)}},{key:"get",value:function(we,ae){return typeof we>"u"?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(ae.query,we),method:"GET",headers:Object.assign({},ae.headers)},ae).catch(Se)}},{key:"create",value:function(we,ae){return this.request({url:this.makeUrl(ae.query),body:we,method:"POST",headers:Object.assign({"Content-Type":"application/json"},ae.headers)},ae).catch(Se)}},{key:"update",value:function(we,ae,Q){return typeof we>"u"?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(Q.query,we),body:ae,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},Q.headers)},Q).catch(Se)}},{key:"patch",value:function(we,ae,Q){return typeof we>"u"?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(Q.query,we),body:ae,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},Q.headers)},Q).catch(Se)}},{key:"remove",value:function(we,ae){return typeof we>"u"?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(ae.query,we),method:"DELETE",headers:Object.assign({},ae.headers)},ae).catch(Se)}}]),oe}();A.Base=te},"../rest-client/lib/fetch.js":
/*!***********************************!*\
                    !*** ../rest-client/lib/fetch.js ***!
                    \***********************************/function(T,A,G){"use strict";function F(Q){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe})(Q)}function R(Q,pe){for(var Ee=0;Ee<pe.length;Ee++){var ke=pe[Ee];ke.enumerable=ke.enumerable||!1,ke.configurable=!0,"value"in ke&&(ke.writable=!0),Object.defineProperty(Q,y(ke.key),ke)}}function y(Q){var pe=function j(Q,pe){if("object"!==F(Q)||null===Q)return Q;var Ee=Q[Symbol.toPrimitive];if(void 0!==Ee){var ke=Ee.call(Q,pe||"default");if("object"!==F(ke))return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===pe?String:Number)(Q)}(Q,"string");return"symbol"===F(pe)?pe:String(pe)}function Y(Q,pe){if("function"!=typeof pe&&null!==pe)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(pe&&pe.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),pe&&ee(Q,pe)}function ee(Q,pe){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ke,Ye){return ke.__proto__=Ye,ke})(Q,pe)}function se(Q){var pe=function te(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var Ye,ke=oe(Q);if(pe){var ct=oe(this).constructor;Ye=Reflect.construct(ke,arguments,ct)}else Ye=ke.apply(this,arguments);return function he(Q,pe){if(pe&&("object"===F(pe)||"function"==typeof pe))return pe;if(void 0!==pe)throw new TypeError("Derived constructors may only return object or undefined");return function Se(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q)}(this,Ye)}}function oe(Q){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ee){return Ee.__proto__||Object.getPrototypeOf(Ee)})(Q)}Object.defineProperty(A,"__esModule",{value:!0}),A.FetchClient=void 0;var q=G(
/*! @feathersjs/errors */
"../errors/lib/index.js"),ae=function(Q){Y(Ee,Q);var pe=se(Ee);function Ee(){return function N(Q,pe){if(!(Q instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,Ee),pe.apply(this,arguments)}return function P(Q,pe,Ee){return pe&&R(Q.prototype,pe),Ee&&R(Q,Ee),Object.defineProperty(Q,"prototype",{writable:!1}),Q}(Ee,[{key:"request",value:function(Ye,ct){var ut=Object.assign({},Ye,ct.connection);return ut.headers=Object.assign({Accept:"application/json"},this.options.headers,ut.headers),Ye.body&&(ut.body=JSON.stringify(Ye.body)),this.connection(Ye.url,ut).then(this.checkStatus).then(function(Ct){return 204===Ct.status?null:Ct.json()})}},{key:"checkStatus",value:function(Ye){return Ye.ok?Ye:Ye.json().catch(function(){return new(q.errors[Ye.status]||Error)("JSON parsing error")}).then(function(ct){throw ct.response=Ye,ct})}}]),Ee}(G(
/*! ./base */
"../rest-client/lib/base.js").Base);A.FetchClient=ae},"../rest-client/lib/index.js":
/*!***********************************!*\
                    !*** ../rest-client/lib/index.js ***!
                    \***********************************/function(T,A,G){"use strict";function F(q){return function y(q){if(Array.isArray(q))return j(q)}(q)||function P(q){if(typeof Symbol<"u"&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function R(q,we){if(q){if("string"==typeof q)return j(q,we);var ae=Object.prototype.toString.call(q).slice(8,-1);if("Object"===ae&&q.constructor&&(ae=q.constructor.name),"Map"===ae||"Set"===ae)return Array.from(q);if("Arguments"===ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return j(q,we)}}(q)||function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(q,we){(null==we||we>q.length)&&(we=q.length);for(var ae=0,Q=new Array(we);ae<we;ae++)Q[ae]=q[ae];return Q}Object.defineProperty(A,"__esModule",{value:!0}),A.SuperagentClient=A.FetchClient=A.AxiosClient=void 0;var Y=G(
/*! @feathersjs/feathers */
"../feathers/lib/index.js"),ee=G(
/*! ./base */
"../rest-client/lib/base.js"),se=G(
/*! ./axios */
"../rest-client/lib/axios.js");Object.defineProperty(A,"AxiosClient",{enumerable:!0,get:function(){return se.AxiosClient}});var he=G(
/*! ./fetch */
"../rest-client/lib/fetch.js");Object.defineProperty(A,"FetchClient",{enumerable:!0,get:function(){return he.FetchClient}});var Se=G(
/*! ./superagent */
"../rest-client/lib/superagent.js");Object.defineProperty(A,"SuperagentClient",{enumerable:!0,get:function(){return Se.SuperagentClient}});var te={superagent:Se.SuperagentClient,fetch:he.FetchClient,axios:se.AxiosClient};function oe(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",we={Base:ee.Base};return Object.keys(te).forEach(function(ae){we[ae]=function(Q){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te[ae];if(!Q)throw new Error("".concat(ae," has to be provided to feathers-rest"));"function"==typeof pe&&(Ee=pe,pe={});var ke=function(ut){return new Ee({base:q,name:ut,connection:Q,options:pe})},Ye=function(ut){if(void 0!==ut.rest)throw new Error("Only one default client provider can be configured");ut.rest=Q,ut.defaultService=ke,ut.mixins.unshift(function(Ct,Ue,vt){if(vt&&vt.methods&&Ct instanceof ee.Base){var ln=vt.methods.filter(function(Je){return!Y.defaultServiceMethods.includes(Je)});Ct.methods.apply(Ct,F(ln))}})};return Ye.Service=Ee,Ye.service=ke,Ye}}),we}A.default=oe,T.exports=Object.assign(oe,T.exports)},"../rest-client/lib/superagent.js":
/*!****************************************!*\
                    !*** ../rest-client/lib/superagent.js ***!
                    \****************************************/function(T,A,G){"use strict";function F(ae){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(ae)}function R(ae,Q){for(var pe=0;pe<Q.length;pe++){var Ee=Q[pe];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ae,y(Ee.key),Ee)}}function y(ae){var Q=function j(ae,Q){if("object"!==F(ae)||null===ae)return ae;var pe=ae[Symbol.toPrimitive];if(void 0!==pe){var Ee=pe.call(ae,Q||"default");if("object"!==F(Ee))return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(ae)}(ae,"string");return"symbol"===F(Q)?Q:String(Q)}function Y(ae,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(Q&&Q.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),Q&&ee(ae,Q)}function ee(ae,Q){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ee,ke){return Ee.__proto__=ke,Ee})(ae,Q)}function se(ae){var Q=function te(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var ke,Ee=oe(ae);if(Q){var Ye=oe(this).constructor;ke=Reflect.construct(Ee,arguments,Ye)}else ke=Ee.apply(this,arguments);return function he(ae,Q){if(Q&&("object"===F(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function Se(ae){if(void 0===ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}(ae)}(this,ke)}}function oe(ae){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(pe){return pe.__proto__||Object.getPrototypeOf(pe)})(ae)}Object.defineProperty(A,"__esModule",{value:!0}),A.SuperagentClient=void 0;var we=function(ae){Y(pe,ae);var Q=se(pe);function pe(){return function N(ae,Q){if(!(ae instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,pe),Q.apply(this,arguments)}return function P(ae,Q,pe){return Q&&R(ae.prototype,Q),pe&&R(ae,pe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}(pe,[{key:"request",value:function(ke,Ye){var ct=this.connection(ke.method,ke.url).set(this.options.headers||{}).set("Accept","application/json").set(Ye.connection||{}).set(ke.headers||{}).type(ke.type||"json");return new Promise(function(ut,Ct){ct.set(ke.headers),ke.body&&ct.send(ke.body),ct.end(function(Ue,vt){if(Ue){try{var ln=Ue.response;(Ue=JSON.parse(Ue.response.text)).response=ln}catch{}return Ct(Ue)}ut(vt&&vt.body)})})}}]),pe}(G(
/*! ./base */
"../rest-client/lib/base.js").Base);A.SuperagentClient=we},"../socketio-client/lib/index.js":
/*!***************************************!*\
                    !*** ../socketio-client/lib/index.js ***!
                    \***************************************/function(T,A,G){"use strict";function F(he){return function y(he){if(Array.isArray(he))return j(he)}(he)||function P(he){if(typeof Symbol<"u"&&null!=he[Symbol.iterator]||null!=he["@@iterator"])return Array.from(he)}(he)||function R(he,Se){if(he){if("string"==typeof he)return j(he,Se);var te=Object.prototype.toString.call(he).slice(8,-1);if("Object"===te&&he.constructor&&(te=he.constructor.name),"Map"===te||"Set"===te)return Array.from(he);if("Arguments"===te||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return j(he,Se)}}(he)||function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(he,Se){(null==Se||Se>he.length)&&(Se=he.length);for(var te=0,oe=new Array(Se);te<Se;te++)oe[te]=he[te];return oe}Object.defineProperty(A,"__esModule",{value:!0});var Y=G(
/*! @feathersjs/transport-commons/client */
"../transport-commons/client.js"),ee=G(
/*! @feathersjs/feathers */
"../feathers/lib/index.js");function se(he,Se){if(!he)throw new Error("Socket.io connection needs to be provided");var te=function(we){var ae=Object.values(ee.defaultEventMap),Q=Object.assign({},Se,{events:ae,name:we,connection:he,method:"emit"});return new Y.Service(Q)},oe=function(we){if(void 0!==we.io)throw new Error("Only one default client provider can be configured");we.io=he,we.defaultService=te,we.mixins.unshift(function(ae,Q,pe){if(pe&&pe.methods&&ae instanceof Y.Service){var Ee=pe.methods.filter(function(ke){return!ee.defaultServiceMethods.includes(ke)});ae.methods.apply(ae,F(Ee))}})};return oe.Service=Y.Service,oe.service=te,oe}A.default=se,T.exports=Object.assign(se,T.exports)},"../transport-commons/client.js":
/*!**************************************!*\
                    !*** ../transport-commons/client.js ***!
                    \**************************************/function(T,A,G){T.exports=G(
/*! ./lib/client */
"../transport-commons/lib/client.js")},"../transport-commons/lib/client.js":
/*!******************************************!*\
                    !*** ../transport-commons/lib/client.js ***!
                    \******************************************/function(T,A,G){"use strict";function F(q){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(we){return typeof we}:function(we){return we&&"function"==typeof Symbol&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we})(q)}function R(q,we){for(var ae=0;ae<we.length;ae++){var Q=we[ae];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(q,y(Q.key),Q)}}function y(q){var we=function j(q,we){if("object"!==F(q)||null===q)return q;var ae=q[Symbol.toPrimitive];if(void 0!==ae){var Q=ae.call(q,we||"default");if("object"!==F(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===we?String:Number)(q)}(q,"string");return"symbol"===F(we)?we:String(we)}Object.defineProperty(A,"__esModule",{value:!0}),A.Service=void 0;var Y=G(
/*! @feathersjs/errors */
"../errors/lib/index.js"),se=(0,G(
/*! @feathersjs/commons */
"../commons/lib/index.js").createDebug)("@feathersjs/transport-commons/client"),he=["addListener","addEventListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeEventListener","removeListener"],Se=["eventNames","getMaxListeners","setMaxListeners"],te=function(we){Se.forEach(function(ae){we[ae]=function(){var Q;if("function"!=typeof this.connection[ae])throw new Error("Can not call '".concat(ae,"' on the client service connection"));return(Q=this.connection)[ae].apply(Q,arguments)}}),he.forEach(function(ae){we[ae]=function(Q){var pe;if("function"!=typeof this.connection[ae])throw new Error("Can not call '".concat(ae,"' on the client service connection"));var Ee="".concat(this.path," ").concat(Q);se("Calling emitter method ".concat(ae," with ")+"namespaced event '".concat(Ee,"'"));for(var ke=arguments.length,Ye=new Array(ke>1?ke-1:0),ct=1;ct<ke;ct++)Ye[ct-1]=arguments[ct];var ut=(pe=this.connection)[ae].apply(pe,[Ee].concat(Ye));return ut===this.connection?this:ut}})},oe=function(){function q(we){(function N(q,we){if(!(q instanceof we))throw new TypeError("Cannot call a class as a function")})(this,q),this.events=we.events,this.path=we.name,this.connection=we.connection,this.method=we.method,te(this)}return function P(q,we,ae){return we&&R(q.prototype,we),ae&&R(q,ae),Object.defineProperty(q,"prototype",{writable:!1}),q}(q,[{key:"send",value:function(ae){for(var Q=this,pe=arguments.length,Ee=new Array(pe>1?pe-1:0),ke=1;ke<pe;ke++)Ee[ke-1]=arguments[ke];return new Promise(function(Ye,ct){var ut;Ee.unshift(ae,Q.path),Ee.push(function(Ct,Ue){return Ct?ct((0,Y.convert)(Ct)):Ye(Ue)}),se("Sending socket.".concat(Q.method),Ee),(ut=Q.connection)[Q.method].apply(ut,Ee)})}},{key:"methods",value:function(){for(var ae=this,Q=arguments.length,pe=new Array(Q),Ee=0;Ee<Q;Ee++)pe[Ee]=arguments[Ee];return pe.forEach(function(ke){ae[ke]=function(Ye){return this.send(ke,Ye,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).query||{})}}),this}},{key:"find",value:function(){return this.send("find",(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).query||{})}},{key:"get",value:function(ae){return this.send("get",ae,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"create",value:function(ae){return this.send("create",ae,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"update",value:function(ae,Q){return this.send("update",ae,Q,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).query||{})}},{key:"patch",value:function(ae,Q){return this.send("patch",ae,Q,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).query||{})}},{key:"remove",value:function(ae){return this.send("remove",ae,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"off",value:function(ae){for(var Q=arguments.length,pe=new Array(Q>1?Q-1:0),Ee=1;Ee<Q;Ee++)pe[Ee-1]=arguments[Ee];if("function"==typeof this.connection.off){var ke,Ye=(ke=this.connection).off.apply(ke,["".concat(this.path," ").concat(ae)].concat(pe));return Ye===this.connection?this:Ye}return 0===pe.length?this.removeAllListeners(ae):this.removeListener.apply(this,[ae].concat(pe))}}]),q}();A.Service=oe},"../../node_modules/call-bind/callBound.js":
/*!*************************************************!*\
                    !*** ../../node_modules/call-bind/callBound.js ***!
                    \*************************************************/function(T,A,G){"use strict";var F=G(
/*! get-intrinsic */
"../../node_modules/get-intrinsic/index.js"),N=G(
/*! ./ */
"../../node_modules/call-bind/index.js"),R=N(F("String.prototype.indexOf"));T.exports=function(y,j){var Y=F(y,!!j);return"function"==typeof Y&&R(y,".prototype.")>-1?N(Y):Y}},"../../node_modules/call-bind/index.js":
/*!*********************************************!*\
                    !*** ../../node_modules/call-bind/index.js ***!
                    \*********************************************/function(T,A,G){"use strict";var F=G(
/*! function-bind */
"../../node_modules/function-bind/index.js"),N=G(
/*! get-intrinsic */
"../../node_modules/get-intrinsic/index.js"),R=N("%Function.prototype.apply%"),P=N("%Function.prototype.call%"),y=N("%Reflect.apply%",!0)||F.call(P,R),j=N("%Object.getOwnPropertyDescriptor%",!0),Y=N("%Object.defineProperty%",!0),ee=N("%Math.max%");if(Y)try{Y({},"a",{value:1})}catch{Y=null}T.exports=function(Se){var te=y(F,P,arguments);return j&&Y&&j(te,"length").configurable&&Y(te,"length",{value:1+ee(0,Se.length-(arguments.length-1))}),te};var se=function(){return y(F,R,arguments)};Y?Y(T.exports,"apply",{value:se}):T.exports.apply=se},"../../node_modules/events/events.js":
/*!*******************************************!*\
                    !*** ../../node_modules/events/events.js ***!
                    \*******************************************/function(T){"use strict";var F,A="object"==typeof Reflect?Reflect:null,G=A&&"function"==typeof A.apply?A.apply:function(ke,Ye,ct){return Function.prototype.apply.call(ke,Ye,ct)};F=A&&"function"==typeof A.ownKeys?A.ownKeys:Object.getOwnPropertySymbols?function(ke){return Object.getOwnPropertyNames(ke).concat(Object.getOwnPropertySymbols(ke))}:function(ke){return Object.getOwnPropertyNames(ke)};var R=Number.isNaN||function(ke){return ke!=ke};function P(){P.init.call(this)}T.exports=P,T.exports.once=function ae(Ee,ke){return new Promise(function(Ye,ct){function ut(Ue){Ee.removeListener(ke,Ct),ct(Ue)}function Ct(){"function"==typeof Ee.removeListener&&Ee.removeListener("error",ut),Ye([].slice.call(arguments))}pe(Ee,ke,Ct,{once:!0}),"error"!==ke&&function Q(Ee,ke,Ye){"function"==typeof Ee.on&&pe(Ee,"error",ke,Ye)}(Ee,ut,{once:!0})})},P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var y=10;function j(Ee){if("function"!=typeof Ee)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ee)}function Y(Ee){return void 0===Ee._maxListeners?P.defaultMaxListeners:Ee._maxListeners}function ee(Ee,ke,Ye,ct){var ut,Ct,Ue;if(j(Ye),void 0===(Ct=Ee._events)?(Ct=Ee._events=Object.create(null),Ee._eventsCount=0):(void 0!==Ct.newListener&&(Ee.emit("newListener",ke,Ye.listener?Ye.listener:Ye),Ct=Ee._events),Ue=Ct[ke]),void 0===Ue)Ue=Ct[ke]=Ye,++Ee._eventsCount;else if("function"==typeof Ue?Ue=Ct[ke]=ct?[Ye,Ue]:[Ue,Ye]:ct?Ue.unshift(Ye):Ue.push(Ye),(ut=Y(Ee))>0&&Ue.length>ut&&!Ue.warned){Ue.warned=!0;var vt=new Error("Possible EventEmitter memory leak detected. "+Ue.length+" "+String(ke)+" listeners added. Use emitter.setMaxListeners() to increase limit");vt.name="MaxListenersExceededWarning",vt.emitter=Ee,vt.type=ke,vt.count=Ue.length,function N(Ee){console&&console.warn&&console.warn(Ee)}(vt)}return Ee}function se(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function he(Ee,ke,Ye){var ct={fired:!1,wrapFn:void 0,target:Ee,type:ke,listener:Ye},ut=se.bind(ct);return ut.listener=Ye,ct.wrapFn=ut,ut}function Se(Ee,ke,Ye){var ct=Ee._events;if(void 0===ct)return[];var ut=ct[ke];return void 0===ut?[]:"function"==typeof ut?Ye?[ut.listener||ut]:[ut]:Ye?function we(Ee){for(var ke=new Array(Ee.length),Ye=0;Ye<ke.length;++Ye)ke[Ye]=Ee[Ye].listener||Ee[Ye];return ke}(ut):oe(ut,ut.length)}function te(Ee){var ke=this._events;if(void 0!==ke){var Ye=ke[Ee];if("function"==typeof Ye)return 1;if(void 0!==Ye)return Ye.length}return 0}function oe(Ee,ke){for(var Ye=new Array(ke),ct=0;ct<ke;++ct)Ye[ct]=Ee[ct];return Ye}function pe(Ee,ke,Ye,ct){if("function"==typeof Ee.on)ct.once?Ee.once(ke,Ye):Ee.on(ke,Ye);else{if("function"!=typeof Ee.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Ee);Ee.addEventListener(ke,function ut(Ct){ct.once&&Ee.removeEventListener(ke,ut),Ye(Ct)})}}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return y},set:function(Ee){if("number"!=typeof Ee||Ee<0||R(Ee))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Ee+".");y=Ee}}),P.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},P.prototype.setMaxListeners=function(ke){if("number"!=typeof ke||ke<0||R(ke))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ke+".");return this._maxListeners=ke,this},P.prototype.getMaxListeners=function(){return Y(this)},P.prototype.emit=function(ke){for(var Ye=[],ct=1;ct<arguments.length;ct++)Ye.push(arguments[ct]);var ut="error"===ke,Ct=this._events;if(void 0!==Ct)ut=ut&&void 0===Ct.error;else if(!ut)return!1;if(ut){var Ue;if(Ye.length>0&&(Ue=Ye[0]),Ue instanceof Error)throw Ue;var vt=new Error("Unhandled error."+(Ue?" ("+Ue.message+")":""));throw vt.context=Ue,vt}var ln=Ct[ke];if(void 0===ln)return!1;if("function"==typeof ln)G(ln,this,Ye);else{var Je=ln.length,Ft=oe(ln,Je);for(ct=0;ct<Je;++ct)G(Ft[ct],this,Ye)}return!0},P.prototype.on=P.prototype.addListener=function(ke,Ye){return ee(this,ke,Ye,!1)},P.prototype.prependListener=function(ke,Ye){return ee(this,ke,Ye,!0)},P.prototype.once=function(ke,Ye){return j(Ye),this.on(ke,he(this,ke,Ye)),this},P.prototype.prependOnceListener=function(ke,Ye){return j(Ye),this.prependListener(ke,he(this,ke,Ye)),this},P.prototype.off=P.prototype.removeListener=function(ke,Ye){var ct,ut,Ct,Ue,vt;if(j(Ye),void 0===(ut=this._events))return this;if(void 0===(ct=ut[ke]))return this;if(ct===Ye||ct.listener===Ye)0==--this._eventsCount?this._events=Object.create(null):(delete ut[ke],ut.removeListener&&this.emit("removeListener",ke,ct.listener||Ye));else if("function"!=typeof ct){for(Ct=-1,Ue=ct.length-1;Ue>=0;Ue--)if(ct[Ue]===Ye||ct[Ue].listener===Ye){vt=ct[Ue].listener,Ct=Ue;break}if(Ct<0)return this;0===Ct?ct.shift():function q(Ee,ke){for(;ke+1<Ee.length;ke++)Ee[ke]=Ee[ke+1];Ee.pop()}(ct,Ct),1===ct.length&&(ut[ke]=ct[0]),void 0!==ut.removeListener&&this.emit("removeListener",ke,vt||Ye)}return this},P.prototype.removeAllListeners=function(ke){var Ye,ct,ut;if(void 0===(ct=this._events))return this;if(void 0===ct.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ct[ke]&&(0==--this._eventsCount?this._events=Object.create(null):delete ct[ke]),this;if(0===arguments.length){var Ue,Ct=Object.keys(ct);for(ut=0;ut<Ct.length;++ut)"removeListener"!==(Ue=Ct[ut])&&this.removeAllListeners(Ue);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(Ye=ct[ke]))this.removeListener(ke,Ye);else if(void 0!==Ye)for(ut=Ye.length-1;ut>=0;ut--)this.removeListener(ke,Ye[ut]);return this},P.prototype.listeners=function(ke){return Se(this,ke,!0)},P.prototype.rawListeners=function(ke){return Se(this,ke,!1)},P.listenerCount=function(Ee,ke){return"function"==typeof Ee.listenerCount?Ee.listenerCount(ke):te.call(Ee,ke)},P.prototype.listenerCount=te,P.prototype.eventNames=function(){return this._eventsCount>0?F(this._events):[]}},"../../node_modules/function-bind/implementation.js":
/*!**********************************************************!*\
                    !*** ../../node_modules/function-bind/implementation.js ***!
                    \**********************************************************/function(T){"use strict";var A="Function.prototype.bind called on incompatible ",G=Array.prototype.slice,F=Object.prototype.toString,N="[object Function]";T.exports=function(P){var y=this;if("function"!=typeof y||F.call(y)!==N)throw new TypeError(A+y);for(var Y,j=G.call(arguments,1),se=Math.max(0,y.length-j.length),he=[],Se=0;Se<se;Se++)he.push("$"+Se);if(Y=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof Y){var oe=y.apply(this,j.concat(G.call(arguments)));return Object(oe)===oe?oe:this}return y.apply(P,j.concat(G.call(arguments)))}),y.prototype){var te=function(){};te.prototype=y.prototype,Y.prototype=new te,te.prototype=null}return Y}},"../../node_modules/function-bind/index.js":
/*!*************************************************!*\
                    !*** ../../node_modules/function-bind/index.js ***!
                    \*************************************************/function(T,A,G){"use strict";var F=G(
/*! ./implementation */
"../../node_modules/function-bind/implementation.js");T.exports=Function.prototype.bind||F},"../../node_modules/get-intrinsic/index.js":
/*!*************************************************!*\
                    !*** ../../node_modules/get-intrinsic/index.js ***!
                    \*************************************************/function(T,A,G){"use strict";var F,N=SyntaxError,R=Function,P=TypeError,y=function(Je){try{return R('"use strict"; return ('+Je+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var Y=function(){throw new P},ee=j?function(){try{return Y}catch{try{return j(arguments,"callee").get}catch{return Y}}}():Y,se=G(
/*! has-symbols */
"../../node_modules/has-symbols/index.js")(),he=Object.getPrototypeOf||function(Je){return Je.__proto__},Se={},te=typeof Uint8Array>"u"?F:he(Uint8Array),oe={"%AggregateError%":typeof AggregateError>"u"?F:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?F:ArrayBuffer,"%ArrayIteratorPrototype%":se?he([][Symbol.iterator]()):F,"%AsyncFromSyncIteratorPrototype%":F,"%AsyncFunction%":Se,"%AsyncGenerator%":Se,"%AsyncGeneratorFunction%":Se,"%AsyncIteratorPrototype%":Se,"%Atomics%":typeof Atomics>"u"?F:Atomics,"%BigInt%":typeof BigInt>"u"?F:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?F:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?F:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?F:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?F:Float32Array,"%Float64Array%":typeof Float64Array>"u"?F:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?F:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":Se,"%Int8Array%":typeof Int8Array>"u"?F:Int8Array,"%Int16Array%":typeof Int16Array>"u"?F:Int16Array,"%Int32Array%":typeof Int32Array>"u"?F:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":se?he(he([][Symbol.iterator]())):F,"%JSON%":"object"==typeof JSON?JSON:F,"%Map%":typeof Map>"u"?F:Map,"%MapIteratorPrototype%":typeof Map>"u"||!se?F:he((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?F:Promise,"%Proxy%":typeof Proxy>"u"?F:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?F:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?F:Set,"%SetIteratorPrototype%":typeof Set>"u"||!se?F:he((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?F:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":se?he(""[Symbol.iterator]()):F,"%Symbol%":se?Symbol:F,"%SyntaxError%":N,"%ThrowTypeError%":ee,"%TypedArray%":te,"%TypeError%":P,"%Uint8Array%":typeof Uint8Array>"u"?F:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?F:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?F:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?F:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?F:WeakMap,"%WeakRef%":typeof WeakRef>"u"?F:WeakRef,"%WeakSet%":typeof WeakSet>"u"?F:WeakSet};try{null.error}catch(Je){var q=he(he(Je));oe["%Error.prototype%"]=q}var we=function Je(Ft){var st;if("%AsyncFunction%"===Ft)st=y("async function () {}");else if("%GeneratorFunction%"===Ft)st=y("function* () {}");else if("%AsyncGeneratorFunction%"===Ft)st=y("async function* () {}");else if("%AsyncGenerator%"===Ft){var Ze=Je("%AsyncGeneratorFunction%");Ze&&(st=Ze.prototype)}else if("%AsyncIteratorPrototype%"===Ft){var $e=Je("%AsyncGenerator%");$e&&(st=he($e.prototype))}return oe[Ft]=st,st},ae={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Q=G(
/*! function-bind */
"../../node_modules/function-bind/index.js"),pe=G(
/*! has */
"../../node_modules/has/src/index.js"),Ee=Q.call(Function.call,Array.prototype.concat),ke=Q.call(Function.apply,Array.prototype.splice),Ye=Q.call(Function.call,String.prototype.replace),ct=Q.call(Function.call,String.prototype.slice),ut=Q.call(Function.call,RegExp.prototype.exec),Ct=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ue=/\\(\\)?/g,vt=function(Ft){var st=ct(Ft,0,1),Ze=ct(Ft,-1);if("%"===st&&"%"!==Ze)throw new N("invalid intrinsic syntax, expected closing `%`");if("%"===Ze&&"%"!==st)throw new N("invalid intrinsic syntax, expected opening `%`");var $e=[];return Ye(Ft,Ct,function(Oe,Nt,xt,Ot){$e[$e.length]=xt?Ye(Ot,Ue,"$1"):Nt||Oe}),$e},ln=function(Ft,st){var $e,Ze=Ft;if(pe(ae,Ze)&&(Ze="%"+($e=ae[Ze])[0]+"%"),pe(oe,Ze)){var Oe=oe[Ze];if(Oe===Se&&(Oe=we(Ze)),typeof Oe>"u"&&!st)throw new P("intrinsic "+Ft+" exists, but is not available. Please file an issue!");return{alias:$e,name:Ze,value:Oe}}throw new N("intrinsic "+Ft+" does not exist!")};T.exports=function(Ft,st){if("string"!=typeof Ft||0===Ft.length)throw new P("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof st)throw new P('"allowMissing" argument must be a boolean');if(null===ut(/^%?[^%]*%?$/,Ft))throw new N("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ze=vt(Ft),$e=Ze.length>0?Ze[0]:"",Oe=ln("%"+$e+"%",st),Nt=Oe.name,xt=Oe.value,Ot=!1,Kt=Oe.alias;Kt&&($e=Kt[0],ke(Ze,Ee([0,1],Kt)));for(var $t=1,rt=!0;$t<Ze.length;$t+=1){var We=Ze[$t],yt=ct(We,0,1),it=ct(We,-1);if(('"'===yt||"'"===yt||"`"===yt||'"'===it||"'"===it||"`"===it)&&yt!==it)throw new N("property names with quotes must have matching quotes");if(("constructor"===We||!rt)&&(Ot=!0),pe(oe,Nt="%"+($e+="."+We)+"%"))xt=oe[Nt];else if(null!=xt){if(!(We in xt)){if(!st)throw new P("base intrinsic for "+Ft+" exists, but the property is not available.");return}if(j&&$t+1>=Ze.length){var It=j(xt,We);xt=(rt=!!It)&&"get"in It&&!("originalValue"in It.get)?It.get:xt[We]}else rt=pe(xt,We),xt=xt[We];rt&&!Ot&&(oe[Nt]=xt)}}return xt}},"../../node_modules/has-symbols/index.js":
/*!***********************************************!*\
                    !*** ../../node_modules/has-symbols/index.js ***!
                    \***********************************************/function(T,A,G){"use strict";var F=typeof Symbol<"u"&&Symbol,N=G(
/*! ./shams */
"../../node_modules/has-symbols/shams.js");T.exports=function(){return"function"==typeof F&&"function"==typeof Symbol&&"symbol"==typeof F("foo")&&"symbol"==typeof Symbol("bar")&&N()}},"../../node_modules/has-symbols/shams.js":
/*!***********************************************!*\
                    !*** ../../node_modules/has-symbols/shams.js ***!
                    \***********************************************/function(T){"use strict";T.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var G={},F=Symbol("test"),N=Object(F);if("string"==typeof F||"[object Symbol]"!==Object.prototype.toString.call(F)||"[object Symbol]"!==Object.prototype.toString.call(N))return!1;for(F in G[F]=42,G)return!1;if("function"==typeof Object.keys&&0!==Object.keys(G).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(G).length)return!1;var P=Object.getOwnPropertySymbols(G);if(1!==P.length||P[0]!==F||!Object.prototype.propertyIsEnumerable.call(G,F))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var y=Object.getOwnPropertyDescriptor(G,F);if(42!==y.value||!0!==y.enumerable)return!1}return!0}},"../../node_modules/has/src/index.js":
/*!*******************************************!*\
                    !*** ../../node_modules/has/src/index.js ***!
                    \*******************************************/function(T,A,G){"use strict";var F=G(
/*! function-bind */
"../../node_modules/function-bind/index.js");T.exports=F.call(Function.call,Object.prototype.hasOwnProperty)},"../../node_modules/object-inspect/index.js":
/*!**************************************************!*\
                    !*** ../../node_modules/object-inspect/index.js ***!
                    \**************************************************/function(T,A,G){var F="function"==typeof Map&&Map.prototype,N=Object.getOwnPropertyDescriptor&&F?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,R=F&&N&&"function"==typeof N.get?N.get:null,P=F&&Map.prototype.forEach,y="function"==typeof Set&&Set.prototype,j=Object.getOwnPropertyDescriptor&&y?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Y=y&&j&&"function"==typeof j.get?j.get:null,ee=y&&Set.prototype.forEach,he="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,te="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,q="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,we=Boolean.prototype.valueOf,ae=Object.prototype.toString,Q=Function.prototype.toString,pe=String.prototype.match,Ee=String.prototype.slice,ke=String.prototype.replace,Ye=String.prototype.toUpperCase,ct=String.prototype.toLowerCase,ut=RegExp.prototype.test,Ct=Array.prototype.concat,Ue=Array.prototype.join,vt=Array.prototype.slice,ln=Math.floor,Je="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ft=Object.getOwnPropertySymbols,st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Ze="function"==typeof Symbol&&"object"==typeof Symbol.iterator,$e="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,Oe=Object.prototype.propertyIsEnumerable,Nt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Ht){return Ht.__proto__}:null);function xt(Ht,Pn){if(Ht===1/0||Ht===-1/0||Ht!=Ht||Ht&&Ht>-1e3&&Ht<1e3||ut.call(/e/,Pn))return Pn;var Sn=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof Ht){var Fn=Ht<0?-ln(-Ht):ln(Ht);if(Fn!==Ht){var Cn=String(Fn),Un=Ee.call(Pn,Cn.length+1);return ke.call(Cn,Sn,"$&_")+"."+ke.call(ke.call(Un,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ke.call(Pn,Sn,"$&_")}var Ot=G(
/*! ./util.inspect */
"?c95a"),Kt=Ot.custom,$t=sn(Kt)?Kt:null;function rt(Ht,Pn,Sn){var Fn="double"===(Sn.quoteStyle||Pn)?'"':"'";return Fn+Ht+Fn}function We(Ht){return ke.call(String(Ht),/"/g,"&quot;")}function yt(Ht){return!("[object Array]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}function It(Ht){return!("[object RegExp]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}function sn(Ht){if(Ze)return Ht&&"object"==typeof Ht&&Ht instanceof Symbol;if("symbol"==typeof Ht)return!0;if(!Ht||"object"!=typeof Ht||!st)return!1;try{return st.call(Ht),!0}catch{}return!1}T.exports=function Ht(Pn,Sn,Fn,Cn){var Un=Sn||{};if(Mn(Un,"quoteStyle")&&"single"!==Un.quoteStyle&&"double"!==Un.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mn(Un,"maxStringLength")&&("number"==typeof Un.maxStringLength?Un.maxStringLength<0&&Un.maxStringLength!==1/0:null!==Un.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var fi=!Mn(Un,"customInspect")||Un.customInspect;if("boolean"!=typeof fi&&"symbol"!==fi)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mn(Un,"indent")&&null!==Un.indent&&"\t"!==Un.indent&&!(parseInt(Un.indent,10)===Un.indent&&Un.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mn(Un,"numericSeparator")&&"boolean"!=typeof Un.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var bi=Un.numericSeparator;if(typeof Pn>"u")return"undefined";if(null===Pn)return"null";if("boolean"==typeof Pn)return Pn?"true":"false";if("string"==typeof Pn)return ot(Pn,Un);if("number"==typeof Pn){if(0===Pn)return 1/0/Pn>0?"0":"-0";var Zn=String(Pn);return bi?xt(Pn,Zn):Zn}if("bigint"==typeof Pn){var mn=String(Pn)+"n";return bi?xt(Pn,mn):mn}var ze=typeof Un.depth>"u"?5:Un.depth;if(typeof Fn>"u"&&(Fn=0),Fn>=ze&&ze>0&&"object"==typeof Pn)return yt(Pn)?"[Array]":"[Object]";var wt=function yi(Ht,Pn){var Sn;if("\t"===Ht.indent)Sn="\t";else{if(!("number"==typeof Ht.indent&&Ht.indent>0))return null;Sn=Ue.call(Array(Ht.indent+1)," ")}return{base:Sn,prev:Ue.call(Array(Pn+1),Sn)}}(Un,Fn);if(typeof Cn>"u")Cn=[];else if(gi(Cn,Pn)>=0)return"[Circular]";function ht(mi,ui,Pi){if(ui&&(Cn=vt.call(Cn)).push(ui),Pi){var Di={depth:Un.depth};return Mn(Un,"quoteStyle")&&(Di.quoteStyle=Un.quoteStyle),Ht(mi,Di,Fn+1,Cn)}return Ht(mi,Un,Fn+1,Cn)}if("function"==typeof Pn&&!It(Pn)){var U=function Yn(Ht){if(Ht.name)return Ht.name;var Pn=pe.call(Q.call(Ht),/^function\s*([\w$]+)/);return Pn?Pn[1]:null}(Pn),gt=An(Pn,ht);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(gt.length>0?" { "+Ue.call(gt,", ")+" }":"")}if(sn(Pn)){var Lt=Ze?ke.call(String(Pn),/^(Symbol\(.*\))_[^)]*$/,"$1"):st.call(Pn);return"object"!=typeof Pn||Ze?Lt:lt(Lt)}if(function Vn(Ht){return!(!Ht||"object"!=typeof Ht)&&(typeof HTMLElement<"u"&&Ht instanceof HTMLElement||"string"==typeof Ht.nodeName&&"function"==typeof Ht.getAttribute)}(Pn)){for(var kt="<"+ct.call(String(Pn.nodeName)),vn=Pn.attributes||[],jn=0;jn<vn.length;jn++)kt+=" "+vn[jn].name+"="+rt(We(vn[jn].value),"double",Un);return kt+=">",Pn.childNodes&&Pn.childNodes.length&&(kt+="..."),kt+"</"+ct.call(String(Pn.nodeName))+">"}if(yt(Pn)){if(0===Pn.length)return"[]";var St=An(Pn,ht);return wt&&!function Qt(Ht){for(var Pn=0;Pn<Ht.length;Pn++)if(gi(Ht[Pn],"\n")>=0)return!1;return!0}(St)?"["+Li(St,wt)+"]":"[ "+Ue.call(St,", ")+" ]"}if(function Tt(Ht){return!("[object Error]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}(Pn)){var De=An(Pn,ht);return"cause"in Error.prototype||!("cause"in Pn)||Oe.call(Pn,"cause")?0===De.length?"["+String(Pn)+"]":"{ ["+String(Pn)+"] "+Ue.call(De,", ")+" }":"{ ["+String(Pn)+"] "+Ue.call(Ct.call("[cause]: "+ht(Pn.cause),De),", ")+" }"}if("object"==typeof Pn&&fi){if($t&&"function"==typeof Pn[$t]&&Ot)return Ot(Pn,{depth:ze-Fn});if("symbol"!==fi&&"function"==typeof Pn.inspect)return Pn.inspect()}if(function qn(Ht){if(!R||!Ht||"object"!=typeof Ht)return!1;try{R.call(Ht);try{Y.call(Ht)}catch{return!0}return Ht instanceof Map}catch{}return!1}(Pn)){var ie=[];return P&&P.call(Pn,function(mi,ui){ie.push(ht(ui,Pn,!0)+" => "+ht(mi,Pn))}),rn("Map",R.call(Pn),ie,wt)}if(function Ni(Ht){if(!Y||!Ht||"object"!=typeof Ht)return!1;try{Y.call(Ht);try{R.call(Ht)}catch{return!0}return Ht instanceof Set}catch{}return!1}(Pn)){var je=[];return ee&&ee.call(Pn,function(mi){je.push(ht(mi,Pn))}),rn("Set",Y.call(Pn),je,wt)}if(function ki(Ht){if(!he||!Ht||"object"!=typeof Ht)return!1;try{he.call(Ht,he);try{te.call(Ht,te)}catch{return!0}return Ht instanceof WeakMap}catch{}return!1}(Pn))return In("WeakMap");if(function pn(Ht){if(!te||!Ht||"object"!=typeof Ht)return!1;try{te.call(Ht,te);try{he.call(Ht,he)}catch{return!0}return Ht instanceof WeakSet}catch{}return!1}(Pn))return In("WeakSet");if(function Si(Ht){if(!q||!Ht||"object"!=typeof Ht)return!1;try{return q.call(Ht),!0}catch{}return!1}(Pn))return In("WeakRef");if(function Nn(Ht){return!("[object Number]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}(Pn))return lt(ht(Number(Pn)));if(function _n(Ht){if(!Ht||"object"!=typeof Ht||!Je)return!1;try{return Je.call(Ht),!0}catch{}return!1}(Pn))return lt(ht(Je.call(Pn)));if(function an(Ht){return!("[object Boolean]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}(Pn))return lt(we.call(Pn));if(function wn(Ht){return!("[object String]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}(Pn))return lt(ht(String(Pn)));if(!function it(Ht){return!("[object Date]"!==pi(Ht)||$e&&"object"==typeof Ht&&$e in Ht)}(Pn)&&!It(Pn)){var pt=An(Pn,ht),Ut=Nt?Nt(Pn)===Object.prototype:Pn instanceof Object||Pn.constructor===Object,xn=Pn instanceof Object?"":"null prototype",hn=!Ut&&$e&&Object(Pn)===Pn&&$e in Pn?Ee.call(pi(Pn),8,-1):xn?"Object":"",ri=(Ut||"function"!=typeof Pn.constructor?"":Pn.constructor.name?Pn.constructor.name+" ":"")+(hn||xn?"["+Ue.call(Ct.call([],hn||[],xn||[]),": ")+"] ":"");return 0===pt.length?ri+"{}":wt?ri+"{"+Li(pt,wt)+"}":ri+"{ "+Ue.call(pt,", ")+" }"}return String(Pn)};var Ln=Object.prototype.hasOwnProperty||function(Ht){return Ht in this};function Mn(Ht,Pn){return Ln.call(Ht,Pn)}function pi(Ht){return ae.call(Ht)}function gi(Ht,Pn){if(Ht.indexOf)return Ht.indexOf(Pn);for(var Sn=0,Fn=Ht.length;Sn<Fn;Sn++)if(Ht[Sn]===Pn)return Sn;return-1}function ot(Ht,Pn){if(Ht.length>Pn.maxStringLength){var Sn=Ht.length-Pn.maxStringLength,Fn="... "+Sn+" more character"+(Sn>1?"s":"");return ot(Ee.call(Ht,0,Pn.maxStringLength),Pn)+Fn}return rt(ke.call(ke.call(Ht,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,en),"single",Pn)}function en(Ht){var Pn=Ht.charCodeAt(0),Sn={8:"b",9:"t",10:"n",12:"f",13:"r"}[Pn];return Sn?"\\"+Sn:"\\x"+(Pn<16?"0":"")+Ye.call(Pn.toString(16))}function lt(Ht){return"Object("+Ht+")"}function In(Ht){return Ht+" { ? }"}function rn(Ht,Pn,Sn,Fn){return Ht+" ("+Pn+") {"+(Fn?Li(Sn,Fn):Ue.call(Sn,", "))+"}"}function Li(Ht,Pn){if(0===Ht.length)return"";var Sn="\n"+Pn.prev+Pn.base;return Sn+Ue.call(Ht,","+Sn)+"\n"+Pn.prev}function An(Ht,Pn){var Sn=yt(Ht),Fn=[];if(Sn){Fn.length=Ht.length;for(var Cn=0;Cn<Ht.length;Cn++)Fn[Cn]=Mn(Ht,Cn)?Pn(Ht[Cn],Ht):""}var fi,Un="function"==typeof Ft?Ft(Ht):[];if(Ze){fi={};for(var bi=0;bi<Un.length;bi++)fi["$"+Un[bi]]=Un[bi]}for(var Zn in Ht)Mn(Ht,Zn)&&(Sn&&String(Number(Zn))===Zn&&Zn<Ht.length||Ze&&fi["$"+Zn]instanceof Symbol||(ut.call(/[^\w$]/,Zn)?Fn.push(Pn(Zn,Ht)+": "+Pn(Ht[Zn],Ht)):Fn.push(Zn+": "+Pn(Ht[Zn],Ht))));if("function"==typeof Ft)for(var mn=0;mn<Un.length;mn++)Oe.call(Ht,Un[mn])&&Fn.push("["+Pn(Un[mn])+"]: "+Pn(Ht[Un[mn]],Ht));return Fn}},"../../node_modules/qs/lib/formats.js":
/*!********************************************!*\
                    !*** ../../node_modules/qs/lib/formats.js ***!
                    \********************************************/function(T){"use strict";var A=String.prototype.replace,G=/%20/g,F_RFC3986="RFC3986";T.exports={default:F_RFC3986,formatters:{RFC1738:function(N){return A.call(N,G,"+")},RFC3986:function(N){return String(N)}},RFC1738:"RFC1738",RFC3986:F_RFC3986}},"../../node_modules/qs/lib/index.js":
/*!******************************************!*\
                    !*** ../../node_modules/qs/lib/index.js ***!
                    \******************************************/function(T,A,G){"use strict";var F=G(
/*! ./stringify */
"../../node_modules/qs/lib/stringify.js"),N=G(
/*! ./parse */
"../../node_modules/qs/lib/parse.js"),R=G(
/*! ./formats */
"../../node_modules/qs/lib/formats.js");T.exports={formats:R,parse:N,stringify:F}},"../../node_modules/qs/lib/parse.js":
/*!******************************************!*\
                    !*** ../../node_modules/qs/lib/parse.js ***!
                    \******************************************/function(T,A,G){"use strict";var F=G(
/*! ./utils */
"../../node_modules/qs/lib/utils.js"),N=Object.prototype.hasOwnProperty,R=Array.isArray,P={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:F.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},j=function(oe,q){return oe&&"string"==typeof oe&&q.comma&&oe.indexOf(",")>-1?oe.split(","):oe},Se=function(q,we,ae,Q){if(q){var pe=ae.allowDots?q.replace(/\.([^.[]+)/g,"[$1]"):q,ke=/(\[[^[\]]*])/g,Ye=ae.depth>0&&/(\[[^[\]]*])/.exec(pe),ct=Ye?pe.slice(0,Ye.index):pe,ut=[];if(ct){if(!ae.plainObjects&&N.call(Object.prototype,ct)&&!ae.allowPrototypes)return;ut.push(ct)}for(var Ct=0;ae.depth>0&&null!==(Ye=ke.exec(pe))&&Ct<ae.depth;){if(Ct+=1,!ae.plainObjects&&N.call(Object.prototype,Ye[1].slice(1,-1))&&!ae.allowPrototypes)return;ut.push(Ye[1])}return Ye&&ut.push("["+pe.slice(Ye.index)+"]"),function(oe,q,we,ae){for(var Q=ae?q:j(q,we),pe=oe.length-1;pe>=0;--pe){var Ee,ke=oe[pe];if("[]"===ke&&we.parseArrays)Ee=[].concat(Q);else{Ee=we.plainObjects?Object.create(null):{};var Ye="["===ke.charAt(0)&&"]"===ke.charAt(ke.length-1)?ke.slice(1,-1):ke,ct=parseInt(Ye,10);we.parseArrays||""!==Ye?!isNaN(ct)&&ke!==Ye&&String(ct)===Ye&&ct>=0&&we.parseArrays&&ct<=we.arrayLimit?(Ee=[])[ct]=Q:"__proto__"!==Ye&&(Ee[Ye]=Q):Ee={0:Q}}Q=Ee}return Q}(ut,we,ae,Q)}};T.exports=function(oe,q){var we=function(q){if(!q)return P;if(null!=q.decoder&&"function"!=typeof q.decoder)throw new TypeError("Decoder has to be a function.");if(typeof q.charset<"u"&&"utf-8"!==q.charset&&"iso-8859-1"!==q.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");return{allowDots:typeof q.allowDots>"u"?P.allowDots:!!q.allowDots,allowPrototypes:"boolean"==typeof q.allowPrototypes?q.allowPrototypes:P.allowPrototypes,allowSparse:"boolean"==typeof q.allowSparse?q.allowSparse:P.allowSparse,arrayLimit:"number"==typeof q.arrayLimit?q.arrayLimit:P.arrayLimit,charset:typeof q.charset>"u"?P.charset:q.charset,charsetSentinel:"boolean"==typeof q.charsetSentinel?q.charsetSentinel:P.charsetSentinel,comma:"boolean"==typeof q.comma?q.comma:P.comma,decoder:"function"==typeof q.decoder?q.decoder:P.decoder,delimiter:"string"==typeof q.delimiter||F.isRegExp(q.delimiter)?q.delimiter:P.delimiter,depth:"number"==typeof q.depth||!1===q.depth?+q.depth:P.depth,ignoreQueryPrefix:!0===q.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof q.interpretNumericEntities?q.interpretNumericEntities:P.interpretNumericEntities,parameterLimit:"number"==typeof q.parameterLimit?q.parameterLimit:P.parameterLimit,parseArrays:!1!==q.parseArrays,plainObjects:"boolean"==typeof q.plainObjects?q.plainObjects:P.plainObjects,strictNullHandling:"boolean"==typeof q.strictNullHandling?q.strictNullHandling:P.strictNullHandling}}(q);if(""===oe||null===oe||typeof oe>"u")return we.plainObjects?Object.create(null):{};for(var ae="string"==typeof oe?function(q,we){var Ye,ae={},Ee=(we.ignoreQueryPrefix?q.replace(/^\?/,""):q).split(we.delimiter,we.parameterLimit===1/0?void 0:we.parameterLimit),ke=-1,ct=we.charset;if(we.charsetSentinel)for(Ye=0;Ye<Ee.length;++Ye)0===Ee[Ye].indexOf("utf8=")&&("utf8=%E2%9C%93"===Ee[Ye]?ct="utf-8":"utf8=%26%2310003%3B"===Ee[Ye]&&(ct="iso-8859-1"),ke=Ye,Ye=Ee.length);for(Ye=0;Ye<Ee.length;++Ye)if(Ye!==ke){var vt,ln,ut=Ee[Ye],Ct=ut.indexOf("]="),Ue=-1===Ct?ut.indexOf("="):Ct+1;-1===Ue?(vt=we.decoder(ut,P.decoder,ct,"key"),ln=we.strictNullHandling?null:""):(vt=we.decoder(ut.slice(0,Ue),P.decoder,ct,"key"),ln=F.maybeMap(j(ut.slice(Ue+1),we),function(Je){return we.decoder(Je,P.decoder,ct,"value")})),ln&&we.interpretNumericEntities&&"iso-8859-1"===ct&&(ln=ln.replace(/&#(\d+);/g,function(q,we){return String.fromCharCode(parseInt(we,10))})),ut.indexOf("[]=")>-1&&(ln=R(ln)?[ln]:ln),ae[vt]=N.call(ae,vt)?F.combine(ae[vt],ln):ln}return ae}(oe,we):oe,Q=we.plainObjects?Object.create(null):{},pe=Object.keys(ae),Ee=0;Ee<pe.length;++Ee){var ke=pe[Ee],Ye=Se(ke,ae[ke],we,"string"==typeof oe);Q=F.merge(Q,Ye,we)}return!0===we.allowSparse?Q:F.compact(Q)}},"../../node_modules/qs/lib/stringify.js":
/*!**********************************************!*\
                    !*** ../../node_modules/qs/lib/stringify.js ***!
                    \**********************************************/function(T,A,G){"use strict";var F=G(
/*! side-channel */
"../../node_modules/side-channel/index.js"),N=G(
/*! ./utils */
"../../node_modules/qs/lib/utils.js"),R=G(
/*! ./formats */
"../../node_modules/qs/lib/formats.js"),P=Object.prototype.hasOwnProperty,y={brackets:function(Q){return Q+"[]"},comma:"comma",indices:function(Q,pe){return Q+"["+pe+"]"},repeat:function(Q){return Q}},j=Array.isArray,Y=Array.prototype.push,ee=function(ae,Q){Y.apply(ae,j(Q)?Q:[Q])},se=Date.prototype.toISOString,he=R.default,Se={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:N.encode,encodeValuesOnly:!1,format:he,formatter:R.formatters[he],indices:!1,serializeDate:function(Q){return se.call(Q)},skipNulls:!1,strictNullHandling:!1},oe={},q=function ae(Q,pe,Ee,ke,Ye,ct,ut,Ct,Ue,vt,ln,Je,Ft,st,Ze,$e){for(var Oe=Q,Nt=$e,xt=0,Ot=!1;void 0!==(Nt=Nt.get(oe))&&!Ot;){var Kt=Nt.get(Q);if(xt+=1,typeof Kt<"u"){if(Kt===xt)throw new RangeError("Cyclic object value");Ot=!0}typeof Nt.get(oe)>"u"&&(xt=0)}if("function"==typeof Ct?Oe=Ct(pe,Oe):Oe instanceof Date?Oe=ln(Oe):"comma"===Ee&&j(Oe)&&(Oe=N.maybeMap(Oe,function(sn){return sn instanceof Date?ln(sn):sn})),null===Oe){if(Ye)return ut&&!st?ut(pe,Se.encoder,Ze,"key",Je):pe;Oe=""}if(function(Q){return"string"==typeof Q||"number"==typeof Q||"boolean"==typeof Q||"symbol"==typeof Q||"bigint"==typeof Q}(Oe)||N.isBuffer(Oe))return ut?[Ft(st?pe:ut(pe,Se.encoder,Ze,"key",Je))+"="+Ft(ut(Oe,Se.encoder,Ze,"value",Je))]:[Ft(pe)+"="+Ft(String(Oe))];var We,rt=[];if(typeof Oe>"u")return rt;if("comma"===Ee&&j(Oe))st&&ut&&(Oe=N.maybeMap(Oe,ut)),We=[{value:Oe.length>0?Oe.join(",")||null:void 0}];else if(j(Ct))We=Ct;else{var yt=Object.keys(Oe);We=Ue?yt.sort(Ue):yt}for(var it=ke&&j(Oe)&&1===Oe.length?pe+"[]":pe,It=0;It<We.length;++It){var Tt=We[It],wn="object"==typeof Tt&&typeof Tt.value<"u"?Tt.value:Oe[Tt];if(!ct||null!==wn){var Nn=j(Oe)?"function"==typeof Ee?Ee(it,Tt):it:it+(vt?"."+Tt:"["+Tt+"]");$e.set(Q,xt);var an=F();an.set(oe,$e),ee(rt,ae(wn,Nn,Ee,ke,Ye,ct,"comma"===Ee&&st&&j(Oe)?null:ut,Ct,Ue,vt,ln,Je,Ft,st,Ze,an))}}return rt};T.exports=function(ae,Q){var ke,pe=ae,Ee=function(Q){if(!Q)return Se;if(null!==Q.encoder&&typeof Q.encoder<"u"&&"function"!=typeof Q.encoder)throw new TypeError("Encoder has to be a function.");var pe=Q.charset||Se.charset;if(typeof Q.charset<"u"&&"utf-8"!==Q.charset&&"iso-8859-1"!==Q.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Ee=R.default;if(typeof Q.format<"u"){if(!P.call(R.formatters,Q.format))throw new TypeError("Unknown format option provided.");Ee=Q.format}var ke=R.formatters[Ee],Ye=Se.filter;return("function"==typeof Q.filter||j(Q.filter))&&(Ye=Q.filter),{addQueryPrefix:"boolean"==typeof Q.addQueryPrefix?Q.addQueryPrefix:Se.addQueryPrefix,allowDots:typeof Q.allowDots>"u"?Se.allowDots:!!Q.allowDots,charset:pe,charsetSentinel:"boolean"==typeof Q.charsetSentinel?Q.charsetSentinel:Se.charsetSentinel,delimiter:typeof Q.delimiter>"u"?Se.delimiter:Q.delimiter,encode:"boolean"==typeof Q.encode?Q.encode:Se.encode,encoder:"function"==typeof Q.encoder?Q.encoder:Se.encoder,encodeValuesOnly:"boolean"==typeof Q.encodeValuesOnly?Q.encodeValuesOnly:Se.encodeValuesOnly,filter:Ye,format:Ee,formatter:ke,serializeDate:"function"==typeof Q.serializeDate?Q.serializeDate:Se.serializeDate,skipNulls:"boolean"==typeof Q.skipNulls?Q.skipNulls:Se.skipNulls,sort:"function"==typeof Q.sort?Q.sort:null,strictNullHandling:"boolean"==typeof Q.strictNullHandling?Q.strictNullHandling:Se.strictNullHandling}}(Q);"function"==typeof Ee.filter?pe=(0,Ee.filter)("",pe):j(Ee.filter)&&(ke=Ee.filter);var ct=[];if("object"!=typeof pe||null===pe)return"";var Ct=y[Q&&Q.arrayFormat in y?Q.arrayFormat:Q&&"indices"in Q?Q.indices?"indices":"repeat":"indices"];if(Q&&"commaRoundTrip"in Q&&"boolean"!=typeof Q.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var Ue="comma"===Ct&&Q&&Q.commaRoundTrip;ke||(ke=Object.keys(pe)),Ee.sort&&ke.sort(Ee.sort);for(var vt=F(),ln=0;ln<ke.length;++ln){var Je=ke[ln];Ee.skipNulls&&null===pe[Je]||ee(ct,q(pe[Je],Je,Ct,Ue,Ee.strictNullHandling,Ee.skipNulls,Ee.encode?Ee.encoder:null,Ee.filter,Ee.sort,Ee.allowDots,Ee.serializeDate,Ee.format,Ee.formatter,Ee.encodeValuesOnly,Ee.charset,vt))}var Ft=ct.join(Ee.delimiter),st=!0===Ee.addQueryPrefix?"?":"";return Ee.charsetSentinel&&(st+="iso-8859-1"===Ee.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),Ft.length>0?st+Ft:""}},"../../node_modules/qs/lib/utils.js":
/*!******************************************!*\
                    !*** ../../node_modules/qs/lib/utils.js ***!
                    \******************************************/function(T,A,G){"use strict";var F=G(
/*! ./formats */
"../../node_modules/qs/lib/formats.js"),N=Object.prototype.hasOwnProperty,R=Array.isArray,P=function(){for(var ae=[],Q=0;Q<256;++Q)ae.push("%"+((Q<16?"0":"")+Q.toString(16)).toUpperCase());return ae}(),j=function(Q,pe){for(var Ee=pe&&pe.plainObjects?Object.create(null):{},ke=0;ke<Q.length;++ke)typeof Q[ke]<"u"&&(Ee[ke]=Q[ke]);return Ee};T.exports={arrayToObject:j,assign:function(Q,pe){return Object.keys(pe).reduce(function(Ee,ke){return Ee[ke]=pe[ke],Ee},Q)},combine:function(Q,pe){return[].concat(Q,pe)},compact:function(Q){for(var pe=[{obj:{o:Q},prop:"o"}],Ee=[],ke=0;ke<pe.length;++ke)for(var Ye=pe[ke],ct=Ye.obj[Ye.prop],ut=Object.keys(ct),Ct=0;Ct<ut.length;++Ct){var Ue=ut[Ct],vt=ct[Ue];"object"==typeof vt&&null!==vt&&-1===Ee.indexOf(vt)&&(pe.push({obj:ct,prop:Ue}),Ee.push(vt))}return function(Q){for(;Q.length>1;){var pe=Q.pop(),Ee=pe.obj[pe.prop];if(R(Ee)){for(var ke=[],Ye=0;Ye<Ee.length;++Ye)typeof Ee[Ye]<"u"&&ke.push(Ee[Ye]);pe.obj[pe.prop]=ke}}}(pe),Q},decode:function(ae,Q,pe){var Ee=ae.replace(/\+/g," ");if("iso-8859-1"===pe)return Ee.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(Ee)}catch{return Ee}},encode:function(Q,pe,Ee,ke,Ye){if(0===Q.length)return Q;var ct=Q;if("symbol"==typeof Q?ct=Symbol.prototype.toString.call(Q):"string"!=typeof Q&&(ct=String(Q)),"iso-8859-1"===Ee)return escape(ct).replace(/%u[0-9a-f]{4}/gi,function(vt){return"%26%23"+parseInt(vt.slice(2),16)+"%3B"});for(var ut="",Ct=0;Ct<ct.length;++Ct){var Ue=ct.charCodeAt(Ct);45===Ue||46===Ue||95===Ue||126===Ue||Ue>=48&&Ue<=57||Ue>=65&&Ue<=90||Ue>=97&&Ue<=122||Ye===F.RFC1738&&(40===Ue||41===Ue)?ut+=ct.charAt(Ct):Ue<128?ut+=P[Ue]:Ue<2048?ut+=P[192|Ue>>6]+P[128|63&Ue]:Ue<55296||Ue>=57344?ut+=P[224|Ue>>12]+P[128|Ue>>6&63]+P[128|63&Ue]:(Ue=65536+((1023&Ue)<<10|1023&ct.charCodeAt(Ct+=1)),ut+=P[240|Ue>>18]+P[128|Ue>>12&63]+P[128|Ue>>6&63]+P[128|63&Ue])}return ut},isBuffer:function(Q){return!(!Q||"object"!=typeof Q||!(Q.constructor&&Q.constructor.isBuffer&&Q.constructor.isBuffer(Q)))},isRegExp:function(Q){return"[object RegExp]"===Object.prototype.toString.call(Q)},maybeMap:function(Q,pe){if(R(Q)){for(var Ee=[],ke=0;ke<Q.length;ke+=1)Ee.push(pe(Q[ke]));return Ee}return pe(Q)},merge:function ae(Q,pe,Ee){if(!pe)return Q;if("object"!=typeof pe){if(R(Q))Q.push(pe);else{if(!Q||"object"!=typeof Q)return[Q,pe];(Ee&&(Ee.plainObjects||Ee.allowPrototypes)||!N.call(Object.prototype,pe))&&(Q[pe]=!0)}return Q}if(!Q||"object"!=typeof Q)return[Q].concat(pe);var ke=Q;return R(Q)&&!R(pe)&&(ke=j(Q,Ee)),R(Q)&&R(pe)?(pe.forEach(function(Ye,ct){if(N.call(Q,ct)){var ut=Q[ct];ut&&"object"==typeof ut&&Ye&&"object"==typeof Ye?Q[ct]=ae(ut,Ye,Ee):Q.push(Ye)}else Q[ct]=Ye}),Q):Object.keys(pe).reduce(function(Ye,ct){var ut=pe[ct];return Ye[ct]=N.call(Ye,ct)?ae(Ye[ct],ut,Ee):ut,Ye},ke)}}},"../../node_modules/side-channel/index.js":
/*!************************************************!*\
                    !*** ../../node_modules/side-channel/index.js ***!
                    \************************************************/function(T,A,G){"use strict";var F=G(
/*! get-intrinsic */
"../../node_modules/get-intrinsic/index.js"),N=G(
/*! call-bind/callBound */
"../../node_modules/call-bind/callBound.js"),R=G(
/*! object-inspect */
"../../node_modules/object-inspect/index.js"),P=F("%TypeError%"),y=F("%WeakMap%",!0),j=F("%Map%",!0),Y=N("WeakMap.prototype.get",!0),ee=N("WeakMap.prototype.set",!0),se=N("WeakMap.prototype.has",!0),he=N("Map.prototype.get",!0),Se=N("Map.prototype.set",!0),te=N("Map.prototype.has",!0),oe=function(Q,pe){for(var ke,Ee=Q;null!==(ke=Ee.next);Ee=ke)if(ke.key===pe)return Ee.next=ke.next,ke.next=Q.next,Q.next=ke,ke};T.exports=function(){var pe,Ee,ke,Ye={assert:function(ct){if(!Ye.has(ct))throw new P("Side channel does not contain "+R(ct))},get:function(ct){if(y&&ct&&("object"==typeof ct||"function"==typeof ct)){if(pe)return Y(pe,ct)}else if(j){if(Ee)return he(Ee,ct)}else if(ke)return function(Q,pe){var Ee=oe(Q,pe);return Ee&&Ee.value}(ke,ct)},has:function(ct){if(y&&ct&&("object"==typeof ct||"function"==typeof ct)){if(pe)return se(pe,ct)}else if(j){if(Ee)return te(Ee,ct)}else if(ke)return function(Q,pe){return!!oe(Q,pe)}(ke,ct);return!1},set:function(ct,ut){y&&ct&&("object"==typeof ct||"function"==typeof ct)?(pe||(pe=new y),ee(pe,ct,ut)):j?(Ee||(Ee=new j),Se(Ee,ct,ut)):(ke||(ke={key:{},next:null}),function(Q,pe,Ee){var ke=oe(Q,pe);ke?ke.value=Ee:Q.next={key:pe,next:Q.next,value:Ee}}(ke,ct,ut))}};return Ye}},"./src/feathers.ts":
/*!*************************!*\
                    !*** ./src/feathers.ts ***!
                    \*************************/function(T,A,G){"use strict";var F=this&&this.__createBinding||(Object.create?function(he,Se,te,oe){void 0===oe&&(oe=te);var q=Object.getOwnPropertyDescriptor(Se,te);(!q||("get"in q?!Se.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return Se[te]}}),Object.defineProperty(he,oe,q)}:function(he,Se,te,oe){void 0===oe&&(oe=te),he[oe]=Se[te]}),N=this&&this.__setModuleDefault||(Object.create?function(he,Se){Object.defineProperty(he,"default",{enumerable:!0,value:Se})}:function(he,Se){he.default=Se}),R=this&&this.__exportStar||function(he,Se){for(var te in he)"default"!==te&&!Object.prototype.hasOwnProperty.call(Se,te)&&F(Se,he,te)},P=this&&this.__importStar||function(he){if(he&&he.__esModule)return he;var Se={};if(null!=he)for(var te in he)"default"!==te&&Object.prototype.hasOwnProperty.call(he,te)&&F(Se,he,te);return N(Se,he),Se},y=this&&this.__importDefault||function(he){return he&&he.__esModule?he:{default:he}};Object.defineProperty(A,"__esModule",{value:!0}),A.socketio=A.rest=A.authentication=A.errors=void 0;const j=G(
/*! @feathersjs/feathers */
"../feathers/lib/index.js"),Y=y(G(
/*! @feathersjs/authentication-client */
"../authentication-client/lib/index.js"));A.authentication=Y.default;const ee=y(G(
/*! @feathersjs/rest-client */
"../rest-client/lib/index.js"));A.rest=ee.default;const se=y(G(
/*! @feathersjs/socketio-client */
"../socketio-client/lib/index.js"));A.socketio=se.default,R(G(
/*! @feathersjs/feathers */
"../feathers/lib/index.js"),A),A.errors=P(G(
/*! @feathersjs/errors */
"../errors/lib/index.js")),A.default=j.feathers,T.exports=Object.assign(j.feathers,T.exports)},"?c95a":
/*!********************************!*\
                    !*** ./util.inspect (ignored) ***!
                    \********************************/function(){},"../../node_modules/@feathersjs/hooks/script/base.js":
/*!***********************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/base.js ***!
                    \***********************************************************/function(T,A,G){"use strict";function F(Je,Ft){if("function"!=typeof Ft&&null!==Ft)throw new TypeError("Super expression must either be null or a function");Je.prototype=Object.create(Ft&&Ft.prototype,{constructor:{value:Je,writable:!0,configurable:!0}}),Object.defineProperty(Je,"prototype",{writable:!1}),Ft&&N(Je,Ft)}function N(Je,Ft){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Ze,$e){return Ze.__proto__=$e,Ze})(Je,Ft)}function R(Je){var Ft=function j(){if(typeof Reflect>"u"||!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{return!1}}();return function(){var $e,Ze=Y(Je);if(Ft){var Oe=Y(this).constructor;$e=Reflect.construct(Ze,arguments,Oe)}else $e=Ze.apply(this,arguments);return function P(Je,Ft){if(Ft&&("object"===ee(Ft)||"function"==typeof Ft))return Ft;if(void 0!==Ft)throw new TypeError("Derived constructors may only return object or undefined");return function y(Je){if(void 0===Je)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Je}(Je)}(this,$e)}}function Y(Je){return(Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(st){return st.__proto__||Object.getPrototypeOf(st)})(Je)}function ee(Je){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ft){return typeof Ft}:function(Ft){return Ft&&"function"==typeof Symbol&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft})(Je)}function se(Je){return function oe(Je){if(Array.isArray(Je))return q(Je)}(Je)||function te(Je){if(typeof Symbol<"u"&&null!=Je[Symbol.iterator]||null!=Je["@@iterator"])return Array.from(Je)}(Je)||function Se(Je,Ft){if(Je){if("string"==typeof Je)return q(Je,Ft);var st=Object.prototype.toString.call(Je).slice(8,-1);if("Object"===st&&Je.constructor&&(st=Je.constructor.name),"Map"===st||"Set"===st)return Array.from(Je);if("Arguments"===st||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(st))return q(Je,Ft)}}(Je)||function he(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(Je,Ft){(null==Ft||Ft>Je.length)&&(Ft=Je.length);for(var st=0,Ze=new Array(Ft);st<Ft;st++)Ze[st]=Je[st];return Ze}function we(Je,Ft){if(!(Je instanceof Ft))throw new TypeError("Cannot call a class as a function")}function ae(Je,Ft){for(var st=0;st<Ft.length;st++){var Ze=Ft[st];Ze.enumerable=Ze.enumerable||!1,Ze.configurable=!0,"value"in Ze&&(Ze.writable=!0),Object.defineProperty(Je,pe(Ze.key),Ze)}}function Q(Je,Ft,st){return Ft&&ae(Je.prototype,Ft),st&&ae(Je,st),Object.defineProperty(Je,"prototype",{writable:!1}),Je}function pe(Je){var Ft=function Ee(Je,Ft){if("object"!==ee(Je)||null===Je)return Je;var st=Je[Symbol.toPrimitive];if(void 0!==st){var Ze=st.call(Je,Ft||"default");if("object"!==ee(Ze))return Ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ft?String:Number)(Je)}(Je,"string");return"symbol"===ee(Ft)?Ft:String(Ft)}Object.defineProperty(A,"__esModule",{value:!0}),A.setMiddleware=A.getMiddleware=A.setManager=A.getManager=A.convertOptions=A.HookManager=A.BaseHookContext=A.HOOKS=void 0;var ke=G(
/*! ./utils.js */
"../../node_modules/@feathersjs/hooks/script/utils.js");A.HOOKS=Symbol("@feathersjs/hooks");var Ye=function(){function Je(){var Ft=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};we(this,Je),Object.defineProperty(this,"self",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,Ft)}return Q(Je,[{key:"toJSON",value:function(){for(var st=this,Ze=Object.keys(this),$e=Object.getPrototypeOf(this);$e;)Ze.push.apply(Ze,se(Object.keys($e))),$e=Object.getPrototypeOf($e);return Ze.reduce(function(Oe,Nt){return Oe[Nt]=st[Nt],Oe},{})}}]),Je}();A.BaseHookContext=Ye;var ct=function(){function Je(){we(this,Je),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_middleware",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_props",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_defaults",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Q(Je,[{key:"parent",value:function(st){return this._parent=st,this}},{key:"middleware",value:function(st){return this._middleware=null!=st&&st.length?st:null,this}},{key:"getMiddleware",value:function(){var st,Ze=null===(st=this._parent)||void 0===st?void 0:st.getMiddleware();return Ze&&this._middleware?Ze.concat(this._middleware):Ze||this._middleware}},{key:"collectMiddleware",value:function(st,Ze){var $e=vt(st),Oe=this.getMiddleware();return $e&&Oe?$e.concat(Oe):$e||Oe||[]}},{key:"props",value:function(st){return this._props||(this._props={}),(0,ke.copyProperties)(this._props,st),this}},{key:"getProps",value:function(){var st,Ze=null===(st=this._parent)||void 0===st?void 0:st.getProps();return Ze&&this._props?(0,ke.copyProperties)({},Ze,this._props):Ze||this._props||null}},{key:"params",value:function(){for(var st=arguments.length,Ze=new Array(st),$e=0;$e<st;$e++)Ze[$e]=arguments[$e];return this._params=Ze,this}},{key:"getParams",value:function(){var st,Ze=null===(st=this._parent)||void 0===st?void 0:st.getParams();return Ze&&this._params?Ze.concat(this._params):Ze||this._params}},{key:"defaults",value:function(st){return this._defaults=st,this}},{key:"getDefaults",value:function(st,Ze,$e){var Oe,Nt="function"==typeof this._defaults?this._defaults(st,Ze,$e):null,xt=null===(Oe=this._parent)||void 0===Oe?void 0:Oe.getDefaults(st,Ze,$e);return xt&&Nt?Object.assign({},xt,Nt):xt||Nt}},{key:"getContextClass",value:function(){var Ze=function(Nt){F(Ot,Nt);var xt=R(Ot);function Ot(Kt){return we(this,Ot),xt.call(this,Kt)}return Q(Ot)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ye),$e=this.getParams(),Oe=this.getProps();return $e&&$e.forEach(function(Nt,xt){if(void 0!==Oe?.[Nt])throw new Error("Hooks can not have a property and param named '".concat(Nt,"'. Use .defaults instead."));Object.defineProperty(Ze.prototype,Nt,{enumerable:!0,get:function(){return null==this?void 0:this.arguments[xt]},set:function(Kt){this.arguments[xt]=Kt}})}),Oe&&(0,ke.copyProperties)(Ze.prototype,Oe),Ze}},{key:"initializeContext",value:function(st,Ze,$e){var Oe=this._parent?this._parent.initializeContext(st,Ze,$e):$e,Nt=this.getDefaults(st,Ze,Oe);if(st&&(Oe.self=st),Oe.arguments=Ze,Nt)for(var xt=0,Ot=Object.keys(Nt);xt<Ot.length;xt++){var Kt=Ot[xt];void 0===Oe[Kt]&&(Oe[Kt]=Nt[Kt])}return Oe}}]),Je}();function Ct(Je){return Je&&Je[A.HOOKS]||null}function Ue(Je,Ft){var st=Ct(Je);return Je[A.HOOKS]=Ft.parent(st),Je}function vt(Je){var Ft=Ct(Je);return Ft?Ft.getMiddleware():null}A.HookManager=ct,A.convertOptions=function ut(){var Je=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Je?Array.isArray(Je)?(new ct).middleware(Je):Je:new ct},A.getManager=Ct,A.setManager=Ue,A.getMiddleware=vt,A.setMiddleware=function ln(Je,Ft){return Ue(Je,(new ct).middleware(Ft))}},"../../node_modules/@feathersjs/hooks/script/compose.js":
/*!**************************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/compose.js ***!
                    \**************************************************************/function(T,A){"use strict";function G(P,y){var j=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!j){if(Array.isArray(P)||(j=function F(P,y){if(P){if("string"==typeof P)return N(P,y);var j=Object.prototype.toString.call(P).slice(8,-1);if("Object"===j&&P.constructor&&(j=P.constructor.name),"Map"===j||"Set"===j)return Array.from(P);if("Arguments"===j||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return N(P,y)}}(P))||y&&P&&"number"==typeof P.length){j&&(P=j);var Y=0,ee=function(){};return{s:ee,n:function(){return Y>=P.length?{done:!0}:{done:!1,value:P[Y++]}},e:function(oe){throw oe},f:ee}}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 Se,se=!0,he=!1;return{s:function(){j=j.call(P)},n:function(){var oe=j.next();return se=oe.done,oe},e:function(oe){he=!0,Se=oe},f:function(){try{!se&&null!=j.return&&j.return()}finally{if(he)throw Se}}}}function N(P,y){(null==y||y>P.length)&&(y=P.length);for(var j=0,Y=new Array(y);j<y;j++)Y[j]=P[j];return Y}Object.defineProperty(A,"__esModule",{value:!0}),A.compose=void 0,A.compose=function R(P){if(!Array.isArray(P))throw new TypeError("Middleware stack must be an array!");var j,y=G(P);try{for(y.s();!(j=y.n()).done;)if("function"!=typeof j.value)throw new TypeError("Middleware must be composed of functions!")}catch(ee){y.e(ee)}finally{y.f()}return function(ee,se){var he=-1;return function Se(te){if(te<=he)return Promise.reject(new Error("next() called multiple times"));he=te;var oe=P[te];if(te===P.length&&(oe=se),!oe)return Promise.resolve();try{return Promise.resolve(oe.call(this,ee,Se.bind(this,te+1)))}catch(q){return Promise.reject(q)}}.call(this,0)}}},"../../node_modules/@feathersjs/hooks/script/hooks.js":
/*!************************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/hooks.js ***!
                    \************************************************************/function(T,A,G){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.hookDecorator=A.objectHooks=A.functionHooks=A.getOriginal=void 0;var F=G(
/*! ./compose.js */
"../../node_modules/@feathersjs/hooks/script/compose.js"),N=G(
/*! ./base.js */
"../../node_modules/@feathersjs/hooks/script/base.js"),R=G(
/*! ./utils.js */
"../../node_modules/@feathersjs/hooks/script/utils.js");function P(ee){return"function"==typeof ee.original?P(ee.original):ee}function y(ee,se){if("function"!=typeof ee)throw new Error("Can not apply hooks to non-function");var he=(0,N.convertOptions)(se),Se=function te(){for(var oe=this,q=te.Context,we=te.original,ae=arguments.length,Q=new Array(ae),pe=0;pe<ae;pe++)Q[pe]=arguments[pe];var Ee=Q[Q.length-1]instanceof q,ke=Ee?Q.pop():new q,Ye=he.initializeContext(this,Q,ke),ct=[function(Ct,Ue){return Ue().then(function(){return Ee?Ct:Ct.result})}],ut=he.collectMiddleware(this,Q);return ut&&Array.prototype.push.apply(ct,ut),ct.push(function(Ct,Ue){return Object.prototype.hasOwnProperty.call(Ye,"result")?Ue():Promise.resolve(we.apply(oe,Ct.arguments)).then(function(vt){return Ct.result=vt,Ue()})}),(0,F.compose)(ct).call(this,Ye)};return(0,R.copyFnProperties)(Se,ee),(0,R.copyProperties)(Se,ee),(0,N.setManager)(Se,he),Object.assign(Se,{original:P(ee),Context:he.getContextClass(),createContext:function(){return new Se.Context(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}})}A.getOriginal=P,A.functionHooks=y,A.objectHooks=function j(ee,se){if(Array.isArray(se))return(0,N.setMiddleware)(ee,se);for(var he=0,Se=Object.keys(se);he<Se.length;he++){var te=Se[he],oe="function"==typeof ee[te]?ee:ee.prototype,q=oe&&oe[te];if("function"!=typeof q)throw new Error("Can not apply hooks. '".concat(te,"' is not a function"));var we=(0,N.convertOptions)(se[te]);oe[te]=y(q,we.props({method:te}))}return ee},A.hookDecorator=function(se){return function(te,oe,q){var we=(0,N.convertOptions)(se);if(!q)return(0,N.setManager)(te.prototype,we),te;var ae=q.value;if("function"!=typeof ae)throw new Error("Can not apply hooks. '".concat(oe,"' is not a function"));return q.value=y(ae,we.props({method:oe})),q}}},"../../node_modules/@feathersjs/hooks/script/index.js":
/*!************************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/index.js ***!
                    \************************************************************/function(T,A,G){"use strict";function F(oe){return function y(oe){if(Array.isArray(oe))return j(oe)}(oe)||function P(oe){if(typeof Symbol<"u"&&null!=oe[Symbol.iterator]||null!=oe["@@iterator"])return Array.from(oe)}(oe)||function R(oe,q){if(oe){if("string"==typeof oe)return j(oe,q);var we=Object.prototype.toString.call(oe).slice(8,-1);if("Object"===we&&oe.constructor&&(we=oe.constructor.name),"Map"===we||"Set"===we)return Array.from(oe);if("Arguments"===we||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return j(oe,q)}}(oe)||function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(oe,q){(null==q||q>oe.length)&&(q=oe.length);for(var we=0,ae=new Array(q);we<q;we++)ae[we]=oe[we];return ae}var Y=this&&this.__createBinding||(Object.create?function(oe,q,we,ae){void 0===ae&&(ae=we),Object.defineProperty(oe,ae,{enumerable:!0,get:function(){return q[we]}})}:function(oe,q,we,ae){void 0===ae&&(ae=we),oe[ae]=q[we]}),ee=this&&this.__exportStar||function(oe,q){for(var we in oe)"default"!==we&&!Object.prototype.hasOwnProperty.call(q,we)&&Y(q,oe,we)};Object.defineProperty(A,"__esModule",{value:!0}),A.hooks=A.middleware=void 0;var se=G(
/*! ./base.js */
"../../node_modules/@feathersjs/hooks/script/base.js"),he=G(
/*! ./hooks.js */
"../../node_modules/@feathersjs/hooks/script/hooks.js");ee(G(
/*! ./hooks.js */
"../../node_modules/@feathersjs/hooks/script/hooks.js"),A),ee(G(
/*! ./compose.js */
"../../node_modules/@feathersjs/hooks/script/compose.js"),A),ee(G(
/*! ./base.js */
"../../node_modules/@feathersjs/hooks/script/base.js"),A),ee(G(
/*! ./regular.js */
"../../node_modules/@feathersjs/hooks/script/regular.js"),A),A.middleware=function Se(oe,q){var we=(new se.HookManager).middleware(oe);return q&&(q.params&&we.params.apply(we,F(q.params)),q.defaults&&we.defaults(q.defaults),q.props&&we.props(q.props)),we},A.hooks=function te(){for(var oe=arguments.length,q=new Array(oe),we=0;we<oe;we++)q[we]=arguments[we];var ae=q[0],Q=q[1];return"function"==typeof ae&&(Q instanceof se.HookManager||Array.isArray(Q)||1===q.length)?(0,he.functionHooks)(ae,Q):2===q.length?(0,he.objectHooks)(ae,Q):(0,he.hookDecorator)(ae)}},"../../node_modules/@feathersjs/hooks/script/regular.js":
/*!**************************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/regular.js ***!
                    \**************************************************************/function(T,A,G){"use strict";function F(ke){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ye){return typeof Ye}:function(Ye){return Ye&&"function"==typeof Symbol&&Ye.constructor===Symbol&&Ye!==Symbol.prototype?"symbol":typeof Ye})(ke)}function N(ke){return function j(ke){if(Array.isArray(ke))return Y(ke)}(ke)||function y(ke){if(typeof Symbol<"u"&&null!=ke[Symbol.iterator]||null!=ke["@@iterator"])return Array.from(ke)}(ke)||function P(ke,Ye){if(ke){if("string"==typeof ke)return Y(ke,Ye);var ct=Object.prototype.toString.call(ke).slice(8,-1);if("Object"===ct&&ke.constructor&&(ct=ke.constructor.name),"Map"===ct||"Set"===ct)return Array.from(ke);if("Arguments"===ct||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ct))return Y(ke,Ye)}}(ke)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(ke,Ye){(null==Ye||Ye>ke.length)&&(Ye=ke.length);for(var ct=0,ut=new Array(Ye);ct<Ye;ct++)ut[ct]=ke[ct];return ut}function ee(ke,Ye){var ct=Object.keys(ke);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(ke);Ye&&(ut=ut.filter(function(Ct){return Object.getOwnPropertyDescriptor(ke,Ct).enumerable})),ct.push.apply(ct,ut)}return ct}function he(ke,Ye,ct){return(Ye=function Se(ke){var Ye=function te(ke,Ye){if("object"!==F(ke)||null===ke)return ke;var ct=ke[Symbol.toPrimitive];if(void 0!==ct){var ut=ct.call(ke,Ye||"default");if("object"!==F(ut))return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ye?String:Number)(ke)}(ke,"string");return"symbol"===F(Ye)?Ye:String(Ye)}(Ye))in ke?Object.defineProperty(ke,Ye,{value:ct,enumerable:!0,configurable:!0,writable:!0}):ke[Ye]=ct,ke}Object.defineProperty(A,"__esModule",{value:!0}),A.collect=A.fromErrorHook=A.fromAfterHook=A.fromBeforeHook=A.runHooks=A.runHook=void 0;var oe=G(
/*! ./compose.js */
"../../node_modules/@feathersjs/hooks/script/compose.js");function ae(ke){return function(Ye,ct){return(0,A.runHook)(ke,Ye,"before").then(ct)}}function Q(ke){return function(Ye,ct){return ct().then(function(){return(0,A.runHook)(ke,Ye,"after")})}}function pe(ke){return function(Ye,ct){return ct().catch(function(ut){return(Ye.error!==ut||void 0!==Ye.result)&&(Ye.original=function se(ke){for(var Ye=1;Ye<arguments.length;Ye++){var ct=null!=arguments[Ye]?arguments[Ye]:{};Ye%2?ee(Object(ct),!0).forEach(function(ut){he(ke,ut,ct[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ke,Object.getOwnPropertyDescriptors(ct)):ee(Object(ct)).forEach(function(ut){Object.defineProperty(ke,ut,Object.getOwnPropertyDescriptor(ct,ut))})}return ke}({},Ye),Ye.error=ut,delete Ye.result),(0,A.runHook)(ke,Ye,"error").then(function(){if(void 0===Ye.result&&void 0!==Ye.error)throw Ye.error}).catch(function(Ct){throw Ye.error=Ct,Ye.error})})}}A.runHook=function(Ye,ct,ut){var Ct=ct.type;return ut&&(ct.type=ut),Promise.resolve(Ye.call(ct.self,ct)).then(function(Ue){ut&&(ct.type=Ct),Ue&&Ue!==ct&&Object.assign(ct,Ue)})},A.runHooks=function(Ye){return function(ct){return Ye.reduce(function(ut,Ct){return ut.then(function(){return(0,A.runHook)(Ct,ct)})},Promise.resolve(ct))}},A.fromBeforeHook=ae,A.fromAfterHook=Q,A.fromErrorHook=pe,A.collect=function Ee(ke){var Ye=ke.before,ut=ke.after,Ct=void 0===ut?[]:ut,Ue=ke.error,vt=void 0===Ue?[]:Ue,ln=(void 0===Ye?[]:Ye).map(ae),Je=N(Ct).reverse().map(Q),Ft=vt.length?[pe((0,A.runHooks)(vt))]:[];return(0,oe.compose)([].concat(Ft,N(ln),N(Je)))}},"../../node_modules/@feathersjs/hooks/script/utils.js":
/*!************************************************************!*\
                    !*** ../../node_modules/@feathersjs/hooks/script/utils.js ***!
                    \************************************************************/function(T,A){"use strict";function G(y,j){var Y=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!Y){if(Array.isArray(y)||(Y=function F(y,j){if(y){if("string"==typeof y)return N(y,j);var Y=Object.prototype.toString.call(y).slice(8,-1);if("Object"===Y&&y.constructor&&(Y=y.constructor.name),"Map"===Y||"Set"===Y)return Array.from(y);if("Arguments"===Y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return N(y,j)}}(y))||j&&y&&"number"==typeof y.length){Y&&(y=Y);var ee=0,se=function(){};return{s:se,n:function(){return ee>=y.length?{done:!0}:{done:!1,value:y[ee++]}},e:function(q){throw q},f:se}}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 te,he=!0,Se=!1;return{s:function(){Y=Y.call(y)},n:function(){var q=Y.next();return he=q.done,q},e:function(q){Se=!0,te=q},f:function(){try{!he&&null!=Y.return&&Y.return()}finally{if(Se)throw te}}}}function N(y,j){(null==j||j>y.length)&&(j=y.length);for(var Y=0,ee=new Array(j);Y<j;Y++)ee[Y]=y[Y];return ee}Object.defineProperty(A,"__esModule",{value:!0}),A.copyFnProperties=A.copyProperties=void 0,A.copyProperties=function R(y){for(var j=arguments.length,Y=new Array(j>1?j-1:0),ee=1;ee<j;ee++)Y[ee-1]=arguments[ee];for(var se=0,he=Y;se<he.length;se++){var q,Se=he[se],oe=G(Object.keys(Se).concat(Object.getOwnPropertySymbols(Se)));try{for(oe.s();!(q=oe.n()).done;){var we=q.value,ae=Object.getOwnPropertyDescriptor(Se,we);ae&&!Object.prototype.hasOwnProperty.call(y,we)&&Object.defineProperty(y,we,ae)}}catch(Q){oe.e(Q)}finally{oe.f()}}return y},A.copyFnProperties=function P(y,j){try{for(var ee=0,se=["name","length"];ee<se.length;ee++){var he=se[ee];Object.defineProperty(y,he,{value:j[he]})}}catch{}return y}}},_={},function e(T){var A=_[T];if(void 0!==A)return A.exports;var G=_[T]={exports:{}};return ve[T].call(G.exports,G,G.exports,e),G.exports}("./src/feathers.ts"))},30406:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.createDebug=ve.setDebug=ve.noopDebug=void 0;const _={};function e(){return function(){}}ve.noopDebug=e;let o=e;ve.setDebug=function T(G){o=G,Object.keys(_).forEach(F=>{_[F]=G(F)})},ve.createDebug=function A(G){return _[G]||(_[G]=o(G)),(...F)=>_[G](...F)}},69815:function(fn,ve,_){"use strict";var e=this&&this.__createBinding||(Object.create?function(F,N,R,P){void 0===P&&(P=R);var y=Object.getOwnPropertyDescriptor(N,R);(!y||("get"in y?!N.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return N[R]}}),Object.defineProperty(F,P,y)}:function(F,N,R,P){void 0===P&&(P=R),F[P]=N[R]}),o=this&&this.__exportStar||function(F,N){for(var R in F)"default"!==R&&!Object.prototype.hasOwnProperty.call(N,R)&&e(N,F,R)};Object.defineProperty(ve,"__esModule",{value:!0}),ve.createSymbol=ve.isPromise=ve._=ve.stripSlashes=void 0,ve.stripSlashes=function T(F){return F.replace(/^(\/+)|(\/+)$/g,"")},ve._={each(F,N){F&&"function"==typeof F.forEach?F.forEach(N):ve._.isObject(F)&&Object.keys(F).forEach(R=>N(F[R],R))},some:(F,N)=>Object.keys(F).map(R=>[F[R],R]).some(([R,P])=>N(R,P)),every:(F,N)=>Object.keys(F).map(R=>[F[R],R]).every(([R,P])=>N(R,P)),keys:F=>Object.keys(F),values:F=>ve._.keys(F).map(N=>F[N]),isMatch:(F,N)=>ve._.keys(N).every(R=>F[R]===N[R]),isEmpty:F=>0===ve._.keys(F).length,isObject:F=>"object"==typeof F&&!Array.isArray(F)&&null!==F,isObjectOrArray:F=>"object"==typeof F&&null!==F,extend:(F,...N)=>Object.assign(F,...N),omit(F,...N){const R=ve._.extend({},F);return N.forEach(P=>delete R[P]),R},pick:(F,...N)=>N.reduce((R,P)=>(void 0!==F[P]&&(R[P]=F[P]),R),{}),merge:(F,N)=>(ve._.isObject(F)&&ve._.isObject(N)&&Object.keys(N).forEach(R=>{ve._.isObject(N[R])?(F[R]||Object.assign(F,{[R]:{}}),ve._.merge(F[R],N[R])):Object.assign(F,{[R]:N[R]})}),F)},ve.isPromise=function A(F){return ve._.isObject(F)&&"function"==typeof F.then},ve.createSymbol=function G(F){return typeof Symbol<"u"?Symbol.for(F):F},o(_(30406),ve)},40102:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.convert=ve.errors=ve.Unavailable=ve.BadGateway=ve.NotImplemented=ve.GeneralError=ve.TooManyRequests=ve.Unprocessable=ve.LengthRequired=ve.Gone=ve.Conflict=ve.Timeout=ve.NotAcceptable=ve.MethodNotAllowed=ve.NotFound=ve.Forbidden=ve.PaymentError=ve.NotAuthenticated=ve.BadRequest=ve.FeathersError=void 0;class _ extends Error{constructor(we,ae,Q,pe,Ee){let ke="string"==typeof we?we:"Error";const Ye={name:ae,code:Q,className:pe,type:"FeathersError"};if(Array.isArray(Ee))Ye.data=Ee;else if("object"==typeof we||void 0!==Ee){const{message:ct,errors:ut,...Ct}=null!==we&&"object"==typeof we?we:Ee;ke=ct||ke,Ye.errors=ut,Ye.data=Ct}super(ke),Object.assign(this,Ye)}toJSON(){const we={name:this.name,message:this.message,code:this.code,className:this.className};return void 0!==this.data&&(we.data=this.data),void 0!==this.errors&&(we.errors=this.errors),we}}ve.FeathersError=_;class e extends _{constructor(we,ae){super(we,"BadRequest",400,"bad-request",ae)}}ve.BadRequest=e;class o extends _{constructor(we,ae){super(we,"NotAuthenticated",401,"not-authenticated",ae)}}ve.NotAuthenticated=o;class T extends _{constructor(we,ae){super(we,"PaymentError",402,"payment-error",ae)}}ve.PaymentError=T;class A extends _{constructor(we,ae){super(we,"Forbidden",403,"forbidden",ae)}}ve.Forbidden=A;class G extends _{constructor(we,ae){super(we,"NotFound",404,"not-found",ae)}}ve.NotFound=G;class F extends _{constructor(we,ae){super(we,"MethodNotAllowed",405,"method-not-allowed",ae)}}ve.MethodNotAllowed=F;class N extends _{constructor(we,ae){super(we,"NotAcceptable",406,"not-acceptable",ae)}}ve.NotAcceptable=N;class R extends _{constructor(we,ae){super(we,"Timeout",408,"timeout",ae)}}ve.Timeout=R;class P extends _{constructor(we,ae){super(we,"Conflict",409,"conflict",ae)}}ve.Conflict=P;class y extends _{constructor(we,ae){super(we,"Gone",410,"gone",ae)}}ve.Gone=y;class j extends _{constructor(we,ae){super(we,"LengthRequired",411,"length-required",ae)}}ve.LengthRequired=j;class Y extends _{constructor(we,ae){super(we,"Unprocessable",422,"unprocessable",ae)}}ve.Unprocessable=Y;class ee extends _{constructor(we,ae){super(we,"TooManyRequests",429,"too-many-requests",ae)}}ve.TooManyRequests=ee;class se extends _{constructor(we,ae){super(we,"GeneralError",500,"general-error",ae)}}ve.GeneralError=se;class he extends _{constructor(we,ae){super(we,"NotImplemented",501,"not-implemented",ae)}}ve.NotImplemented=he;class Se extends _{constructor(we,ae){super(we,"BadGateway",502,"bad-gateway",ae)}}ve.BadGateway=Se;class te extends _{constructor(we,ae){super(we,"Unavailable",503,"unavailable",ae)}}ve.Unavailable=te,ve.errors={FeathersError:_,BadRequest:e,NotAuthenticated:o,PaymentError:T,Forbidden:A,NotFound:G,MethodNotAllowed:F,NotAcceptable:N,Timeout:R,Conflict:P,LengthRequired:j,Unprocessable:Y,TooManyRequests:ee,GeneralError:se,NotImplemented:he,BadGateway:Se,Unavailable:te,400:e,401:o,402:T,403:A,404:G,405:F,406:N,408:R,409:P,410:y,411:j,422:Y,429:ee,500:se,501:he,502:Se,503:te},ve.convert=function oe(q){if(!q)return q;const we=ve.errors[q.name],ae=we?new we(q.message,q.data):new Error(q.message||q);return"object"==typeof q&&Object.assign(ae,q),ae}},51684:function(fn,ve,_){"use strict";var e=_(17156).default,o=this&&this.__importDefault||function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Feathers=void 0;const T=o(_(80530)),A=_(59069),G=_(69815),F=_(11258),N=_(69218),R=_(66037),P=_(83843),y=_(66037),j=(0,G.createDebug)("@feathersjs/feathers");ve.Feathers=class Y extends A.EventEmitter{constructor(){super(),this.services={},this.settings={},this.mixins=[R.hookMixin,N.eventMixin],this.version=T.default,this._isSetup=!1,this.registerHooks=(0,y.enableHooks)(this),this.registerHooks({around:[N.eventHook]})}get(se){return this.settings[se]}set(se,he){return this.settings[se]=he,this}configure(se){return se.call(this,this),this}defaultService(se){throw new Error(`Can not find service '${se}'`)}service(se){const he=(0,G.stripSlashes)(se)||"/",Se=this.services[he];return typeof Se>"u"?(this.use(he,this.defaultService(he)),this.service(he)):Se}_setup(){return this._isSetup=!0,Object.keys(this.services).reduce((se,he)=>se.then(()=>{const Se=this.service(he);if("function"==typeof Se.setup)return j(`Setting up service for \`${he}\``),Se.setup(this,he)}),Promise.resolve()).then(()=>this)}get setup(){return this._setup}set setup(se){this._setup=se[F.HOOKS]?se:(0,F.hooks)(se,(0,F.middleware)().params("server").props({app:this}))}_teardown(){return this._isSetup=!1,Object.keys(this.services).reduce((se,he)=>se.then(()=>{const Se=this.service(he);if("function"==typeof Se.teardown)return j(`Tearing down service for \`${he}\``),Se.teardown(this,he)}),Promise.resolve()).then(()=>this)}get teardown(){return this._teardown}set teardown(se){this._teardown=se[F.HOOKS]?se:(0,F.hooks)(se,(0,F.middleware)().params("server").props({app:this}))}use(se,he,Se){if("string"!=typeof se)throw new Error(`'${se}' is not a valid service path.`);const te=(0,G.stripSlashes)(se)||"/",oe=he;if("function"==typeof oe.service&&oe.services)return Object.keys(oe.services).forEach(Q=>this.use(`${te}/${Q}`,oe.service(Q))),this;const we=(0,P.wrapService)(te,he,Se),ae=(0,P.getServiceOptions)(we);for(const Q of P.protectedMethods)if(ae.methods.includes(Q))throw new Error(`'${Q}' on service '${te}' is not allowed as a custom method name`);return j(`Registering new service at \`${te}\``),this.mixins.forEach(Q=>Q.call(this,we,te,ae)),this.services[te]=we,this._isSetup&&"function"==typeof we.setup&&(j(`Setting up service for \`${te}\``),we.setup(this,te)),this}unuse(se){var he=this;return e(function*(){const Se=(0,G.stripSlashes)(se)||"/",te=he.services[Se];return te&&"function"==typeof te.teardown&&(yield te.teardown(he,Se)),delete he.services[Se],te})()}hooks(se){const he=se;return he.before||he.after||he.error||he.around?this.registerHooks(he):he.setup||he.teardown?(0,F.hooks)(this,he):this.registerHooks({around:he}),this}}},80995:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0})},69218:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.eventMixin=ve.eventHook=void 0;const e=_(59069),o=_(83843);ve.eventHook=function T(G,F){const{events:N}=(0,o.getServiceOptions)(G.self);return G.event=o.defaultEventMap[G.method]||null,F().then(()=>{"string"==typeof G.event&&!N.includes(G.event)&&(Array.isArray(G.result)?G.result:[G.result]).forEach(y=>G.self.emit(G.event,y,G))})},ve.eventMixin=function A(G){return"function"==typeof G.on&&"function"==typeof G.emit||Object.assign(G,e.EventEmitter.prototype),G}},66037:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.hookMixin=ve.FeathersHookManager=ve.createContext=ve.enableHooks=ve.collectHooks=ve.convertHookData=void 0;const e=_(11258),o=_(83843),T=["before","after","error","around"],A=j=>T.includes(j);function G(j){const Y={};if(Array.isArray(j))Y.all=j;else if("object"!=typeof j)Y.all=[j];else for(const ee of Object.keys(j)){const se=j[ee];Y[ee]=Array.isArray(se)?se:[se]}return Y}function F(j,Y){const{collected:ee,collectedAll:se,around:he}=j.__hooks;return[...he.all||[],...he[Y]||[],...se.before||[],...ee[Y]||[],...se.after||[]]}function N(j){return Object.defineProperty(j,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(se){const he=this.__hooks,Se=Object.keys(se).reduce((oe,q)=>{if(!A(q))throw new Error(`'${q}' is not a valid hook type`);return oe[q]=G(se[q]),oe},{});return Object.keys(Se).forEach(oe=>Object.keys(Se[oe]).forEach(q=>{var we;const ae=Se[oe][q];if(((we=he[oe])[q]||(we[q]=[])).push(...ae),"all"===q){if(he.before[q]||he.error[q]){const pe=(0,e.collect)({before:he.before[q]||[],error:he.error[q]||[]});he.collectedAll.before=[pe]}if(he.after[q]){const pe=(0,e.collect)({after:he.after[q]||[]});he.collectedAll.after=[pe]}}else if(he.before[q]||he.after[q]||he.error[q]){const pe=(0,e.collect)({before:he.before[q]||[],after:he.after[q]||[],error:he.error[q]||[]});he.collected[q]=[pe]}})),this}}ve.convertHookData=G,ve.collectHooks=F,ve.enableHooks=N,ve.createContext=function R(j,Y,ee={}){const se=j[Y].createContext;if("function"!=typeof se)throw new Error(`Can not create context for method ${Y}`);return se(ee)};class P extends e.HookManager{constructor(Y,ee){super(),this.app=Y,this.method=ee,this._middleware=[]}collectMiddleware(Y,ee){return[...F(this.app,this.method),...super.collectMiddleware(Y,ee),...F(Y,this.method)]}initializeContext(Y,ee,se){const he=super.initializeContext(Y,ee,se);return he.params=he.params||{},he}middleware(Y){return this._middleware.push(...Y),this}}ve.FeathersHookManager=P,ve.hookMixin=function y(j,Y,ee){if("function"==typeof j.hooks)return j;const he=(0,o.getHookMethods)(j,ee).reduce((te,oe)=>{const q=o.defaultServiceArguments[oe]||["data","params"];return te[oe]=new P(this,oe).params(...q).props({app:this,path:Y,method:oe,service:j,event:null,type:"around",get statusCode(){var we;return null===(we=this.http)||void 0===we?void 0:we.status},set statusCode(we){this.http=this.http||{},this.http.status=we}}),te},{}),Se=N(j);return(0,e.hooks)(j,he),j.hooks=function(te){return te.before||te.after||te.error||te.around?Se.call(this,te):Array.isArray(te)?(0,e.hooks)(this,te):(Object.keys(te).forEach(oe=>{const q=(0,e.getManager)(this[oe]);if(!(q instanceof P))throw new Error(`Method ${oe} is not a Feathers hooks enabled service method`);q.middleware(te[oe])}),this)},j}},31931:function(fn,ve,_){"use strict";var e=this&&this.__createBinding||(Object.create?function(R,P,y,j){void 0===j&&(j=y);var Y=Object.getOwnPropertyDescriptor(P,y);(!Y||("get"in Y?!P.__esModule:Y.writable||Y.configurable))&&(Y={enumerable:!0,get:function(){return P[y]}}),Object.defineProperty(R,j,Y)}:function(R,P,y,j){void 0===j&&(j=y),R[j]=P[y]}),o=this&&this.__exportStar||function(R,P){for(var y in R)"default"!==y&&!Object.prototype.hasOwnProperty.call(P,y)&&e(P,R,y)},T=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Feathers=ve.version=ve.feathers=void 0;const A=_(69815),G=T(_(80530));ve.version=G.default;const F=_(51684);function N(){return new F.Feathers}Object.defineProperty(ve,"Feathers",{enumerable:!0,get:function(){return F.Feathers}}),ve.feathers=N,N.setDebug=A.setDebug,o(_(66037),ve),o(_(80995),ve),o(_(83843),ve),fn.exports=Object.assign(N,fn.exports)},83843:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.wrapService=ve.normalizeServiceOptions=ve.getServiceOptions=ve.getHookMethods=ve.protectedMethods=ve.defaultServiceEvents=ve.defaultEventMap=ve.defaultServiceMethods=ve.defaultServiceArguments=ve.SERVICE=void 0;const e=_(59069),o=_(69815);ve.SERVICE=(0,o.createSymbol)("@feathersjs/service"),ve.defaultServiceArguments={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]},ve.defaultServiceMethods=["find","get","create","update","patch","remove"],ve.defaultEventMap={create:"created",update:"updated",patch:"patched",remove:"removed"},ve.defaultServiceEvents=Object.values(ve.defaultEventMap),ve.protectedMethods=Object.keys(Object.prototype).concat(Object.keys(e.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish"]),ve.getHookMethods=function T(N,R){const{methods:P}=R;return ve.defaultServiceMethods.filter(y=>"function"==typeof N[y]&&!P.includes(y)).concat(P)},ve.getServiceOptions=function A(N){return N[ve.SERVICE]},ve.normalizeServiceOptions=(N,R={})=>{const{methods:P=ve.defaultServiceMethods.filter(Y=>"function"==typeof N[Y]),events:y=N.events||[]}=R,j=R.serviceEvents||ve.defaultServiceEvents.concat(y);return{...R,events:y,methods:P,serviceEvents:j}},ve.wrapService=function F(N,R,P){if(R[ve.SERVICE])return R;const y=Object.create(R),j=(0,ve.normalizeServiceOptions)(R,P);if(0===Object.keys(j.methods).length&&![...ve.defaultServiceMethods,"setup","teardown"].some(Y=>"function"==typeof R[Y]))throw new Error(`Invalid service object passed for path \`${N}\``);return Object.defineProperty(y,ve.SERVICE,{value:j}),y}},80530:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.default="5.0.5"},44527:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.AxiosClient=void 0;const e=_(10086);ve.AxiosClient=class o extends e.Base{request(A,G){const F=Object.assign({url:A.url,method:A.method,data:A.body,headers:Object.assign({Accept:"application/json"},this.options.headers,A.headers)},G.connection);return this.connection.request(F).then(N=>N.data).catch(N=>{const R=N.response||N;throw R instanceof Error?R:R.data||R})}}},10086:function(fn,ve,_){"use strict";var e=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Base=void 0;const o=e(_(81781)),T=_(40102),A=_(69815);function G(N){throw"ECONNREFUSED"===N.code?new T.Unavailable(N.message,A._.pick(N,"address","port","config")):(0,T.convert)(N)}ve.Base=class F{constructor(R){this.name=(0,A.stripSlashes)(R.name),this.options=R.options,this.connection=R.connection,this.base=`${R.base}/${this.name}`}makeUrl(R,P){let y=this.base;return R=R||{},typeof P<"u"&&null!==P&&(y+=`/${encodeURIComponent(P)}`),y+this.getQuery(R)}getQuery(R){return 0!==Object.keys(R).length?`?${o.default.stringify(R)}`:""}methods(...R){return R.forEach(P=>{this[P]=function(y,j={}){return this.request({body:y,url:this.makeUrl(j.query),method:"POST",headers:Object.assign({"Content-Type":"application/json","X-Service-Method":P},j.headers)},j).catch(G)}}),this}find(R){return this.request({url:this.makeUrl(R.query),method:"GET",headers:Object.assign({},R.headers)},R).catch(G)}get(R,P){return typeof R>"u"?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(P.query,R),method:"GET",headers:Object.assign({},P.headers)},P).catch(G)}create(R,P){return this.request({url:this.makeUrl(P.query),body:R,method:"POST",headers:Object.assign({"Content-Type":"application/json"},P.headers)},P).catch(G)}update(R,P,y){return typeof R>"u"?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(y.query,R),body:P,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},y.headers)},y).catch(G)}patch(R,P,y){return typeof R>"u"?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(y.query,R),body:P,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},y.headers)},y).catch(G)}remove(R,P){return typeof R>"u"?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(P.query,R),method:"DELETE",headers:Object.assign({},P.headers)},P).catch(G)}}},41669:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.FetchClient=void 0;const e=_(40102),o=_(10086);ve.FetchClient=class T extends o.Base{request(G,F){const N=Object.assign({},G,F.connection);return N.headers=Object.assign({Accept:"application/json"},this.options.headers,N.headers),G.body&&(N.body=JSON.stringify(G.body)),this.connection(G.url,N).then(this.checkStatus).then(R=>204===R.status?null:R.json())}checkStatus(G){return G.ok?G:G.json().catch(()=>new(e.errors[G.status]||Error)("JSON parsing error")).then(F=>{throw F.response=G,F})}}},30295:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.SuperagentClient=ve.FetchClient=ve.AxiosClient=void 0;const e=_(31931),o=_(10086),T=_(44527);Object.defineProperty(ve,"AxiosClient",{enumerable:!0,get:function(){return T.AxiosClient}});const A=_(41669);Object.defineProperty(ve,"FetchClient",{enumerable:!0,get:function(){return A.FetchClient}});const G=_(20338);Object.defineProperty(ve,"SuperagentClient",{enumerable:!0,get:function(){return G.SuperagentClient}});const F={superagent:G.SuperagentClient,fetch:A.FetchClient,axios:T.AxiosClient};function N(R=""){const P={Base:o.Base};return Object.keys(F).forEach(y=>{P[y]=function(j,Y={},ee=F[y]){if(!j)throw new Error(`${y} has to be provided to feathers-rest`);"function"==typeof Y&&(ee=Y,Y={});const se=function(Se){return new ee({base:R,name:Se,connection:j,options:Y})},he=Se=>{if(void 0!==Se.rest)throw new Error("Only one default client provider can be configured");Se.rest=j,Se.defaultService=se,Se.mixins.unshift((te,oe,q)=>{if(q&&q.methods&&te instanceof o.Base){const we=q.methods.filter(ae=>!e.defaultServiceMethods.includes(ae));te.methods(...we)}})};return he.Service=ee,he.service=se,he}}),P}ve.default=N,fn.exports=Object.assign(N,fn.exports)},20338:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.SuperagentClient=void 0;const e=_(10086);ve.SuperagentClient=class o extends e.Base{request(A,G){const F=this.connection(A.method,A.url).set(this.options.headers||{}).set("Accept","application/json").set(G.connection||{}).set(A.headers||{}).type(A.type||"json");return new Promise((N,R)=>{F.set(A.headers),A.body&&F.send(A.body),F.end(function(P,y){if(P){try{const j=P.response;(P=JSON.parse(P.response.text)).response=j}catch{}return R(P)}N(y&&y.body)})})}}},1010:(fn,ve,_)=>{"use strict";_.d(ve,{L:()=>o});var e=_(92340);const o={issuer:e.N.authUrl,tokenEndpoint:`${e.N.authUrl}/connect/token`,userinfoEndpoint:`${e.N.authUrl}/connect/userinfo`,revocationEndpoint:`${e.N.authUrl}/connect/revocation`,requireHttps:!1,redirectUri:window.location.origin+"/profile",logoutUrl:`${window.location.origin}/login`,postLogoutRedirectUri:"login",clientId:"nit",dummyClientSecret:"secret",scope:"openid profile permission other_info identity.api nit.api router.api offline_access chat.api school.api olympiad.api",showDebugInformation:!1,oidc:!1}},46682:(fn,ve,_)=>{"use strict";_.d(ve,{C_:()=>T,Dv:()=>e,Qu:()=>o,v1:()=>A});class e{constructor(N={}){Object.assign(this,N)}}class o{constructor(N={}){Object.assign(this,N)}}class T{constructor(N={}){Object.assign(this,N)}}class A{constructor(N={}){Object.assign(this,N)}}},88951:(fn,ve,_)=>{"use strict";_.d(ve,{e:()=>P});var e=_(1010),o=_(61135),T=_(88996),A=_(80529),G=_(16036),F=_(92340),N=_(94650),R=_(70895);let P=(()=>{var y;class j{constructor(ee,se){this.http=ee,this.oauthService=se,this.schoolId$=new o.X(0),this._schoolId=0,this._childrenSchools=[],this._configureOAuth()}get claims(){return new G.GX(this.oauthService.getIdentityClaims())}get userId(){return this.claims?.sub??this._userId}getUserSchoolId(ee){return ee?this._childrenSchools.find(he=>he.userId===ee)?.schoolId??null:this._schoolId}setUserId(ee){this._userId=ee}setOwnSchoolId(ee){this._schoolId=ee,this.schoolId$.next(ee)}resetChildrenSchools(){this._childrenSchools=[]}setChildSchoolId(ee,se){this._childrenSchools.push({userId:ee,schoolId:se})}login(ee){return(0,T.D)(this.oauthService.fetchTokenUsingPasswordFlowAndLoadUserProfile(ee.userName,ee.password))}logout(){return(0,T.D)(this.oauthService.revokeTokenAndLogout())}signUp(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/signup`,ee)}signUpLbs(ee){return this.http.post(`${F.N.apiUrl}/api/v1/account/tests-register`,ee)}signUpKit(ee){return this.http.post(`${F.N.apiUrl}/api/v1/account/olympiad-register`,ee)}confirmEmail(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/email-confirm`,ee)}confirmAccount(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/confirm`,ee)}confirmChangeEmail(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/change-email-confirm`,ee)}changePassword(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/change-password`,ee)}confirmChangeEmailForNotVerifiedUser(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/change-email-and-confirm-account`,ee)}resetPassword(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/reset-password`,ee)}changeEmail(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/change-email`,ee,{headers:this._getHeaders()})}resendConfirmation(ee){return this.http.post(`${F.N.authUrl}/api/v1/account/resend-confirmation`,ee)}_configureOAuth(){this.oauthService.configure(e.L),this.oauthService.setStorage(localStorage)}_getHeaders(){return new A.WM({"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${this.oauthService.getAccessToken()}`,"X-NIT-REQUESTED-USER-ID":this.userId,"X-NIT-REQUESTED-SCHOOL-ID":this._schoolId.toString(),"X-NIT-CLIENT":"web","X-NIT-CLIENT-VERSION":F.N.version})}}return(y=j).\u0275fac=function(ee){return new(ee||y)(N.LFG(A.eN),N.LFG(R.Ct))},y.\u0275prov=N.Yz7({token:y,factory:y.\u0275fac}),j})()},9967:(fn,ve,_)=>{"use strict";_.d(ve,{a1:()=>Se,e8:()=>e.e,C_:()=>o.C_,Dv:()=>o.Dv,Qu:()=>o.Qu});var e=_(88951),o=_(46682),T=_(4128),A=_(39646),G=_(63900),F=_(70262),N=_(18505),R=_(28746),P=_(34919),y=_(94650),j=_(9116),Y=_(70895),ee=_(75745),se=_(94954),he=_(88783);let Se=(()=>{var oe;class q{constructor(ae,Q,pe,Ee,ke,Ye,ct){this._router=ae,this._oauthService=Q,this._userService=pe,this._ngxPermissionsService=Ee,this._notification=ke,this._permissionService=Ye,this._authService=ct,this.permissions=null,this.profile=null,this.profileURL="",this.schoolInfo=null,this.noAccess=!1}canActivate(ae,Q){return(0,T.D)({hasToken:(0,A.of)(!!this._oauthService.hasValidAccessToken()),hasRefreshToken:(0,A.of)(!!this._oauthService.getRefreshToken())}).pipe((0,G.w)(()=>this._initializePermissions()),(0,G.w)(()=>this._initializeSchoolInfo()),(0,G.w)(()=>this._initUserProfile(Q)),(0,G.w)(()=>this._checkRoleForRedirection(Q)),(0,F.K)(()=>this._logOut()))}_initializePermissions(){return this.permissions?(0,A.of)(!0):this._userService.getMyPermissions().pipe((0,N.b)(ae=>{if(ae.isDeleted)return this.noAccess=!0,!0;this._authService.setUserId(ae.userId);const Q=Number(localStorage.getItem("schoolId"));Q&&null===ae.permissions.find(Ye=>Ye.schoolId===Q&&Ye.forUserId===ae.userId&&Ye.active)&&localStorage.removeItem("schoolId"),this.permissions=[];let pe=[],Ee=[];ae.permissions.forEach(Ye=>{Ye.active&&(Ye.forUserId===ae.userId?(this._userService.isChild$.next(Ye.isChild),this.profileURL=Ye.isChild?"/profile/edit-child":"/profile/edit",0===Ye.schoolId?pe=Ye.permissions:localStorage.getItem("schoolId")||localStorage.setItem("schoolId",String(Ye.schoolId))):this._authService.setChildSchoolId(Ye.forUserId,Ye.schoolId))});const ke=Number(localStorage.getItem("schoolId"));ke&&(Ee=ae.permissions.find(Ye=>Ye.schoolId===ke&&Ye.forUserId===ae.userId&&Ye.active).permissions),this.permissions=[...pe,...Ee],this._ngxPermissionsService.flushPermissions(),this._ngxPermissionsService.loadPermissions(this.permissions),this._authService.setOwnSchoolId(ke),this._userService.userPermissions$.next(ae)}),(0,G.w)(()=>(0,A.of)(!0)),(0,F.K)(()=>(0,A.of)(!1)))}_initializeSchoolInfo(){const ae=this._authService.getUserSchoolId();return this.schoolInfo||0===ae?(0,A.of)(!0):this._userService.getSchoolInfo(this._authService.userId).pipe((0,N.b)(Q=>{this.schoolInfo=Q,this.schoolInfo?.classes.sort(P.OL),this._userService.isClassTeacher$.next(Q.classId&&Q.teacherId===this._authService.userId?Q:null),this._userService.currentSchoolInfo$.next(Q)}),(0,G.w)(()=>(0,A.of)(!0)),(0,F.K)(()=>(0,A.of)(!1)))}_initUserProfile(ae){if(this.noAccess)throw new Error("User account no longer valid");return this.profile?(0,A.of)(!0):this._userService.read(this._authService.userId).pipe((0,N.b)(Q=>{if(this.profile=Q,this._userService.currentUser$.next(Q),!Q.fullName)return ae.url!==this.profileURL&&this._router.url!==this.profileURL?(this._router.navigate([this.profileURL]),(0,A.of)(!0)):(ae.url!==this.profileURL&&this._notification.warning("\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0437\u0430\u043f\u043e\u0432\u043d\u0456\u0442\u044c \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0456 \u0434\u0430\u043d\u0456"),(0,A.of)(ae.url===this.profileURL))}),(0,G.w)(()=>(0,A.of)(!0)),(0,F.K)(()=>(0,A.of)(!1)))}_checkRoleForRedirection(ae){const Q=this._authService.getUserSchoolId(),pe=this._userService.isChild$.getValue(),Ee=this._permissionService.hasPermission(["create:school"]);return localStorage.getItem("loginRedirect")||(localStorage.setItem("loginRedirect",JSON.stringify(!0)),0===Q&&"/dashboard"===ae.url?this._router.navigate([pe?"/profile-not-joined":Ee?"/school-list":"/children"]):this._permissionService.hasPermission(["get:governance-school"])?this._router.navigate(["/school-reports-welcome"]):0!==Q&&"/dashboard"===ae.url&&pe&&this._router.navigate(["/diary"])),(0,A.of)(!0)}_logOut(){return(0,A.of)(!1).pipe((0,R.x)(()=>this._router.navigate(["login"])),(0,R.x)(()=>localStorage.clear()),(0,R.x)(()=>sessionStorage.clear()))}}return(oe=q).\u0275fac=function(ae){return new(ae||oe)(y.LFG(j.F0),y.LFG(Y.Ct),y.LFG(ee.KD),y.LFG(se.YI),y.LFG(ee.$5),y.LFG(he.$),y.LFG(e.e))},oe.\u0275prov=y.Yz7({token:oe,factory:oe.\u0275fac}),q})();_(1010)},94222:(fn,ve,_)=>{"use strict";_.d(ve,{r:()=>Y});var N,e=_(97582),o=_(94650),T=_(94766),A=_(75745),G=_(36895),F=_(9116);function R(ee,se){1&ee&&o.GkF(0)}function P(ee,se){if(1&ee&&(o.TgZ(0,"a",2),o.YNc(1,R,1,0,"ng-container",3),o.qZA()),2&ee){const he=o.oxw(),Se=o.MAs(2);o.Q6J("routerLink",he.link),o.xp6(1),o.Q6J("ngTemplateOutlet",Se)}}function y(ee,se){if(1&ee){const he=o.EpF();o.TgZ(0,"button",4),o.NdJ("click",function(){o.CHM(he);const te=o.oxw();return o.KtG(te.clickHandler())}),o.Hsn(1),o.qZA()}if(2&ee){const he=o.oxw();o.ekj("secondary","secondary"===he.type)("new-child","new-child"===he.type)("add-domain","add-domain"===he.type)("info","info"===he.type)("cancel","cancel"===he.type)("delete","delete"===he.type)("cancel-edit","cancel-edit"===he.type)("download","download"===he.type)("small",he.isSmall)("refuse","refuse"===he.type),o.Q6J("disabled",he.isDisabled||he.disabledByRequestLoading&&he.isTargetBtn)}}let Y=((N=class{constructor(se){this._pending=se,this.listenHttp=!0,this.type="primary",this.clicked=new o.vpe,this.disabledByRequestLoading=!1,this.isTargetBtn=!1}clickHandler(){this.isTargetBtn=!0,this.clicked.emit()}ngOnInit(){this.listenHttp&&this._pending.isInProgress$.pipe((0,T.t)(this)).subscribe({next:se=>{this.disabledByRequestLoading=se,se||(this.isTargetBtn=!1)}})}}).\u0275fac=function(se){return new(se||N)(o.Y36(A.NR))},N.\u0275cmp=o.Xpm({type:N,selectors:[["nit-button"]],inputs:{isDisabled:"isDisabled",link:"link",listenHttp:"listenHttp",isSmall:"isSmall",type:"type"},outputs:{clicked:"clicked"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[3,"routerLink",4,"ngIf","ngIfElse"],["simpleButton",""],[3,"routerLink"],[4,"ngTemplateOutlet"],["type","button",3,"disabled","click"]],template:function(se,he){if(1&se&&(o.F$t(),o.YNc(0,P,2,2,"a",0),o.YNc(1,y,2,21,"ng-template",null,1,o.W1O)),2&se){const Se=o.MAs(2);o.Q6J("ngIf",he.link)("ngIfElse",Se)}},dependencies:[G.O5,G.tP,F.rH],styles:["button[_ngcontent-%COMP%]{cursor:pointer;transition:.4s;background:var(--secondary-300);box-shadow:0 2px 9px #001d1026;border-radius:6px;font-weight:700;font-size:var(--font-size-h5);line-height:18px;text-align:center;color:var(--white);border:none;padding:16px;width:100%}button.small[_ngcontent-%COMP%]{font-size:var(--font-size-body);line-height:16px;padding:10px 10px 13px;font-weight:400}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus{background:var(--secondary-300);border:none}button.secondary[_ngcontent-%COMP%]{background:var(--primary-300);font-size:var(--font-size-body)}button.secondary[_ngcontent-%COMP%]:hover, button.secondary[_ngcontent-%COMP%]:focus{background:#3c4be5}button.new-child[_ngcontent-%COMP%]{background:var(--primary-300);font-size:var(--font-size-h5)}button.new-child[_ngcontent-%COMP%]:hover, button.new-child[_ngcontent-%COMP%]:focus{background:#3c4be5}button.info[_ngcontent-%COMP%]{background:var(--primary-100);color:var(--tertiary-200);display:flex}button.info[_ngcontent-%COMP%]:hover, button.info[_ngcontent-%COMP%]:focus{background:#f9f9ff}button.cancel-edit[_ngcontent-%COMP%]{background:transparent;color:var(--statistics-07)!important}button.refuse[_ngcontent-%COMP%]{font-size:16px;line-height:24px;font-weight:400;padding:0;background:none;box-shadow:none;color:var(--additional-grey-300);text-decoration:underline;width:-moz-fit-content;width:fit-content}button.add-domain[_ngcontent-%COMP%]{margin:16px auto;width:253px;display:flex;justify-content:center;align-items:center;background:var(--primary-300);font-size:var(--font-size-body)}button.cancel[_ngcontent-%COMP%]{background:none;color:var(--support-danger-200);padding-left:0;padding-right:0;width:100%;box-shadow:none;font-weight:400;text-align:center}button.cancel[_ngcontent-%COMP%]:hover, button.cancel[_ngcontent-%COMP%]:focus{color:#d18485;background:none}button.delete[_ngcontent-%COMP%]{line-height:18px;font-weight:700;padding:16px 40px;border-radius:6px;color:var(--white);background:var(--support-danger-300)}button.download[_ngcontent-%COMP%]{display:flex;justify-items:center}button[_ngcontent-%COMP%]:disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}@media screen and (max-width: 1024px){button[_ngcontent-%COMP%]{padding:11px 16px}}"]}),N);Y=(0,e.gn)([(0,T.c)()],Y)},38441:(fn,ve,_)=>{"use strict";_.d(ve,{F:()=>G});var e=_(36895),o=_(9116),T=_(78833),A=_(94650);let G=(()=>{var F;class N{}return(F=N).\u0275fac=function(P){return new(P||F)},F.\u0275mod=A.oAB({type:F}),F.\u0275inj=A.cJS({imports:[e.ez,o.Bz,T.Fq]}),N})()},68993:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>T});var e=_(94650);function o(A,G){if(1&A){const F=e.EpF();e._UZ(0,"kendo-multiviewcalendar",2),e.TgZ(1,"div",3)(2,"nit-button",4),e.NdJ("click",function(){e.CHM(F),e.oxw();const R=e.MAs(1);return e.KtG(null==R?null:R.toggle())}),e._uU(3,"\u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438"),e.qZA()()}if(2&A){const F=e.oxw();e.Q6J("bottomView",F.bottomView)("topView",F.topView),e.xp6(2),e.Q6J("isSmall",!0)}}let T=(()=>{var A;class G{constructor(){this.topView="decade"}}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["nit-daterange-close-extension"]],inputs:{topView:"topView",bottomView:"bottomView"},decls:3,vars:0,consts:[["popup",""],["kendoDateRangePopupTemplate",""],["kendoDateRangeSelection","",3,"bottomView","topView"],[1,"popup-footer"],[1,"popup-footer-button",3,"isSmall","click"]],template:function(N,R){1&N&&(e.TgZ(0,"kendo-daterange-popup",null,0),e.YNc(2,o,4,3,"ng-template",1),e.qZA())},styles:[".popup-footer[_ngcontent-%COMP%]{background-color:var(--white);padding:10px 50px 10px 10px}.popup-footer-button[_ngcontent-%COMP%]{width:150px;float:right}"]}),G})()},14972:(fn,ve,_)=>{"use strict";_.d(ve,{j:()=>Se,ST:()=>A,Fq:()=>G.F,yt:()=>F,gc:()=>P,hB:()=>y.h,zS:()=>j.z,dF:()=>Y.d,wI:()=>se,a5:()=>he.a});var e=_(36895),o=_(9116),T=_(94650);let A=(()=>{var te;class oe{}return(te=oe).\u0275fac=function(we){return new(we||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({imports:[e.ez,o.Bz]}),oe})();var G=_(38441);let F=(()=>{var te;class oe{}return(te=oe).\u0275fac=function(we){return new(we||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({}),oe})();var N=_(17115),R=_(95029);let P=(()=>{var te;class oe{}return(te=oe).\u0275fac=function(we){return new(we||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({imports:[e.ez,N.g9,R.k]}),oe})();var y=_(10685),j=_(27287),Y=_(50248),ee=_(66111);let se=(()=>{var te;class oe{}return(te=oe).\u0275fac=function(we){return new(we||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({imports:[e.ez,o.Bz,Y.d,ee.f]}),oe})();var he=_(87337);let Se=(()=>{var te;class oe{}return(te=oe).\u0275fac=function(we){return new(we||te)},te.\u0275mod=T.oAB({type:te}),te.\u0275inj=T.cJS({imports:[e.ez]}),oe})()},5187:(fn,ve,_)=>{"use strict";_.d(ve,{R:()=>R});var F,e=_(97582),o=_(94766),T=_(94650),A=_(88783),G=_(75745);function N(P,y){1&P&&T._UZ(0,"object",4)}let R=((F=class{constructor(y,j){this.permissionService=y,this.userService=j,this.logoUrl="",this.isNewYear=!1}ngOnInit(){this._initLogoUrl(),this._checkNewYear()}_initLogoUrl(){this.userService.currentSchoolInfo$.pipe((0,o.t)(this)).subscribe(y=>{this.logoUrl="/profile",y&&this.permissionService.hasPermission(["get:dashboard-teacher","get:dashboard"])&&(this.logoUrl="/dashboard")})}_checkNewYear(){const y=new Date>=new Date((new Date).getFullYear(),11,23),j=new Date<=new Date((new Date).getFullYear(),0,21);this.isNewYear=y&&j}}).\u0275fac=function(y){return new(y||F)(T.Y36(A.$),T.Y36(G.KD))},F.\u0275cmp=T.Xpm({type:F,selectors:[["nit-logo"]],decls:6,vars:8,consts:[[1,"logo"],[3,"routerLink"],[3,"alt","src"],["class","garland","data-svg","","type","image/svg+xml","data","./../../../../assets/images/garlands.svg","aria-label","new year garland",4,"ngIf"],["data-svg","","type","image/svg+xml","data",T.$Z9`./../../../../assets/images/garlands.svg`,"aria-label","new year garland",1,"garland"]],template:function(y,j){1&y&&(T.TgZ(0,"div",0)(1,"a",1),T._UZ(2,"img",2),T.ALo(3,"calendarLogo"),T.ALo(4,"calendarLogo"),T.YNc(5,N,1,0,"object",3),T.qZA()()),2&y&&(T.xp6(1),T.Q6J("routerLink",j.logoUrl),T.xp6(1),T.Q6J("alt",T.lcZ(3,4,"logo"))("src",T.lcZ(4,6,"logo"),T.LSH),T.xp6(3),T.Q6J("ngIf",j.isNewYear))},styles:["[_nghost-%COMP%]{position:absolute;z-index:9998;left:22px;top:20px;width:90px;transition:.4s}.logo[_ngcontent-%COMP%]{position:relative}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;max-width:100%;position:absolute;top:0}@media screen and (max-width: 768px){.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute}}.garland[_ngcontent-%COMP%]{position:absolute;top:-18px;left:-18px;z-index:9999;transition:.4s;pointer-events:none;width:120px}@media screen and (max-width: 768px){.garland[_ngcontent-%COMP%]{width:78px;left:-11px;top:-10px}}"]}),F);R=(0,e.gn)([(0,o.c)()],R)},10685:(fn,ve,_)=>{"use strict";_.d(ve,{h:()=>R});var e=_(36895),o=_(5187),T=_(9116),A=_(22570),G=_(18146),F=_(94650),N=_(66875);let R=(()=>{var P;class y{}return(P=y).\u0275fac=function(Y){return new(Y||P)},P.\u0275mod=F.oAB({type:P}),P.\u0275inj=F.cJS({imports:[e.ez,T.Bz,A.r,G.z]}),y})();F.B6R(o.R,[e.O5,T.rH],[N.U])},27287:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>se});var e=_(94650),o=_(52097);function T(he,Se){if(1&he&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&he){const te=e.oxw(3);e.xp6(1),e.hij(" ",te.title," ")}}function A(he,Se){if(1&he&&(e.TgZ(0,"kendo-dialog-titlebar",7),e.YNc(1,T,2,1,"span",8),e.qZA()),2&he){const te=e.oxw(2);e.ekj("simple",te.simple),e.Q6J("title",te.title),e.xp6(1),e.Q6J("ngIf",!te.simple)}}function G(he,Se){if(1&he&&(e.TgZ(0,"p",10),e._uU(1),e.qZA()),2&he){const te=e.oxw(2);e.xp6(1),e.hij(" ",te.subTitle," ")}}function F(he,Se){if(1&he&&e._UZ(0,"img",16),2&he){const te=e.oxw(4);e.Q6J("src",te.submitIconPath,e.LSH)}}function N(he,Se){if(1&he){const te=e.EpF();e.TgZ(0,"nit-button",14),e.NdJ("clicked",function(){e.CHM(te);const q=e.oxw(3);return e.KtG(q.submit())}),e.YNc(1,F,1,1,"img",15),e._uU(2),e.qZA()}if(2&he){const te=e.oxw(3);e.Q6J("type",te.submitBtnType)("isDisabled",te.disableSubmitBtn),e.xp6(1),e.Q6J("ngIf",te.displaySubmitIcon&&te.submitIconPath),e.xp6(1),e.hij(" ",te.submitBtnText," ")}}function R(he,Se){if(1&he){const te=e.EpF();e.TgZ(0,"nit-button",17),e.NdJ("clicked",function(){e.CHM(te);const q=e.oxw(3);return e.KtG(q.cancel())}),e._uU(1),e.qZA()}if(2&he){const te=e.oxw(3);e.xp6(1),e.hij(" ",te.cancelBtnText," ")}}const P=function(he){return{width:he}};function y(he,Se){if(1&he&&(e.TgZ(0,"div",11),e.YNc(1,N,3,4,"nit-button",12),e.YNc(2,R,2,1,"nit-button",13),e.qZA()),2&he){const te=e.oxw(2);e.Q6J("ngStyle",e.VKq(3,P,te.buttonWidth+"px")),e.xp6(1),e.Q6J("ngIf",te.displaySubmitBtn),e.xp6(1),e.Q6J("ngIf",te.displayCancelBtn)}}const j=function(he,Se,te){return[he,Se,te]};function Y(he,Se){if(1&he){const te=e.EpF();e.TgZ(0,"div",1),e.NdJ("closed",function(q){e.CHM(te);const we=e.oxw();return e.KtG(we.close(q))}),e.TgZ(1,"kendo-dialog",2,3),e.NdJ("close",function(q){e.CHM(te);const we=e.oxw();return e.KtG(we.close(q))}),e.YNc(3,A,2,4,"kendo-dialog-titlebar",4),e.YNc(4,G,2,1,"p",5),e.Hsn(5),e.YNc(6,y,3,5,"div",6),e.qZA()()}if(2&he){const te=e.MAs(2),oe=e.oxw();let q;e.Q6J("kendoDialogExtension",te)("isOpened",oe.isOpened)("closeOnEsc",oe.closeOnEsc)("closeOutside",oe.closeOutside),e.xp6(1),e.ekj("dialog",oe.isRegistrationForOlympics),e.Q6J("ngClass",e.kEZ(14,j,"title-align-"+oe.titleAlign,"title-size-"+oe.titleSize,"padding-size-"+oe.paddingSize))("width",oe.width?oe.width:"90%")("height",null!==(q=oe.height)&&void 0!==q?q:"auto")("minHeight",oe.minHeight)("maxWidth",oe.maxWidth),e.xp6(2),e.Q6J("ngIf",oe.simple||oe.title),e.xp6(1),e.Q6J("ngIf",oe.subTitle),e.xp6(2),e.Q6J("ngIf",!oe.isPopup)}}const ee=["*"];let se=(()=>{var he;class Se{constructor(){this.autoFocusedElement="",this.title="",this.subTitle="",this.simple=!1,this.closeOutside=!1,this.buttonWidth=300,this.closeOnEsc=!0,this.displaySubmitBtn=!0,this.displayCancelBtn=!1,this.disableSubmitBtn=!1,this.displaySubmitIcon=!1,this.isRegistrationForOlympics=!1,this.submitBtnText="\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",this.cancelBtnText="\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438",this.titleAlign="center",this.titleSize="large",this.paddingSize="small",this.opened=new e.vpe,this.closed=new e.vpe,this.submited=new e.vpe,this.canceled=new e.vpe,this.isOpened=!1}open(){this.isOpened=!0,this.opened.emit(),document.body.style.overflow="hidden"}close(oe){!(oe instanceof o.nw)&&this.closeOnEsc&&(this.isOpened=!1,this.closed.emit(),document.body.style.overflow="")}cancel(){this.canceled.emit(),document.body.style.overflow=""}submit(){this.submited.emit()}}return(he=Se).\u0275fac=function(oe){return new(oe||he)},he.\u0275cmp=e.Xpm({type:he,selectors:[["nit-modal"]],inputs:{autoFocusedElement:"autoFocusedElement",title:"title",subTitle:"subTitle",simple:"simple",closeOutside:"closeOutside",width:"width",height:"height",minHeight:"minHeight",maxWidth:"maxWidth",buttonWidth:"buttonWidth",isPopup:"isPopup",closeOnEsc:"closeOnEsc",displaySubmitBtn:"displaySubmitBtn",displayCancelBtn:"displayCancelBtn",disableSubmitBtn:"disableSubmitBtn",displaySubmitIcon:"displaySubmitIcon",submitBtnType:"submitBtnType",submitIconPath:"submitIconPath",isRegistrationForOlympics:"isRegistrationForOlympics",submitBtnText:"submitBtnText",cancelBtnText:"cancelBtnText",titleAlign:"titleAlign",titleSize:"titleSize",paddingSize:"paddingSize"},outputs:{opened:"opened",closed:"closed",submited:"submited",canceled:"canceled"},ngContentSelectors:ee,decls:1,vars:1,consts:[["class","modal-window",3,"kendoDialogExtension","isOpened","closeOnEsc","closeOutside","closed",4,"ngIf"],[1,"modal-window",3,"kendoDialogExtension","isOpened","closeOnEsc","closeOutside","closed"],[3,"ngClass","width","height","minHeight","maxWidth","close"],["modal",""],[3,"simple","title",4,"ngIf"],["class","sub-title",4,"ngIf"],["class","button-wrapper",3,"ngStyle",4,"ngIf"],[3,"title"],["class","title","style","padding: 0",4,"ngIf"],[1,"title",2,"padding","0"],[1,"sub-title"],[1,"button-wrapper",3,"ngStyle"],[3,"type","isDisabled","clicked",4,"ngIf"],["type","cancel",3,"clicked",4,"ngIf"],[3,"type","isDisabled","clicked"],["class","icon","alt","submit icon",3,"src",4,"ngIf"],["alt","submit icon",1,"icon",3,"src"],["type","cancel",3,"clicked"]],template:function(oe,q){1&oe&&(e.F$t(),e.YNc(0,Y,7,18,"div",0)),2&oe&&e.Q6J("ngIf",q.isOpened)},styles:[".button-wrapper[_ngcontent-%COMP%]{padding-top:27px;width:300px;max-width:100%;margin-left:auto;margin-right:auto}.icon[_ngcontent-%COMP%]{margin-left:40px;margin-right:15px}.simple[_ngcontent-%COMP%]{display:none;padding:0;line-height:0}.sub-title[_ngcontent-%COMP%]{color:var(--text-body-200, #7F89A7);font-size:16px;text-align:center}.dialog[_ngcontent-%COMP%]{position:absolute}"]}),Se})()},1157:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>R});var e=_(36895),o=_(27287),T=_(52097),A=_(94650);let G=(()=>{var P;class y{constructor(Y,ee){this._el=Y,this._renderer=ee,this.closed=new A.vpe,this._renderer.listen("window","click",se=>{this.isOpened&&!this.closeOutside&&!this.closeOnEsc&&(se.target.closest(".menu")||se.target.closest(".notification"))&&(this.closed.emit(),this.kendoDialogExtension.close.emit())})}ngAfterViewInit(){if(!this.closeOutside){const Y=this._el.nativeElement.getElementsByTagName("div")[0];this._renderer.listen(Y,"click",()=>{this.closed.emit(),this.kendoDialogExtension.close.emit()})}}handelKeyboardEvent(Y){27===Y.keyCode&&!this.closeOnEsc&&this.kendoDialogExtension&&this.kendoDialogExtension.close.emit()}ngOnDestroy(){this.closed.emit(),this.kendoDialogExtension.close.emit()}}return(P=y).\u0275fac=function(Y){return new(Y||P)(A.Y36(A.SBq),A.Y36(A.Qsj))},P.\u0275dir=A.lG2({type:P,selectors:[["","kendoDialogExtension",""]],hostBindings:function(Y,ee){1&Y&&A.NdJ("keydown",function(he){return ee.handelKeyboardEvent(he)},!1,A.evT)},inputs:{kendoDialogExtension:"kendoDialogExtension",closeOutside:"closeOutside",isOpened:"isOpened",closeOnEsc:"closeOnEsc"},outputs:{closed:"closed"}}),y})();var F=_(14972),N=_(94222);let R=(()=>{var P;class y{}return(P=y).\u0275fac=function(Y){return new(Y||P)},P.\u0275mod=A.oAB({type:P}),P.\u0275inj=A.cJS({imports:[e.ez,T.cy,F.Fq]}),y})();A.B6R(o.z,[e.mk,e.O5,e.PC,T.au,T.lw,N.r,G],[])},48693:(fn,ve,_)=>{"use strict";_.d(ve,{d:()=>he});var N,e=_(97582),o=_(94766),T=_(94650),A=_(75745),G=_(9116),F=_(36895);function R(Se,te){1&Se&&(T.ynx(0),T.Hsn(1),T.BQk())}function P(Se,te){1&Se&&T._UZ(0,"img",6)}function y(Se,te){if(1&Se&&T._UZ(0,"img",7),2&Se){const oe=T.oxw(2);T.ekj("small-img","small"===oe.size)}}function j(Se,te){if(1&Se&&T._UZ(0,"div",8),2&Se){const oe=T.oxw(2);T.Tol(oe.thematicEvaluation?"no-data-thematic-add":"no-data-title-add"),T.Q6J("innerHTML",oe.additionalText,T.oJD)}}const Y=function(Se){return{color:Se}};function ee(Se,te){if(1&Se&&(T.ynx(0),T.TgZ(1,"div",1),T.YNc(2,P,1,0,"img",2),T.YNc(3,y,1,2,"img",3),T._UZ(4,"div",4),T.YNc(5,j,1,3,"div",5),T.qZA(),T.BQk()),2&Se){const oe=T.oxw();T.xp6(1),T.ekj("with-arrow",oe.withArrow),T.xp6(1),T.Q6J("ngIf",oe.emptyClass),T.xp6(1),T.Q6J("ngIf",!oe.emptyClass&&!oe.isCallPage),T.xp6(1),T.Tol(oe.thematicEvaluation?"no-data-thematic":"no-data-title"),T.ekj("small-text","small"===oe.size),T.Q6J("ngStyle",T.VKq(11,Y,oe.isCallPage?"var(--white);":"var(--tertiary-300);"))("innerHTML",oe.text,T.oJD),T.xp6(1),T.Q6J("ngIf",oe.additionalText)}}let he=((N=class{constructor(te,oe){this._pendingService=te,this._route=oe,this.size="large",this.spinnerType="first-load",this.emptyClass=!1,this.thematicEvaluation=!1,this.isCallPage=this._route.snapshot.data.isCallPage}ngOnInit(){this.isLoadInProgress=!!this.spinnerMarker,this.spinnerMarker&&(this._subscription=this._pendingService.isLoadInProgress$.pipe((0,o.t)(this)).subscribe(te=>this._handleEvent(te)))}_handleEvent(te){te.event===this.spinnerMarker&&(this.isLoadInProgress=te.inProgress,"first-load"===this.spinnerType&&!te.inProgress&&Promise.resolve(0).then(()=>this._subscription.unsubscribe()))}}).\u0275fac=function(te){return new(te||N)(T.Y36(A.NR),T.Y36(G.gz))},N.\u0275cmp=T.Xpm({type:N,selectors:[["nit-no-data"]],inputs:{text:"text",additionalText:"additionalText",hasData:"hasData",size:"size",withArrow:"withArrow",spinnerType:"spinnerType",spinnerMarker:"spinnerMarker",emptyClass:"emptyClass",thematicEvaluation:"thematicEvaluation"},ngContentSelectors:["*"],decls:2,vars:2,consts:[[4,"ngIf"],[1,"no-data"],["src","/assets/images/class/empty-class.svg","alt","no-data",4,"ngIf"],["src","/assets/images/shared/no-data.svg","alt","no-data",3,"small-img",4,"ngIf"],[3,"ngStyle","innerHTML"],[3,"class","innerHTML",4,"ngIf"],["src","/assets/images/class/empty-class.svg","alt","no-data"],["src","/assets/images/shared/no-data.svg","alt","no-data"],[3,"innerHTML"]],template:function(te,oe){1&te&&(T.F$t(),T.YNc(0,R,2,0,"ng-container",0),T.YNc(1,ee,6,13,"ng-container",0)),2&te&&(T.Q6J("ngIf",oe.hasData&&!oe.isLoadInProgress),T.xp6(1),T.Q6J("ngIf",!oe.hasData&&!oe.isLoadInProgress))},dependencies:[F.O5,F.PC],styles:[".no-data[_ngcontent-%COMP%]{position:relative;padding-top:7px;color:var(--tertiary-300)}.no-data.with-arrow[_ngcontent-%COMP%]:before{content:url(\"data:image/svg+xml,%3Csvg width='98' height='124' viewBox='0 0 98 124' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M97.0001 108C97.0001 108 59.4822 98.1855 42.0005 74.9998C24.8299 52.2267 17.3569 9.99984 17.3569 9.99984' stroke='%23FBDC8E' stroke-width='2' stroke-linejoin='round' stroke-dasharray='5 5'/%3E%3Cpath d='M17.999 0L24.0612 11.25H11.9368L17.999 0Z' fill='%23FBDC8E'/%3E%3C/svg%3E%0A\");left:70px;top:10px;position:absolute}.no-data[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto}.no-data[_ngcontent-%COMP%]   .small-img[_ngcontent-%COMP%]{width:200px;height:150px}.no-data-title[_ngcontent-%COMP%], .no-data-title-add[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:var(--font-size-h2);line-height:40px;margin-top:36px}.no-data-title-add[_ngcontent-%COMP%], .no-data-title-add-add[_ngcontent-%COMP%]{margin-top:0}.no-data-thematic[_ngcontent-%COMP%], .no-data-thematic-add[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:18px;line-height:26px;margin-top:16px}.no-data-thematic-add[_ngcontent-%COMP%], .no-data-thematic-add-add[_ngcontent-%COMP%]{margin-top:0}.no-data[_ngcontent-%COMP%]   .small-text[_ngcontent-%COMP%]{font-size:14px;line-height:22px;font-weight:700;width:60%;margin-left:auto;margin-right:auto}"]}),N);he=(0,e.gn)([(0,o.c)()],he)},50248:(fn,ve,_)=>{"use strict";_.d(ve,{d:()=>T});var e=_(36895),o=_(94650);let T=(()=>{var A;class G{}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({imports:[e.ez]}),G})()},87337:(fn,ve,_)=>{"use strict";_.d(ve,{a:()=>T});var e=_(94023),o=_(94650);let T=(()=>{var A;class G{}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({imports:[e.rw]}),G})()},28503:(fn,ve,_)=>{"use strict";_.d(ve,{q:()=>A});var e=_(36895),o=_(12273),T=_(94650);let A=(()=>{var G;class F{}return(G=F).\u0275fac=function(R){return new(R||G)},G.\u0275mod=T.oAB({type:G}),G.\u0275inj=T.cJS({imports:[e.ez,o.V]}),F})()},40032:(fn,ve,_)=>{"use strict";_.d(ve,{Ct:()=>ee,ME:()=>j,Q9:()=>Se,eL:()=>se,gI:()=>N,gg:()=>Y,go:()=>te,hZ:()=>q,jr:()=>R,ps:()=>oe,qt:()=>y,t_:()=>he,xh:()=>F,z1:()=>e});const e={1:{full:"\u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a",short:"\u041f\u043d"},2:{full:"\u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a",short:"\u0412\u0442"},3:{full:"\u0421\u0435\u0440\u0435\u0434\u0430",short:"\u0421\u0440"},4:{full:"\u0427\u0435\u0442\u0432\u0435\u0440",short:"\u0427\u0442"},5:{full:"\u041f'\u044f\u0442\u043d\u0438\u0446\u044f",short:"\u041f\u0442"},6:{full:"\u0421\u0443\u0431\u043e\u0442\u0430",short:"\u0421\u0431"},0:{full:"\u041d\u0435\u0434\u0456\u043b\u044f",short:"\u041d\u0434"}},F=(Array.from(Array(20).keys()),Array.from(Array(12),(we,ae)=>ae+1)),N=Array.from(Array(12),(we,ae)=>ae+1),R=["\u0410","\u0411","\u0412","\u0413","\u0490","\u0414","\u0415","\u0404","\u0416","\u0417","\u0418","\u0406","\u0407","\u0419","\u041a","\u041b","\u041c","\u041d","\u041e","\u041f","\u0420","\u0421","\u0422","\u0423","\u0424","\u0425","\u0426","\u0427","\u0428","\u0429","\u042e","\u042f"],y=["\u041d\u0434","\u041f\u043d","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"],j=["\u041d\u0435\u0434\u0456\u043b\u044f","\u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041f'\u044f\u0442\u043d\u0438\u0446\u044f","\u0421\u0443\u0431\u043e\u0442\u0430"],Y=["\u0421\u0456\u0447\u0435\u043d\u044c","\u041b\u044e\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u041a\u0432\u0456\u0442\u0435\u043d\u044c","\u0422\u0440\u0430\u0432\u0435\u043d\u044c","\u0427\u0435\u0440\u0432\u0435\u043d\u044c","\u041b\u0438\u043f\u0435\u043d\u044c","\u0421\u0435\u0440\u043f\u0435\u043d\u044c","\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0416\u043e\u0432\u0442\u0435\u043d\u044c","\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043d\u044c"],ee=["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"],se={allowedExtensions:["jpg","pdf","doc","xls","pptx","xlt","xml","xlsm","txt","docx","jpeg","png","xlsx","pptx","pptm","ppt","M4A","FLAC","MP3","MP4","wav","mov","avi","odt","odf"],maxFileSize:52428800},he={allowedExtensions:["jpg","png","jpeg","pdf"],maxFileSize:10485760},Se={allowedExtensions:["jpg","pdf","doc","xls","pptx","xlt","xml","xlsm","txt","docx","jpeg","png","xlsx","mp3","mp4","mov","avi","odt","odf","xsl"],maxFileSize:6291456},te={allowedExtensions:["jpg","pdf","doc","xls","pptx","xlt","xml","xlsm","txt","docx","jpeg","png","xlsx","mp3","mp4","mov","avi","odt","odf"],maxFileSize:15728640},oe={allowedExtensions:["xlt","xlsm","xlsx"],maxFileSize:6291456},q=Y.map((we,ae)=>({index:ae,name:we}))},90318:(fn,ve,_)=>{"use strict";_.d(ve,{$K:()=>te,$N:()=>wn,$g:()=>In,A:()=>G,As:()=>sn,CL:()=>Un,Cs:()=>an,EJ:()=>fi,FW:()=>A,FX:()=>Cn,G1:()=>it,GP:()=>ae,Ho:()=>$e,Ht:()=>ke,IA:()=>Mn,IX:()=>Sn,Im:()=>en,Jj:()=>ln,Kl:()=>Nn,Mj:()=>qn,N5:()=>rn,PC:()=>se,PI:()=>ki,PS:()=>Qt,Q:()=>Ct,RX:()=>Tt,Sp:()=>mn,TS:()=>Oe,Tv:()=>oe,UW:()=>he,Ut:()=>Ye,Vi:()=>Y,Wz:()=>Ot,Z3:()=>Vn,ZY:()=>q,bG:()=>j,cr:()=>Kt,eE:()=>P,eT:()=>Si,f9:()=>y,fC:()=>ut,f_:()=>lt,fb:()=>e,ff:()=>Ee,fp:()=>pi,gw:()=>ze,i4:()=>R,iG:()=>wt,ii:()=>Li,jh:()=>Je,k$:()=>N,kW:()=>Fn,nX:()=>Nt,oK:()=>Zn,ol:()=>yt,oy:()=>we,pk:()=>yi,pl:()=>Ze,qV:()=>An,rw:()=>rt,sO:()=>ht,sQ:()=>Ni,sS:()=>Yn,tk:()=>Ln,uR:()=>F,ue:()=>gi,v8:()=>vt,wj:()=>_n,x6:()=>pn,xL:()=>Pn,xd:()=>ee,y$:()=>Ue,yt:()=>T,zB:()=>xt,zG:()=>Se,z_:()=>It,zc:()=>bi});var e=(()=>{return(U=e||(e={}))[U.ConfirmAccount=0]="ConfirmAccount",U[U.ChangePassword=1]="ChangePassword",U[U.ConfirmEmail=2]="ConfirmEmail",U[U.AddEmail=3]="AddEmail",U[U.ChangeEmail=4]="ChangeEmail",U[U.ChangeNotVerifiedEmail=5]="ChangeNotVerifiedEmail",e;var U})(),T=(()=>{return(U=T||(T={}))[U.Red=0]="Red",U[U.Blue=1]="Blue",U[U.Yellow=2]="Yellow",T;var U})(),A=(()=>{return(U=A||(A={}))[U.Parent=0]="Parent",U[U.Child=1]="Child",U[U.Teacher=2]="Teacher",U[U.Admin=3]="Admin",U[U.NotSorted=4]="NotSorted",A;var U})(),G=(()=>{return(U=G||(G={})).Teacher="teacher",U.Child="student",U.Admin="admin",G;var U})(),F=(()=>{return(U=F||(F={})).Child="student",U.Teacher="teacher",U.Parent="parent",F;var U})(),N=(()=>{return(U=N||(N={}))[U.ParentConnect=0]="ParentConnect",U[U.ChildToSchool=1]="ChildToSchool",U[U.TeacherToSchool=2]="TeacherToSchool",U[U.RejectRequest=4]="RejectRequest",U[U.ApproveRequest=5]="ApproveRequest",U[U.MarkChanges=6]="MarkChanges",U[U.EventNotification=7]="EventNotification",U[U.BriefingJournalConfirmation=8]="BriefingJournalConfirmation",U[U.TeacherReplaced=9]="TeacherReplaced",U[U.JournalRemarkCreated=10]="JournalRemarkCreated",U[U.YearCloseStarted=11]="YearCloseStarted",U[U.YearCloseFinished=12]="YearCloseFinished",U[U.PaymentReminder=13]="PaymentReminder",U[U.GrantedScoreCardAccess=14]="GrantedScoreCardAccess",U[U.JournalMarkCreated=15]="JournalMarkCreated",U[U.PublishedSchedule=16]="PublishedSchedule",U[U.PublishedNews=17]="PublishedNews",U[U.Unknown=1e3]="Unknown",N;var U})(),R=(()=>{return(U=R||(R={})).Any="ANY",U.User="USER",U.Child="CHILD",U.Teacher="TEACHER",U.Director="DIRECTOR",U.Admin="ADMINISTRATOR",U.Support="SUPPORT",R;var U})(),P=(()=>{return(U=P||(P={}))[U.Pending=0]="Pending",U[U.Approval=1]="Approval",U[U.Reject=2]="Reject",U[U.NotConfirmed=3]="NotConfirmed",P;var U})(),y=(()=>{return(U=y||(y={}))[U.OneTime=0]="OneTime",U[U.Monthly=1]="Monthly",y;var U})(),j=(()=>{return(U=j||(j={}))[U.Unpaid=0]="Unpaid",U[U.Paid=1]="Paid",U[U.Reject=2]="Reject",U[U.Processing=3]="Processing",U[U.Error=4]="Error",j;var U})(),Y=(()=>{return(U=Y||(Y={}))[U.AddRating=0]="AddRating",U[U.EditRating=1]="EditRating",U[U.RemoveRating=2]="RemoveRating",U[U.AddPresence=3]="AddPresence",U[U.RemovePresence=4]="RemovePresence",Y;var U})(),ee=(()=>{return(U=ee||(ee={}))[U.Child=0]="Child",U[U.School=1]="School",U[U.Teacher=2]="Teacher",U[U.Mark=4]="Mark",U[U.Payment=5]="Payment",ee;var U})(),se=(()=>{return(U=se||(se={})).Materials="materials",U.Users="users",U.Mark="mark",U.Payment="payment",se;var U})(),he=(()=>{return(U=he||(he={}))[U.Auth=0]="Auth",U[U.Api=1]="Api",U[U.Maintenance=2]="Maintenance",he;var U})(),Se=(()=>{return(U=Se||(Se={}))[U.Day=0]="Day",U[U.Thematic=1]="Thematic",U[U.Semester=2]="Semester",U[U.Year=3]="Year",U[U.Custom=4]="Custom",U[U.SemesterChanged=6]="SemesterChanged",U[U.DPA=8]="DPA",U[U.AverageMarkSemester=9]="AverageMarkSemester",U[U.YearChanged=10]="YearChanged",U[U.AverageMarkThematic=11]="AverageMarkThematic",U[U.AverageMarkYear=12]="AverageMarkYear",U[U.CustomSemester=13]="CustomSemester",U[U.CustomYear=14]="CustomYear",U[U.CustomSemesterChanged=15]="CustomSemesterChanged",U[U.CustomYearChanged=16]="CustomYearChanged",U[U.LearningOutcome=17]="LearningOutcome",Se;var U})(),te=(()=>{return(U=te||(te={}))[U.Male=0]="Male",U[U.Female=1]="Female",U[U.Other=2]="Other",te;var U})(),oe=(()=>{return(U=oe||(oe={})).Pdf="pdf",U.Xlsx="xlsx",oe;var U})(),q=(()=>{return(U=q||(q={}))[U.School=0]="School",U[U.Lyceum=1]="Lyceum",U[U.Gymnasium=2]="Gymnasium",U[U.PrimarySchool=3]="PrimarySchool",U[U.SupportInstitution=4]="SupportInstitution",q;var U})(),we=(()=>{return(U=we||(we={}))[U.Governmental=0]="Governmental",U[U.Private=1]="Private",U[U.Communal=2]="Communal",we;var U})(),ae=(()=>{return(U=ae||(ae={}))[U.Director=0]="Director",U[U.Secretary=1]="Secretary",U[U.TeacherOrganizer=2]="TeacherOrganizer",U[U.Psychologist=3]="Psychologist",U[U.Assistant1=4]="Assistant1",U[U.Assistant2=5]="Assistant2",U[U.Assistant3=6]="Assistant3",U[U.Assistant4=7]="Assistant4",U[U.Assistant5=8]="Assistant5",U[U.Assistant6=9]="Assistant6",ae;var U})(),Q=(()=>{return(U=Q||(Q={}))[U.AddedRating=0]="AddedRating",U[U.Edit=1]="Edit",U[U.DeletedRating=2]="DeletedRating",U[U.AddedAbsent=3]="AddedAbsent",U[U.DeletedAbsent=4]="DeletedAbsent",U[U.AddedComment=5]="AddedComment",U[U.DeletedComment=6]="DeletedComment",U[U.DeletedWithJournal=7]="DeletedWithJournal",Q;var U})(),Ee=(()=>{return(U=Ee||(Ee={})).Media="media",U.Whiteboards="whiteboards",U.Classes="classes",U.Rooms="rooms",U.Messages_v2="messages_v2",U.Notification="mute-notifications",U.Pinnes="pinnes",U.Saves="saves",U.RoomMember="room-member",U.Files="files",U.Join="join",U.Channels="channels",Ee;var U})(),ke=(()=>{return(U=ke||(ke={})).CallStarted="media created",U.CallEnded="media removed",U.CallDeclined="media declined",U.WhiteboardsOpen="whiteboards created",U.WhiteboardsRemove="whiteboards removed",U.WhiteboardsPatched="whiteboards patched",U.MessageReceived_v2="subscriptions_v2 patched",U.Created="created",U.Removed="removed",U.Patched="patched",U.notificationsMuteRemoved="mute-notifications removed",U.notificationsMuteCreate="mute-notifications created",U.pinnesCreate="pinnes created",U.pinnesRemove="pinnes removed",U.roomsRemove="rooms removed",U.roomsCreated="rooms created",U.roomsPatched="rooms patched",U.roomsLastMessage="rooms lastMessage",U.channelsLastMessage="channels lastMessage",U.messages_v2Created="messages_v2 created",U.messages_v2Read="messages_v2 read",U.messages_v2Patched="messages_v2 patched",U.UserStatusOnline="user-status online",U.UserStatusOffline="user-status offline",U.SavesCreated="saves created",U.Messages_v2Removed="messages_v2 removed",U.LeaveRoom="rooms leave",ke;var U})(),Ye=(()=>{return(U=Ye||(Ye={}))[U.Region=0]="Region",U[U.City=1]="City",U[U.Street=2]="Street",Ye;var U})();const ut=[{value:0,text:"\u0437\u0432."},{value:1,text:"\u043d/\u0430"},{value:2,text:"\u0437\u0430\u0440\u0430\u0445."},{value:3,text:"\u0432\u0438\u0432\u0447."},{value:4,text:"\u043d/\u043e"},{value:5,text:"\u043d\u0435\n\u0437\u0430\u0440\u0430\u0445."}];var Ct=(()=>{return(U=Ct||(Ct={}))[U.Practice=0]="Practice",U[U.Excursions=1]="Excursions",Ct;var U})(),Ue=(()=>{return(U=Ue||(Ue={})).Or="or",U.And="and",Ue;var U})(),vt=(()=>{return(U=vt||(vt={})).Contains="contains",U.DoesNotContain="doesnotcontain",U.Eq="eq",U.Neq="neq",U.IsNull="isnull",U.IsNotNull="isnotnull",U.Gte="gte",U.Gt="gt",U.Lte="lte",U.Lt="lt",U.IsEmpty="isempty",U.IsNotEmpty="isnotempty",U.StartsWith="startswith",U.DoesNotStartWith="doesnotstartwith",U.EndsWith="endswith",U.DoesNotEndWith="doesnotendwith",U.In="in",U.NotIn="notin",U.InAsObject="inasobject",U.NotInAsObject="notinasobject",U.AnyEq="anyeq",vt;var U})(),ln=(()=>{return(U=ln||(ln={})).Asc="asc",U.Desc="desc",ln;var U})(),Je=(()=>{return(U=Je||(Je={}))[U.Absent=0]="Absent",U[U.Sick=1]="Sick",Je;var U})(),Ze=(()=>{return(U=Ze||(Ze={}))[U.Done=0]="Done",U[U.PartialDone=1]="PartialDone",U[U.NotDone=2]="NotDone",Ze;var U})();const $e=[{name:"\u041d\u043e\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430",changeType:Q.AddedRating},{name:"\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u043e\u0446\u0456\u043d\u043a\u0438",changeType:Q.Edit},{name:"\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u043e\u0446\u0456\u043d\u043a\u0438",changeType:Q.DeletedRating},{name:'\u041d\u043e\u0432\u0430 "\u041d"',changeType:Q.AddedAbsent},{name:'\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f "\u041d"',changeType:Q.DeletedAbsent},{name:"\u041d\u043e\u0432\u0438\u0439 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440",changeType:Q.AddedComment},{name:"\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f",changeType:Q.DeletedComment},{name:"\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043e \u0437 \u0436\u0443\u0440\u043d\u0430\u043b\u043e\u043c",changeType:Q.DeletedWithJournal}],Oe=[{name:"\u041f\u043e\u0442\u043e\u0447\u043d\u0430",columnType:Se.Day},{name:"\u0422\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0430",columnType:Se.Thematic},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430",columnType:Se.Semester},{name:"\u0420\u0456\u0447\u043d\u0430",columnType:Se.Year},{name:"\u041e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.Custom},{name:"",columnType:""},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430",columnType:Se.SemesterChanged},{name:"",columnType:""},{name:"\u0414\u041f\u0410",columnType:Se.DPA},{name:"",columnType:""},{name:"\u0420\u0456\u0447\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430",columnType:Se.YearChanged},{name:"",columnType:""},{name:"",columnType:""},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomSemester},{name:"\u0420\u0456\u0447\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomYear},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomSemesterChanged},{name:"\u0420\u0456\u0447\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomYearChanged},{name:"\u041a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0446\u0456\u044f",columnType:Se.LearningOutcome}],Nt=[{name:"\u041f\u043e\u0442\u043e\u0447\u043d\u0430",columnType:Se.Day},{name:"\u0422\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0430",columnType:Se.Thematic},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430",columnType:Se.Semester},{name:"\u0420\u0456\u0447\u043d\u0430",columnType:Se.Year},{name:"\u041e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.Custom},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430",columnType:Se.SemesterChanged},{name:"\u0414\u041f\u0410",columnType:Se.DPA},{name:"\u0420\u0456\u0447\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430",columnType:Se.YearChanged},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomSemester},{name:"\u0420\u0456\u0447\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomYear},{name:"\u0421\u0435\u043c\u0435\u0441\u0442\u0440\u043e\u0432\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomSemesterChanged},{name:"\u0420\u0456\u0447\u043d\u0430 \u0441\u043a\u043e\u0440\u0438\u0433\u043e\u0432\u0430\u043d\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e",columnType:Se.CustomYearChanged},{name:"\u041a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0446\u0456\u044f",columnType:Se.LearningOutcome}];var xt=(()=>{return(U=xt||(xt={}))[U.Ready=0]="Ready",U[U.InProgress=1]="InProgress",U[U.Error=2]="Error",xt;var U})(),Ot=(()=>{return(U=Ot||(Ot={}))[U.Pdf=0]="Pdf",U[U.Xlsx=1]="Xlsx",Ot;var U})();const Kt=[{name:"\u041e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u043e \u0434\u043e \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f",RemarkAction:0},{name:"\u041e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u043e \u0434\u043e \u043e\u0437\u043d\u0430\u0439\u043e\u043c\u043b\u0435\u043d\u043d\u044f",RemarkAction:1}];var rt=(()=>{return(U=rt||(rt={}))[U.Dropped=0]="Dropped",U[U.SecondYear=1]="SecondYear",U[U.Graduated=2]="Graduated",rt;var U})(),yt=(()=>{return(U=yt||(yt={}))[U.Elementary=0]="Elementary",U[U.Medium=1]="Medium",U[U.Sufficient=2]="Sufficient",U[U.High=3]="High",yt;var U})();const it=[{value:yt.Elementary,text:"\u041f"},{value:yt.Medium,text:"\u0421"},{value:yt.Sufficient,text:"\u0414"},{value:yt.High,text:"\u0412"}];var It=(()=>{return(U=It||(It={})).Private="private",U.Direct="direct",U.Default="default",It;var U})(),Tt=(()=>{return(U=Tt||(Tt={})).Reply="reply",U.Forward="forward",U.Pin="pin",U.unPin="unpin",U.Edit="edit",U.Save="save",U.Delete="delete",U.Move="move",Tt;var U})(),wn=(()=>{return(U=wn||(wn={})).Reply="\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0441\u0442\u0438",U.Forward="\u041f\u0435\u0440\u0435\u0441\u043b\u0430\u0442\u0438",U.Pin="\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438",U.unPin="\u0412\u0456\u0434\u043a\u0440\u0456\u043f\u0438\u0442\u0438",U.Edit="\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",U.Save="\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",U.Delete="\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",U.DeleteSave="\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0437\u0456 \u0417\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043e\u0433\u043e",U.MoveToMessage="\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043e \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f",wn;var U})(),Nn=(()=>{return(U=Nn||(Nn={}))[U.Default=0]="Default",U[U.Custom=1]="Custom",Nn;var U})(),an=(()=>{return(U=an||(an={}))[U.First=1]="First",U[U.Second=2]="Second",an;var U})(),sn=(()=>{return(U=sn||(sn={})).Asc="asc",U.Desc="desc",sn;var U})(),_n=(()=>{return(U=_n||(_n={}))[U.Initial=0]="Initial",U[U.ForFiles=1]="ForFiles",U[U.ForNit=2]="ForNit",_n;var U})(),Ln=(()=>{return(U=Ln||(Ln={}))[U.Ready=0]="Ready",U[U.InProgress=1]="InProgress",U[U.Error=2]="Error",Ln;var U})(),Mn=(()=>{return(U=Mn||(Mn={}))[U.None=0]="None",U[U.Family=1]="Family",U[U.PedagogicalPatronage=2]="PedagogicalPatronage",U[U.Externship=3]="Externship",U[U.Remote=4]="Remote",Mn;var U})();const pi=[{type:Mn.None,text:"\u0411\u0435\u0437 \u0444\u043e\u0440\u043c\u0438"},{type:Mn.Family,text:"\u0421\u0456\u043c\u0435\u0439\u043d\u0430"},{type:Mn.PedagogicalPatronage,text:"\u041f\u0435\u0434\u0430\u0433\u043e\u0433\u0456\u0447\u043d\u0438\u0439 \u043f\u0430\u0442\u0440\u043e\u043d\u0430\u0436"},{type:Mn.Externship,text:"\u0415\u043a\u0441\u0442\u0435\u0440\u043d\u0430\u0442"},{type:Mn.Remote,text:"\u0414\u0438\u0441\u0442\u0430\u043d\u0446\u0456\u0439\u043d\u0430"}],Yn=[{type:Mn.None,text:""},{type:Mn.Family,text:"\u0421\u0456\u043c\u0435\u0439\u043d\u0430"},{type:Mn.PedagogicalPatronage,text:"\u041f\u0435\u0434\u0430\u0433\u043e\u0433\u0456\u0447\u043d\u0438\u0439 \u043f\u0430\u0442\u0440\u043e\u043d\u0430\u0436"},{type:Mn.Externship,text:"\u0415\u043a\u0441\u0442\u0435\u0440\u043d\u0430\u0442"},{type:Mn.Remote,text:"\u0414\u0438\u0441\u0442\u0430\u043d\u0446\u0456\u0439\u043d\u0430"}];var gi=(()=>{return(U=gi||(gi={}))[U.Weekly=0]="Weekly",U[U.Numerator=1]="Numerator",U[U.Denominator=2]="Denominator",gi;var U})(),qn=(()=>{return(U=qn||(qn={}))[U.Saved=0]="Saved",U[U.Modified=1]="Modified",qn;var U})(),ki=(()=>{return(U=ki||(ki={})).Admin="admin",U.ClassTeacher="class-teacher",U.Teacher="teacher",U.Parent="parent",U.Child="child",ki;var U})(),Si=(()=>{return(U=Si||(Si={})).AddVacancy="\u0414\u043e\u0434\u0430\u0442\u0438 \u0432\u0430\u043a\u0430\u043d\u0441\u0456\u044e",U.CopyDraft="\u0421\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u043d\u0435\u0442\u043a\u0443",U.CopyDraftToSecondSemester="\u0421\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u043d\u0435\u0442\u043a\u0443 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0439 \u0441\u0435\u043c\u0435\u0441\u0442\u0440",U.EditDraft="\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0447\u0435\u0440\u043d\u0435\u0442\u043a\u0438",U.DeleteDraft="\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0447\u0435\u0440\u043d\u0435\u0442\u043a\u0443",U.Download="\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438",Si;var U})(),Ni=(()=>{return(U=Ni||(Ni={})).AddVacancy="add-vacancy",U.CopyDraft="copy-draft",U.CopyDraftToSecondSemester="copy-draft-to-second-semester",U.EditDraft="edit-draft",U.DeleteDraft="delete-draft",U.Download="download",Ni;var U})(),pn=(()=>{return(U=pn||(pn={})).Edit="edit",U.Delete="delete",pn;var U})(),Vn=(()=>{return(U=Vn||(Vn={}))[U.oneFormOfStudy=0]="oneFormOfStudy",U[U.allFormsOfStudy=1]="allFormsOfStudy",Vn;var U})(),ot=(()=>{return(U=ot||(ot={})).Teacher="\u0432\u0447\u0438\u0442\u0435\u043b\u044c",U.Vacancy="\u0432\u0430\u043a\u0430\u043d\u0441\u0456\u044f",ot;var U})(),en=(()=>{return(U=en||(en={})).Teacher="teacher",U.Vacancy="vacancy",en;var U})();const lt=[{name:ot.Teacher,value:en.Teacher},{name:ot.Vacancy,value:en.Vacancy}];var In=(()=>{return(U=In||(In={}))[U.Show=0]="Show",U[U.Hide=1]="Hide",In;var U})(),rn=(()=>{return(U=rn||(rn={}))[U.Create=0]="Create",U[U.Delete=1]="Delete",rn;var U})(),Qt=(()=>{return(U=Qt||(Qt={}))[U.Orphan=0]="Orphan",U[U.WithDisability=1]="WithDisability",U[U.LargeFamily=2]="LargeFamily",U[U.LowIncomeFamily=3]="LowIncomeFamily",U[U.SufferedNaturalDisasterAccidentCatastrophe=4]="SufferedNaturalDisasterAccidentCatastrophe",U[U.SufferedChernobylDisaster=5]="SufferedChernobylDisaster",U[U.ParentsDiedAccidentsAtWorkDuringOfficialDuties=6]="ParentsDiedAccidentsAtWorkDuringOfficialDuties",U[U.RegisteredAtDispensary=7]="RegisteredAtDispensary",U[U.HomelessAndNeglected=8]="HomelessAndNeglected",U[U.AgroIndustrialWorkers=9]="AgroIndustrialWorkers",U[U.InternallyDisplacedPerson=10]="InternallyDisplacedPerson",U[U.ATOParticipant=11]="ATOParticipant",U[U.ServicemanDiedATO=12]="ServicemanDiedATO",U[U.DiedInCivilProtest=13]="DiedInCivilProtest",U[U.Talented=14]="Talented",U[U.AdoptedFamilyTypeOrphanage=15]="AdoptedFamilyTypeOrphanage",U[U.ChildrenServices=16]="ChildrenServices",U[U.ChildOfCombatant=17]="ChildOfCombatant",Qt;var U})();const yi=[{type:Qt.Orphan,text:"\u0414\u0438\u0442\u0438\u043d\u0430-\u0441\u0438\u0440\u043e\u0442\u0430, \u0434\u0438\u0442\u0438\u043d\u0430, \u043f\u043e\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0431\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0456\u043a\u043b\u0443\u0432\u0430\u043d\u043d\u044f"},{type:Qt.WithDisability,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0437 \u0456\u043d\u0432\u0430\u043b\u0456\u0434\u043d\u0456\u0441\u0442\u044e (\u0437\u0434\u0430\u0442\u043d\u0430 \u0434\u043e \u0441\u0430\u043c\u043e\u043e\u0431\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0432\u0430\u043d\u043d\u044f)"},{type:Qt.LargeFamily,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0437 \u0431\u0430\u0433\u0430\u0442\u043e\u0434\u0456\u0442\u043d\u043e\u0457 \u0441\u0456\u043c'\u0457"},{type:Qt.LowIncomeFamily,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0437 \u043c\u0430\u043b\u043e\u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043e\u0457 \u0441\u0456\u043c'\u0457"},{type:Qt.SufferedNaturalDisasterAccidentCatastrophe,text:"\u0414\u0438\u0442\u0438\u043d\u0430, \u044f\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u0430\u0436\u0434\u0430\u043b\u0430 \u0432\u043d\u0430\u0441\u043b\u0456\u0434\u043e\u043a \u0441\u0442\u0438\u0445\u0456\u0439\u043d\u043e\u0433\u043e \u043b\u0438\u0445\u0430, \u0442\u0435\u0445\u043d\u043e\u0433\u0435\u043d\u043d\u0438\u0439 \u0430\u0432\u0430\u0440\u0456\u0439, \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444"},{type:Qt.SufferedChernobylDisaster,text:"\u0414\u0438\u0442\u0438\u043d\u0430, \u043f\u043e\u0441\u0442\u0440\u0430\u0436\u0434\u0430\u043b\u0430 \u0432\u043d\u0430\u0441\u043b\u0456\u0434\u043e\u043a \u0427\u043e\u0440\u043d\u043e\u0431\u0438\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0438"},{type:Qt.ParentsDiedAccidentsAtWorkDuringOfficialDuties,text:"\u0414\u0438\u0442\u0438\u043d\u0430, \u0431\u0430\u0442\u044c\u043a\u0438 \u044f\u043a\u043e\u0457 \u0437\u0430\u0433\u0438\u043d\u0443\u043b\u0438 \u0432\u0456\u0434 \u043d\u0435\u0449\u0430\u0441\u043d\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0456\u0432 \u043d\u0430 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u0456 \u0430\u0431\u043e \u043f\u0456\u0434 \u0447\u0430\u0441 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0441\u043b\u0443\u0436\u0431\u043e\u0432\u0438\u0445 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u0456\u0432"},{type:Qt.RegisteredAtDispensary,text:"\u0414\u0438\u0442\u0438\u043d\u0430, \u044f\u043a\u0430 \u043f\u0435\u0440\u0435\u0431\u0443\u0432\u0430\u0454 \u043d\u0430 \u0434\u0438\u0441\u043f\u0430\u043d\u0441\u0435\u0440\u043d\u043e\u043c\u0443 \u043e\u0431\u043b\u0456\u043a\u0443"},{type:Qt.HomelessAndNeglected,text:"\u0411\u0435\u0437\u043f\u0440\u0438\u0442\u0443\u043b\u044c\u043d\u0430 \u0442\u0430 \u0431\u0435\u0437\u0434\u043e\u0433\u043b\u044f\u0434\u043d\u0430 \u0434\u0438\u0442\u0438\u043d\u0430"},{type:Qt.AgroIndustrialWorkers,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u043f\u0440\u0430\u0446\u0456\u0432\u043d\u0438\u043a\u0456\u0432 \u0430\u0433\u0440\u043e\u043f\u0440\u043e\u043c\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u0443 \u0442\u0430 \u0441\u043e\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u0457 \u0441\u0444\u0435\u0440\u0438 \u0441\u0435\u043b\u0430"},{type:Qt.InternallyDisplacedPerson,text:"\u0414\u0438\u0442\u0438\u043d\u0430, \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u043e\u0432\u0430\u043d\u0430 \u044f\u043a \u0432\u043d\u0443\u0442\u0440\u0456\u0448\u043d\u044c\u043e \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0435\u043d\u0430 \u043e\u0441\u043e\u0431\u0430"},{type:Qt.ATOParticipant,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0443\u0447\u0430\u0441\u043d\u0438\u043a\u0430 \u0410\u0422\u041e (\u0443\u0447\u0430\u0441\u043d\u0438\u043a\u0430 \u0431\u043e\u0439\u043e\u0432\u0438\u0445 \u0434\u0456\u0439)"},{type:Qt.ServicemanDiedATO,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0432\u043e\u0441\u043b\u0443\u0436\u0431\u043e\u0432\u0446\u044f, \u044f\u043a\u0438\u0439 \u0437\u0430\u0433\u0438\u043d\u0443\u0432 \u0443 \u0440\u0430\u0439\u043e\u043d\u0456 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0410\u0422\u041e"},{type:Qt.DiedInCivilProtest,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0437\u0430\u0433\u0438\u0431\u043b\u043e\u0433\u043e \u0443\u0447\u0430\u0441\u043d\u0438\u043a\u0430 \u043c\u0430\u0441\u043e\u0432\u0438\u0445 \u0430\u043a\u0446\u0456\u0439 \u0433\u0440\u043e\u043c\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0443"},{type:Qt.Talented,text:"\u0422\u0430\u043b\u0430\u043d\u043e\u0432\u0438\u0442\u0456 \u0442\u0430 \u043e\u0431\u0434\u0430\u0440\u043e\u0432\u0430\u043d\u0456 \u0434\u0456\u0442\u0438"},{type:Qt.AdoptedFamilyTypeOrphanage,text:"\u0420\u0456\u0434\u043d\u0456 \u0434\u0456\u0442\u0438 \u0431\u0430\u0442\u044c\u043a\u0456\u0432 \u0432\u0438\u0445\u043e\u0432\u0430\u0442\u0435\u043b\u0456\u0432, \u0430\u0431\u043e \u043f\u0440\u0438\u0439\u043e\u043c\u043d\u0438\u0445 \u0431\u0430\u0442\u044c\u043a\u0456\u0432, \u044f\u043a\u0456 \u043f\u0440\u043e\u0436\u0438\u0432\u0430\u044e\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c\u0443 \u0434\u0438\u0442\u044f\u0447\u043e\u043c\u0443 \u0431\u0443\u0434\u0438\u043d\u043a\u0443 \u0441\u0456\u043c\u0435\u0439\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u0430\u0431\u043e \u0432 \u043e\u0434\u043d\u0456\u0439 \u043f\u0440\u0438\u0439\u043e\u043c\u043d\u0456\u0439 \u0441\u0456\u043c'\u0457"},{type:Qt.ChildrenServices,text:"\u0414\u0456\u0442\u0438, \u0432\u0437\u044f\u0442\u0456 \u043d\u0430 \u043e\u0431\u043b\u0456\u043a \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438 \u0443 \u0441\u043f\u0440\u0430\u0432\u0430\u0445 \u0434\u0456\u0442\u0435\u0439, \u044f\u043a \u0442\u0430\u043a\u0456, \u044f\u043a\u0456 \u043f\u0435\u0440\u0435\u0431\u0443\u0432\u0430\u044e\u0442\u044c \u0443 \u0441\u043a\u043b\u0430\u0434\u043d\u0438\u0445 \u0436\u0438\u0442\u0442\u0454\u0432\u0438\u0445 \u043e\u0431\u0441\u0442\u0430\u0432\u0438\u043d\u0430\u0445 (\u0421\u0416\u041e)"},{type:Qt.ChildOfCombatant,text:"\u0414\u0438\u0442\u0438\u043d\u0430 \u0443\u0447\u0430\u0441\u043d\u0438\u043a\u0430 \u0431\u043e\u0439\u043e\u0432\u0438\u0445 \u0434\u0456\u0439"}],Li=["\u0427\u0438 \u0432\u0456\u0434\u0447\u0443\u0432\u0430\u044e \u044f \u0441\u0435\u0431\u0435 \u0432 \u0431\u0435\u0437\u043f\u0435\u0446\u0456, \u043a\u043e\u043b\u0438 \u0443 \u043a\u043b\u0430\u0441\u0456 \u0454 \u0432\u0447\u0438\u0442\u0435\u043b\u044c/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430?","\u0427\u0438 \u0446\u0456\u043a\u0430\u0432\u043e \u043c\u0435\u043d\u0456 \u043d\u0430 \u0443\u0440\u043e\u0446\u0456?","\u0427\u0438 \u043c\u0430\u044e \u044f \u0432\u0456\u043b\u044c\u043d\u0438\u0439 \u0447\u0430\u0441 \u043d\u0430 \u0443\u0440\u043e\u0446\u0456?","\u0427\u0438 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u043f\u0440\u0438 \u0437\u0443\u0441\u0442\u0440\u0456\u0447\u0456 \u0437\u0456 \u043c\u043d\u043e\u044e?","\u0427\u0438 \u043f\u043e\u044f\u0441\u043d\u044e\u0454 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u043a\u043b\u044e\u0447\u043e\u0432\u0456 \u043f\u043e\u043d\u044f\u0442\u0442\u044f \u0442\u0430\u043a, \u0449\u043e \u044f \u0446\u0435 \u0440\u043e\u0437\u0443\u043c\u0456\u044e \u0456 \u043c\u043e\u0436\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438?","\u042f \u0440\u043e\u0437\u0443\u043c\u0456\u044e \u043c\u0435\u0442\u0443 \u0456 \u0446\u0456\u043b\u0456 \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u043a\u0443 \u0456 \u044f\u043a\u0430 \u043c\u043e\u044f \u0440\u043e\u043b\u044c \u043d\u0430 \u0443\u0440\u043e\u0446\u0456.","\u0427\u0438 \u0437\u0430\u043e\u0445\u043e\u0447\u0443\u0454 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u0434\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u0456\u0439\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0435\u043d\u043d\u044f \u043c\u043d\u043e\u044e \u043f\u0435\u0432\u043d\u043e\u0457 \u0442\u0435\u043c\u0438 \u0447\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u043e?","\u0427\u0438 \u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0454 \u0443 \u043c\u0435\u043d\u0435 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u0437\u0430\u0446\u0456\u043a\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0434\u043e \u0441\u0432\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0443?","\u0427\u0438 \u0437\u0430\u0446\u0456\u043a\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0441\u0430\u043c \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u0443 \u0441\u0432\u043e\u0454\u043c\u0443 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0456?","\u0412\u0447\u0438\u0442\u0435\u043b\u044c/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u043a\u0430\u0436\u0435, \u0449\u043e \u0446\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e - \u0440\u043e\u0431\u0438\u0442\u0438 \u043f\u043e\u043c\u0438\u043b\u043a\u0438.","\u042f\u043a\u0449\u043e \u044f \u0437\u0440\u043e\u0431\u0438\u0432/\u0437\u0440\u043e\u0431\u0438\u043b\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0443, \u0442\u043e \u044f \u0437\u0430\u0432\u0436\u0434\u0438 \u043c\u043e\u0436\u0443 \u043f\u0456\u0434\u0456\u0439\u0442\u0438 \u0434\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438 \u0442\u0430 \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044c, \u044f\u043a \u0457\u0457 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438","\u0412\u0447\u0438\u0442\u0435\u043b\u044c/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043f\u0440\u0438\u0434\u0456\u043b\u044f\u0454 \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u0447\u0430\u0441\u0443 \u043c\u0435\u043d\u0456, \u0449\u043e\u0431 \u043f\u043e\u044f\u0441\u043d\u0438\u0442\u0438 \u0447\u043e\u043c\u0443 \u044f \u043f\u043e\u043c\u0438\u043b\u0438\u0432\u0441\u044f/\u043f\u043e\u043c\u0438\u043b\u0438\u043b\u0430\u0441\u044f \u0456 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u043c\u0456\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441","\u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u043e \u043e\u0446\u0456\u043d\u044e\u0454 \u0437\u0443\u0441\u0438\u043b\u043b\u044f, \u044f\u043a\u0456 \u044f \u0434\u043e\u043a\u043b\u0430\u0434\u0430\u044e \u0434\u043e \u0432\u0438\u0432\u0447\u0435\u043d\u043d\u044f \u0442\u0435\u043c\u0438/\u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0443.","\u0427\u0438 \u0454 \u0434\u043e\u043c\u0430\u0448\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f, \u044f\u043a\u0456 \u044f \u043e\u0442\u0440\u0438\u043c\u0443\u044e \u0432\u0456\u0434 \u0443\u0447\u0438\u0442\u0435\u043b\u044f/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438 \u043f\u043e\u0441\u0438\u043b\u044c\u043d\u0438\u043c\u0438 \u0442\u0430 \u0446\u0456\u043a\u0430\u0432\u0438\u043c\u0438?","\u0427\u0438 \u0437\u0430\u043b\u0443\u0447\u0430\u0454 \u043c\u0435\u043d\u0435 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430 \u0434\u043e \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0435\u043d\u044c/\u043f\u0440\u043e\u0454\u043a\u0442\u0456\u0432/\u043d\u0435\u0437\u0432\u0438\u0447\u043d\u0438\u0445 \u043f\u0456\u0434\u0445\u043e\u0434\u0456\u0432 \u0434\u043e \u0440\u043e\u0431\u043e\u0442\u0438 \u043f\u0456\u0434 \u0447\u0430\u0441 \u0432\u0438\u0432\u0447\u0435\u043d\u043d\u044f \u043f\u0435\u0432\u043d\u043e\u0457 \u0442\u0435\u043c\u0438?","\u041a\u043e\u043b\u0438 \u0443 \u043c\u0435\u043d\u0435 \u0432\u0438\u043d\u0438\u043a\u0430\u044e\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0438 \u0430\u0431\u043e \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0449\u043e\u0434\u043e \u0443\u0440\u043e\u043a\u0443 \u0447\u0438 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0443, \u044f \u0437\u0430\u0432\u0436\u0434\u0438 \u043c\u043e\u0436\u0443 \u0437\u0432\u0435\u0440\u043d\u0443\u0442\u0438\u0441\u044c \u0434\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438 \u0437\u0430 \u043f\u043e\u0440\u0430\u0434\u043e\u044e \u0447\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u043e\u044e.","\u0427\u0438 \u0437\u0432\u0435\u0440\u0442\u0430\u044e\u0441\u044c \u044f \u0437\u0430 \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0456\u0454\u044e \u0434\u043e \u0443\u0447\u0438\u0442\u0435\u043b\u044f/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438 \u043d\u0430 \u0431\u0443\u0434\u044c-\u044f\u043a\u0443 \u0442\u0435\u043c\u0443?","\u042f \u0432\u0456\u0434\u0447\u0443\u0432\u0430\u044e, \u0449\u043e \u0434\u043e \u043c\u0435\u043d\u0435 \u0432\u0456\u0434\u043d\u043e\u0441\u044f\u0442\u044c\u0441\u044f \u044f\u043a \u0434\u043e \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u043e\u0441\u0442\u0456.","\u041d\u0430 \u0443\u0440\u043e\u0446\u0456 \u0446\u044c\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438 \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043f\u0430\u043d\u0443\u0454 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u0430 \u0430\u0442\u043c\u043e\u0441\u0444\u0435\u0440\u0430.","\u042f \u0454 \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u043c/\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u044e \u043d\u0430 \u0443\u0440\u043e\u0446\u0456 \u0446\u044c\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438.","\u041d\u0430 \u0443\u0440\u043e\u043a\u0430\u0445 \u044f \u0432\u0456\u0434\u0447\u0443\u0432\u0430\u044e, \u0449\u043e \u043c\u0438 \u0432\u0430\u0436\u043b\u0438\u0432\u0456.","\u042f \u0432\u0456\u0434\u0447\u0443\u0432\u0430\u044e, \u0449\u043e \u043c\u0438 \u0437 \u0443\u0447\u0438\u0442\u0435\u043b\u0435\u043c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u043e\u044e \u0440\u0430\u0434\u0448\u0435 \u043f\u0430\u0440\u0442\u043d\u0435\u0440\u0438 \u0456 \u0434\u0440\u0443\u0437\u0456, \u0430\u043d\u0456\u0436 \xab\u0433\u043e\u043b\u043e\u0432\u043d\u0438\u0439\xbb \u0456 \xab\u043f\u0456\u0434\u043b\u0435\u0433\u043b\u0438\u0439\xbb.","\u0427\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0432/\u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u043b\u0430 \u044f \u043f\u0456\u0441\u043b\u044f \u0441\u043f\u0456\u043b\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0437 \u0443\u0447\u0438\u0442\u0435\u043b\u0435\u043c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u043e\u044e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u044f\u043a\u0456 \u0432 \u043a\u0456\u043d\u0446\u0435\u0432\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u043c\u0435\u043d\u0456 \u043a\u0440\u0430\u0449\u0435 \u043d\u0430\u0432\u0447\u0430\u0442\u0438\u0441\u044f/\u0441\u0442\u0430\u0442\u0438 \u0431\u0456\u043b\u044c\u0448 \u0443\u0441\u043f\u0456\u0448\u043d\u0438\u043c/\u0443\u0441\u043f\u0456\u0448\u043d\u043e\u044e \u0437 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430, \u044f\u043a\u0438\u0439 \u0432\u0438\u043a\u043b\u0430\u0434\u0430\u0454 \u0443\u0447\u0438\u0442\u0435\u043b\u044c/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0430?","\u042f \u0432\u0447\u0443\u0441\u044c \u0431\u0430\u0433\u0430\u0442\u043e \u0432 \u0443\u0447\u0438\u0442\u0435\u043b\u044f/\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438. \u0412\u0456\u043d/\u0432\u043e\u043d\u0430 \u0454 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043e\u043c \u043b\u0456\u0434\u0435\u0440\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u0435.","\u041c\u0435\u043d\u0456 \u0445\u043e\u0447\u0435\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0438 \u043d\u0430 \u0443\u0440\u043e\u043a\u0438 \u0434\u043e \u0446\u044c\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f/\u0432\u0447\u0438\u0442\u0435\u043b\u044c\u043a\u0438."],An=["\u041d\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f","\u0420\u0430\u0434\u0448\u0435 \u043d\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044c","\u041d\u0435 \u043c\u043e\u0436\u0443 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438\u0441\u044c","\u0420\u0430\u0434\u0448\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044c","\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044c"],Pn=[{type:0,text:"1-\u0439 \u0434\u0435\u043d\u044c \u043c\u0456\u0441\u044f\u0446\u044f"},{type:1,text:"15-\u0439 \u0434\u0435\u043d\u044c \u043c\u0456\u0441\u044f\u0446\u044f"},{type:2,text:"30-\u0439 \u0434\u0435\u043d\u044c \u043c\u0456\u0441\u044f\u0446\u044f"}];var Sn=(()=>{return(U=Sn||(Sn={}))[U.Once=0]="Once",U[U.Monthly=1]="Monthly",Sn;var U})(),Fn=(()=>{return(U=Fn||(Fn={}))[U.Director=0]="Director",U[U.DeputyDirectorOfEducationalWork=1]="DeputyDirectorOfEducationalWork",U[U.DeputyOfEducationalPedagogicWork=2]="DeputyOfEducationalPedagogicWork",U[U.DeputyOfForeignLanguages=3]="DeputyOfForeignLanguages",U[U.DeputyOfPrimaryClasses=4]="DeputyOfPrimaryClasses",U[U.DeputyOfPedagogicWork=5]="DeputyOfPedagogicWork",U[U.DeputyOfEducationalWork=6]="DeputyOfEducationalWork",U[U.Teacher=7]="Teacher",U[U.PrimarySchoolTeacher=8]="PrimarySchoolTeacher",U[U.TeacherAssistant=9]="TeacherAssistant",U[U.PedagogueOrganizator=10]="PedagogueOrganizator",U[U.PracticalPsychologist=11]="PracticalPsychologist",U[U.SocialPedagogue=12]="SocialPedagogue",U[U.HeadOfGroup=13]="HeadOfGroup",U[U.MasterOfIndustrialTraining=14]="MasterOfIndustrialTraining",U[U.Educator=15]="Educator",U[U.EducatorAssistant=16]="EducatorAssistant",U[U.HeadOfSpeechTherapyCenter=17]="HeadOfSpeechTherapyCenter",U[U.SpeechTherapistTeacher=18]="SpeechTherapistTeacher",U[U.SpeechTherapistTeacherAssistant=19]="SpeechTherapistTeacherAssistant",U[U.DefectologistTeacher=20]="DefectologistTeacher",U[U.AssistantOfDefectologistTeacher=21]="AssistantOfDefectologistTeacher",U[U.MusicDirector=22]="MusicDirector",U[U.PhysicalEducationInstructor=23]="PhysicalEducationInstructor",U[U.DeputyDirectorEconomicWork=24]="DeputyDirectorEconomicWork",U[U.HeadOfLibrary=25]="HeadOfLibrary",U[U.Librarian=26]="Librarian",U[U.LaboratoryAssistant=27]="LaboratoryAssistant",U[U.Secretary=28]="Secretary",Fn;var U})(),Cn=(()=>{return(U=Cn||(Cn={}))[U.Teacher=0]="Teacher",U[U.TeacherOfPrimaryClasses=1]="TeacherOfPrimaryClasses",U[U.AssistantTeacher=2]="AssistantTeacher",Cn;var U})(),Un=(()=>{return(U=Un||(Un={})).Paid="payed",U.NotPaid="not-payed",U.Pending="pending",Un;var U})(),fi=(()=>{return(U=fi||(fi={}))[U.Main=0]="Main",U[U.Preparation=1]="Preparation",U[U.Special=2]="Special",fi;var U})(),bi=(()=>{return(U=bi||(bi={}))[U.Text=0]="Text",U[U.Video=1]="Video",U[U.Audio=2]="Audio",U[U.Materials=3]="Materials",U[U.Questions=4]="Questions",U[U.Image=5]="Image",bi;var U})(),Zn=(()=>{return(U=Zn||(Zn={}))[U.Single=0]="Single",U[U.Multiple=1]="Multiple",Zn;var U})(),mn=(()=>{return(U=mn||(mn={})).UnconfirmedSettings="\u041d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0430\u043a\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438 \u043d\u0435\u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f",U.ActivePayments="\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u043e\u043f\u043b\u0430\u0442\u0438",mn;var U})(),ze=(()=>{return(U=ze||(ze={}))[U.Teacher=0]="Teacher",U[U.ChildAndParent=1]="ChildAndParent",ze;var U})(),wt=(()=>{return(U=wt||(wt={}))[U.None=0]="None",U[U.NewInNitRequiresEmail=3]="NewInNitRequiresEmail",U[U.AmbiguousSchoolUser=4]="AmbiguousSchoolUser",U[U.AmbiguousNitUser=5]="AmbiguousNitUser",U[U.Differ=6]="Differ",U[U.AssignToSchool=8]="AssignToSchool",U[U.ChildInOtherSchool=10]="ChildInOtherSchool",wt;var U})(),ht=(()=>{return(U=ht||(ht={}))[U.Skip=0]="Skip",U[U.SetEmail=1]="SetEmail",U[U.AddToSchool=2]="AddToSchool",U[U.DifferNitPriority=3]="DifferNitPriority",U[U.DifferAikomPriority=4]="DifferAikomPriority",U[U.SelectUser=5]="SelectUser",ht;var U})()},76483:()=>{Array.prototype.naturalSort=function fn(ve){return this.sort((_,e)=>{const o=ve?_[ve]:_,T=ve?e[ve]:e;return"number"==typeof o&&"number"==typeof T||o instanceof Date&&T instanceof Date?o-T:o.localeCompare(T,void 0,{numeric:!0,sensitivity:"base"})}),this}},10586:()=>{String.prototype.trimSymbol=function fn(ve,_="both"){let e=0,o=this.length;if("right"!==_)for(;e<o&&this[e]===ve;)++e;if("left"!==_)for(;o>e&&this[o-1]===ve;)--o;return e>0||o<this.length?this.substring(e,o):this}},84979:(fn,ve,_)=>{"use strict";_.d(ve,{k:()=>e});class e{static setInjector(T){e._injector=T}static getInjector(){return e._injector}}},34919:(fn,ve,_)=>{"use strict";_.d(ve,{Ed:()=>P,Fr:()=>Y,OL:()=>Se,P9:()=>oe,Pp:()=>he,Sv:()=>R,TU:()=>F,VQ:()=>ee,Yo:()=>j,ef:()=>se,en:()=>te,ns:()=>q,xs:()=>G});var e=_(72781);function G(we,ae){return e(we,ae)}_(40032);const F=(we,ae)=>{const Q=[];for(const pe=new Date(we);pe<=new Date(ae);pe.setDate(pe.getDate()+1))Q.push(new Date(pe));return Q};function R(we,ae){const Q=y(we);Q.download=ae,Q.click(),document.body.removeChild(Q)}function P(we){const ae=y(we);ae.target="_blank",ae.click(),document.body.removeChild(ae)}function y(we){const ae=document.createElement("a");ae.style.display="none",document.body.appendChild(ae);const Q=URL.createObjectURL(we);return ae.href=Q,ae}function j(we){return we.split("T")[0].split("-")}function Y(we){return`${we.getFullYear()}-${we.getMonth()+1}-${we.getDate()}`}function ee(we,ae,Q){return`${ae||""} ${we?we?.slice(0,1)+". ":""}${Q?Q?.slice(0,1)+". ":""}`}function se(we){if(!we)return"";const ae=we?.split(" ");return`${ae[0]} ${ae[1].charAt(0)}.${ae[2]?ae[2].charAt(0):""}`}function he(we,ae,Q){return`${ae||""} ${we} ${Q}`}function Se(we,ae){const Q=parseInt(we.name.match(/\d+/)[0]),pe=parseInt(ae.name.match(/\d+/)[0]);return Q===pe?we.name.localeCompare(ae.name):Q-pe}function te(we,ae,Q){return we.map(pe=>{const Ee={};return ae.forEach(ke=>{const Ye=Q[ke.userId]?.includes(pe.id);Ye&&(Ee[ke.userId]=Ye)}),{...pe,blurredForStudents:Ee}})}function oe(we){return new Date(we.setHours(0,0,0,0))}function q(we){if(!we)return null;const ae=new Date(we);return 3600*ae.getHours()+60*ae.getMinutes()+ae.getSeconds()}},17503:(fn,ve,_)=>{"use strict";_.d(ve,{j:()=>e,v:()=>o});class e{constructor(A={}){Object.assign(this,A)}}var o=(()=>{return(T=o||(o={}))[T.ClassTeacher=0]="ClassTeacher",T[T.Parent=1]="Parent",o;var T})()},89839:(fn,ve,_)=>{"use strict";_.d(ve,{DG:()=>G,Dg:()=>j,HU:()=>N,Tf:()=>F,VU:()=>P});var e=_(9885),T=(_(88607),_(57458)),A=_(95069);class G{constructor(se={}){Object.assign(this,se),this.marks=se.marks?se.marks.map(he=>new e.vc(he)):[],this.practiceJournalDays=se.practiceJournalDays?se.practiceJournalDays.map(he=>new T.kE(he)):[],this.userBlockedJournalDays=se.userBlockedJournalDays?se.userBlockedJournalDays.map(he=>new e.hi(he)):[],this.activeDay=se.activeDay?new Date(se.activeDay):null}}class F{constructor(se={}){Object.assign(this,se),this.lastRecordDate=se.lastRecordDate?new Date(se.lastRecordDate):null}}class N{constructor(se={}){Object.assign(this,se),this.date=se.date?new Date(se.date):null,this.userChecks=se.userChecks?se.userChecks.map(he=>new R(he)):null,this.attachment=se.attachment?new A.tt(se.attachment):null}}class R{constructor(se={}){Object.assign(this,se),this.date=se.date?new Date(se.date):null}}class P{constructor(se={}){Object.assign(this,se)}}var j=(()=>{return(ee=j||(j={})).Create="create",ee.Edit="edit",j;var ee})()},69039:(fn,ve,_)=>{"use strict";_.d(ve,{V:()=>e});class e{constructor(T={}){Object.assign(this,T),this.day=T.day?new Date(T.day):null,this.date=T.date?new Date(T.date):null}}},73330:(fn,ve,_)=>{"use strict";_.d(ve,{hc:()=>T});class T{constructor(F={}){Object.assign(this,F),this.shortName=F.fullName?.slice(0,1)?.toUpperCase()+F.fullName?.split(" ")[1]?.slice(0,1)?.toUpperCase()||F?.fullName?.slice(1,2)?.toUpperCase(),this.nameAcronyms=F?.lastName?.slice(0,1)+F?.firstName?.slice(0,1)}}},31260:(fn,ve,_)=>{"use strict";_.d(ve,{VY:()=>o,_o:()=>e,qV:()=>G});class e{constructor(N={}){this.groupsStudents=[],Object.assign(this,N)}}class o{constructor(N={}){this.students=[],Object.assign(this,N)}}class A{constructor(N={}){Object.assign(this,N)}}class G{constructor(N={}){Object.assign(this,N),this.pairs=N.pairs?N.pairs.map(R=>new A(R)):[]}}},22855:(fn,ve,_)=>{"use strict";_.d(ve,{Cb:()=>o,Lg:()=>A,sZ:()=>T});var e=_(48593);class o{constructor(N={}){Object.assign(this,N),this.attachments=N.attachments?N.attachments.map(R=>new T(R)):void 0,this.groupAttachments=N.groupAttachments?N.groupAttachments.map(R=>new A(R)):void 0,this.teachers=N.teachers?N.teachers.map(R=>new G(R)):[]}setTeacher(N){this.teacher=this.teachers.find(R=>R.id===N)}}class T{constructor(N={}){Object.assign(this,N)}}class A{constructor(N={}){Object.assign(this,N),this.attachments=N.attachments?N.attachments.map(R=>new T(R)):void 0,this.teacher=N.teacher?new G(N.teacher):void 0,this.teachers=N.teachers?N.teachers.map(R=>new G(R)):[]}}class G extends e.n{constructor(N={}){super(N),Object.assign(this,N)}}},23166:(fn,ve,_)=>{"use strict";_.d(ve,{J$:()=>N,i_:()=>G,pm:()=>y,wT:()=>e});class e{constructor(Y={}){Object.assign(this,Y),this.fullName=`${this.number}-${this.letter}`,this.groups=Y.groups?Object.keys(Y.groups).reduce((ee,se)=>(ee[se]=Y.groups[se]?.map(he=>new T(he)),ee),{}):void 0,this.classTeacher=Y.classTeacher?new A(Y.classTeacher):void 0}}class T{constructor(Y={}){Object.assign(this,Y)}}class A{constructor(Y={}){Object.assign(this,Y)}}class G{constructor(Y={}){Object.assign(this,Y),this.acceptanceDate=Y?.acceptanceDate?new Date(Y.acceptanceDate):null}}class N{constructor(Y={}){Object.assign(this,Y)}}class y{constructor(Y={}){Object.assign(this,Y)}}},95471:(fn,ve,_)=>{"use strict";_.d(ve,{H:()=>o});var e=_(90318);class o{constructor(A=0,G=20,F=[],N={logic:e.y$.And,filters:[]}){this._defaults={skip:0,take:20,sort:[],filter:{logic:e.y$.And,filters:[]}},this.skip=A,this._defaults.skip=A,this.take=G,this._defaults.take=G,this.sort=F,this._defaults.sort=F,this.filter=N,this._defaults.filter=N}get query(){const A={};this.take&&(A.take=this.take),this.skip&&(A.skip=this.skip),A["filter[logic]"]=this.filter.logic?this.filter.logic:e.y$.And;const G=[...this.filter?.filters??[]];if(this.filter.filters){const F="filter[filters]";G.forEach((N,R)=>{A[`${F}[${R}][field]`]=N.field,A[`${F}[${R}][operator]`]=N.operator,A[`${F}[${R}][value]`]=N.value instanceof Date?N.operator===e.v8.Lte?new Date(N.value.setHours(23,59,59)).toJSON():new Date(N.value.setHours(0,0,0)).toJSON():N.value})}if(this.sort){const F="sort";this.sort.forEach((N,R)=>{N.dir&&(A[`${F}[${R}][field]`]=N.field,A[`${F}[${R}][dir]`]=N.dir)})}return A}pushSorts(A){this.sort=this.sort.concat(A).filter((G,F,N)=>F===N.findIndex(R=>R.field===G.field))}popSorts(A){if("string"==typeof A)this.sort=this.sort.filter(G=>G.field!==A);else{const G=A;this.sort=this.sort.filter(F=>!G.find(N=>F.field===N))}}changeFilterLogic(A){this.filter.logic=A}pushFilters(A){let G=[];Array.isArray(A)?G=A:G.push(A),G.forEach(F=>{const N=this.filter.filters.findIndex(R=>R.field===F.field&&R.operator===F.operator);-1===N?this.filter.filters.push(F):this.filter.filters[N]=F})}changeTake(A){this.take=A}popFilters(A){if("string"==typeof A)this.filter.filters=this.filter.filters.filter(G=>G.field!==A);else{const G=Array.isArray(A);if(G&&A.every(F=>"string"==typeof F)){const F=A;this.filter.filters=this.filter.filters.filter(N=>!F.find(R=>N.field===R))}else if(G&&A.every(F=>"object"==typeof F)){const F=A;this.filter.filters=this.filter.filters.filter(N=>!F.find(R=>R.field===N.field&&R.operator===N.operator&&R.value===N.value))}else{const F=A;this.filter.filters=this.filter.filters.filter(N=>N.field!==F.field&&N.operator!==F.operator&&N.value!==F.value)}}}clear(){this.skip=0,this.take=20,this.sort=[],this.filter={logic:e.y$.And,filters:[]}}reset(){this.skip=this._defaults.skip,this.take=this._defaults.take,this.sort=this._defaults.sort,this.filter=this._defaults.filter}}},48593:(fn,ve,_)=>{"use strict";_.d(ve,{n:()=>o});var e=_(34919);class o{constructor(A={}){Object.assign(this,A),this.shortName=(0,e.VQ)(A.firstName,A.lastName,A.middleName)}}},26394:(fn,ve,_)=>{"use strict";_.d(ve,{V:()=>e});class e{constructor(A={}){Object.assign(this,A)}}},8016:(fn,ve,_)=>{"use strict";_.d(ve,{ZA:()=>T});var e=_(16036),o=_(42476);class T{constructor(R={}){Object.assign(this,R),this.totalFinalMark=R.totalFinalMark?new o.p(R.totalFinalMark):void 0,this.leaveDate=R.leaveDate?new Date(R.leaveDate):void 0,this.leaveDetails=R.leaveDetails?new e.bV(R.leaveDetails):void 0}}},13299:(fn,ve,_)=>{"use strict";_.d(ve,{Eb:()=>T});var e=_(9885),o=_(22855);class T{constructor(R={}){Object.assign(this,R),this.subjects=R.subjects?R.subjects.map(P=>new A(P)):[],this.date=R.date?new Date(R.date):void 0,this.dayOffFrom=R.dayOffFrom?new Date(R.dayOffFrom):void 0,this.dayOffTo=R.dayOffTo?new Date(R.dayOffTo):void 0}}class A{constructor(R={}){Object.assign(this,R),this.number=null!==R.number?+R.number:void 0,this.marks=R.marks?R.marks.map(P=>new e.vc(P)):[],this.homeworkAttachments=R.homeworkAttachments?R.homeworkAttachments.map(P=>new o.sZ(P)):[],this.urls=R.urls?R.urls.map(P=>new F(P)):[]}}class F{constructor(R={}){Object.assign(this,R)}}},9849:(fn,ve,_)=>{"use strict";_.d(ve,{a:()=>o});var e=_(22855);class o{constructor(A={}){Object.assign(this,A),this.day=A.day?new Date(A.day):null,this.homeworkAttachments=A.homeworkAttachments?A.homeworkAttachments.map(G=>new e.sZ(G)):[]}}},70706:(fn,ve,_)=>{"use strict";_.d(ve,{Jm:()=>o,wj:()=>N,wn:()=>A,xQ:()=>F}),_(9849);class o{constructor(y={}){Object.assign(this,y),this.subjects=y.subjects?y.subjects.map(j=>new F(j)):null}}class A{constructor(y={}){Object.assign(this,y)}}class F{constructor(y={}){Object.assign(this,y),this.groups=y.groups?this.groups.map(j=>new N(j)):[]}}class N{constructor(y={}){Object.assign(this,y)}}},29357:(fn,ve,_)=>{"use strict";_.d(ve,{AH:()=>T,Eo:()=>N,W1:()=>F,Xn:()=>R});var e=_(22855),o=_(70706);class T{constructor(Y={}){Object.assign(this,Y),this.date=Y?.date?new Date(Y.date):null,this.attachments=Y.attachments?Y.attachments.map(ee=>new e.sZ(ee)):[]}}class F{constructor(Y={}){Object.assign(this,Y),this.date=Y?.date?new Date(Y.date):null,this.homeworkAttachments=Y.homeworkAttachments?Y.homeworkAttachments.map(ee=>new e.sZ(ee)):[]}}class N{constructor(Y={}){Object.assign(this,Y),this.classes=Y?.classes?Y.classes.map(ee=>new R(ee)):[],this.subjects=Y?.subjects?Y.subjects.map(ee=>new P(ee)):[],this.basicClasses=Y?.basicClasses?.data?Y.basicClasses.data.map(ee=>new o.Jm(ee)):[],this.groups=Y?.groups?Y.groups.map(ee=>new y(ee)):[]}}class R{constructor(Y={}){Object.assign(this,Y)}}class P{constructor(Y={}){Object.assign(this,Y),this.groups=Y?.groups?this.groups.map(ee=>new o.wj(ee)):null}}class y{constructor(Y={}){Object.assign(this,Y)}}},16036:(fn,ve,_)=>{"use strict";_.d(ve,{Rf:()=>Se,tx:()=>R,i_:()=>e.i_,GX:()=>j.GX,J:()=>Nt,wT:()=>e.wT,_o:()=>o._o,Cb:()=>T.Cb,jS:()=>j.jS,tX:()=>Ht,T0:()=>an,Ne:()=>Ln,ed:()=>oe,Os:()=>q,OI:()=>we,ZA:()=>Kt.ZA,Vq:()=>$e,aL:()=>G.a,_J:()=>te,Lg:()=>T.Lg,VY:()=>o.VY,t3:()=>F.t3,zG:()=>ae.zG,kE:()=>Q.kE,XZ:()=>it,c5:()=>ln,vc:()=>F.vc,ie:()=>Ct,_$:()=>Ft,s6:()=>Ue,AD:()=>Ee.AD,u:()=>vt,M1:()=>wn,NZ:()=>j.NZ,o6:()=>y.o6,cf:()=>Y.cf,JB:()=>Qt,Hr:()=>yt.t3,W2:()=>ee.W2,PL:()=>ee.PL,EM:()=>j.EM,ND:()=>ct,Bt:()=>ee.Bt,$R:()=>ut.$R,di:()=>j.di,bV:()=>he.bV,tG:()=>We.tG});var e=_(23166),o=_(31260),T=_(22855),G=(_(13299),_(9849)),F=_(9885);class R{constructor(Sn={}){Object.assign(this,Sn)}}var y=_(25363),j=_(32220),Y=_(66016),ee=_(25006),he=(_(13038),_(15523));class Se{constructor(Sn,Fn){Sn.data&&Array.isArray(Sn.data)&&(this.data=Sn.data.map(Cn=>new Fn(Cn))),this.total=Sn.total,Sn.firstFreePlanDate&&(this.firstFreePlanDate=Sn.firstFreePlanDate),Sn.firstFreeNumberOfLesson&&(this.firstFreeNumberOfLesson=Sn.firstFreeNumberOfLesson),Sn.ucheckedHomeworkCount&&(this.ucheckedHomeworkCount=Sn.ucheckedHomeworkCount)}}class te{constructor(Sn={}){this.fields={},this.general=[],Sn.fields&&Object.keys(Sn.fields).forEach(Fn=>{this.fields[Fn[0].toLowerCase()+Fn.slice(1)]=Sn.fields[Fn]}),Sn.general&&this.general.push(...Sn.general)}}class oe{constructor(Sn={}){Object.assign(this,Sn)}}class q{constructor(Sn={}){Object.assign(this,Sn)}}class we{constructor(Sn={}){Object.assign(this,Sn)}}var ae=_(90318),Q=_(57458),Ee=(_(34919),_(92331));class ct{constructor(Sn={}){Object.assign(this,Sn)}}var ut=_(88607);class Ct{constructor(Sn={}){Object.assign(this,Sn),this.subjects=Sn.subjects?.length?Sn.subjects.map(Fn=>new vt(Fn)):[],this.domains=Sn.domains?.length?Sn.domains.map(Fn=>new Ue(Fn)):[],this.classNumbers=Sn.classNumbers?.length?[...Sn.classNumbers]:[]}}class Ue{constructor(Sn={}){Object.assign(this,Sn),this.subjects=Sn.subjects?.length?Sn.subjects.map(Fn=>new vt(Fn)):[],this.learningOutcomes=Sn.learningOutcomes?.length?Sn.learningOutcomes.map(Fn=>new ln(Fn)):[]}}class vt{constructor(Sn={}){Object.assign(this,Sn),this.learningOutcomes=Sn.learningOutcomes?.length?Sn.learningOutcomes.map(Fn=>new ln(Fn)):[]}}class ln{constructor(Sn={}){Object.assign(this,Sn)}}class Ft{constructor(Sn={}){Object.assign(this,Sn),this.parallelClasses=Sn.parallelClasses.length?Sn.parallelClasses.map(Fn=>new st(Fn)):[]}}class st{constructor(Sn={}){Object.assign(this,Sn)}}var Ze=_(73330);class $e{constructor(Sn={}){Object.assign(this,Sn),this.initials=this.name?this._getInitials(this.name):"",this.pinned=new xt(Sn.pinned?Sn.pinned:{})}_getInitials(Sn){const Fn=Sn?.split(" ");return Fn?.length>1?(Fn[0][0]+Fn[Fn.length-1][0]).toUpperCase():Fn[0].slice(0,2)}}class Nt{constructor(Sn={}){Object.assign(this,Sn),this.createdAt=Sn.createdAt?new Date(Sn.createdAt):null,this.updatedAt=Sn.updatedAt?new Date(Sn.updatedAt):null,this.user=Sn.user?new Ze.hc(Sn.user):null}}class xt{constructor(Sn={}){Object.assign(this,Sn),this.createdAt=Sn.createdAt?new Date(Sn.createdAt):null}}var Kt=_(8016),We=(_(93428),_(43428),_(5157)),yt=_(80105);class it{constructor(Sn={}){Object.assign(this,Sn),this.from=Sn.from?new Date(Sn.from):null,this.to=Sn.to?new Date(Sn.to):null,this.createdAt=Sn.createdAt?new Date(Sn.createdAt):null,this.modifiedDays=Sn.modifiedDays?.length?Sn.modifiedDays.map(Fn=>new It(Fn)):[]}}class It{constructor(Sn={}){Object.assign(this,Sn),this.date=Sn.date?new Date(Sn.date):null}}_(76346);class wn{constructor(Sn={}){Object.assign(this,Sn)}}class an{constructor(Sn={}){this.visible=!0,Object.assign(this,Sn)}}class Ln{constructor(Sn={}){this.isCollapsed=!0,Object.assign(this,Sn),this.availableFrom=Sn.availableFrom?new Date(Sn.availableFrom):null,this.content=Sn.content?.length?Sn.content.map(Fn=>Fn.questions?new Yn(Fn):new Mn(Fn)):[]}}class Mn{constructor(Sn={}){Object.assign(this,Sn),this.items=Sn?.items?.length?Sn.items.map(Fn=>new pi(Fn)):[]}}class pi{constructor(Sn={}){Object.assign(this,Sn)}}class Yn{constructor(Sn={}){Object.assign(this,Sn),this.questions=Sn.questions?.length?Sn.questions.map(Fn=>new gi(Fn)):[]}}class gi{constructor(Sn={}){Object.assign(this,Sn),this.answers=Sn.answers?.length?Sn.answers.map(Fn=>new qn(Fn)):[]}}class qn{constructor(Sn={}){Object.assign(this,Sn)}}class Qt{constructor(Sn={}){Object.assign(this,Sn),this.testResult=Sn.testResult?new yi(Sn.testResult):null}}class yi{constructor(Sn={}){Object.assign(this,Sn)}}class Ht{constructor(Sn={}){Object.assign(this,Sn)}}},57458:(fn,ve,_)=>{"use strict";_.d(ve,{Pc:()=>N,kE:()=>o});var e=_(9885);class o{constructor(P={}){Object.assign(this,P),this.date=P?.date?new Date(P.date):null,this.averageMarkSettings=P?.averageMarkSettings?new e.uS(P.averageMarkSettings):null}}class N{constructor(P={}){Object.assign(this,P)}}},95187:(fn,ve,_)=>{"use strict";_.d(ve,{M:()=>o,f:()=>T});var e=_(23166);class o{constructor(G={}){this.finalDate=G.finalDate?new Date(G.finalDate):null,this.teachers=G.teachers?G.teachers.map(F=>new e.J$(F)):[],this.teacherIds=G.teacherIds?[...G.teacherIds]:[],Object.assign(this,G)}}class T{constructor(G={}){this.teachers=G.teachers?G.teachers.map(F=>new e.J$(F)):[],Object.assign(this,G)}}},9885:(fn,ve,_)=>{"use strict";_.d(ve,{Il:()=>P,hi:()=>y,t3:()=>T,uS:()=>F,vc:()=>A});var e=_(57458),o=_(23166);class T{constructor(te={}){Object.assign(this,te),this.marks=te.marks?te.marks.map(oe=>new A(oe)):[],this.journalDay=te.journalDay?te.journalDay.map(oe=>new e.kE(oe)):[],this.teachers=te.teachers?te.teachers.map(oe=>new o.J$(oe)):[],this.activeDay=te.activeDay?new Date(te.activeDay):null,this.currentDay=te.currentDay?new Date(te.currentDay):null,this.allJournalDates=te.allJournalDates?te.allJournalDates.map(oe=>new Date(oe)):[],this.userBlockedJournalDays=te.userBlockedJournalDays?te.userBlockedJournalDays.map(oe=>new y(oe)):[],this.userAverageMark=te.userAverageMark?te.userAverageMark.map(oe=>new N(oe)):[],this.absenceReminders=te.absenceReminders?te.absenceReminders.map(oe=>new se(oe)):[],this.teachers=te.teachers?te.teachers.map(oe=>new o.J$(oe)):[],this.displayName=te.classGroupId?te.classNumber+"-"+te.classLetter+" \u0433\u0440."+te.classGroupName:te.classNumber+"-"+te.classLetter}}class A{constructor(te={}){this.customMark=null,this.absense=null,this.isBlockedForChanging=!1,Object.assign(this,te),this.day=te?.day?new Date(te.day):null,this.isShow=!1}}class F{constructor(te={}){Object.assign(this,te),this.from=te?.from?new Date(te.from):null,this.to=te?.to?new Date(te.to):null}}class N{constructor(te={}){Object.assign(this,te)}}class P{constructor(te={}){Object.assign(this,te),this.teachers=te.teachers?te.teachers.map(oe=>new o.J$(oe)):[]}}class y{constructor(te={}){Object.assign(this,te)}}class se{constructor(te={}){Object.assign(this,te)}}},47063:(fn,ve,_)=>{"use strict";_.d(ve,{WJ:()=>se,b4:()=>j,Pj:()=>A,wA:()=>Se});class e{constructor(oe={}){Object.assign(this,oe)}}class o{constructor(oe={}){Object.assign(this,oe)}}var T=_(70706);class A{constructor(oe={}){Object.assign(this,oe),this.newMark=oe.newMark?new F(oe.newMark):null,this.oldMark=oe.oldMark?new F(oe.oldMark):null,this.createdAt=oe.createdAt?new Date(oe.createdAt):null,this.day=oe.day?new Date(oe.day):null}}class F{constructor(oe={}){Object.assign(this,oe)}}class N{constructor(oe={}){Object.assign(this,oe)}}class P{constructor(oe={}){Object.assign(this,oe)}}class y{constructor(oe={}){Object.assign(this,oe)}}class j{constructor(oe={}){Object.assign(this,oe),this.teachers=oe.teachers?oe.teachers.map(q=>new P(q)):[],this.subjects=oe.subjects?oe.subjects.map(q=>new N(q)):[],this.currentCreatedAtSemesterMonths=oe.currentSemesterMonths?oe.currentSemesterMonths.map(q=>new e(q)):[],this.students=oe.students?oe.students.map(q=>new y(q)):[]}}class Y{constructor(oe={}){Object.assign(this,oe)}}class ee{constructor(oe={}){Object.assign(this,oe)}}class se{constructor(oe={}){Object.assign(this,oe)}}class he{constructor(oe={}){Object.assign(this,oe)}}class Se{constructor(oe={}){Object.assign(this,oe),this.teachers=oe.teachers?oe.teachers.map(q=>new he(q)):[],this.subjects=oe.subjects?oe.subjects.map(q=>new T.xQ(q)):[],this.groups=oe.groups?oe.groups.map(q=>new ee(q)):[],this.status=oe.status?oe.status.map(q=>new Y(q)):[],this.classes=oe.classes?oe.classes.map(q=>new se(q)):[],this.classesBasicData=oe.classesBasicData?oe.classesBasicData.map(q=>new T.Jm(q)):[],this.currentCreatedAtSemesterMonths=oe.currentCreatedAtSemesterMonths?oe.currentCreatedAtSemesterMonths.map(q=>new e(q)):[],this.currentFinalDateSemesterMouths=oe.currentFinalDateSemesterMouths?oe.currentFinalDateSemesterMouths.map(q=>new o(q)):[]}}},87492:(fn,ve,_)=>{"use strict";_.d(ve,{hO:()=>T,mX:()=>e});class e{constructor(N={}){Object.assign(this,N),this.firstSemester=N.firstSemester?new A(N.firstSemester):null,this.secondSemester=N.secondSemester?new A(N.secondSemester):null,this.classIds=N.classIds?[...N.classIds]:[],this.studyDays=N.studyDays?[...N.studyDays]:[],this.lessons=N.lessons?N.lessons.map(R=>new o(R)):[],this.lastPublish=N.lastPublish?new Date(N.lastPublish):null,this.lastPublishFrom=N.lastPublishFrom?new Date(N.lastPublishFrom):null,this.lastPublishTo=N.lastPublishTo?new Date(N.lastPublishTo):null}}class o{constructor(N={}){Object.assign(this,N),this.from=N.from?new Date(N.from):null,this.to=N.to?new Date(N.to):null}}class T{constructor(N={}){Object.assign(this,N)}}class A{constructor(N={}){Object.assign(this,N)}}},25363:(fn,ve,_)=>{"use strict";_.d(ve,{eH:()=>o,o6:()=>e});class e{constructor(G={}){Object.assign(this,G),this.createdAt=G.createdAt?new Date(G.createdAt):void 0,this.data=G.data?new T(G.data):null}}class o{constructor(G={}){Object.assign(this,G),this.createdAt=G.createdAt?new Date(G.createdAt):null}}class T{constructor(G={}){Object.assign(this,G)}}},93428:(fn,ve,_)=>{"use strict";_.d(ve,{NX:()=>o,qX:()=>F});var e=_(8016);class o extends e.ZA{constructor(P={}){super(P),Object.assign(this,P),P.rule&&(this.rule=new T(P.rule))}}class T{constructor(P={}){Object.assign(this,P),P.certificate&&(this.certificate=new A(P.certificate))}}class A{constructor(P={}){Object.assign(this,P),P.generalCharacteristics&&(this.generalCharacteristics=P.generalCharacteristics.map(y=>new N(y))),P.domains&&(this.domains=P.domains.map(y=>new G(y))),P.subjects&&(this.subjects=P.subjects.map(y=>new F(y)))}}class G{constructor(P={}){Object.assign(this,P),P.subjects&&(this.subjects=P.subjects.map(y=>new F(y)))}}class F{constructor(P={}){Object.assign(this,P),P.learningOutcomes&&(this.learningOutcomes=P.learningOutcomes.map(y=>new N(y)))}}class N{constructor(P={}){Object.assign(this,P)}}},98503:(fn,ve,_)=>{"use strict";_.d(ve,{Me:()=>T,f9:()=>G,lp:()=>A,qL:()=>F});var e=_(34919);class o{constructor(R={}){Object.assign(this,R)}}class T{constructor(R=[],P,y){const j=(0,e.xs)(R,[P,y]);this.marks=j}get(R,P){return this.marks[R]?.[P]?this.marks[R][P][0]:null}}class A extends o{constructor(R={}){super(R),Object.assign(this,R)}}class G extends o{constructor(R={}){super(R),Object.assign(this,R)}}class F extends o{constructor(R={}){super(R),Object.assign(this,R)}}},92331:(fn,ve,_)=>{"use strict";_.d(ve,{AD:()=>o,Ly:()=>G});var e=_(16036);class o{constructor(ee={}){Object.assign(this,ee),this.classIds=ee.classIds?[...ee.classIds]:[],this.certificate=ee.certificate?new T(ee.certificate):null,this.firstSemesterSettings=ee.firstSemesterSettings?new A(ee.firstSemesterSettings):null,this.secondSemesterSettings=ee.secondSemesterSettings?new A(ee.secondSemesterSettings):null,this.yearAchievementGrading=ee.yearAchievementGrading?new G(ee.yearAchievementGrading):null,this.overallEvaluationGrading=ee.overallEvaluationGrading?new G(ee.overallEvaluationGrading):null}}class T{constructor(ee={}){Object.assign(this,ee),this.subjects=ee.subjects.length?ee.subjects.map(se=>new e.u(se)):[],this.domains=ee.domains.length?ee.domains.map(se=>new e.s6(se)):[]}}class A{constructor(ee={}){Object.assign(this,ee),this.achievementGrading=ee.achievementGrading?new G(ee.achievementGrading):null,this.diagnosticWorkGrading=ee.diagnosticWorkGrading?new G(ee.diagnosticWorkGrading):null,this.studentsObservationGrading=ee.studentsObservationGrading?new G(ee.studentsObservationGrading):null,this.overallEvaluationGrading=ee.overallEvaluationGrading?new G(ee.overallEvaluationGrading):null,this.journalGrading=ee.journalGrading?new G(ee.journalGrading):null}}class G{constructor(ee={}){Object.assign(this,ee)}}},76346:(fn,ve,_)=>{"use strict";_.d(ve,{F6:()=>T}),_(16036),_(66016);class T{constructor(P={}){Object.assign(this,P),this.notificationDate=P.notificationDate?new Date(P.notificationDate):void 0,this.monthlySettings=P.monthlySettings?.length?P.monthlySettings.map(y=>new A(y)):[],this.users=P.users.length?P.users.map(y=>new G(y)):[],this.users.length&&(this.payed=this.users.reduce((y,j)=>(j.payed&&y++,y),0))}}class A{constructor(P={}){Object.assign(this,P),this.notificationDate=P.notificationDate?new Date(P.notificationDate):void 0}}class G{constructor(P={}){Object.assign(this,P)}}},88607:(fn,ve,_)=>{"use strict";_.d(ve,{$R:()=>R,Sw:()=>G,a2:()=>P});var e=_(9885),o=_(92331),T=_(34919),A=_(57458);class G{constructor(j={}){Object.assign(this,j),this.marks=j.marks?j.marks.map(Y=>new e.vc(Y)):[],this.practiceJournalDays=j?.practiceJournalDays?j.practiceJournalDays.map(Y=>new F(Y)):[],this.userBlockedJournalDays=j?.userBlockedJournalDays?j.userBlockedJournalDays.map(Y=>new e.hi(Y)):[],this.scheduleFrom=j.scheduleFrom?new Date(j.scheduleFrom):null,this.scheduleTo=j.scheduleTo?new Date(j.schedulTo):null,this.activeDay=j.activeDay?new Date(j.activeDay):null}}class F{constructor(j={}){Object.assign(this,j),this.date=j?.date?new Date(j.date):null,this.blurredForStudents=j.blurredForStudents?new A.Pc(j.key):null}}class R{constructor(j={}){Object.assign(this,j),this.shortName=(0,T.VQ)(this.firstName,this.lastName,this.middleName),this.journalGrading=j.journalGrading?new o.Ly(j.journalGrading):null,this.date=j.date?new Date(j.date):null}}class P{constructor(j={}){Object.assign(this,j)}}},44578:(fn,ve,_)=>{"use strict";_.d(ve,{JY:()=>y,kl:()=>P,rY:()=>N,tx:()=>G});var e=_(87492);class A{constructor(Y={}){Object.assign(this,Y)}}class G{constructor(Y={}){Object.assign(this,Y),this.usersTotalPresence=Y.usersTotalPresence?Y.usersTotalPresence.map(ee=>new A(ee)):[]}}class N{constructor(Y={}){Object.assign(this,Y),this.chosenSchedule=Y.chosenSchedule?new e.hO(Y.chosenSchedule):null}}class R{constructor(Y={}){Object.assign(this,Y)}}class P{constructor(Y={}){Object.assign(this,Y),this.day=Y.day?new Date(Y.day):null}}class y{constructor(Y={}){Object.assign(this,Y),this.addVisitingData=Y.addVisitingData?Y.addVisitingData.map(ee=>new P(ee)):[],this.visitingStatus=Y.visitingStatus?Y.visitingStatus.map(ee=>new R(ee)):[]}}},32220:(fn,ve,_)=>{"use strict";_.d(ve,{EM:()=>ee,GX:()=>te,NZ:()=>G,di:()=>F,jS:()=>he,mF:()=>T,ms:()=>q,tD:()=>A,yO:()=>N});var e=_(34919),o=_(48593);class T{constructor(pe={}){Object.assign(this,pe),this.subjects=pe.subjects?pe.subjects.map(Ee=>new A(Ee)):[]}}class A{constructor(pe={}){Object.assign(this,pe)}}class G{constructor(pe={}){Object.assign(this,pe),this.birthDay=pe.birthDay?new Date(pe.birthDay):void 0,this.dateHomework=pe.dateHomework?new Date(pe.dateHomework):void 0,this.address=pe.address?new N(pe.address):void 0,this.workPlace=pe.workPlace?new R(pe.workPlace):void 0,this.additionalInfo=pe.additionalInfo?new P(pe.additionalInfo):void 0,this.relations=pe.relations?pe.relations.map(Ee=>new Y(Ee)):void 0,this.graduated=pe.graduated?new Se(pe.graduated):void 0,this.droppedSchool=pe.droppedSchool?new y(pe.droppedSchool):void 0,this.subjects=pe.subjects?pe.subjects.map(Ee=>new T(Ee)):[],this.shortName=(0,e.VQ)(pe.firstName,pe.lastName,pe.middleName)}}class F{constructor(pe={}){Object.assign(this,pe),this.birthDay=pe.birthDay?new Date(pe.birthDay):void 0,this.relations=pe.relations?pe.relations.map(Ee=>new Y(Ee)):void 0,this.shortName=(0,e.VQ)(pe.firstName,pe.lastName,pe.middleName)}}class N{constructor(pe={}){Object.assign(this,pe),this.fullAddress=[this.city,this.street,this.building].filter(Boolean).join(", ")}}class R{constructor(pe={}){Object.assign(this,pe),this.workPlaceAddress=[this.institutionName,this.phone].filter(Boolean).join(", ")}}class P{constructor(pe={}){Object.assign(this,pe)}get concatedSocial(){return this.socialGroup?.length?this.socialGroup.join(", "):""}}class y{constructor(pe={}){Object.assign(this,pe),this.dateDropped=pe.dateDropped?new Date(pe.dateDropped):null}}class Y extends o.n{constructor(pe={}){super(),Object.assign(this,pe),this.fullNameConcat=(0,e.Pp)(pe.firstName,pe.lastName,pe.middleName),this.workPlace=pe.workPlace?new R(pe.workPlace):void 0}}class ee{constructor(pe={}){Object.assign(this,pe),this.classes=pe.classes?.length?pe.classes.map(Ee=>new se(Ee)):[]}}class se{constructor(pe={}){Object.assign(this,pe)}}class he{constructor(pe={}){Object.assign(this,pe)}}class Se{constructor(pe={}){Object.assign(this,pe)}}class te{constructor(pe){pe&&(Object.assign(this,pe),this.uids=pe.uids?JSON.parse(pe.uids):void 0,this.schoolIds=this.uids?.length?[...new Set(this.uids.map(Ee=>Ee.school_uid))]:void 0)}}class q{constructor(pe={}){Object.assign(this,pe)}}},95069:(fn,ve,_)=>{"use strict";_.d(ve,{tt:()=>o,yG:()=>e});class e{constructor(Y={}){Object.assign(this,Y),this.attachment=Y.attachment?new o(Y.attachment):void 0,this.createdAt=Y.createdAt?new Date(Y.createdAt):null}}class o{constructor(Y={}){Object.assign(this,Y)}}},66016:(fn,ve,_)=>{"use strict";_.d(ve,{Uk:()=>F,cf:()=>T});var e=_(48593),o=_(28295);class T{constructor(y={}){Object.assign(this,y),this.createdAt=y.createdAt?new Date(y.createdAt):void 0,this.sender=y.sender?new N(y.sender):void 0,this.school=y.school?new G(y.school):void 0,this.child=y.child?y.child:void 0,this.attachments=y.attachments?y.attachments.map(j=>new R(j)):void 0,this.mark=y.mark?new A(y.mark):void 0,this.subjects=y.subjects?.length?y.subjects.map(j=>new o.x(j)):[]}}class A{constructor(y={}){Object.assign(this,y)}get hasOldData(){return null!==this.oldMarkAbsense||null!==this.oldMarkRating||null!==this.oldCustomMark||null!==this.oldIsVerbalFormed||null!==this.oldLeveledMark}get hasNewData(){return null!==this.newMarkAbsense||null!==this.newMarkRating||null!==this.newCustomMark||null!==this.newIsVerbalFormed||null!==this.newLeveledMark}}class G{constructor(y={}){Object.assign(this,y)}}class F extends e.n{constructor(y={}){super(y),Object.assign(this,y)}}class N extends e.n{constructor(y={}){super(),Object.assign(this,y)}}class R{constructor(y={}){Object.assign(this,y)}}},80105:(fn,ve,_)=>{"use strict";_.d(ve,{Ez:()=>N,t3:()=>T}),_(22855);var o=_(57458);class T{constructor(we={}){Object.assign(this,we),this.versions=we.versions?new G(we.versions):null}}class G{constructor(we={}){Object.assign(this,we),this.saved=we.saved?new F(we.saved):null,this.draft=we.draft?new F(we.draft):null}}class F{constructor(we={}){Object.assign(this,we)}}class N{constructor(we={}){Object.assign(this,we),this.lessons=we.lessons?we.lessons.map(ae=>ae.versions?new T(ae):new o.kE(ae)):[]}}},25006:(fn,ve,_)=>{"use strict";_.d(ve,{Bt:()=>o,PL:()=>P,W2:()=>e,tJ:()=>N});class e{constructor(j={}){Object.assign(this,j),this.address=j?.address?new T(j.address):null,this.contact=j?.contact?new A(j.contact):null,this.administration=j?.administration?j.administration.map(Y=>new A(Y)):[]}}class o{constructor(j={}){Object.assign(this,j)}}class T{constructor(j={}){Object.assign(this,j)}}class A{constructor(j={}){Object.assign(this,j)}}class N{constructor(j={}){Object.assign(this,j)}}class P{constructor(j={}){Object.assign(this,j)}}},28295:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>e});class e{constructor(T={}){Object.assign(this,T)}}},13038:(fn,ve,_)=>{"use strict";_.d(ve,{Zk:()=>T});var e=_(70706);class T{constructor(P={}){Object.assign(this,P),this.subjects=P.subjects?P.subjects.map(y=>new e.xQ(y)):[],this.teacherDays=P.teacherDays?P.teacherDays.map(y=>new G(y)):[]}}class G{constructor(P={}){Object.assign(this,P),this.date=P.date?new Date(P.date):null}}},72525:(fn,ve,_)=>{"use strict";_.d(ve,{J:()=>A});var e=_(32220),o=_(80105),T=_(5157);class A{constructor(R={}){Object.assign(this,R),this.shortName=`${R.lastName} ${R.firstName.slice(0,1)}.${R.middleName?R.middleName.slice(0,1)+".":""}`,this.shortName=function F(N){return N.isActive?N.shortName:`${N.shortName} (\u0412\u0438\u043b\u0443\u0447\u0435\u043d\u0438\u0439)`}(this),this.subjects=R.subjects.length?R.subjects.map(P=>new e.mF(P)):[],this.days=R.days?.length?R.days.map(P=>new o.Ez(P)):[],this.weeklyWorkLoadLimit=R.weeklyWorkLoadLimit?R.weeklyWorkLoadLimit.map(P=>new T.tG(P)):[],this.load=R.load?new T.q5(R.load):null}}},42476:(fn,ve,_)=>{"use strict";_.d(ve,{p:()=>T});class e{constructor(G={}){Object.assign(this,G),this.firstSemesterMark=G.firstSemesterMark?new o(G.firstSemesterMark):void 0,this.secondSemesterMark=G.secondSemesterMark?new o(G.secondSemesterMark):void 0,this.dpaMark=G.dpaMark?new o(G.dpaMark):void 0,this.yearMark=G.yearMark?new o(G.yearMark):void 0}}class o{constructor(G={}){Object.assign(this,G)}}class T{constructor(G={}){Object.assign(this,G),this.finalMarks=G.finalMarks?G.finalMarks.map(F=>new e(F)):[]}}},15523:(fn,ve,_)=>{"use strict";_.d(ve,{FE:()=>o,bV:()=>T,nJ:()=>e});class e{constructor(F={}){Object.assign(this,F),this.transfers=F.transfers?F.transfers.map(N=>new o(N)):[]}}class o{constructor(F={}){Object.assign(this,F),this.leaveDetails=F.leaveDetails?new T(F.leaveDetails):void 0}}class T{constructor(F={}){Object.assign(this,F),this.leaveAddress=F.leaveAddress?new A(F.leaveAddress):void 0}}class A{constructor(F={}){Object.assign(this,F)}}},43428:(fn,ve,_)=>{"use strict";_.d(ve,{r:()=>G}),_(47145);var o=_(80105),A=(_(72525),_(5157));class G{constructor(R={}){Object.assign(this,R),this.shortName=R.name,this.load=R.load?new A.q5(R.load):null,this.days=R.days?R.days.map(P=>new o.Ez(P)):[]}}},5157:(fn,ve,_)=>{"use strict";_.d(ve,{q5:()=>T,tG:()=>e});class e{constructor(G={}){Object.assign(this,G)}}class T{constructor(G={}){Object.assign(this,G)}}},64483:(fn,ve,_)=>{"use strict";_.d(ve,{SD:()=>LD,ej:()=>j,YZ:()=>RD,zf:()=>PD.z});var e={};_.r(e),_.d(e,{easeOutElastic:()=>Gr,linear:()=>Ka,swing:()=>oa});var o={};_.r(o),_.d(o,{ArcNode:()=>pv,CircleNode:()=>Rf,ClipNode:()=>Fh,DefinitionNode:()=>Gl,GradientStopNode:()=>Gg,GroupNode:()=>gv,ImageNode:()=>yv,LinearGradientNode:()=>Cy,MultiPathNode:()=>Yg,Node:()=>dh,PathNode:()=>Ku,RadialGradientNode:()=>Hg,RectNode:()=>Wg,RootNode:()=>Sm,Surface:()=>D2,TextNode:()=>Cv,exportGroup:()=>v1});var T={};_.r(T),_.d(T,{ArcNode:()=>Bh,CircleNode:()=>Ov,GroupNode:()=>Pf,ImageNode:()=>Lf,MultiPathNode:()=>M2,Node:()=>Dm,PathNode:()=>Vd,RectNode:()=>k2,RootNode:()=>up,Surface:()=>Qg,TextNode:()=>Av});var A={};_.r(A),_.d(A,{Animation:()=>lo,AnimationFactory:()=>or,Arc:()=>Wy,BaseNode:()=>Np,Circle:()=>Ko.Z,Element:()=>sg.Z,Gradient:()=>m1.Z,GradientStop:()=>ug.Z,Group:()=>vo.Z,HasObservers:()=>C_.Z,Image:()=>rg.Z,Layout:()=>Yp,LinearGradient:()=>Ys.Z,MultiPath:()=>Ws.w,OptionsStore:()=>Jy.Z,Path:()=>Ws.y,PathParser:()=>Ky,QuadNode:()=>Iy,RadialGradient:()=>co.Z,Rect:()=>l0,ShapesQuadTree:()=>Ju,Surface:()=>Vp,SurfaceFactory:()=>Tm,Text:()=>Mt.Z,align:()=>p1,canvas:()=>T,exportImage:()=>qf,exportSVG:()=>h0,fit:()=>f1,parsePath:()=>g1.Z,stack:()=>$y,svg:()=>o,util:()=>ds,vAlign:()=>c0,vStack:()=>u0,vWrap:()=>w_,wrap:()=>cg});var G=_(36895),F=_(24006),N=_(38441),R=_(87337),P=_(28503),y=_(94650);let j=(()=>{var g;class t{}return(g=t).\u0275fac=function(s){return new(s||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[G.ez,N.F,P.q,F.u5,F.UX,N.F,R.a]}),t})();var Y=_(99956),ee=_(78833),se=_(52097),he=_(1266),Se=_(5643),te=_(82618),oe=_(94023),q=_(17115),we=_(65910),ae=_(87160),Q=_(41236),pe=_(66720),Ee=_(11291),ke=_(30107),Ye=_(91779);let ct=(()=>{var g;class t{}return(g=t).\u0275fac=function(s){return new(s||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[G.ez,he.nf]}),t})();var ut=_(14972),Ct=_(68993),Ue=_(94222);let vt=(()=>{var g;class t{}return(g=t).\u0275fac=function(s){return new(s||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[G.ez,he.nf,ut.Fq]}),t})();y.B6R(Ct.c,[he.$i,he.zg,he._n,he.z7,Ue.r],[]);var ln=_(8416);_(5651);const Ft="arc",Ze="#000",$e="bottom",Oe="center",Nt="circle",xt=3,Kt="date",$t="12px sans-serif",We=10,It=/\{\d+:?/,Tt="height",Nn="inside",an="inherit",sn="left",_n=Number.MAX_VALUE,Ln=-Number.MAX_VALUE,Mn="none",qn="object",ki="outside",Si="right",Ni="roundedRect",Vn="string",ot="top",lt="value",In="#fff",rn="width",Qt="x",yi="y";function An(g){return Array.isArray(g)}function Ht(g,t){const n=An(t)?t:[t];for(let s=0;s<n.length;s++){const c=n[s];-1===g.className.indexOf(c)&&(g.className+=" "+c)}}const Pn=/\s+/g;function Sn(g,t){g&&g.className&&(g.className=g.className.replace(t,"").replace(Pn," "))}var Fn=_(80829);function Cn(g){let t=.5;g.options.stroke&&Fn.Z(g.options.stroke.width)&&g.options.stroke.width%2==0&&(t=0);for(let n=0;n<g.segments.length;n++)g.segments[n].anchor().round(0).translate(t,t);return g}function Un(g,t){return-g.x*t.y+g.y*t.x<0}function fi(g){return"number"==typeof g&&!isNaN(g)}function bi(g){return typeof g===Vn}function Zn(g){return fi(g)||bi(g)&&isFinite(g)}function mn(g){return"function"==typeof g}const ze="object",wt="undefined";function ht(g,t){for(let n in t){let p,s=t[n],c=typeof s;if(p=c===ze&&null!==s?s.constructor:null,p&&p!==Array)if(s instanceof Date)g[n]=new Date(s.getTime());else if(mn(s.clone))g[n]=s.clone();else{let S=g[n];g[n]=typeof S===ze&&S||{},ht(g[n],s)}else c!==wt&&(g[n]=s)}return g}function U(g){const t=arguments.length;for(let n=1;n<t;n++)ht(g,arguments[n]);return g}function gt(g){return"object"==typeof g}function Lt(g){return fi(g)?g+"px":g}const kt=/width|height|top|left|bottom|right/i;function vn(g){return kt.test(g)}function jn(g,t){const n=bi(t)?[t]:t;if(An(n)){const s={},c=window.getComputedStyle(g);for(let p=0;p<n.length;p++){let S=n[p];s[S]=vn(S)?parseFloat(c[S]):c[S]}return s}if(gt(t))for(let s in t)g.style[s]=Lt(t[s])}function St(g,t=0){const n={top:0,right:0,bottom:0,left:0};return"number"==typeof g?n[ot]=n[Si]=n[$e]=n[sn]=g:(n[ot]=g[ot]||t,n[Si]=g[Si]||t,n[$e]=g[$e]||t,n[sn]=g[sn]||t),n}let De={compile:function(g){return g}};const je=class ie{static register(t){De=t}static compile(t,n){return De.compile(t,n)}};function pt(g={}){let t;return g.template?g.template=t=je.compile(g.template):mn(g.content)&&(t=g.content),t}const Ut=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,xn={};function hn(g){if(xn[g])return xn[g];const t=[];return g.replace(Ut,function(n,s,c,p){t.push(Fn.Z(s)?s:c||p)}),xn[g]=function(n){let s=n;for(let c=0;c<t.length&&s;c++)s=s[t[c]];return s},xn[g]}function Gn(g,t){const n=g.length,s=[];for(let c=0;c<n;c++)t(g[c])&&s.push(g[c]);return s}function ri(g,t){if(g.className){const n=t.split(" ");for(let s=0;s<n.length;s++)if(g.className.indexOf&&-1!==g.className.indexOf(n[s]))return!0}}xn.undefined=function(g){return g};class mi{constructor(){this._map=new Map}get(t){return this._map.get(t)}set(t,n){this._map.set(t,n)}}function ui(g,t){if(t)return-1!==t.indexOf(g)}var Pi=_(65769);function Di(g,t,n){return Pi.Z(g+(t-g)*n,xt)}const Yi="trigger",gs=class ji{constructor(t,n){this.observer=t,this.handlerMap=U({},this.handlerMap,n)}trigger(t,n){const{observer:s,handlerMap:c}=this;let p;return c[t]?p=this.callObserver(c[t],n):s[Yi]&&(p=this.callObserver(Yi,t,n)),p}callObserver(t,...n){return this.observer[t].apply(this.observer,n)}requiresHandlers(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(let n=0;n<t.length;n++)if(this.handlerMap[t[n]])return!0}};function Es(g,t){const n=g.length,s=[];for(let c=0;c<n;c++){let p=t(g[c]);Fn.Z(p)&&s.push(p)}return s}var ss=_(48131);const zi=ss.Z.browser||{};function as(g){let t=0;return g.wheelDelta?(t=-g.wheelDelta/120,zi.webkit&&(t/=2*Math.max(window.devicePixelRatio,.625))):g.detail&&(t=g.detail/3),t=t>0?Math.ceil(t):Math.floor(t),t}var ds=_(27590),Xi=_(71211);function us(g){const t=window.console;typeof t<"u"&&t.log&&t.log(g)}const{append:ps,bindEvents:_s,defined:ei,deg:Fs,elementOffset:po,elementSize:As,eventCoordinates:un,eventElement:ai,hashKey:Le,last:Pt,limitValue:Be,objectKey:Jt,rad:xe,round:Ke,unbindEvents:Qe,valueOrDefault:Et}=ds;class Dn{static fetchFonts(t,n,s={depth:0}){!t||s.depth>5||!document.fonts||Object.keys(t).forEach(function(p){const S=t[p];"dataSource"===p||"$"===p[0]||!S||("font"===p?n.push(S):"object"==typeof S&&(s.depth++,Dn.fetchFonts(S,n,s),s.depth--))})}static loadFonts(t,n){let s=[];if(t.length>0&&document.fonts){try{s=t.map(function(c){return document.fonts.load(c)})}catch(c){us(c)}Promise.all(s).then(n,n)}else n()}static preloadFonts(t,n){const s=[];Dn.fetchFonts(t,s),Dn.loadFonts(s,n)}}const vi=Dn;function ni(g,t){const n=g.prototype;n.options=n.options?U({},n.options,t):t}const ys="k-i-",bo="k-svg-i-";class Ps{constructor(t,n){this.element=t,this.options=U({},this.options,n),this.wrapper()}wrapper(){this.addClasses()}addClasses(){}html(){return this.element.outerHTML}}ni(Ps,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});class Wt extends Ps{constructor(t,n){super(t,n)}wrapper(){let t=this.element.className.split(" ").find(s=>s.startsWith(ys)),n=this.options.icon?`${this.options.icon.startsWith(ys)?"":ys}${this.options.icon}`:"";this._className=n,Ht(this.element,"k-icon"),Sn(this.element,t),Ht(this.element,n),Ht(this.element,this.options.iconClass||""),super.wrapper()}}ni(Wt,{name:"HTMLFontIcon",icon:null});class Bn extends Ps{constructor(t,n){t.innerHTML="",super(t,n)}wrapper(){let t=this.options.icon,n=this.options.iconClass,s=this.element.className.split(" ").find(p=>p.startsWith(bo));if(!t&&n){let S=n.match(/k-i-(\w+(?:-\w+)*)/);S&&(t=S[1],n=n.replace(S[0],""))}bi(t)&&(t=t.replace("k-i-","").replace(/-./g,p=>p[1].toUpperCase()),t=this.options.svgIcons[t]||this.options.svgIcons[`${t}Icon`]);let c=t&&t.name?`${bo}${t.name}`:"";if(this._className=c,Ht(this.element,"k-svg-icon"),Sn(this.element,s),Ht(this.element,c),Ht(this.element,n||""),this.element.setAttribute("aria-hidden","true"),t&&function bs(g){return"[object Object]"===Object.prototype.toString.call(g)}(t)){let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("viewBox",t.viewBox||""),p.setAttribute("focusable","false"),p.innerHTML=t.content||"",this.element.appendChild(p)}super.wrapper()}}ni(Bn,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});const ti={svg:Bn,font:Wt};function Ui(g,t){let n=g,s=t;return(!n||gt(n)&&!(n instanceof HTMLElement)||bi(n))&&(s=n,n=document.createElement("span")),bi(s)&&(s={icon:s}),s.type||(s.type="svg"),ti[s.type]?new ti[s.type](n,s).html():null}function Pe(g){let t=_n,n=Ln;for(let s=0,c=g.length;s<c;s++){const p=g[s];null!==p&&isFinite(p)&&(t=Math.min(t,p),n=Math.max(n,p))}return{min:t===_n?void 0:t,max:n===Ln?void 0:n}}function gn(g,t){for(let n=0;n<g.length;n++){const s=g[n];if(t(s,n,g))return s}}const Ce=_(13748).Z,on=/matrix\((.*)\)/;function Mi(g){const t=getComputedStyle(g).transform;return"none"===t?Ce.unit():function Hn(g){const t=g.match(on);if(null===t||2!==t.length)return Ce.unit();const n=t[1].split(",").map(s=>parseFloat(s));return new Ce(...n)}(t)}var os=_(32429);const wi=function dn(g){return new os.Z(g).isDark()?In:Ze},Gt={};class _i{constructor(t){this._index={},this._values=t?t.slice(0):[];for(let n=0;n<this._values.length;n++)this._index[this._values[n]]=n}values(){return this._values.filter(t=>t!==Gt)}has(t){return void 0!==this._index[t]}add(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))}delete(t){const n=this._index[t];void 0!==n&&(this._values[n]=Gt,delete this._index[t])}clear(){this._index={},this._values=[]}get size(){return this._values.length}}class Wi{constructor(t){this._set=new Set(t)}values(){return Array.from(this._set)}has(t){return this._set.has(t)}add(t){this._set.add(t)}delete(t){this._set.delete(t)}clear(){this._set.clear()}get size(){return this._set.size}}let Ks=()=>{let g=!1;return"function"==typeof Set&&(g=new Set([1]).has(1)),g};function So(g){return Ks()?new Wi(g):new _i(g)}function wo(g){throw g}function jr(g,t){let n=Ke(t-g,We-1);if(0===n){if(0===t)return.1;n=Math.abs(t)}const s=Math.pow(10,Math.floor(Math.log(n)/Math.log(10))),c=Ke(n/s,We);let p=1;return p=c<1.904762?.2:c<4.761904?.5:c<9.523809?1:2,Ke(s*p,We)}class Rr extends Xi.Z{constructor(t,n){super(),this.x=t||0,this.y=n||0}clone(){return new Rr(this.x,this.y)}equals(t){return t&&this.x===t.x&&this.y===t.y}rotate(t,n){const s=xe(n),c=Math.cos(s),p=Math.sin(s),{x:S,y:k}=t,{x:$,y:me}=this;return this.x=Ke(S+($-S)*c+(me-k)*p,xt),this.y=Ke(k+(me-k)*c-($-S)*p,xt),this}multiply(t){return this.x*=t,this.y*=t,this}distanceTo(t){const n=this.x-t.x,s=this.y-t.y;return Math.sqrt(n*n+s*s)}static onCircle(t,n,s){const c=xe(n);return new Rr(t.x-s*Math.cos(c),t.y-s*Math.sin(c))}}const Qs=Rr;var Hs=_(84572);class Pr extends Xi.Z{constructor(t,n,s,c){super(),this.x1=t||0,this.y1=n||0,this.x2=s||0,this.y2=c||0}equals(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2}width(){return this.x2-this.x1}height(){return this.y2-this.y1}translate(t,n){return this.x1+=t,this.x2+=t,this.y1+=n,this.y2+=n,this}move(t,n){const s=this.height(),c=this.width();return ei(t)&&(this.x1=t,this.x2=this.x1+c),ei(n)&&(this.y1=n,this.y2=this.y1+s),this}wrap(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this}wrapPoint(t){const n=An(t),s=n?t[0]:t.x,c=n?t[1]:t.y;return this.wrap(new Pr(s,c,s,c)),this}snapTo(t,n){return(n===Qt||!n)&&(this.x1=t.x1,this.x2=t.x2),(n===yi||!n)&&(this.y1=t.y1,this.y2=t.y2),this}alignTo(t,n){const s=this.height(),c=this.width(),p=n===ot||n===$e?yi:Qt,S=p===yi?s:c;if(n===Oe){const k=t.center(),$=this.center();this.x1+=k.x-$.x,this.y1+=k.y-$.y}else this[p+1]=n===ot||n===sn?t[p+1]-S:t[p+2];return this.x2=this.x1+c,this.y2=this.y1+s,this}shrink(t,n){return this.x2-=t,this.y2-=n,this}expand(t,n){return this.shrink(-t,-n),this}pad(t){const n=St(t);return this.x1-=n.left,this.x2+=n.right,this.y1-=n.top,this.y2+=n.bottom,this}unpad(t){const n=St(t);return n.left=-n.left,n.top=-n.top,n.right=-n.right,n.bottom=-n.bottom,this.pad(n)}clone(){return new Pr(this.x1,this.y1,this.x2,this.y2)}center(){return new Qs(this.x1+this.width()/2,this.y1+this.height()/2)}containsPoint(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2}points(){return[new Qs(this.x1,this.y1),new Qs(this.x2,this.y1),new Qs(this.x2,this.y2),new Qs(this.x1,this.y2)]}getHash(){return[this.x1,this.y1,this.x2,this.y2].join(",")}overlaps(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)}rotate(t){let n=this.width(),s=this.height();const{x:c,y:p}=this.center(),S=kr(0,0,c,p,t),k=kr(n,0,c,p,t),$=kr(n,s,c,p,t),me=kr(0,s,c,p,t);return n=Math.max(S.x,k.x,$.x,me.x)-Math.min(S.x,k.x,$.x,me.x),s=Math.max(S.y,k.y,$.y,me.y)-Math.min(S.y,k.y,$.y,me.y),this.x2=this.x1+n,this.y2=this.y1+s,this}toRect(){return new Hs.Z([this.x1,this.y1],[this.width(),this.height()])}hasSize(){return 0!==this.width()&&0!==this.height()}align(t,n,s){const c=n+1,p=n+2,S=n===Qt?rn:Tt,k=this[S]();ui(s,[sn,ot])?(this[c]=t[c],this[p]=this[c]+k):ui(s,[Si,$e])?(this[p]=t[p],this[c]=this[p]-k):s===Oe&&(this[c]=t[c]+(t[S]()-k)/2,this[p]=this[c]+k)}}function kr(g,t,n,s,c){const p=xe(c);return new Qs(n+(g-n)*Math.cos(p)+(t-s)*Math.sin(p),s-(g-n)*Math.sin(p)+(t-s)*Math.cos(p))}const vs=Pr;class ko extends Xi.Z{constructor(t,n,s,c,p){super(),this.center=t,this.innerRadius=n,this.radius=s,this.startAngle=c,this.angle=p}clone(){return new ko(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)}middle(){return this.startAngle+this.angle/2}setRadius(t,n){return n?this.innerRadius=t:this.radius=t,this}point(t,n){const s=xe(t),c=Math.cos(s),p=Math.sin(s),S=n?this.innerRadius:this.radius,k=Ke(this.center.x-c*S,xt),$=Ke(this.center.y-p*S,xt);return new Qs(k,$)}adjacentBox(t,n,s){const c=this.clone().expand(t),p=c.middle(),S=c.point(p),k=n/2,$=s/2,me=Math.sin(xe(p)),Ve=Math.cos(xe(p));let _t=S.x-k,Vt=S.y-$;return Math.abs(me)<.9&&(_t+=k*-Ve/Math.abs(Ve)),Math.abs(Ve)<.9&&(Vt+=$*-me/Math.abs(me)),new vs(_t,Vt,_t+n,Vt+s)}containsPoint(t){const n=this.center,s=this.innerRadius,c=this.radius,p=this.startAngle,S=this.startAngle+this.angle,k=t.x-n.x,$=t.y-n.y,me=new Qs(k,$),Ve=this.point(p),_t=new Qs(Ve.x-n.x,Ve.y-n.y),Vt=this.point(S),Wn=new Qs(Vt.x-n.x,Vt.y-n.y),si=Ke(k*k+$*$,xt);return(_t.equals(me)||Un(_t,me))&&!Un(Wn,me)&&si>=s*s&&si<=c*c}getBBox(){const t=new vs(_n,_n,Ln,Ln),n=Ke(this.startAngle%360),s=Ke((n+this.angle)%360),c=this.innerRadius,p=[0,90,180,270,n,s].sort(Nr),S=p.indexOf(n),k=p.indexOf(s);let $;$=n===s?p:S<k?p.slice(S,k+1):[].concat(p.slice(0,k+1),p.slice(S,p.length));for(let me=0;me<$.length;me++){let Ve=this.point($[me]);t.wrapPoint(Ve),t.wrapPoint(Ve,c)}return c||t.wrapPoint(this.center),t}expand(t){return this.radius+=t,this}}function Nr(g,t){return g-t}const so=ko;var js=_(83274),fr=_(8713),Ws=_(75614);class ur extends Xi.Z{createRing(t,n){const s=t.startAngle+180;let c=t.angle+s;t.angle>0&&s===c&&(c+=.001);const p=new js.Z(t.center.x,t.center.y),S=Math.max(t.radius,0),k=Math.max(t.innerRadius,0),$=new fr.Z(p,{startAngle:s,endAngle:c,radiusX:S,radiusY:S}),me=Ws.y.fromArc($,n).close();if(k){$.radiusX=$.radiusY=k;const Ve=$.pointAt(c);me.lineTo(Ve.x,Ve.y),me.arc(c,s,k,k,!0)}else me.lineTo(p.x,p.y);return me}}ur.current=new ur;const Fr=ur;var Ko=_(65294),ms=_(96616),Ho=_(40904),vo=_(80279);function oa(g){return.5-Math.cos(g*Math.PI)/2}function Ka(g){return g}function Gr(g,t,n,s){let c=1.70158,p=0,S=s;return 0===g?n:1===g?n+s:(p||(p=.5),S<Math.abs(s)?(S=s,c=p/4):c=p/(2*Math.PI)*Math.asin(s/S),S*Math.pow(2,-10*g)*Math.sin((Number(g)-c)*(1.1*Math.PI)/p)+s+n)}var Xr=_(56297),uo=_(35712);let No=g=>{const t=typeof window<"u"?window:{},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(s){setTimeout(s,1e3/60)};No=s=>n.call(t,s),No(g)};const Cr=No;let Er;class zr extends Xi.Z{static get current(){return Er||(Er=new zr),Er}constructor(){super(),this._items=[]}register(t,n){this._items.push({name:t,type:n})}create(t,n){const s=this._items;let c;if(n&&n.type){const p=n.type.toLowerCase();for(let S=0;S<s.length;S++)if(s[S].name.toLowerCase()===p){c=s[S];break}}if(c)return new c.type(t,n)}}const or=zr,lo=class rr extends Xi.Z{static create(t,n,s){return or.current.create(t,n,s)}get options(){return this._options||{duration:500,easing:"swing"}}set options(t){this._options=t}constructor(t,n){super(),this.options=Object.assign({},this.options,n),this.element=t}setup(){}step(){}play(){const t=this.options,{duration:n,delay:s=0}=t,c=e[t.easing],p=(0,Xr.Z)()+s,S=p+n;0===n?(this.step(1),this.abort()):setTimeout(()=>{const k=()=>{if(this._stopped)return;const $=(0,Xr.Z)(),me=(0,uo.Z)($-p,0,n),_t=c(me/n,me,0,1,n);this.step(_t),$<S?Cr(k):this.abort()};k()},s)}abort(){this._stopped=!0}destroy(){this.abort()}};class nr extends Xi.Z{constructor(t){super(),this.children=[],this.options=U({},this.options,this.initUserOptions(t))}initUserOptions(t){return t}reflow(t){const n=this.children;let s;for(let c=0;c<n.length;c++){let p=n[c];p.reflow(t),s=s?s.wrap(p.box):p.box.clone()}this.box=s||t}destroy(){const t=this.children;this.animation&&this.animation.destroy();for(let n=0;n<t.length;n++)t[n].destroy()}getRoot(){const t=this.parent;return t?t.getRoot():null}getSender(){const t=this.getService();if(t)return t.sender}getService(){let t=this;for(;t;){if(t.chartService)return t.chartService;t=t.parent}}translateChildren(t,n){const s=this.children,c=s.length;for(let p=0;p<c;p++)s[p].box.translate(t,n)}append(){for(let t=0;t<arguments.length;t++){let n=arguments[t];this.children.push(n),n.parent=this}}renderVisual(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())}addVisual(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))}renderChildren(){const t=this.children,n=t.length;for(let s=0;s<n;s++)t[s].renderVisual()}createVisual(){this.visual=new vo.Z({zIndex:this.options.zIndex,visible:Et(this.options.visible,!0)})}createAnimation(){this.visual&&this.options.animation&&(this.animation=lo.create(this.visual,this.options.animation))}appendVisual(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):ei(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)}clipRoot(){return this.parent?this.parent.clipRoot():this}stackRoot(){return this.parent?this.parent.stackRoot():this}stackVisual(t){const n=t.options.zIndex||0,s=this.visual.children,c=s.length;let p;for(p=0;p<c&&!(Et(s[p].options.zIndex,0)>n);p++);this.visual.insert(p,t)}traverse(t){const n=this.children,s=n.length;for(let c=0;c<s;c++){let p=n[c];t(p),p.traverse&&p.traverse(t)}}closest(t){let n=this,s=!1;for(;n&&!s;)s=t(n),s||(n=n.parent);if(s)return n}renderComplete(){}hasHighlight(){const t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)}toggleHighlight(t,n){const s=(this.options||{}).highlight||{},c=s.visual;let p=this._highlight;if(!p){const S={fill:{color:In,opacity:n||.2},stroke:{color:In,width:1,opacity:n||.2}};if(c){if(p=this._highlight=c(Object.assign(this.highlightVisualArgs(),{createVisual:()=>this.createHighlight(S),sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!p)return}else p=this._highlight=this.createHighlight(S);ei(p.options.zIndex)||(p.options.zIndex=Et(s.zIndex,this.options.zIndex)),this.appendVisual(p)}p.visible(t)}createGradientOverlay(t,n,s){const c=new Ws.y(Object.assign({stroke:{color:"none"},fill:this.createGradient(s),closed:t.options.closed},n));return c.segments.elements(t.segments.elements()),c}createGradient(t){if(this.parent)return this.parent.createGradient(t)}supportsPointInactiveOpacity(){return!0}}nr.prototype.options={};const mt=nr;class dt extends mt{constructor(t){super(t),this.options.margin=St(this.options.margin),this.options.padding=St(this.options.padding)}reflow(t){const n=this.options,{width:s,height:c,shrinkToFit:p}=n,S=s&&c,k=n.margin,$=n.padding,me=n.border.width;let Ve;const _t=()=>{this.align(t,Qt,n.align),this.align(t,yi,n.vAlign),this.paddingBox=Ve.clone().unpad(k).unpad(me)};let Vt=t.clone();S&&(Vt.x2=Vt.x1+s,Vt.y2=Vt.y1+c),p&&Vt.unpad(k).unpad(me).unpad($),super.reflow(Vt),Ve=S?this.box=new vs(0,0,s,c):this.box,p&&S?(_t(),Vt=this.contentBox=this.paddingBox.clone().unpad($)):(Vt=this.contentBox=Ve.clone(),Ve.pad($).pad(me).pad(k),_t()),this.translateChildren(Ve.x1-Vt.x1+k.left+me+$.left,Ve.y1-Vt.y1+k.top+me+$.top);const Wn=this.children;for(let si=0;si<Wn.length;si++){let Ri=Wn[si];Ri.reflow(Ri.box)}}align(t,n,s){this.box.align(t,n,s)}hasBox(){const t=this.options;return t.border.width||t.background}createVisual(){super.createVisual(),this.options.visible&&this.hasBox()&&this.visual.append(Ws.y.fromRect(this.paddingBox.toRect(),this.visualStyle()))}visualStyle(){const t=this.options,n=t.border||{};return{stroke:{width:n.width,color:n.color,opacity:Et(n.opacity,t.opacity),dashType:n.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}}}ni(dt,{align:sn,vAlign:ot,margin:{},padding:{},border:{color:Ze,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const et=dt;class Tn extends et{constructor(t,n){super(t),this.pointData=n}getElement(){const{options:t,paddingBox:n}=this,{type:s,rotation:c}=t,p=n.center(),S=n.width()/2,k=n.height()/2;if(!t.visible||!this.hasBox())return null;const $=this.visualStyle();let me;if(s===Nt)me=new Ko.Z(new ms.Z([Ke(n.x1+S,xt),Ke(n.y1+k,xt)],Math.min(S,k)),$);else if("triangle"===s)me=Ws.y.fromPoints([[n.x1+S,n.y1],[n.x1,n.y2],[n.x2,n.y2]],$).close();else if("cross"===s)me=new Ws.w($),me.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),me.moveTo(n.x1,n.y2).lineTo(n.x2,n.y1);else{const Ve=n.toRect();if(s===Ni){const _t=Et(t.borderRadius,Ve.width()/5);Ve.setCornerRadius(_t)}me=Ws.y.fromRect(Ve,$)}return c&&me.transform(Ho.Z().rotate(-c,[p.x,p.y])),me.options.zIndex=t.zIndex,me}createElement(){const t=this.options.visual,n=this.pointData||{};let s;return s=t?t({value:n.value,dataItem:n.dataItem,sender:this.getSender(),series:n.series,category:n.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:()=>this.getElement()}):this.getElement(),s}visualOptions(){const t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}}createVisual(){this.visual=this.createElement()}}ni(Tn,{type:Nt,align:Oe,vAlign:Oe});const Gi=Tn;var Ys=_(98260),co=_(27525);const to="radial",Or={glass:{type:"linear",rotation:0,stops:[{offset:0,color:In,opacity:0},{offset:.25,color:In,opacity:.3},{offset:1,color:In,opacity:0}]},sharpBevel:{type:to,stops:[{offset:0,color:In,opacity:.55},{offset:.65,color:In,opacity:0},{offset:.95,color:In,opacity:.25}]},roundedBevel:{type:to,stops:[{offset:.33,color:In,opacity:.06},{offset:.83,color:In,opacity:.2},{offset:.95,color:In,opacity:0}]},roundedGlass:{type:to,supportVML:!1,stops:[{offset:0,color:In,opacity:0},{offset:.5,color:In,opacity:.3},{offset:.99,color:In,opacity:0}]},sharpGlass:{type:to,supportVML:!1,stops:[{offset:0,color:In,opacity:.2},{offset:.15,color:In,opacity:.15},{offset:.17,color:In,opacity:.35},{offset:.85,color:In,opacity:.05},{offset:.87,color:In,opacity:.15},{offset:.99,color:In,opacity:0}]},bubbleShadow:{type:to,center:[.5,.5],radius:.5}};function sa(g,t){if(g.x1===t.x1&&g.y1===t.y1&&g.x2===t.x2&&g.y2===t.y2)return t;const n=Math.min(g.x1,t.x1),s=Math.max(g.x1,t.x1),c=Math.min(g.x2,t.x2),p=Math.max(g.x2,t.x2),S=Math.min(g.y1,t.y1),k=Math.max(g.y1,t.y1),$=Math.min(g.y2,t.y2),me=Math.max(g.y2,t.y2),Ve=[];return Ve[0]=new vs(s,S,c,k),Ve[1]=new vs(n,k,s,$),Ve[2]=new vs(c,k,p,$),Ve[3]=new vs(s,$,c,me),g.x1===n&&g.y1===S||t.x1===n&&t.y1===S?(Ve[4]=new vs(n,S,s,k),Ve[5]=new vs(c,$,p,me)):(Ve[4]=new vs(c,S,p,k),Ve[5]=new vs(n,$,s,me)),Gn(Ve,function(_t){return _t.height()>0&&_t.width()>0})[0]}class aa extends mt{constructor(t){super(t);const n=this.options;n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),this.gradients={}}reflow(){const{options:t,children:n}=this;let s=new vs(0,0,t.width,t.height);this.box=s.unpad(t.margin);for(let c=0;c<n.length;c++)n[c].reflow(s),s=sa(s,n[c].box)||new vs}createVisual(){this.visual=new vo.Z,this.createBackground()}createBackground(){const t=this.options,n=t.border||{},s=this.box.clone().pad(t.margin).unpad(n.width),c=Ws.y.fromRect(s.toRect(),{stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(c)}getRoot(){return this}createGradient(t){const n=this.gradients,s=Jt(t),c=Or[t.gradient];let p;if(n[s])p=n[s];else{const S=Object.assign({},c,t);"linear"===c.type?p=new Ys.Z(S):(t.innerRadius&&(S.stops=function Xa(g){const t=g.stops,n=g.innerRadius/g.radius*100,s=t.length,c=[];for(let p=0;p<s;p++){let S=Object.assign({},t[p]);S.offset=(S.offset*(100-n)+n)/100,c.push(S)}return c}(S)),p=new co.Z(S),p.supportVML=!1!==c.supportVML),n[s]=p}return p}cleanGradients(){const t=this.gradients;for(let n in t)t[n]._observers=[]}size(){const t=this.options;return new vs(0,0,t.width,t.height)}}ni(aa,{width:600,height:400,background:In,border:{color:Ze,width:0},margin:St(5),zIndex:-2});const ar=aa;class qr extends mt{constructor(t){super(t),this._initDirection()}_initDirection(){const t=this.options;t.vertical?(this.groupAxis=Qt,this.elementAxis=yi,this.groupSizeField=rn,this.elementSizeField=Tt,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=yi,this.elementAxis=Qt,this.groupSizeField=Tt,this.elementSizeField=rn,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)}reflow(t){this.box=t.clone(),this.reflowChildren()}reflowChildren(){const{box:t,elementAxis:n,groupAxis:s,elementSizeField:c,groupSizeField:p}=this,{groups:S,groupsSize:k,maxGroupElementsSize:$}=this.groupOptions(),me=S.length,Ve=t[s+1]+this.alignStart(k,t[p]());if(me){let _t=Ve;for(let Vt=0;Vt<me;Vt++){let Wn=S[Vt],si=Wn.groupElements,Ri=t[n+1],ts=si.length;for(let Os=0;Os<ts;Os++){let Zs=si[Os],wr=this.elementSize(Zs),_a=_t+this.alignStart(wr[p],Wn.groupSize),ka=new vs;ka[s+1]=_a,ka[s+2]=_a+wr[p],ka[n+1]=Ri,ka[n+2]=Ri+wr[c],Zs.reflow(ka),Ri+=wr[c]+this.elementSpacing}_t+=Wn.groupSize+this.groupSpacing}t[s+1]=Ve,t[s+2]=Ve+k,t[n+2]=t[n+1]+$}}alignStart(t,n){let s=0;const c=this.options.align;return c===Si||c===$e?s=n-t:c===Oe&&(s=(n-t)/2),s}groupOptions(){const{box:t,children:n,elementSizeField:s,groupSizeField:c,elementSpacing:p,groupSpacing:S}=this,k=Ke(t[s]()),$=n.length,me=[];let Ve=0,_t=0,Vt=0,Wn=0,si=[];for(let Ri=0;Ri<$;Ri++){let ts=n[Ri];ts.box||ts.reflow(t);let Os=this.elementSize(ts);this.options.wrap&&Ke(_t+p+Os[s])>k&&(me.push({groupElements:si,groupSize:Ve,groupElementsSize:_t}),Wn=Math.max(Wn,_t),Vt+=S+Ve,Ve=0,_t=0,si=[]),Ve=Math.max(Ve,Os[c]),_t>0&&(_t+=p),_t+=Os[s],si.push(ts)}return me.push({groupElements:si,groupSize:Ve,groupElementsSize:_t}),Wn=Math.max(Wn,_t),Vt+=Ve,{groups:me,groupsSize:Vt,maxGroupElementsSize:Wn}}elementSize(t){return{width:t.box.width(),height:t.box.height()}}createVisual(){}}ni(qr,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const bt=qr;var Mt=_(6520),Xt=_(37881);const yn=Mt.Z;class Qn extends mt{constructor(t,n){super(n),this.content=t,this.reflow(new vs)}reflow(t){const n=this.options,s=n.size=Xt.Z(this.content,{font:n.font});this.baseline=s.baseline,this.box=new vs(t.x1,t.y1,t.x1+s.width,t.y1+s.height)}createVisual(){const{font:t,color:n,opacity:s,cursor:c}=this.options;this.visual=new yn(this.content,this.box.toRect().topLeft(),{font:t,fill:{color:n,opacity:s},cursor:c})}}ni(Qn,{font:$t,color:Ze});const Ci=Qn;function $i(g){const t=g.origin,n=g.bottomRight();return new vs(t.x,t.y,n.x,n.y)}const Us=/\n/m,Ns=class Is extends et{constructor(t,n,s){super(n),this.content=t,this.data=s,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new vs)}_initContainer(){const t=this.options,n=String(this.content).split(Us),s=new bt({vertical:!0,align:t.align,wrap:!1}),c=U({},t,{opacity:1,animation:null});this.container=s,this.append(s);for(let p=0;p<n.length;p++){let S=new Ci(n[p].trim(),c);s.append(S)}}reflow(t){const n=this.options,s=n.visual;if(this.container.options.align=n.align,s&&!this._boxReflow){let c=t;c.hasSize()||(this._boxReflow=!0,this.reflow(c),this._boxReflow=!1,c=this.box);const p=this.visual=s(this.visualContext(c));p&&(c=$i(p.clippedBBox()||new Hs.Z),p.options.zIndex=n.zIndex),this.box=this.contentBox=this.paddingBox=c}else if(super.reflow(t),n.rotation){const c=St(n.margin);let p=this.box.unpad(c);this.targetBox=t,this.normalBox=p.clone(),p=this.rotate(),p.translate(c.left-c.right,c.top-c.bottom),this.rotatedBox=p.clone(),p.pad(c)}}createVisual(){const t=this.options;if(this.visual=new vo.Z({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){const n=Ws.y.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(n)}}renderVisual(){if(this.options.visible)if(this.options.visual){const t=this.visual;t&&!ei(t.options.noclip)&&(t.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else super.renderVisual()}visualContext(t){const n={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:()=>(this._boxReflow=!0,this.reflow(t),this._boxReflow=!1,this.getDefaultVisual())};return this.data&&Object.assign(n,this.data),n}getDefaultVisual(){this.createVisual(),this.renderChildren();const t=this.visual;return delete this.visual,t}rotate(){const t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,Qt,t.align),this.align(this.targetBox,yi,t.vAlign),this.box}rotationTransform(){const t=this.options.rotation;if(!t)return null;const{x:n,y:s}=this.normalBox.center(),c=this.rotatedBox.center();return Ho.Z().translate(c.x-n,c.y-s).rotate(t,[n,s])}};class Js extends mt{constructor(t){super(t),this._textBox=new Ns(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}reflow(t){super.reflow(t),this.box.snapTo(t,Qt)}static buildTitle(t,n){let c,s=t;return"string"==typeof t&&(s={text:t}),s=Object.assign({visible:!0},n,s),s&&s.visible&&s.text&&(c=new Js(s)),c}static orderTitles(t){const n=[].concat(t),s=n.filter(p=>p&&p.options.position!==$e),c=n.filter(p=>p&&p.options.position===$e);return $s(s),$s(c),c.reverse(),s.concat(c)}}function $s(g){for(let t=1;t<g.length;t++){const n=g[t]._textBox,s=g[t-1]._textBox;s.options.margin=Object.assign(St(s.options.margin),{bottom:0}),n.options.margin=Object.assign(St(n.options.margin),{top:0})}}ni(Js,{color:Ze,position:ot,align:Oe,margin:St(5),padding:St(5)});const mr=Js;class Lo extends Ns{constructor(t,n,s,c,p){super(n,p),this.text=n,this.value=t,this.index=s,this.dataItem=c,this.reflow(new vs)}visualContext(t){const n=super.visualContext(t);return n.value=this.value,n.dataItem=this.dataItem,n.format=this.options.format,n.culture=this.options.culture,n}click(t,n){t.trigger("axisLabelClick",{element:ai(n),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})}rotate(){if(this.options.alignRotation!==Oe){const t=this.normalBox.toRect(),n=this.rotationTransform();this.box=$i(t.bbox(n.matrix()))}else super.rotate();return this.box}rotationTransform(){const t=this.options,n=t.rotation;if(!n)return null;if(t.alignRotation===Oe)return super.rotationTransform();const s=Ho.Z().rotate(n).matrix(),c=this.normalBox.toRect(),p=this.targetBox.toRect(),S=t.rotationOrigin||ot,k=S===ot||S===$e?Qt:yi,$=S===ot||S===$e?yi:Qt,me=S===ot||S===sn?p.origin:p.bottomRight(),Ve=c.topLeft().transformCopy(s),_t=c.topRight().transformCopy(s),Vt=c.bottomRight().transformCopy(s),Wn=c.bottomLeft().transformCopy(s),si=Hs.Z.fromPoints(Ve,_t,Vt,Wn),Ri={[$]:p.origin[$]-si.origin[$]},ts=Math.abs(Ve[$]+Ri[$]-me[$]),Os=Math.abs(_t[$]+Ri[$]-me[$]);let Zs,wr;Ke(ts,We)===Ke(Os,We)?(Zs=Ve,wr=_t):Os<ts?(Zs=_t,wr=Vt):(Zs=Ve,wr=Wn);const _a=Zs[k]+(wr[k]-Zs[k])/2;return Ri[k]=p.center()[k]-_a,Ho.Z().translate(Ri.x,Ri.y).rotate(n)}}ni(Lo,{_autoReflow:!1});const yr=Lo;class Wr extends et{constructor(t,n,s){super(n),this.fields=t,this.chartService=s,this.render()}hide(){this.options.visible=!1}show(){this.options.visible=!0}render(){const t=this.options;if(t.visible){const{label:n,icon:s}=t,c=new vs,p=()=>this;let $,me,S=s.size,k=this.fields.text;if(ei(n)&&n.visible){const _t=pt(n);_t?k=_t(this.fields):n.format&&(k=this.chartService.format.auto(n.format,k)),n.color||(n.color=n.position===Nn?"#fff":s.background),this.label=new Ns(k,U({},n)),this.label.aliasFor=p,n.position===Nn&&!ei(S)&&(s.type===Nt?S=Math.max(this.label.box.width(),this.label.box.height()):($=this.label.box.width(),me=this.label.box.height()),c.wrap(this.label.box))}s.width=$||S||7,s.height=me||S||7;const Ve=new Gi(U({},s));Ve.aliasFor=p,this.marker=Ve,this.append(Ve),this.label&&this.append(this.label),Ve.reflow(new vs),this.wrapperBox=c.wrap(Ve.box)}}reflow(t){const{options:n,label:s,marker:c,wrapperBox:p}=this,S=t.center(),k=n.line.length,$=n.position;if(n.visible){let me,Ve,_t;ui($,[sn,Si])?$===sn?(_t=p.alignTo(t,$).translate(-k,t.center().y-p.center().y),n.line.visible&&(me=[t.x1,S.y],this.linePoints=[me,[_t.x2,S.y]],Ve=_t.clone().wrapPoint(me))):(_t=p.alignTo(t,$).translate(k,t.center().y-p.center().y),n.line.visible&&(me=[t.x2,S.y],this.linePoints=[me,[_t.x1,S.y]],Ve=_t.clone().wrapPoint(me))):$===$e?(_t=p.alignTo(t,$).translate(t.center().x-p.center().x,k),n.line.visible&&(me=[S.x,t.y2],this.linePoints=[me,[S.x,_t.y1]],Ve=_t.clone().wrapPoint(me))):(_t=p.alignTo(t,$).translate(t.center().x-p.center().x,-k),n.line.visible&&(me=[S.x,t.y1],this.linePoints=[me,[S.x,_t.y2]],Ve=_t.clone().wrapPoint(me))),c&&c.reflow(_t),s&&(s.reflow(_t),c&&(n.label.position===ki&&s.box.alignTo(c.box,$),s.reflow(s.box))),this.contentBox=_t,this.targetBox=t,this.box=Ve||_t}}createVisual(){super.createVisual(),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()}renderVisual(){const t=this.options,n=t.visual;t.visible&&n?(this.visual=n(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:t.background,border:t.background,icon:t.icon,label:t.label,line:t.line,position:t.position,visible:t.visible},createVisual:()=>{this.createVisual(),this.renderChildren();const s=this.visual;return delete this.visual,s}})),this.addVisual()):super.renderVisual()}createLine(){const t=this.options.line;if(this.linePoints){const n=Ws.y.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});Cn(n),this.visual.append(n)}}click(t,n){const s=this.eventArgs(n);t.trigger("noteClick",s)||n.preventDefault()}over(t,n){const s=this.eventArgs(n);t.trigger("noteHover",s)||n.preventDefault()}out(t,n){const s=this.eventArgs(n);t.trigger("noteLeave",s)}eventArgs(t){const n=this.options;return Object.assign(this.fields,{element:ai(t),text:ei(n.label)?n.label.text:"",visual:this.visual})}}ni(Wr,{icon:{visible:!0,type:Nt},label:{position:Nn,visible:!0,align:Oe,vAlign:Oe},line:{visible:!0},visible:!0,position:ot,zIndex:2});const Oo=Wr;let ea={format:(g,t)=>t,toString:g=>g,parseDate:g=>new Date(g),firstDay:()=>0};const Br=class la{static register(t){ea=t}static get implementation(){return ea}},Il=/\{(\d+)(:[^\}]+)?\}/g,er=class Ur{constructor(t,n={}){this._intlService=n.intlService,this.sender=n.sender||t,this.format=new class br{constructor(t){this._intlService=t}get intl(){return this._intlService||Br.implementation}set intl(t){this._intlService=t}auto(t,...n){const s=this.intl;return bi(t)&&t.match(It)?s.format(t,...n):s.toString(n[0],t)}localeAuto(t,n,s){const c=this.intl;let p;return p=bi(t)&&t.match(It)?t.replace(Il,function(S,k,$){let me=n[parseInt(k,10)];return c.toString(me,$?$.substring(1):"",s)}):c.toString(n[0],t,s),p}}(n.intlService),this.chart=t,this.rtl=Boolean(n.rtl)}get intl(){return this._intlService||Br.implementation}set intl(t){this._intlService=t,this.format.intl=t}notify(t,n){this.chart&&this.chart.trigger(t,n)}isPannable(t){const n=((this.chart||{}).options||{}).pannable;return n&&n.lock!==t}};let ha;const Tl=class ir{static register(t){ha=t}static create(t,n){if(ha)return ha.create(t,n)}};function jl(g,t){const{tickX:n,tickY:s,position:c}=g,p=new Ws.y({stroke:{width:t.width,color:t.color}});return g.vertical?p.moveTo(n,c).lineTo(n+t.size,c):p.moveTo(c,s).lineTo(c,s+t.size),Cn(p),p}function qa(g,t){const{lineStart:n,lineEnd:s,position:c}=g,p=new Ws.y({stroke:{width:t.width,color:t.color,dashType:t.dashType}});return g.vertical?p.moveTo(n,c).lineTo(s,c):p.moveTo(c,n).lineTo(c,s),Cn(p),p}class Ml extends mt{constructor(t,n=new er){super(t),this.chartService=n,this.options.visible||(this.options=U({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=U({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==Mn},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=U({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==Mn},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}initFields(){}labelsRange(){return{min:this.options.labels.skip,max:this.labelsCount()}}normalizeLabelRotation(t){const n=t.rotation;gt(n)&&(t.alignRotation=n.align,t.rotation=n.angle)}createLabels(){const t=this.options,s=U({},t.labels,{align:t.vertical?Si:Oe,zIndex:t.zIndex}),c=Math.max(1,s.step);if(this.clearLabels(),s.visible){this.normalizeLabelRotation(s),"auto"===s.rotation&&(s.rotation=0,t.autoRotateLabels=!0);const p=this.labelsRange();for(let S=p.min;S<p.max;S+=c){let $=this.createAxisLabel(S,s,{index:S,count:p.max});$&&(this.append($),this.labels.push($))}}}clearLabels(){this.children=Gn(this.children,t=>!(t instanceof yr)),this.labels=[]}clearTitle(){this.title&&(this.children=Gn(this.children,t=>t!==this.title),this.title=void 0)}clear(){this.clearLabels(),this.clearTitle()}lineBox(){const{options:t,box:n}=this,c=t.labels.mirror,p=c?n.x1:n.x2,S=c?n.y2:n.y1,k=t.line.width||0;return t.vertical?new vs(p,n.y1,p,n.y2-k):new vs(n.x1,S,n.x2-k,S)}createTitle(){const t=this.options,n=U({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(n.visible&&n.text){const s=new Ns(n.text,n);this.append(s),this.title=s}}createNotes(){const t=this.options,n=t.notes,s=n.data||[];this.notes=[];for(let c=0;c<s.length;c++){const p=U({},n,s[c]);p.value=this.parseNoteValue(p.value);const S=new Oo({value:p.value,text:p.label.text,dataItem:p},p,this.chartService);S.options.visible&&(ei(S.options.position)?t.vertical&&!ui(S.options.position,[sn,Si])?S.options.position=t.reverse?sn:Si:!t.vertical&&!ui(S.options.position,[ot,$e])&&(S.options.position=t.reverse?$e:ot):S.options.position=t.vertical?t.reverse?sn:Si:t.reverse?$e:ot,this.append(S),this.notes.push(S))}}parseNoteValue(t){return t}renderVisual(){super.renderVisual(),this.createPlotBands()}createVisual(){super.createVisual(),this.createBackground(),this.createLine()}gridLinesVisual(){let t=this._gridLines;return t||(t=this._gridLines=new vo.Z({zIndex:-2}),this.appendVisual(this._gridLines)),t}createTicks(t){const n=this.options,s=this.lineBox(),c=n.labels.mirror,p=n.majorTicks.visible?n.majorUnit:0,S={vertical:n.vertical};function k($,me,Ve){const _t=$.length,Vt=Math.max(1,me.step);if(me.visible)for(let Wn=me.skip;Wn<_t;Wn+=Vt)ei(Ve)&&Wn%Ve==0||(S.tickX=c?s.x2:s.x2-me.size,S.tickY=c?s.y1-me.size:s.y1,S.position=$[Wn],t.append(jl(S,me)))}k(this.getMajorTickPositions(),n.majorTicks),k(this.getMinorTickPositions(),n.minorTicks,p/n.minorUnit)}createLine(){const t=this.options,n=t.line,s=this.lineBox();if(n.width>0&&n.visible){const c=new Ws.y({stroke:{width:n.width,color:n.color,dashType:n.dashType}});c.moveTo(s.x1,s.y1).lineTo(s.x2,s.y2),t._alignLines&&Cn(c);const p=this._lineGroup=new vo.Z;p.append(c),this.visual.append(p),this.createTicks(p)}}getActualTickSize(){const t=this.options;let n=0;return t.majorTicks.visible&&t.minorTicks.visible?n=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?n=t.majorTicks.size:t.minorTicks.visible&&(n=t.minorTicks.size),n}createBackground(){const{options:t,box:n}=this,s=t.background;s&&(this._backgroundPath=Ws.y.fromRect(n.toRect(),{fill:{color:s},stroke:null}),this.visual.append(this._backgroundPath))}createPlotBands(){const t=this.options,n=t.plotBands||[],s=t.vertical,c=this.plotArea;if(0===n.length)return;const p=this._plotbandGroup=new vo.Z({zIndex:-1}),S=Gn(this.pane.axes,k=>k.options.vertical!==this.options.vertical)[0];for(let k=0;k<n.length;k++){let me,Ve,Vt,$=n[k],_t=$.label;if(s?(me=(S||c.axisX).lineBox(),Ve=this.getSlot($.from,$.to,!0)):(me=this.getSlot($.from,$.to,!0),Ve=(S||c.axisY).lineBox()),_t&&(_t.vAlign=_t.position||sn,Vt=this.createPlotBandLabel(_t,$,new vs(me.x1,Ve.y1,me.x2,Ve.y2))),0!==me.width()&&0!==Ve.height()){const Wn=new Hs.Z([me.x1,Ve.y1],[me.width(),Ve.height()]),si=Ws.y.fromRect(Wn,{fill:{color:$.color,opacity:$.opacity},stroke:null});p.append(si),Vt&&p.append(Vt)}}this.appendVisual(p)}createPlotBandLabel(t,n,s){if(!1===t.visible)return null;let p,c=t.text;if(ei(t)&&t.visible){const S=pt(t);S?c=S({text:c,item:n}):t.format&&(c=this.chartService.format.auto(t.format,c)),t.color||(t.color=this.options.labels.color)}return p=new Ns(c,t),p.reflow(s),p.renderVisual(),p.visual}createGridLines(t){const n=this.options,{minorGridLines:s,majorGridLines:c,minorUnit:p,vertical:S}=n,k=t.options.line.visible,$=c.visible?n.majorUnit:0,me=t.lineBox(),Ve=me[S?"y1":"x1"],_t={lineStart:me[S?"x1":"y1"],lineEnd:me[S?"x2":"y2"],vertical:S},Vt=[],Wn=this.gridLinesVisual();function si(Ri,ts,Os){const Zs=Ri.length,wr=Math.max(1,ts.step);if(ts.visible)for(let _a=ts.skip;_a<Zs;_a+=wr){let ka=Ke(Ri[_a]);ui(ka,Vt)||_a%Os!=0&&(!k||Ve!==ka)&&(_t.position=ka,Wn.append(qa(_t,ts)),Vt.push(ka))}}return si(this.getMajorTickPositions(),c),si(this.getMinorTickPositions(),s,$/p),Wn.children}reflow(t){const{options:n,labels:s,title:c}=this,p=n.vertical,S=s.length,k=p?rn:Tt,$=c?c.box[k]():0,me=this.getActualTickSize()+n.margin+$,_t=((this.getRoot()||{}).box||t)[k]();let Vt=0;for(let Wn=0;Wn<S;Wn++){let si=s[Wn].box[k]();si+me<=_t&&(Vt=Math.max(Vt,si))}this.box=p?new vs(t.x1,t.y1,t.x1+Vt+me,t.y2):new vs(t.x1,t.y1,t.x2,t.y1+Vt+me),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()}getLabelsTickPositions(){return this.getMajorTickPositions()}labelTickIndex(t){return t.index}arrangeLabels(){const{options:t,labels:n}=this,s=this.labelsBetweenTicks(),c=t.vertical,p=t.labels.mirror,S=this.getLabelsTickPositions();for(let k=0;k<n.length;k++){const $=n[k],me=this.labelTickIndex($),Ve=c?$.box.height():$.box.width(),_t=S[me],Vt=S[me+1];let Wn,si;c?(Wn=s?_t+(Vt-_t)/2-Ve/2:_t-Ve/2,si=Wn):s?(Wn=_t,si=Vt):(Wn=_t-Ve/2,si=Wn+Ve),this.positionLabel($,p,Wn,si)}}positionLabel(t,n,s,c=s){const p=this.options,S=p.vertical,k=this.lineBox(),$=this.getActualTickSize()+p.margin;let me;if(S){let Ve=k.x2;n?(Ve+=$,t.options.rotationOrigin=sn):(Ve-=$+t.box.width(),t.options.rotationOrigin=Si),me=t.box.move(Ve,s)}else{let Ve=k.y1;n?(Ve-=$+t.box.height(),t.options.rotationOrigin=$e):(Ve+=$,t.options.rotationOrigin=ot),me=new vs(s,Ve,c,Ve+t.box.height())}t.reflow(me)}autoRotateLabelAngle(t,n){return t.width()<n?0:t.height()>n?-90:-45}autoRotateLabels(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;const t=this.getMajorTickPositions(),n=this.labels,s=Math.min(n.length,t.length-1);let c=0;for(let p=0;p<s;p++){const S=Math.abs(t[p+1]-t[p]),$=this.autoRotateLabelAngle(n[p].box,S);if(0!==$&&(c=$),-90===c)break}if(0!==c){for(let p=0;p<n.length;p++)n[p].options.rotation=c,n[p].reflow(new vs);return!0}}arrangeTitle(){const{options:t,title:n}=this,s=t.labels.mirror;n&&(t.vertical?(n.options.align=s?Si:sn,n.options.vAlign=n.options.position):(n.options.align=n.options.position,n.options.vAlign=s?ot:$e),n.reflow(this.box))}arrangeNotes(){for(let t=0;t<this.notes.length;t++){const n=this.notes[t],s=n.options.value;let c;ei(s)?(this.shouldRenderNote(s)?n.show():n.hide(),c=this.noteSlot(s)):n.hide(),n.reflow(c||this.lineBox())}}noteSlot(t){return this.getSlot(t)}alignTo(t){const n=t.lineBox(),s=this.options.vertical,c=s?yi:Qt;this.box.snapTo(n,c),s?this.box.shrink(0,this.lineBox().height()-n.height()):this.box.shrink(this.lineBox().width()-n.width(),0),this.box[c+1]-=this.lineBox()[c+1]-n[c+1],this.box[c+2]-=this.lineBox()[c+2]-n[c+2]}axisLabelText(t,n,s){let c;const p=pt(n),S=()=>n.format?this.chartService.format.localeAuto(n.format,[t],n.culture):t;return c=p?p(Object.assign({},s,{get text(){return S()},value:t,format:n.format,culture:n.culture})):S(),c}slot(t,n,s){const c=this.getSlot(t,n,s);if(c)return c.toRect()}contentBox(){const t=this.box.clone(),n=this.labels;if(n.length){const s=this.options.vertical?yi:Qt;if(this.chartService.isPannable(s)){const c=this.maxLabelOffset();t[s+1]-=c.start,t[s+2]+=c.end}else{n[0].options.visible&&t.wrap(n[0].box);const c=n[n.length-1];c.options.visible&&t.wrap(c.box)}}return t}maxLabelOffset(){const{vertical:t,reverse:n}=this.options,s=this.labelsBetweenTicks(),c=this.getLabelsTickPositions(),p=t?yi:Qt,S=this.labels,k=n?1:0,$=n?0:1;let me=0,Ve=0;for(let _t=0;_t<S.length;_t++){const Vt=S[_t],Wn=this.labelTickIndex(Vt);let si,Ri;s?(si=c[Wn+k],Ri=c[Wn+$]):si=Ri=c[Wn],me=Math.max(me,si-Vt.box[p+1]),Ve=Math.max(Ve,Vt.box[p+2]-Ri)}return{start:me,end:Ve}}limitRange(t,n,s,c,p){const S=this.options;if(t<s&&p<0&&(!ei(S.min)||S.min<=s)||c<n&&p>0&&(!ei(S.max)||c<=S.max))return null;if(n<s&&p>0||c<t&&p<0)return{min:t,max:n};const k=n-t;let $=t,me=n;return t<s&&p<0?($=Be(t,s,c),me=Be(t+k,s+k,c)):n>c&&p>0&&(me=Be(n,s,c),$=Be(n-k,s,c-k)),{min:$,max:me}}valueRange(){return{min:this.seriesMin,max:this.seriesMax}}lineDir(){const{vertical:t,reverse:n}=this.options;return(t?-1:1)*(n?-1:1)}lineInfo(){const{vertical:t}=this.options,n=this.lineBox(),s=t?n.height():n.width(),c=t?yi:Qt,p=this.lineDir(),k=c+(1===p?1:2).toString();return{axis:c,axisOrigin:k,axisDir:p,lineBox:n,lineSize:s,lineStart:n[k]}}pointOffset(t){const{axis:n,axisDir:s,axisOrigin:c,lineBox:p,lineSize:S}=this.lineInfo();return(s>0?t[n]-p[c]:p[c]-t[n])/S}scaleToDelta(t,n){const c=Be(t,-.999,.999);let p;return p=c>0?n*Math.min(1,c):n-n/(1+c),p}labelsBetweenTicks(){return!this.options.justified}prepareUserOptions(){}}ni(Ml,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Ze,visible:!0},title:{visible:!0,position:Oe},majorTicks:{align:ki,size:4,skip:0,step:1},minorTicks:{align:ki,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:ki,minorTickType:Mn,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Ze,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});const ca=Ml,Ma="milliseconds",Ir="seconds",ne="minutes",qt="hours",V="days",re="weeks",Ie="months",qe="years",Rn=1e3,ii=60*Rn,$n=60*ii,Ii=24*$n,ro=7*Ii,rs=31*Ii,Ki=365*Ii,Ss={years:Ki,months:rs,weeks:ro,days:Ii,hours:$n,minutes:ii,seconds:Rn,milliseconds:1};function go(g,t){return g.getTime()-t-(g.getTimezoneOffset()-t.getTimezoneOffset())*ii}function Ls(g,t){return new Date(g.getTime()+t)}function Ms(g){let t;return g instanceof Date?t=g:g&&(t=new Date(g)),t}function Po(g,t){return 0===t&&23===g.getHours()&&(g.setHours(g.getHours()+2),!0)}function yo(g,t,n,s){let c=g;if(g){let p=Ms(g);const S=p.getHours();n===qe?(c=new Date(p.getFullYear()+t,0,1),Po(c,0)):n===Ie?(c=new Date(p.getFullYear(),p.getMonth()+t,1),Po(c,S)):n===re?(c=yo(function ao(g,t=0){let n=0,s=g.getDay();if(!isNaN(s))for(;s!==t;)0===s?s=6:s--,n++;return Ls(g,-n*Ii)}(p,s),7*t,V),Po(c,S)):n===V?(c=new Date(p.getFullYear(),p.getMonth(),p.getDate()+t),Po(c,S)):n===qt?c=function zs(g,t){const n=new Date(g);n.setMinutes(0,0,0);const s=(g.getTimezoneOffset()-n.getTimezoneOffset())*ii;return Ls(n,s+t*$n)}(p,t):n===ne?(c=Ls(p,t*ii),c.getSeconds()>0&&c.setSeconds(0)):n===Ir?c=Ls(p,t*Rn):n===Ma&&(c=Ls(p,t)),n!==Ma&&c.getMilliseconds()>0&&c.setMilliseconds(0)}return c}function Uo(g,t,n){return yo(Ms(g),0,t,n)}function Xs(g,t,n){const s=Ms(g);return s&&Uo(s,t,n).getTime()===s.getTime()?s:yo(s,1,t,n)}function lr(g,t){return g&&t?g.getTime()-t.getTime():-1}function Fo(g,t){return g.getTime()-t}function no(g){if(An(g)){let t=[];for(let n=0;n<g.length;n++)t.push(no(g[n]));return t}if(g)return Ms(g).getTime()}function Tr(g,t){return g&&t?no(g)===no(t):g===t}function Oa(g,t,n){return go(g,t)/Ss[n]}function za(g,t,n,s){const c=Ms(g),p=Ms(t);let S;return S=n===Ie?c.getMonth()-p.getMonth()+12*(c.getFullYear()-p.getFullYear())+Oa(c,new Date(c.getFullYear(),c.getMonth()),V)/new Date(c.getFullYear(),c.getMonth()+1,0).getDate():n===qe?c.getFullYear()-p.getFullYear()+za(c,new Date(c.getFullYear(),0),Ie,1)/12:n===V||n===re?Oa(c,p,n):Fo(c,t)/Ss[n],S/s}function pa(g,t,n){let s;return s=n===qe?t.getFullYear()-g.getFullYear():n===Ie?12*pa(g,t,qe)+t.getMonth()-g.getMonth():n===V?Math.floor(Fo(t,g)/Ii):Math.floor(Fo(t,g)/Ss[n]),s}function Sr(g,t){let n;return n=bi(t)&&g.parseDate(t)||Ms(t),n}function $r(g,t){if(An(t)){const n=[];for(let s=0;s<t.length;s++)n.push(Sr(g,t[s]));return n}return Sr(g,t)}function el(g,t){return fi(g.weekStartDay)?g.weekStartDay:t&&t.firstDay?t.firstDay():0}class tl extends ca{initFields(){this._ticks={}}categoriesHash(){return""}clone(){const t=new tl(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t}initUserOptions(t){const n=t.categories||[],s=ei(t.min),c=ei(t.max);if(t.srcCategories=t.categories=n,(s||c)&&n.length){const p=s?Math.floor(t.min):0;let S;S=c?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):n.length,t.categories=t.categories.slice(p,S)}return t}rangeIndices(){const t=this.options,n=t.categories.length||1,s=fi(t.min)?t.min%1:0;let c;return c=fi(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?n-(1-t.max%1):n-(t.justified?1:0),{min:s,max:c}}range(){const t=this.options;return{min:fi(t.min)?t.min:0,max:fi(t.max)?t.max:this.totalRange().max}}roundedRange(){return this.range()}totalRange(){const t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}}scaleOptions(){const{min:t,max:n}=this.rangeIndices(),s=this.lineBox();return{scale:(this.options.vertical?s.height():s.width())/(n-t||1)*(this.options.reverse?-1:1),box:s,min:t,max:n}}arrangeLabels(){super.arrangeLabels(),this.hideOutOfRangeLabels()}hideOutOfRangeLabels(){const{box:t,labels:n}=this;if(n.length>0){const s=this.options.vertical?yi:Qt,c=t[s+1],p=t[s+2],S=n[0],k=Pt(n);(S.box[s+1]>p||S.box[s+2]<c)&&(S.options.visible=!1),(k.box[s+1]>p||k.box[s+2]<c)&&(k.options.visible=!1)}}getMajorTickPositions(){return this.getTicks().majorTicks}getMinorTickPositions(){return this.getTicks().minorTicks}getLabelsTickPositions(){return this.getTicks().labelTicks}tickIndices(t){const{min:n,max:s}=this.rangeIndices(),c=Math.ceil(s);let p=Math.floor(n);const S=[];for(;p<=c;)S.push(p),p+=t;return S}getTickPositions(t){const{vertical:n,reverse:s}=this.options,{scale:c,box:p,min:S}=this.scaleOptions(),k=p[(n?yi:Qt)+(s?2:1)],$=this.tickIndices(t),me=[];for(let Ve=0;Ve<$.length;Ve++)me.push(k+Ke(c*($[Ve]-S),xt));return me}getTicks(){const t=this.options,n=this._ticks,s=this.rangeIndices(),c=this.lineBox(),p=c.getHash()+s.min+","+s.max+t.reverse+t.justified;if(n._hash!==p){const S=t.minorTicks.visible||t.minorGridLines.visible;n._hash=p,n.labelTicks=this.getTickPositions(1),n.majorTicks=this.filterOutOfRangePositions(n.labelTicks,c),n.minorTicks=S?this.filterOutOfRangePositions(this.getTickPositions(.5),c):[]}return n}filterOutOfRangePositions(t,n){if(!t.length)return t;const s=this.options.vertical?yi:Qt,c=$=>n[s+1]<=$&&$<=n[s+2],p=t.length-1;let S=0;for(;!c(t[S])&&S<=p;)S++;let k=p;for(;!c(t[k])&&k>=0;)k--;return t.slice(S,k+1)}lineInfo(){const{vertical:t,reverse:n}=this.options,s=this.lineBox(),c=t?s.height():s.width(),p=t?yi:Qt,S=n?-1:1,$=p+(1===S?1:2).toString();return{axis:p,axisOrigin:$,axisDir:S,lineBox:s,lineSize:c,lineStart:s[$]}}lineDir(){const{reverse:t}=this.options;return t?-1:1}getSlot(t,n,s){const c=this.options,{reverse:p,justified:S}=c,{scale:k,box:$,min:me}=this.scaleOptions(),{axis:Ve,lineStart:_t}=this.lineInfo(),Vt=$.clone(),Wn=!ei(n),si=Et(t,0);let Ri=Et(n,si);Ri=Math.max(Ri-1,si),Ri=Math.max(si,Ri);let ts=_t+(si-me)*k,Os=_t+(Ri+1-me)*k;return Wn&&S&&(Os=ts),s&&(ts=Be(ts,$[Ve+1],$[Ve+2]),Os=Be(Os,$[Ve+1],$[Ve+2])),Vt[Ve+1]=p?Os:ts,Vt[Ve+2]=p?ts:Os,Vt}limitSlot(t){const s=this.options.vertical?yi:Qt,c=this.lineBox(),p=t.clone();return p[s+1]=Be(t[s+1],c[s+1],c[s+2]),p[s+2]=Be(t[s+2],c[s+1],c[s+2]),p}slot(t,n,s){const c=Math.floor(this.options.min||0);let p=t,S=n;return"string"==typeof p?p=this.categoryIndex(p):fi(p)&&(p-=c),"string"==typeof S?S=this.categoryIndex(S):fi(S)&&(S-=c),super.slot(p,S,s)}pointCategoryIndex(t){const{reverse:n,justified:s,vertical:c}=this.options,p=c?yi:Qt,{scale:S,box:k,min:$,max:me}=this.scaleOptions(),_t=k[p+1],Wn=t[p];if(Wn<_t||Wn>k[p+2])return null;let si=(n?me:$)+(Wn-_t)/S;const Ri=si%1;return s?si=Math.round(si):0===Ri&&si>0&&si--,Math.floor(si)}getCategory(t){const n=this.pointCategoryIndex(t);return null===n?null:this.options.categories[n]}categoryIndex(t){return this.totalIndex(t)-Math.floor(this.options.min||0)}categoryAt(t,n){const s=this.options;return(n?s.srcCategories:s.categories)[t]}categoriesCount(){return(this.options.categories||[]).length}translateRange(t){const n=this.options,s=this.lineBox(),c=n.vertical?s.height():s.width(),p=n.categories.length,k=Ke(t/(c/p),We);return{min:k,max:p+k}}scaleRange(t,n){const s=Math.abs(this.pointOffset(n)),c=this.limitedRangeIndices(),S=this.scaleToDelta(t,c.max-c.min),me=c.min+s*S;let Ve=c.max-(1-s)*S;return Ve-me<.1&&(Ve=me+.1),{min:me,max:Ve}}zoomRange(t,n){const{min:s,max:c}=this.totalRange(),p=this.scaleRange(t,n);return{min:Be(p.min,s,c),max:Be(p.max,s,c)}}labelsCount(){const t=this.labelsRange();return t.max-t.min}labelsRange(){const t=this.options,{justified:n,labels:s}=t;let{min:c,max:p}=this.limitedRangeIndices(!0);const S=Math.floor(c);let k;return n?(c=Math.ceil(c),p=Math.floor(p)):(c=Math.floor(c),p=Math.ceil(p)),k=c>s.skip?s.skip+s.step*Math.ceil((c-s.skip)/s.step):s.skip,{min:k-S,max:(t.categories.length?p+(n?1:0):0)-S}}createAxisLabel(t,n,s){const c=this.options,p=c.dataItems?c.dataItems[t]:null,S=Et(c.categories[t],"");s.dataItem=p;const k=this.axisLabelText(S,n,s);return new yr(S,k,t,p,n)}shouldRenderNote(t){const n=this.limitedRangeIndices();return Math.floor(n.min)<=t&&t<=Math.ceil(n.max)}noteSlot(t){const s=t-Math.floor(this.options.min||0);return this.getSlot(s)}arrangeNotes(){super.arrangeNotes(),this.hideOutOfRangeNotes()}hideOutOfRangeNotes(){const{notes:t,box:n}=this;if(t&&t.length){const s=this.options.vertical?yi:Qt,c=n[s+1],p=n[s+2];for(let S=0;S<t.length;S++){const k=t[S];k.box&&(p<k.box[s+1]||k.box[s+2]<c)&&k.hide()}}}pan(t){const n=this.limitedRangeIndices(!0),{scale:s}=this.scaleOptions(),c=Ke(t/s,We),p=this.totalRange();return this.limitRange(n.min+c,n.max+c,0,p.max,c)}pointsRange(t,n){const{reverse:s,vertical:c}=this.options,p=c?yi:Qt,S=this.limitedRangeIndices(!0),{scale:k,box:$}=this.scaleOptions(),me=$[p+(s?2:1)],Vt=S.min+(t[p]-me)/k,Wn=S.min+(n[p]-me)/k,si=Math.min(Vt,Wn),Ri=Math.max(Vt,Wn);if(Ri-si>=.01)return{min:si,max:Ri}}valueRange(){return this.range()}totalIndex(t){const n=this.options;return this._categoriesMap?this._categoriesMap.get(t):function Uc(g,t){if(g instanceof Date){const n=t.length;for(let s=0;s<n;s++)if(Tr(t[s],g))return s;return-1}return t.indexOf(g)}(t,n.srcCategories)}currentRangeIndices(){const t=this.options;let s,n=0;return fi(t.min)&&(n=Math.floor(t.min)),s=fi(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1,{min:n,max:s}}limitedRangeIndices(t){const n=this.options;let c,s=fi(n.min)?n.min:0;if(c=fi(n.max)?n.max:fi(n.min)?s+n.categories.length:this.totalRange().max||1,t){const p=this.totalRange();s=Be(s,0,p.max),c=Be(c,0,p.max)}return{min:s,max:c}}totalRangeIndices(){return{min:0,max:this.totalRange().max||1}}mapCategories(){if(!this._categoriesMap){const t=this._categoriesMap=new mi,n=this.options.srcCategories;for(let s=0;s<n.length;s++)t.set(n[s],s)}}totalCount(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)}}ni(tl,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:Ze},labels:{zIndex:1},justified:!1,_deferLabels:!0});const hl=tl,Wl=3e5,Xl={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},kl="auto",ta=[Ma,Ir,ne,qt,V,re,Ie,qe],_l="fit";function Ja(g,t){t&&(g._range=void 0);let n=g._range;return n||(n=g._range=Pe(g),n.min=Ms(n.min),n.max=Ms(n.max)),n}class fc{constructor(t){this.options=t}displayIndices(){return{min:0,max:1}}displayRange(){return{}}total(){return{}}valueRange(){return{}}valueIndex(){return-1}values(){return[]}totalIndex(){return-1}valuesCount(){return 0}totalCount(){return 0}dateAt(){return null}}class nl{constructor(t,n,s){this.options=s,s.baseUnitStep=s.baseUnitStep||1;const{roundToBaseUnit:c,justified:p}=s;this.start=yo(t,0,s.baseUnit,s.weekStartDay);const S=this.roundToTotalStep(n),k=!p&&Tr(n,S)&&!s.justifyEnd;this.end=this.roundToTotalStep(n,!p,k?1:0);const $=s.min||t;this.valueStart=this.roundToTotalStep($),this.displayStart=c?this.valueStart:$;const me=s.max;if(me){const Ve=!p&&Tr(me,this.roundToTotalStep(me))?-1:0;this.valueEnd=this.roundToTotalStep(me,!1,Ve),this.displayEnd=c?this.roundToTotalStep(me,!p):s.max}else this.valueEnd=S,this.displayEnd=c||k?this.end:n;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))}displayRange(){return{min:this.displayStart,max:this.displayEnd}}displayIndices(){if(!this._indices){const t=this.options,{baseUnit:n,baseUnitStep:s}=t,c=za(this.displayStart,this.valueStart,n,s),p=za(this.displayEnd,this.valueStart,n,s);this._indices={min:c,max:p}}return this._indices}total(){return{min:this.start,max:this.end}}totalCount(){return this.totalIndex(this.end)+(this.options.justified?1:0)}valueRange(){return{min:this.valueStart,max:this.valueEnd}}valueIndex(t){const n=this.options;return Math.floor(za(t,this.valueStart,n.baseUnit,n.baseUnitStep))}totalIndex(t){const n=this.options;return Math.floor(za(t,this.start,n.baseUnit,n.baseUnitStep))}dateIndex(t){const n=this.options;return za(t,this.valueStart,n.baseUnit,n.baseUnitStep)}valuesCount(){return this.valueIndex(this.valueEnd)+1}values(){let t=this._values;if(!t){const n=this.options,s=this.valueRange();this._values=t=[];for(let c=s.min;c<=s.max;)t.push(c),c=yo(c,n.baseUnitStep,n.baseUnit,n.weekStartDay)}return t}dateAt(t,n){const s=this.options;return yo(n?this.start:this.valueStart,s.baseUnitStep*t,s.baseUnit,s.weekStartDay)}roundToTotalStep(t,n,s){const{baseUnit:c,baseUnitStep:p,weekStartDay:S}=this.options,k=this.start,$=za(t,k,c,p);let me=n?Math.ceil($):Math.floor($);return s&&(me+=s),yo(k,me*p,c,S)}}function Sa(g,t,n){const s=Ja(g.categories),c=(g.max||s.max)-(g.min||s.min),{autoBaseUnitSteps:p,maxDateGroups:S}=g,k=g.baseUnit===_l;let Vt,Wn,si,$=t?ta.indexOf(t):0,me=k?ta[$++]:g.baseUnit,Ve=c/Ss[me],_t=Ve;for(;!Wn||Ve>=S;){Vt=Vt||p[me].slice(0);do{si=Vt.shift()}while(si&&t===me&&si<n);if(si)Wn=si,Ve=_t/Wn;else{if(me===Pt(ta)){Wn=Math.ceil(_t/S);break}if(!k){Ve>S&&(Wn=Math.ceil(_t/S));break}me=ta[$++]||Pt(ta),_t=c/Ss[me],Vt=null}}g.baseUnitStep=Wn,g.baseUnit=me}class sc extends hl{clone(){const t=new sc(Object.assign({},this.options),this.chartService);return t.createLabels(),t}categoriesHash(){const t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t}initUserOptions(t){return t}initFields(){super.initFields();const t=this.chartService,n=t.intl;let s=this.options,c=s.categories||[];if(c._parsed||(c=$r(n,c),c._parsed=!0),s=U({roundToBaseUnit:!0},s,{categories:c,min:Sr(n,s.min),max:Sr(n,s.max),weekStartDay:el(s,n)}),t.panning&&t.isPannable(s.vertical?yi:Qt)&&(s.roundToBaseUnit=!1),s.userSetBaseUnit=s.userSetBaseUnit||s.baseUnit,s.userSetBaseUnitStep=s.userSetBaseUnitStep||s.baseUnitStep,this.options=s,s.srcCategories=c,c.length>0){const p=Ja(c,!0),S=s.maxDivisions,k=function ql(g){const t=(g.baseUnit||"").toLowerCase();return t!==_l&&!ui(t,ta)&&function xl(g){const t=g.categories,n=ei(t)?t.length:0;let c,p,s=_n;for(let S=0;S<n;S++){const k=t[S];if(k&&c){const $=go(k,c);$>0&&(s=Math.min(s,$),p=s>=Ki?qe:s>=rs-3*Ii?Ie:s>=ro?re:s>=Ii?V:s>=$n?qt:s>=ii?ne:Ir)}c=k}g.baseUnit=p||V}(g),(t===_l||g.baseUnitStep===kl)&&Sa(g),g}(s),$=s._forecast;if($&&($.before>0&&(p.min=yo(p.min,-$.before,k.baseUnit,k.weekStartDay)),$.after>0&&(p.max=yo(p.max,$.after,k.baseUnit,k.weekStartDay))),this.dataRange=new nl(p.min,p.max,k),S){const me=this.dataRange.displayRange(),Ve=Object.assign({},s,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:me.min,max:me.max,maxDateGroups:S}),_t=this.dataRange.options;Sa(Ve,_t.baseUnit,_t.baseUnitStep),this.divisionRange=new nl(p.min,p.max,Ve)}else this.divisionRange=this.dataRange}else s.baseUnit=s.baseUnit||V,this.dataRange=this.divisionRange=new fc(s);this.rangeLabels=[]}tickIndices(t){const{dataRange:n,divisionRange:s}=this,c=s.valuesCount();if(!this.options.maxDivisions||!c)return super.tickIndices(t);const p=[];let S=s.values(),k=0;this.options.justified||(S=S.concat(s.dateAt(c)),k=.5);for(let $=0;$<S.length;$++)if(p.push(n.dateIndex(S[$])+k),1!==t&&$>=1){const me=p.length-1;p.splice($,0,p[me-1]+(p[me]-p[me-1])*t)}return p}shouldRenderNote(t){const n=this.range(),s=this.options.categories||[];return lr(t,n.min)>=0&&lr(t,n.max)<=0&&s.length}parseNoteValue(t){return Sr(this.chartService.intl,t)}noteSlot(t){return this.getSlot(t)}translateRange(t){const n=this.options,{baseUnit:s,weekStartDay:c,vertical:p}=n,S=this.lineBox(),k=p?S.height():S.width();let $=this.range();const Ve=Ke(t/(k/($.max-$.min)),We);if($.min&&$.max){const _t=Ls(n.min||$.min,Ve),Vt=Ls(n.max||$.max,Ve);$={min:yo(_t,0,s,c),max:yo(Vt,0,s,c)}}return $}labelsRange(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}pan(t){if(this.isEmpty())return null;const n=this.options,s=this.lineBox(),c=n.vertical?s.height():s.width(),{min:p,max:S}=this.dataRange.displayRange(),k=this.dataRange.total(),me=Ke(t/(c/(S-p)),We)*(n.reverse?-1:1),Ve=Ls(p,me),_t=Ls(S,me),Vt=this.limitRange(no(Ve),no(_t),no(k.min),no(k.max),me);return Vt?(Vt.min=Ms(Vt.min),Vt.max=Ms(Vt.max),Vt.baseUnit=n.baseUnit,Vt.baseUnitStep=n.baseUnitStep||1,Vt.userSetBaseUnit=n.userSetBaseUnit,Vt.userSetBaseUnitStep=n.userSetBaseUnitStep,Vt):void 0}pointsRange(t,n){if(this.isEmpty())return null;const s=super.pointsRange(t,n),c=this.dataRange.displayRange(),p=this.dataRange.displayIndices(),S=Fo(c.max,c.min)/(p.max-p.min),k=this.options;return{min:Ls(c.min,s.min*S),max:Ls(c.min,s.max*S),baseUnit:k.userSetBaseUnit||k.baseUnit,baseUnitStep:k.userSetBaseUnitStep||k.baseUnitStep}}scaleRange(t,n){if(this.isEmpty())return{};const s=this.options,c=s.userSetBaseUnit===_l,p=this.dataRange.total(),{min:S,max:k}=this.dataRange.displayRange(),$=Math.abs(this.pointOffset(n)),Ve=this.scaleToDelta(t,k-S),_t=Math.round($*Ve),Vt=Math.round((1-$)*Ve);let{baseUnit:Wn}=this.dataRange.options,si=new Date(S.getTime()+_t),Ri=new Date(k.getTime()-Vt);if(c){const{autoBaseUnitSteps:ts,maxDateGroups:Os}=s,Zs=Pt(ts[Wn])*Os*Ss[Wn],wr=Fo(k,S),_a=Fo(Ri,si);let Ql,wc,ka=ta.indexOf(Wn);if(_a<Ss[Wn]&&Wn!==Ma)Wn=ta[ka-1],Ql=Pt(ts[Wn]),wc=(wr-(Os-1)*Ql*Ss[Wn])/2,si=Ls(S,wc),Ri=Ls(k,-wc);else if(_a>Zs&&Wn!==qe){let Bc=0;do{ka++,Wn=ta[ka],Bc=0,wc=2*Ss[Wn];do{Ql=ts[Wn][Bc],Bc++}while(Bc<ts[Wn].length&&wc*Ql<wr)}while(Wn!==qe&&wc*Ql<wr);wc=(wc*Ql-wr)/2,wc>0&&(si=Ls(S,-wc),Ri=Ls(k,wc),si=Ls(si,Be(Ri,p.min,p.max)-Ri),Ri=Ls(Ri,Be(si,p.min,p.max)-si))}}return si&&Ri&&Fo(Ri,si)>0?{min:si,max:Ri,baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}:void 0}zoomRange(t,n){const s=this.dataRange.total(),c=this.scaleRange(t,n);return c&&(c.min<s.min&&(c.min=s.min),c.max>s.max&&(c.max=s.max)),c}range(){return this.dataRange.displayRange()}createLabels(){super.createLabels(),this.createRangeLabels()}clearLabels(){super.clearLabels(),this.rangeLabels=[]}arrangeLabels(){this.arrangeRangeLabels(),super.arrangeLabels()}arrangeRangeLabels(){const{options:t,rangeLabels:n}=this;if(0===n.length)return;const s=this.lineBox(),c=t.vertical,p=t.rangeLabels.mirror||t.labels.mirror,S=n[0];if(S){const $=c?s.y1-S.box.height()/2:s.x1;this.positionLabel(S,p,$)}const k=n[1];if(k){const $=c?s.y2-k.box.height()/2:s.x2;this.positionLabel(k,p,$)}}autoRotateLabels(){super.autoRotateLabels(),this.autoRotateRangeLabels()}hideOutOfRangeLabels(){super.hideOutOfRangeLabels(),this.hideOverlappingLabels()}hideOverlappingLabels(){const{rangeLabels:t,labels:n}=this;if(0===t.length)return;function s(S,k){return!(k.options.visible&&!k.box.overlaps(S.box)||(k.options.visible=!1,0))}const c=t[0];if(c&&c.options.visible)for(let S=0;S<n.length&&s(c,n[S]);S++);const p=t[1];if(p&&p.options.visible)for(let S=n.length-1;S>0&&s(p,n[S]);--S);}contentBox(){const t=super.contentBox(),n=this.rangeLabels;for(let s=0;s<n.length;s++){const c=n[s];c.options.visible&&t.wrap(c.box)}return t}createAxisLabel(t,n,s={}){const c=this.options,p=c.dataItems&&!c.maxDivisions?c.dataItems[t]:null,S=this.divisionRange.dateAt(t);n.format=n.format||n.dateFormats[this.divisionRange.options.baseUnit],s.dataItem=p;const $=this.axisLabelText(S,n,s);if($)return new yr(S,$,t,p,n)}createRangeLabels(){const{displayStart:t,displayEnd:n}=this.divisionRange,s=this.options,c=Object.assign({},s.labels,s.rangeLabels,{align:Oe,zIndex:s.zIndex});if(!0!==c.visible)return;this.normalizeLabelRotation(c),c.alignRotation=Oe,"auto"===c.rotation&&(c.rotation=0,s.autoRotateRangeLabels=!0),c.format=c.format||c.dateFormats[this.divisionRange.options.baseUnit];const S=(me,Ve,_t)=>{if(_t){const Vt=new yr(Ve,_t,me,null,c);this.append(Vt),this.rangeLabels.push(Vt)}};S(0,t,this.axisLabelText(t,c,{index:0,count:2})),S(1,n,this.axisLabelText(n,c,{index:1,count:2}))}autoRotateRangeLabels(){const t=this.rangeLabels;if(!this.options.autoRotateRangeLabels||this.options.vertical||2!==t.length)return;const n=(c,p,S)=>{const k=2*Math.abs(p[S+1]-p[S]),$=this.autoRotateLabelAngle(c.box,k);0!==$&&(c.options.rotation=$,c.reflow(new vs))},s=this.getMajorTickPositions();n(t[0],s,0),n(t[1],s,s.length-2)}categoryIndex(t){return this.dataRange.valueIndex(t)}slot(t,n,s){const c=this.dataRange;let p=t,S=n;p instanceof Date&&(p=c.dateIndex(p)),S instanceof Date&&(S=c.dateIndex(S));const k=this.getSlot(p,S,s);if(k)return k.toRect()}getSlot(t,n,s){let c=t,p=n;return typeof c===qn&&(c=this.categoryIndex(c)),typeof p===qn&&(p=this.categoryIndex(p)),super.getSlot(c,p,s)}valueRange(){const n=Ja(this.options.srcCategories);return{min:Ms(n.min),max:Ms(n.max)}}categoryAt(t,n){return this.dataRange.dateAt(t,n)}categoriesCount(){return this.dataRange.valuesCount()}rangeIndices(){return this.dataRange.displayIndices()}labelsBetweenTicks(){return!this.divisionRange.options.justified}prepareUserOptions(){this.isEmpty()||(this.options.categories=this.dataRange.values())}getCategory(t){const n=this.pointCategoryIndex(t);return null===n?null:this.dataRange.dateAt(n)}totalIndex(t){return this.dataRange.totalIndex(t)}currentRangeIndices(){const t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}}totalRange(){return this.dataRange.total()}totalRangeIndices(){const t=this.dataRange.total();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}}totalCount(){return this.dataRange.totalCount()}isEmpty(){return!this.options.srcCategories.length}roundedRange(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();const t=this.options,n=Ja(t.srcCategories);return new nl(n.min,n.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()}}ni(sc,{type:Kt,labels:{dateFormats:Xl},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});const Aa=sc;function Ol(g,t){return Ke(Math.floor(g/t)*t,We)}function Ca(g,t){return Ke(Math.ceil(g/t)*t,We)}function $l(g){return Math.max(Math.min(g,Wl),-Wl)}const vl=Math.pow(10,1-We);class ja extends ca{constructor(t,n,s,c){super(Object.assign({},s,{seriesMin:t,seriesMax:n}),c)}initUserOptions(t){const n=function il(g,t,n){const s=n.narrowRange;let c=function al(g,t,n){if(!g&&!t)return 0;let s;if(g>=0&&t>=0){const c=g===t?0:g;if(!1===n||!n&&(t-c)/t>.2)return 0;s=Math.max(0,c-(t-c)/2)}else s=g;return s}(g,t,s),p=function Va(g,t,n){if(!g&&!t)return 1;let s;if(g<=0&&t<=0){const c=g===t?0:t;let p=Math.abs((c-g)/c);if(!1===n||!n&&p>.2)return 0;s=Math.min(0,c-(g-c)/2)}else s=t;return s}(g,t,s);const S=jr(c,p),k={majorUnit:S};return!1!==n.roundToMajorUnit&&(c<0&&Bl(c,S,1/3)&&(c-=S),p>0&&Bl(p,S,1/3)&&(p+=S)),k.min=Ol(c,S),k.max=Ca(p,S),k}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function Tc(g,t){return{min:ei(t.min)?Math.min(g.min,t.min):g.min,max:ei(t.max)?Math.max(g.max,t.max):g.max,majorUnit:g.majorUnit}}(n,t),function Gc(g,t){let s,c,n=t;if(t){(function ua(g,t){for(let n=0;n<t.length;n++){const s=t[n];null===g[s]&&(g[s]=void 0)}})(t,["min","max"]),s=ei(t.min),c=ei(t.max);const S=s||c;S&&t.min===t.max&&(t.min>0?t.min=0:t.max=1),t.majorUnit?(g.min=Ol(g.min,t.majorUnit),g.max=Ca(g.max,t.majorUnit)):S&&(n=U(g,t),g.majorUnit=jr(n.min,n.max))}g.minorUnit=(n.majorUnit||g.majorUnit)/5;const p=U(g,n);return p.min>=p.max&&(s&&!c?p.max=p.min+p.majorUnit:!s&&c&&(p.min=p.max-p.majorUnit)),p}(n,t)}initFields(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}clone(){return new ja(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return 0}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){if(0===t)return 1;const n=this.options;return Math.floor(Ke((n.max-n.min)/t,xt))+1}getTickPositions(t,n){const s=this.options,{axisDir:c,axisOrigin:p,lineBox:S,lineSize:k}=this.lineInfo(),Ve=t*(k/(s.max-s.min)),_t=this.getDivisions(t),Vt=[];let Wn=S[p],si=0;n&&(si=n/t);for(let Ri=0;Ri<_t;Ri++)Ri%si!=0&&Vt.push(Ke(Wn,xt)),Wn+=Ve*c;return Vt}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(t,n,s=!1){const c=this.options,{axis:p,axisDir:S,lineBox:k,lineSize:$,lineStart:me}=this.lineInfo(),Ve=S*($/(c.max-c.min));let _t=Et(t,n||0),Vt=Et(n,t||0);s&&(_t=Be(_t,c.min,c.max),Vt=Be(Vt,c.min,c.max));const Wn=Math.min(_t,Vt)-c.min,si=Math.max(_t,Vt)-c.min,Ri=new vs(k.x1,k.y1,k.x1,k.y1);return Ri[p+1]=$l(me+Ve*(S>0?Wn:si)),Ri[p+2]=$l(me+Ve*(S>0?si:Wn)),Ri}getValue(t){const n=this.options,s=Number(n.max),c=Number(n.min),p=this.pointOffset(t);return p<0||p>1?null:Ke(c+p*(s-c),We)}translateRange(t){const n=this.options,{vertical:s,reverse:c,max:p,min:S}=n,{lineSize:k}=this.lineInfo();let Ve=Ke(t/(k/(p-S)),We);return(s||c)&&!(s&&c)&&(Ve=-Ve),{min:S+Ve,max:p+Ve,offset:Ve}}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(t,n,s){const c=this.options,p=Ke(c.min+t*c.majorUnit,We),S=this.axisLabelText(p,n,s);return new yr(p,S,t,null,n)}shouldRenderNote(t){const n=this.range();return n.min<=t&&t<=n.max}pan(t){const n=this.translateRange(t);return this.limitRange(n.min,n.max,this.totalMin,this.totalMax,n.offset)}pointsRange(t,n){const s=this.getValue(t),c=this.getValue(n),p=Math.min(s,c),S=Math.max(s,c);if(this.isValidRange(p,S))return{min:p,max:S}}scaleRange(t,n){const s=Math.abs(this.pointOffset(n)),p=this.scaleToDelta(t,this.options.max-this.options.min),k=(1-s)*p,$=Ke(this.options.min+s*p,We);let me=Ke(this.options.max-k,We);return me-$<vl&&(me=$+vl),{min:$,max:me}}zoomRange(t,n){const{totalMin:s,totalMax:c}=this,p=this.scaleRange(t,n);return{min:Be(p.min,s,c),max:Be(p.max,s,c),narrowRange:!1}}isValidRange(t,n){return n-t>vl}}function Bl(g,t,n){const s=Ke(Math.abs(g%t),We);return 0===s||s>t*(1-n)}ni(ja,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Ze},labels:{format:"#.####################"},zIndex:1});const Ya=ja;class ft extends ca{constructor(t,n,s,c){const p=Ms(t),S=Ms(n),k=c.intl;let $=s||{};$=U($||{},{min:Sr(k,$.min),max:Sr(k,$.max),axisCrossingValue:$r(k,$.axisCrossingValues||$.axisCrossingValue),weekStartDay:el($,k)}),$=function ge(g,t,n){const s=n.min||g,c=n.max||t,p=n.baseUnit||(c&&s?function fe(g){let t=qt;return g>=Ki?t=qe:g>=rs?t=Ie:g>=ro?t=re:g>=Ii&&(t=V),t}(go(c,s)):qt),S=Ss[p],k=n.weekStartDay||0,$=Uo(no(s)-1,p,k)||Ms(c),me=Xs(no(c)+1,p,k),_t=(n.majorUnit?n.majorUnit:void 0)||Ca(jr($.getTime(),me.getTime()),S)/S,Vt=pa($,me,p),si=Ca(Vt,_t)-Vt,Ri=Math.floor(si/2),ts=si-Ri;return n.baseUnit||delete n.baseUnit,n.baseUnit=n.baseUnit||p,n.min=n.min||yo($,-Ri,p,k),n.max=n.max||yo(me,ts,p,k),n.minorUnit=n.minorUnit||_t/5,n.majorUnit=_t,n}(p,S,$),super($,c),this.intlService=k,this.seriesMin=p,this.seriesMax=S;const me=$.weekStartDay||0;this.totalMin=no(Uo(no(p)-1,$.baseUnit,me)),this.totalMax=no(Xs(no(S)+1,$.baseUnit,me))}clone(){return new ft(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){const n=this.options;return Math.floor(pa(n.min,n.max,n.baseUnit)/t+1)}getTickPositions(t){const n=this.options,{axisDir:s,lineSize:c,lineStart:p}=this.lineInfo(),S=this.getDivisions(t),$=c/Fo(n.max,n.min),me=n.weekStartDay||0,Ve=[p];for(let _t=1;_t<S;_t++){const Wn=p+Fo(yo(n.min,_t*t,n.baseUnit,me),n.min)*$*s;Ve.push(Ke(Wn,xt))}return Ve}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(t,n,s){return Ya.prototype.getSlot.call(this,Sr(this.intlService,t),Sr(this.intlService,n),s)}getValue(t){const n=Ya.prototype.getValue.call(this,t);return null!==n?Ms(n):null}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(t,n,s){const c=this.options,p=t*c.majorUnit;let k=c.min;p>0&&(k=yo(k,p,c.baseUnit,c.weekStartDay||0)),n.format=n.format||n.dateFormats[c.baseUnit];const me=this.axisLabelText(k,n,s);return new yr(k,me,t,null,n)}translateRange(t){const n=this.options,s=this.lineBox(),{vertical:c,reverse:p}=n,S=c?s.height():s.width(),k=this.range(),$=S/Fo(k.max,k.min);let me=Ke(t/$,We);return(c||p)&&(!c||!p)&&(me=-me),{min:Ls(n.min,me),max:Ls(n.max,me),offset:me}}shouldRenderNote(t){const n=this.range();return lr(t,n.min)>=0&&lr(t,n.max)<=0}pan(t){const n=this.translateRange(t,!0),s=this.limitRange(no(n.min),no(n.max),this.totalMin,this.totalMax,n.offset);if(s)return{min:Ms(s.min),max:Ms(s.max)}}pointsRange(t,n){const s=this.getValue(t),c=this.getValue(n),p=Math.min(s,c),S=Math.max(s,c);return{min:Ms(p),max:Ms(S)}}scaleRange(t,n){const s=Math.abs(this.pointOffset(n)),p=this.scaleToDelta(t,this.options.max-this.options.min),S=s*p,k=(1-s)*p,$=Ms(no(this.options.min)+S);let me=Ms(no(this.options.max)-k);return me-$<1e3&&(me=Ms(no($)+1e3)),{min:$,max:me}}zoomRange(t,n){const s=this.scaleRange(t,n);return{min:Ms(Be(no(s.min),this.totalMin,this.totalMax)),max:Ms(Be(no(s.max),this.totalMin,this.totalMax))}}}ni(ft,{type:Kt,majorGridLines:{visible:!0,width:1,color:Ze},labels:{dateFormats:Xl}});const He=ft;class Jn extends ca{constructor(t,n,s,c){const p=U({majorUnit:10,min:t,max:n},s),S=p.majorUnit,k=function es(g,t){const n=Ke(_e(g,t),We)%1;let s;return s=g<=0?t:0!==n&&(n<.3||n>.9)?Math.pow(t,_e(g,t)+.2):Math.pow(t,Math.ceil(_e(g,t))),s}(n,S),$=function Oi(g,t,n){const s=n.majorUnit;let c=g;return g<=0?c=t<=1?Math.pow(s,-2):1:n.narrowRange||(c=Math.pow(s,Math.floor(_e(g,s)))),c}(t,n,p),me=function ci(g,t,n,s){let{min:c,max:p}=n;return ei(n.axisCrossingValue)&&n.axisCrossingValue<=0&&Cs(),ei(s.max)?s.max<=0&&Cs():p=t,ei(s.min)?s.min<=0&&Cs():c=g,{min:c,max:p}}($,k,p,s);p.max=me.max,p.min=me.min,p.minorUnit=s.minorUnit||Ke(S-1,We),super(p,c),this.totalMin=ei(s.min)?Math.min($,s.min):$,this.totalMax=ei(s.max)?Math.max(k,s.max):k,this.logMin=Ke(_e(me.min,S),We),this.logMax=Ke(_e(me.max,S),We),this.seriesMin=t,this.seriesMax=n,this.createLabels()}clone(){return new Jn(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return this.options.min}getSlot(t,n,s){const{options:c,logMin:p,logMax:S}=this,{majorUnit:k,min:$,max:me}=c,{axis:Ve,axisDir:_t,lineBox:Vt,lineSize:Wn,lineStart:si}=this.lineInfo(),Ri=_t*(Wn/(S-p));let ts=Et(t,n||1),Os=Et(n,t||1);if(ts<=0||Os<=0)return null;s&&(ts=Be(ts,$,me),Os=Be(Os,$,me)),ts=_e(ts,k),Os=_e(Os,k);const Zs=Math.min(ts,Os)-p,wr=Math.max(ts,Os)-p,_a=new vs(Vt.x1,Vt.y1,Vt.x1,Vt.y1);return _a[Ve+1]=$l(si+Ri*(_t>0?Zs:wr)),_a[Ve+2]=$l(si+Ri*(_t>0?wr:Zs)),_a}getValue(t){const{options:n,logMin:s,logMax:c}=this,{majorUnit:p}=n,{axis:S,axisDir:k,lineStart:$,lineSize:me}=this.lineInfo(),_t=k*(t[S]-$);return _t<0||_t>me?null:Ke(Math.pow(p,s+_t*((c-s)/me)),We)}range(){const t=this.options;return{min:t.min,max:t.max}}translateRange(t){const{options:n,logMin:s,logMax:c}=this,{reverse:p,vertical:S,majorUnit:k}=n,$=this.lineBox(),Ve=(S?$.height():$.width())/(c-s);let _t=Ke(t/Ve,We);return(S||p)&&!(S&&p)&&(_t=-_t),{min:Math.pow(k,s+_t),max:Math.pow(k,c+_t),offset:_t}}labelsCount(){const t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1}getMajorTickPositions(){const t=[];return this.traverseMajorTicksPositions(n=>{t.push(n)},{step:1,skip:0}),t}createTicks(t){const n=this.options,{majorTicks:s,minorTicks:c,vertical:p}=n,S=n.labels.mirror,k=this.lineBox(),me={vertical:p};function Ve(_t,Vt){me.tickX=S?k.x2:k.x2-Vt.size,me.tickY=S?k.y1-Vt.size:k.y1,me.position=_t,t.append(jl(me,Vt))}return s.visible&&this.traverseMajorTicksPositions(Ve,s),c.visible&&this.traverseMinorTicksPositions(Ve,c),[]}createGridLines(t){const n=this.options,{minorGridLines:s,majorGridLines:c,vertical:p}=n,S=t.lineBox(),k={lineStart:S[p?"x1":"y1"],lineEnd:S[p?"x2":"y2"],vertical:p},$=[],me=this.gridLinesVisual();function Ve(_t,Vt){ui(_t,$)||(k.position=_t,me.append(qa(k,Vt)),$.push(_t))}return c.visible&&this.traverseMajorTicksPositions(Ve,c),s.visible&&this.traverseMinorTicksPositions(Ve,s),me.children}traverseMajorTicksPositions(t,n){const{lineStart:s,step:c}=this.lineInfo(),{logMin:p,logMax:S}=this;for(let k=Math.ceil(p)+n.skip;k<=S;k+=n.step)t(Ke(s+c*(k-p),We),n)}traverseMinorTicksPositions(t,n){const{min:s,max:c,minorUnit:p,majorUnit:S}=this.options,{lineStart:k,step:$}=this.lineInfo(),{logMin:me,logMax:Ve}=this;for(let Vt=Math.floor(me);Vt<Ve;Vt++){const Wn=this._minorIntervalOptions(Vt);for(let si=n.skip;si<p;si+=n.step){const Ri=Wn.value+si*Wn.minorStep;if(Ri>c)break;Ri>=s&&t(Ke(k+$*(_e(Ri,S)-me),We),n)}}}createAxisLabel(t,n,s){const c=Math.ceil(this.logMin+t),p=Math.pow(this.options.majorUnit,c),S=this.axisLabelText(p,n,s);return new yr(p,S,t,null,n)}shouldRenderNote(t){const n=this.range();return n.min<=t&&t<=n.max}pan(t){const n=this.translateRange(t);return this.limitRange(n.min,n.max,this.totalMin,this.totalMax,n.offset)}pointsRange(t,n){const s=this.getValue(t),c=this.getValue(n);return{min:Math.min(s,c),max:Math.max(s,c)}}scaleRange(t,n){const{majorUnit:s}=this.options,c=_e(this.options.min,s),p=_e(this.options.max,s),S=Math.abs(this.pointOffset(n)),$=this.scaleToDelta(t,p-c),me=Math.pow(s,c+S*$);let Ve=Math.pow(s,p-(1-S)*$);return Ve-me<1e-6&&(Ve=me+1e-6),{min:me,max:Ve}}zoomRange(t,n){const s=this.scaleRange(t,n),{totalMin:c,totalMax:p}=this;return{min:Be(s.min,c,p),max:Be(s.max,c,p)}}_minorIntervalOptions(t){const{minorUnit:n,majorUnit:s}=this.options,c=Math.pow(s,t);return{value:c,minorStep:(Math.pow(s,t+1)-c)/n}}lineInfo(){const t=super.lineInfo();return t.step=t.axisDir*(t.lineSize/(this.logMax-this.logMin)),t}}function Cs(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function _e(g,t){return Math.log(g)/Math.log(t)}ni(Jn,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Ze},zIndex:1,_deferLabels:!0});const Ne=Jn,D={createGridLines:function(g){const t=this.options,n=Math.abs(this.box.center().y-g.lineBox().y1);let p,S,s=[],c=!1;return t.majorGridLines.visible&&(p=this.majorGridLineAngles(g),c=!0,s=this.renderMajorGridLines(p,n,t.majorGridLines)),t.minorGridLines.visible&&(S=this.minorGridLineAngles(g,c),ps(s,this.renderMinorGridLines(S,n,t.minorGridLines,g,c))),s},renderMajorGridLines:function(g,t,n){return this.renderGridLines(g,t,n)},renderMinorGridLines:function(g,t,n,s,c){const p=this.radiusCallback&&this.radiusCallback(t,s,c);return this.renderGridLines(g,t,n,p)},renderGridLines:function(g,t,n,s){const c={stroke:{width:n.width,color:n.color,dashType:n.dashType}},p=this.box.center(),S=new ms.Z([p.x,p.y],t),k=this.gridLinesVisual();for(let $=0;$<g.length;$++){const me=new Ws.y(c);s&&(S.radius=s(g[$])),me.moveTo(S.center).lineTo(S.pointAt(g[$]+180)),k.append(me)}return k.children},gridLineAngles:function(g,t,n,s,c){const p=this.intervals(t,n,s,c),S=g.options,k=S.visible&&!1!==(S.line||{}).visible;return Es(p,$=>{const me=this.intervalAngle($);if(!k||90!==me)return me})}};class W extends hl{range(){return{min:0,max:this.options.categories.length}}reflow(t){this.box=t,this.reflowLabels()}lineBox(){return this.box}reflowLabels(){const{labels:t,options:{labels:n}}=this,s=n.skip||0,c=n.step||1,p=new vs;for(let S=0;S<t.length;S++){t[S].reflow(p);const k=t[S].box;t[S].reflow(this.getSlot(s+S*c).adjacentBox(0,k.width(),k.height()))}}intervals(t,n,s,c=!1){const p=this.options,k=p.categories.length/t||1,$=360/k,Ve=s||1,_t=[];let Vt=0;for(let Wn=n||0;Wn<k;Wn+=Ve)Vt=p.reverse?360-Wn*$:Wn*$,Vt=Ke(Vt,xt)%360,c&&ui(Vt,c)||_t.push(Vt);return _t}majorIntervals(){return this.intervals(1)}minorIntervals(){return this.intervals(.5)}intervalAngle(t){return(360+t+this.options.startAngle)%360}majorAngles(){return Es(this.majorIntervals(),t=>this.intervalAngle(t))}createLine(){return[]}majorGridLineAngles(t){const n=this.options.majorGridLines;return this.gridLineAngles(t,1,n.skip,n.step)}minorGridLineAngles(t,n){const{minorGridLines:s,majorGridLines:c}=this.options,p=n?this.intervals(1,c.skip,c.step):null;return this.gridLineAngles(t,.5,s.skip,s.step,p)}radiusCallback(t,n,s){if(n.options.type!==Ft){const c=xe(360/(2*this.options.categories.length)),p=Math.cos(c)*t,S=this.majorAngles();return function($){return!s&&ui($,S)?t:p}}}createPlotBands(){const t=this.options.plotBands||[],n=this._plotbandGroup=new vo.Z({zIndex:-1});for(let s=0;s<t.length;s++){const c=t[s],p=this.plotBandSlot(c),S=this.getSlot(c.from),k=c.from-Math.floor(c.from);p.startAngle+=k*S.angle;const $=Math.ceil(c.to)-c.to;p.angle-=($+k)*S.angle;const me=Fr.current.createRing(p,{fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}});n.append(me)}this.appendVisual(n)}plotBandSlot(t){return this.getSlot(t.from,t.to-1)}getSlot(t,n){const s=this.options,c=s.justified,p=this.box,S=this.majorAngles(),k=S.length,$=360/k;let me=t;s.reverse&&!c&&(me=(me+1)%k),me=Be(Math.floor(me),0,k-1);let Ve=S[me];c&&(Ve-=$/2,Ve<0&&(Ve+=360));const Wn=$*(Be(Math.ceil(n||me),me,k-1)-me+1);return new so(p.center(),0,p.height()/2,Ve,Wn)}slot(t,n){const s=this.getSlot(t,n),c=s.startAngle+180;return new fr.Z([s.center.x,s.center.y],{startAngle:c,endAngle:c+s.angle,radiusX:s.radius,radiusY:s.radius})}pointCategoryIndex(t){const n=this.options.categories.length;let s=null;for(let c=0;c<n;c++)if(this.getSlot(c).containsPoint(t)){s=c;break}return s}}ni(W,{startAngle:90,labels:{margin:St(10)},majorGridLines:{visible:!0},justified:!0}),U(W.prototype,D);const L=W;class Me extends ca{constructor(t,n){super(t,n);const s=this.options;s.minorUnit=s.minorUnit||s.majorUnit/2}getDivisions(t){return Ya.prototype.getDivisions.call(this,t)-1}reflow(t){this.box=t,this.reflowLabels()}reflowLabels(){const{options:t,labels:n,options:{labels:s}}=this,c=s.skip||0,p=s.step||1,S=new vs,k=this.intervals(t.majorUnit,c,p);for(let $=0;$<n.length;$++){n[$].reflow(S);const me=n[$].box;n[$].reflow(this.getSlot(k[$]).adjacentBox(0,me.width(),me.height()))}}lineBox(){return this.box}intervals(t,n,s,c=!1){const p=this.options.min,S=this.getDivisions(t),k=[],me=s||1;for(let Ve=n||0;Ve<S;Ve+=me){const _t=(360+p+Ve*t)%360;c&&ui(_t,c)||k.push(_t)}return k}majorIntervals(){return this.intervals(this.options.majorUnit)}minorIntervals(){return this.intervals(this.options.minorUnit)}intervalAngle(t){return(540-t-this.options.startAngle)%360}createLine(){return[]}majorGridLineAngles(t){const n=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,n.skip,n.step)}minorGridLineAngles(t,n){const s=this.options,{minorGridLines:c,majorGridLines:p}=s,S=n?this.intervals(s.majorUnit,p.skip,p.step):null;return this.gridLineAngles(t,s.minorUnit,c.skip,c.step,S)}plotBandSlot(t){return this.getSlot(t.from,t.to)}getSlot(t,n){const{options:s,box:c}=this,p=s.startAngle;let S=Be(t,s.min,s.max),k=Be(n||S,S,s.max);if(s.reverse&&(S*=-1,k*=-1),S=(540-S-p)%360,k=(540-k-p)%360,k<S){const $=S;S=k,k=$}return new so(c.center(),0,c.height()/2,S,k-S)}slot(t,n=t){const s=this.options,c=360-s.startAngle,p=this.getSlot(t,n),S=Math.min(t,n),k=Math.max(t,n);let $,me;return s.reverse?($=S,me=k):($=360-k,me=360-S),$=($+c)%360,me=(me+c)%360,new fr.Z([p.center.x,p.center.y],{startAngle:$,endAngle:me,radiusX:p.radius,radiusY:p.radius})}getValue(t){const n=this.options,s=this.box.center();let S=Math.round(Fs(Math.atan2(t.y-s.y,t.x-s.x))),k=n.startAngle;return n.reverse||(S*=-1,k*=-1),(S+k+360)%360}valueRange(){return{min:0,max:2*Math.PI}}}ni(Me,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:St(10)},majorGridLines:{color:Ze,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),U(Me.prototype,D,{createPlotBands:L.prototype.createPlotBands,majorAngles:L.prototype.majorAngles,range:Ya.prototype.range,labelsCount:Ya.prototype.labelsCount,createAxisLabel:Ya.prototype.createAxisLabel});const tn=Me;function Vi(g,t){return 180-Math.abs(Math.abs(g-t)-180)}const hs={options:{majorGridLines:{visible:!0}},createPlotBands:function(){const{majorGridLines:{type:g},plotBands:t=[]}=this.options,n=this.plotArea.polarAxis,s=n.majorAngles(),c=n.box.center(),p=this._plotbandGroup=new vo.Z({zIndex:-1});for(let S=0;S<t.length;S++){const k=t[S],$={fill:{color:k.color,opacity:k.opacity},stroke:{opacity:k.opacity}},me=this.getSlot(k.from,k.to,!0),Ve=new so(c,c.y-me.y2,c.y-me.y1,0,360);let _t;_t=g===Ft?Fr.current.createRing(Ve,$):Ws.y.fromPoints(this.plotBandPoints(Ve,s),$).close(),p.append(_t)}this.appendVisual(p)},plotBandPoints:function(g,t){const n=[],s=[],c=[g.center.x,g.center.y],p=new ms.Z(c,g.innerRadius),S=new ms.Z(c,g.radius);for(let k=0;k<t.length;k++)n.push(p.pointAt(t[k]+180)),s.push(S.pointAt(t[k]+180));return n.reverse(),n.push(n[0]),s.push(s[0]),s.concat(n)},createGridLines:function(g){const t=this.options,n=this.radarMajorGridLinePositions(),s=g.majorAngles(),c=g.box.center();let p=[];if(t.majorGridLines.visible&&(p=this.renderGridLines(c,n,s,t.majorGridLines)),t.minorGridLines.visible){const S=this.radarMinorGridLinePositions();ps(p,this.renderGridLines(c,S,s,t.minorGridLines))}return p},renderGridLines:function(g,t,n,s){const c={stroke:{width:s.width,color:s.color,dashType:s.dashType}},{skip:p=0,step:S=0}=s,k=this.gridLinesVisual();for(let $=p;$<t.length;$+=S){const me=g.y-t[$];if(me>0){const Ve=new ms.Z([g.x,g.y],me);if(s.type===Ft)k.append(new Ko.Z(Ve,c));else{const _t=new Ws.y(c);for(let Vt=0;Vt<n.length;Vt++)_t.lineTo(Ve.pointAt(n[Vt]+180));_t.close(),k.append(_t)}}}return k.children},getValue:function(g){const t=this.lineBox(),n=this.plotArea.polarAxis,s=n.majorAngles(),c=n.box.center(),p=g.distanceTo(c);let S=p;if(this.options.majorGridLines.type!==Ft&&s.length>1){const me=(Fs(Math.atan2(g.y-c.y,g.x-c.x))+540)%360;s.sort(function(si,Ri){return Vi(si,me)-Vi(Ri,me)});const Ve=Vi(s[0],s[1])/2,_t=Vi(me,s[0]),Vt=90-Ve;S=p*(Math.sin(xe(180-_t-Vt))/Math.sin(xe(Vt)))}return this.axisType().prototype.getValue.call(this,new Qs(t.x1,t.y2-S))}};class Eo extends Ya{radarMajorGridLinePositions(){return this.getTickPositions(this.options.majorUnit)}radarMinorGridLinePositions(){const t=this.options;let n=0;return t.majorGridLines.visible&&(n=t.majorUnit),this.getTickPositions(t.minorUnit,n)}axisType(){return Ya}}U(Eo.prototype,hs);const jo=Eo;class gr extends Ne{radarMajorGridLinePositions(){const t=[];return this.traverseMajorTicksPositions(function(n){t.push(n)},this.options.majorGridLines),t}radarMinorGridLinePositions(){const t=[];return this.traverseMinorTicksPositions(function(n){t.push(n)},this.options.minorGridLines),t}axisType(){return Ne}}U(gr.prototype,hs);const Hr=gr;var Yo=_(57192);function ll(g){return g<=0?-1:1}const Zl=class Al extends Xi.Z{constructor(t){super(),this.closed=t}process(t){const n=t.slice(0),s=[];let c=this.closed,p=n.length;if(p>2&&(this.removeDuplicates(0,n),p=n.length),p<2||2===p&&n[0].equals(n[1]))return s;let me,Ve,S=n[0],k=n[1],$=n[2];for(s.push(new Yo.Z(S));S.equals(n[p-1]);)c=!0,n.pop(),p--;if(2===p){const Vt=this.tangent(S,k,Qt,yi);return Pt(s).controlOut(this.firstControlPoint(Vt,S,k,Qt,yi)),s.push(new Yo.Z(k,this.secondControlPoint(Vt,S,k,Qt,yi))),s}if(c){S=n[p-1],k=n[0],$=n[1];const Vt=this.controlPoints(S,k,$);me=Vt[1],Ve=Vt[0]}else{const Vt=this.tangent(S,k,Qt,yi);me=this.firstControlPoint(Vt,S,k,Qt,yi)}let _t=me;for(let Vt=0;Vt<=p-3;Vt++)if(this.removeDuplicates(Vt,n),p=n.length,Vt+3<=p){S=n[Vt],k=n[Vt+1],$=n[Vt+2];const Wn=this.controlPoints(S,k,$);Pt(s).controlOut(_t),_t=Wn[1],s.push(new Yo.Z(k,Wn[0]))}if(c){S=n[p-2],k=n[p-1],$=n[0];const Vt=this.controlPoints(S,k,$);Pt(s).controlOut(_t),s.push(new Yo.Z(k,Vt[0])),Pt(s).controlOut(Vt[1]),s.push(new Yo.Z($,Ve))}else{const Vt=this.tangent(k,$,Qt,yi);Pt(s).controlOut(_t),s.push(new Yo.Z($,this.secondControlPoint(Vt,k,$,Qt,yi)))}return s}removeDuplicates(t,n){for(;n[t+1]&&(n[t].equals(n[t+1])||n[t+1].equals(n[t+2]));)n.splice(t+1,1)}invertAxis(t,n,s){let c=!1;if(t.x===n.x)c=!0;else if(n.x===s.x)(n.y<s.y&&t.y<=n.y||s.y<n.y&&n.y<=t.y)&&(c=!0);else{const p=this.lineFunction(t,n),S=this.calculateFunction(p,s.x);t.y<=n.y&&s.y<=S||n.y<=t.y&&s.y>=S||(c=!0)}return c}isLine(t,n,s){const c=this.lineFunction(t,n),p=this.calculateFunction(c,s.x);return t.x===n.x&&n.x===s.x||Ke(p,1)===Ke(s.y,1)}lineFunction(t,n){const s=(n.y-t.y)/(n.x-t.x);return[t.y-s*t.x,s]}controlPoints(t,n,s){let $,c=Qt,p=yi,S=!1,k=!1;if(this.isLine(t,n,s))$=this.tangent(t,n,Qt,yi);else{const _t={x:this.isMonotonicByField(t,n,s,Qt),y:this.isMonotonicByField(t,n,s,yi)};if(_t.x&&_t.y)$=this.tangent(t,s,Qt,yi),S=!0;else if(this.invertAxis(t,n,s)&&(c=yi,p=Qt),_t[c])$=0;else{let Vt;Vt=s[p]<t[p]&&t[p]<=n[p]||t[p]<s[p]&&n[p]<=t[p]?ll((s[p]-t[p])*(n[c]-t[c])):-ll((s[c]-t[c])*(n[p]-t[p])),$=.01*Vt,k=!0}}const me=this.secondControlPoint($,t,n,c,p);if(k){const _t=c;c=p,p=_t}const Ve=this.firstControlPoint($,n,s,c,p);return S&&(this.restrictControlPoint(t,n,me,$),this.restrictControlPoint(n,s,Ve,$)),[me,Ve]}restrictControlPoint(t,n,s,c){t.y<n.y?n.y<s.y?(s.x=t.x+(n.y-t.y)/c,s.y=n.y):s.y<t.y&&(s.x=n.x-(n.y-t.y)/c,s.y=t.y):s.y<n.y?(s.x=t.x-(t.y-n.y)/c,s.y=n.y):t.y<s.y&&(s.x=n.x+(t.y-n.y)/c,s.y=t.y)}tangent(t,n,s,c){const p=n[s]-t[s];let k;return k=0===p?0:(n[c]-t[c])/p,k}isMonotonicByField(t,n,s,c){return s[c]>n[c]&&n[c]>t[c]||s[c]<n[c]&&n[c]<t[c]}firstControlPoint(t,n,s,c,p){const S=n[c],$=.333*(s[c]-S);return this.point(S+$,n[p]+$*t,c,p)}secondControlPoint(t,n,s,c,p){const k=s[c],$=.333*(k-n[c]);return this.point(k-$,s[p]-$*t,c,p)}point(t,n,s,c){const p=new js.Z;return p[s]=t,p[c]=n,p}calculateFunction(t,n){const s=t.length;let c=0;for(let p=0;p<s;p++)c+=Math.pow(n,p)*t[p];return c}},Ao=class Co extends Xi.Z{constructor(t){super(),this._axis=t,this.options=t.options}value(t){const n=this._axis;return n.getCategory?n.getCategory(t):n.getValue(t)}slot(t,n,s=!0){return this._axis.slot(t,n,s)}range(){return this._axis.range()}valueRange(){return this._axis.valueRange()}};function Wo(g,t){for(let n=0;n<t.length;n++)if(t[n].options.name===g)return t[n].prepareUserOptions(),new Ao(t[n])}const Ra=class tr{constructor(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t}findAxisByName(t){return Wo(t,this._pane.axes)}},sl=class pl extends Xi.Z{constructor(t){super(),this._plotArea=t,this.visual=t.visual,this.backgroundVisual=t._bgVisual}};function Dl(g){const t=g.length;let n=0;for(let s=0;s<t;s++)fi(g[s])&&n++;return n}const ra={min:function(g){const t=g.length;let n=_n;for(let s=0;s<t;s++){const c=g[s];fi(c)&&(n=Math.min(n,c))}return n===_n?g[0]:n},max:function(g){const t=g.length;let n=Ln;for(let s=0;s<t;s++){const c=g[s];fi(c)&&(n=Math.max(n,c))}return n===Ln?g[0]:n},sum:function(g){const t=g.length;let n=0;for(let s=0;s<t;s++){const c=g[s];fi(c)&&(n+=c)}return n},sumOrNull:function(g){let t=null;return Dl(g)&&(t=ra.sum(g)),t},count:function(g){const t=g.length;let n=0;for(let s=0;s<t;s++){const c=g[s];null!==c&&ei(c)&&n++}return n},avg:function(g){const t=Dl(g);let n=g[0];return t>0&&(n=ra.sum(g)/t),n},first:function(g){const t=g.length;for(let n=0;n<t;n++){const s=g[n];if(null!==s&&ei(s))return s}return g[0]}},mc=ra;function El(g,t){return null===t?t:hn(g)(t)}class va extends Xi.Z{constructor(){super(),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}register(t,n=[lt],s={}){for(let c=0;c<t.length;c++){const p=t[c];this._valueFields[p]=n,this._otherFields[p]=s,this._nullValue[p]=this._makeValue(n,null),this._undefinedValue[p]=this._makeValue(n,void 0)}}canonicalFields(t){return this.valueFields(t).concat(this.otherFields(t))}valueFields(t){return this._valueFields[t.type]||[lt]}otherFields(t){return this._otherFields[t.type]||[lt]}bindPoint(t,n,s){const c=t.data,p=ei(s)?s:c[n],S={valueFields:{value:p}},k=this.valueFields(t),$=this._otherFields[t.type];let me,Ve;if(null===p)Ve=this._nullValue[t.type];else if(ei(p)){if(Array.isArray(p)){const _t=p.slice(k.length);Ve=this._bindFromArray(p,k),me=this._bindFromArray(_t,$)}else if("object"==typeof p){const _t=this.sourceFields(t,k),Vt=this.sourceFields(t,$);Ve=this._bindFromObject(p,k,_t),me=this._bindFromObject(p,$,Vt)}}else Ve=this._undefinedValue[t.type];return ei(Ve)&&(1===k.length?S.valueFields.value=Ve[k[0]]:S.valueFields=Ve),S.fields=me||{},S}_makeValue(t,n){const s={},c=t.length;for(let p=0;p<c;p++)s[t[p]]=n;return s}_bindFromArray(t,n){const s={};if(n){const c=Math.min(n.length,t.length);for(let p=0;p<c;p++)s[n[p]]=t[p]}return s}_bindFromObject(t,n,s=n){const c={};if(n){const p=n.length;for(let S=0;S<p;S++){const $=s[S];null!==$&&(c[n[S]]=El($,t))}}return c}sourceFields(t,n){const s=[];if(n){const c=n.length;for(let p=0;p<c;p++){const S=n[p],k=S===lt?"field":S+"Field";s.push(null!==t[k]?t[k]||S:null)}}return s}}va.current=new va;const Mr=va,gc=/percent(?:\w*)\((\d+)\)/,bl=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Hc=class qc extends Xi.Z{constructor(t,n,s){super(),this.initGlobalRanges(t,n,s)}initGlobalRanges(t,n,s){const c=n.data,p=bl.exec(t);if(p){this.valueGetter=this.createValueGetter(n,s);const S=this.getAverage(c),k=this.getStandardDeviation(c,S,!1),$=p[1]?parseFloat(p[1]):1,me={low:S.value-k*$,high:S.value+k*$};this.globalRange=function(){return me}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(n,s);const S=this.getStandardError(c,this.getAverage(c));this.globalRange=function(k){return{low:k-S,high:k+S}}}}createValueGetter(t,n){const s=t.data,c=Mr.current,p=c.valueFields(t),S=ei(s[0])?s[0]:{};let k;return An(S)?k=hn("["+(n?p.indexOf(n):0)+"]"):fi(S)?k=hn():typeof S===qn&&(k=hn(c.sourceFields(t,p)[p.indexOf(n)])),k}getErrorRange(t,n){let s,c,p;if(!ei(n))return null;if(this.globalRange)return this.globalRange(t);if(An(n))s=t-n[0],c=t+n[1];else if(fi(p=parseFloat(n)))s=t-p,c=t+p;else{if(!(p=gc.exec(n)))throw new Error("Invalid ErrorBar value: "+n);{const S=t*(parseFloat(p[1])/100);s=t-Math.abs(S),c=t+Math.abs(S)}}return{low:s,high:c}}getStandardError(t,n){return this.getStandardDeviation(t,n,!0)/Math.sqrt(n.count)}getStandardDeviation(t,n,s){const c=t.length,p=s?n.count-1:n.count;let S=0;for(let k=0;k<c;k++){const $=this.valueGetter(t[k]);fi($)&&(S+=Math.pow($-n.value,2))}return Math.sqrt(S/p)}getAverage(t){const n=t.length;let s=0,c=0;for(let p=0;p<n;p++){const S=this.valueGetter(t[p]);fi(S)&&(s+=S,c++)}return{value:s/c,count:c}}},Kl=600,cl="fadeIn",Lu=(ss.Z.browser||{}).msie?.001:0,vu="errorLow",Xu="errorHigh",En="zero",Bi="interpolate",fs="above",Do="below",Qo="smooth",B="step",ce="area",Fe="bar",Dt="boxPlot",nn="bubble",hi="bullet",kn="candlestick",cs="column",qs="donut",xa="funnel",Pa="pyramid",Ua="heatmap",fa="horizontalWaterfall",qu="line",Fu="ohlc",eu="pie",Kd="polarArea",zu="polarLine",Rl="polarScatter",oo="radarArea",bd="radarColumn",du="radarLine",Qa="rangeArea",xc="rangeBar",Sd="rangeColumn",ed="scatter",yu="scatterLine",_c="verticalArea",Bu="verticalBoxPlot",td="verticalBullet",hu="verticalLine",kc="verticalRangeArea",pu="waterfall",Cd=[Fe,cs,Fu,kn,Dt,Bu,hi,Sd,xc,pu,fa],rc="linearTrendline",ye="movingAverageTrendline",Xe=[rc,ye],cn="seriesClick",xi="seriesHover",is="seriesOver",Zi="seriesLeave",Io="plotAreaHover",dr="plotAreaLeave",_r="drag",Kr="dragEnd",ma="dragStart",Da="zoomStart",ol="zoom",fl="zoomEnd",Na="selectStart",tc="select",rl="selectEnd",ul="showTooltip",ho="hideTooltip",Ea="log",dl="category",nc="insideEnd",Dc="outsideEnd",nd="wheel",nu="drilldown";class Jl extends mt{constructor(t,n,s,c,p,S){super(S),this.low=t,this.high=n,this.isVertical=s,this.chart=c,this.series=p}reflow(t){const n=this.options.endCaps,s=this.isVertical,p=this.getAxis().getSlot(this.low,this.high),S=t.center(),k=this.getCapsWidth(t,s),$=s?S.x:S.y,me=$-k,Ve=$+k;let _t;s?(_t=[new Qs(S.x,p.y1),new Qs(S.x,p.y2)],n&&_t.push(new Qs(me,p.y1),new Qs(Ve,p.y1),new Qs(me,p.y2),new Qs(Ve,p.y2)),this.box=new vs(me,p.y1,Ve,p.y2)):(_t=[new Qs(p.x1,S.y),new Qs(p.x2,S.y)],n&&_t.push(new Qs(p.x1,me),new Qs(p.x1,Ve),new Qs(p.x2,me),new Qs(p.x2,Ve)),this.box=new vs(p.x1,me,p.x2,Ve)),this.linePoints=_t}getCapsWidth(t,n){const s=n?t.width():t.height();return Math.min(Math.floor(s/2),4)||4}createVisual(){const t=this.options,n=t.visual;n?this.visual=n({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:t.endCaps,color:t.color,line:t.line},createVisual:()=>{this.createDefaultVisual();const s=this.visual;return delete this.visual,s}}):this.createDefaultVisual()}createDefaultVisual(){const{options:t,linePoints:n}=this,s={stroke:{color:t.color,width:t.line.width,dashType:t.line.dashType}};super.createVisual();for(let c=0;c<n.length;c+=2){const p=new Ws.y(s).moveTo(n[c].x,n[c].y).lineTo(n[c+1].x,n[c+1].y);Cn(p),this.visual.append(p)}}}ni(Jl,{animation:{type:cl,delay:Kl},endCaps:!0,line:{width:2},zIndex:1});const xd=Jl,sd=class jc extends xd{getAxis(){return this.chart.seriesValueAxis(this.series)}};function Qh(g){for(let t=0;t<g.length;t++)if(ei(g[t].zIndex))return!0}function Dd(g,t){null!==t&&g.push(t)}function yh(g){return Dl(g)===g.length}function Xh(g,t,n){const s=t.visible;if(ei(s))return s;const c=g.pointVisibility;return c?c[n]:void 0}function Gu(g){const t=g.data,n=[];let s=0,c=0;for(let p=0;p<t.length;p++){const S=Mr.current.bindPoint(g,p);let k=S.valueFields.value;bi(k)&&(k=parseFloat(k)),fi(k)?(S.visible=!1!==Xh(g,S.fields,p),S.value=Math.abs(k),n.push(S),S.visible&&(s+=S.value),0!==k&&c++):n.push(null)}return{total:s,points:n,count:c}}function Ed(g){const t=g.length;let n=0;for(let s=0;s<t;s++)n=Math.max(n,g[s].data.length);return n}function Pl(g,t){return g&&t?g.toLowerCase()===t.toLowerCase():g===t}const bh=5;function iu(g,t,n={},s=!1){const c=n.defaults=n.defaults||{},p=n.depth=n.depth||0;let S=!1;if(n.excluded=n.excluded||[],p>bh)return null;for(let k in g)if(!ui(k,n.excluded)&&g.hasOwnProperty(k)){const $=g[k];mn($)?(S=!0,s||(g[k]=Et($(t),c[k]))):gt($)&&(s||(n.defaults=c[k]),n.depth++,S=iu($,t,n,s)||S,n.depth--)}return S}function Ga(g,t){const n=[],s=[].concat(t);for(let c=0;c<g.length;c++){const p=g[c];ui(p.type,s)&&n.push(p)}return n}function Ec(g,t,n){if(null===t)return t;const s="_date_"+g;let c=t[s];return c||(c=Sr(n,hn(g)(t)),t[s]=c),c}function Jd(g){const t=g.overlay;return t&&t.gradient&&"none"!==t.gradient}function ac(g){return ei(g)&&null!==g}function Su(g,t){const n=g.type,s=t instanceof Date;return!n&&s||Pl(n,Kt)}function Oc(g){return 1===g.length?g[0]:g}const Id=/area/i;function Xd(g,t){const s=Mr.current.bindPoint(g,null,t).valueFields;for(let c in s)if(Zn(s[c]))return!0}function Dp({start:g,dir:t,min:n,max:s,getter:c,hasItem:p,series:S}){let k,$,me=g;do{me+=t,p(me)&&($=c(me),k=Xd(S,$.item))}while(n<=me&&me<=s&&!k);if(k)return $}function Sh(g,t,n,s,c){const{min:p,max:S}=t,k=p>0&&p<n,$=S+1<n;if(k||$){const me=function Qd(g){return g.missingValues?g.missingValues:Id.test(g.type)||g.stack?En:Bi}(g);let Ve,_t;if(me!==Bi)k&&(Ve=s(p-1)),$&&(_t=s(S+1));else{let Vt,Wn;k&&(Vt=s(p-1),Wn=Xd(g,Vt.item),Ve=Wn?Vt:Dp({start:p,dir:-1,min:0,max:n-1,getter:s,hasItem:c,series:g})),$&&(Vt=s(S+1),Wn=Xd(g,Vt.item),_t=Wn?Vt:Dp({start:S,dir:1,min:0,max:n-1,getter:s,hasItem:c,series:g}))}Ve&&(g._outOfRangeMinPoint=Ve),_t&&(g._outOfRangeMaxPoint=_t)}}class qh extends mt{constructor(t,n){super(n),this.plotArea=t,this.chartService=t.chartService,this.categoryAxis=t.seriesCategoryAxis(n.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}pointOptions(t,n){let s=this.seriesOptions[n];if(!s){const c=this.pointType().prototype.defaults;this.seriesOptions[n]=s=U({},c,{vertical:!this.options.invertAxes},t)}return s}plotValue(t){if(!t)return 0;if(this.options.isStacked100&&fi(t.value)){const s=this.categoryPoints[t.categoryIx],c=[];let p=0;for(let S=0;S<s.length;S++){const k=s[S];if(k){const $=t.series.stack,me=k.series.stack;if($&&me&&$.group!==me.group)continue;fi(k.value)&&(p+=Math.abs(k.value),c.push(Math.abs(k.value)))}}if(p>0)return t.value/p}return t.value}plotRange(t,n=0){const s=this.categoryPoints[t.categoryIx];if(this.options.isStacked){let k=this.plotValue(t);const $=k>=0;let me=n,Ve=!1;for(let _t=0;_t<s.length;_t++){const Vt=s[_t];if(t===Vt)break;const Wn=t.series.stack,si=Vt.series.stack;if(Wn&&si&&(typeof Wn===Vn&&Wn!==si||Wn.group&&Wn.group!==si.group))continue;const Ri=this.plotValue(Vt);(Ri>=0&&$||Ri<0&&!$)&&(me+=Ri,k+=Ri,Ve=!0,this.options.isStacked100&&(k=Math.min(k,1)))}return Ve&&(me-=n),[me,k]}const p=this.seriesValueAxis(t.series),S=this.categoryAxisCrossingValue(p);return[S,Zn(t.value)?t.value:S]}stackLimits(t,n){let s=_n,c=Ln;for(let p=0;p<this.categoryPoints.length;p++){const S=this.categoryPoints[p];if(S)for(let k=0;k<S.length;k++){const $=S[k];if($&&($.series.stack===n||$.series.axis===t)){const me=this.plotRange($,0)[1];ei(me)&&isFinite(me)&&(c=Math.max(c,me),s=Math.min(s,me))}}}return{min:s,max:c}}updateStackRange(){const{isStacked:t,series:n}=this.options,s={};if(t)for(let c=0;c<n.length;c++){const p=n[c],S=p.axis,k=S+p.stack;let $=s[k];if(!$){$=this.stackLimits(S,p.stack);const me=this.errorTotals;me&&(me.negative.length&&($.min=Math.min($.min,Pe(me.negative).min)),me.positive.length&&($.max=Math.max($.max,Pe(me.positive).max))),$.min!==_n||$.max!==Ln?s[k]=$:$=null}$&&(this.valueAxisRanges[S]=$)}}addErrorBar(t,n,s){const{value:c,series:p,seriesIx:S}=t,k=t.options.errorBars,$=n.fields[vu],me=n.fields[Xu];let Ve;fi($)&&fi(me)?Ve={low:$,high:me}:k&&ei(k.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[S]=this.seriesErrorRanges[S]||new Hc(k.value,p,lt),Ve=this.seriesErrorRanges[S].getErrorRange(c,k.value)),Ve&&(t.low=Ve.low,t.high=Ve.high,this.addPointErrorBar(t,s))}addPointErrorBar(t,n){const s=!this.options.invertAxes,c=t.options.errorBars;let{series:p,low:S,high:k}=t;if(this.options.isStacked){const me=this.stackedErrorRange(t,n);S=me.low,k=me.high}else{const me={categoryIx:n,series:p};this.updateRange({value:S},me),this.updateRange({value:k},me)}const $=new sd(S,k,s,this,p,c);t.errorBars=[$],t.append($)}stackedErrorRange(t,n){const s=this.plotRange(t,0)[1]-t.value,c=t.low+s,p=t.high+s;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},c<0&&(this.errorTotals.negative[n]=Math.min(this.errorTotals.negative[n]||0,c)),p>0&&(this.errorTotals.positive[n]=Math.max(this.errorTotals.positive[n]||0,p)),{low:c,high:p}}addValue(t,n){const{categoryIx:s,series:c,seriesIx:p}=n;let S=this.categoryPoints[s];S||(this.categoryPoints[s]=S=[]);let k=this.seriesPoints[p];k||(this.seriesPoints[p]=k=[]);const $=this.createPoint(t,n);$&&(Object.assign($,n),$.owner=this,$.noteText=t.fields.noteText,ei($.dataItem)||($.dataItem=c.data[s]),this.addErrorBar($,t,s)),this.points.push($),k.push($),S.push($),this.updateRange(t.valueFields,n)}evalPointOptions(t,n,s){const c=s.categoryIx,p=s.category,S=s.series,k=s.seriesIx,$={defaults:S._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]};let me=this._evalSeries[k];ei(me)||(this._evalSeries[k]=me=iu(t,{},$,!0));let Ve=t;return me&&(Ve=U({},Ve),iu(Ve,{value:n,category:p,index:c,series:S,dataItem:S.data[c]},$)),Ve}updateRange(t,n){const s=n.series.axis,c=t.value;let p=this.valueAxisRanges[s];isFinite(c)&&null!==c&&(p=this.valueAxisRanges[s]=p||{min:_n,max:Ln},p.min=Math.min(p.min,c),p.max=Math.max(p.max,c))}seriesValueAxis(t){const n=this.plotArea,s=t.axis,c=s?n.namedValueAxes[s]:n.valueAxis;if(!c)throw new Error("Unable to locate value axis with name "+s);return c}reflow(t){const n=this.categorySlots=[],s=this.points,c=this.categoryAxis;let p=0;this.traverseDataPoints((S,k)=>{const{categoryIx:$,series:me}=k,Ve=this.seriesValueAxis(me),_t=s[p++];let Vt=n[$];if(Vt||(n[$]=Vt=this.categorySlot(c,$,Ve)),_t){const Wn=this.plotRange(_t,Ve.startValue()),si=this.valueSlot(Ve,Wn);if(si){const Ri=this.pointSlot(Vt,si);_t.aboveAxis=this.aboveAxis(_t,Ve),_t.stackValue=Wn[1],this.options.isStacked100&&(_t.percentage=this.plotValue(_t)),this.reflowPoint(_t,Ri)}else _t.visible=!1}}),this.reflowCategories(n),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t}valueSlot(t,n){return t.getSlot(n[0],n[1],!this.options.clip)}limitPoints(){const t=this.categoryPoints,n=t[0].concat(Pt(t));for(let s=0;s<n.length;s++)n[s]&&this.limitPoint(n[s])}limitPoint(t){const n=this.categoryAxis.limitSlot(t.box);n.equals(t.box)||t.reflow(n)}aboveAxis(t,n){const s=this.categoryAxisCrossingValue(n),c=t.value;return n.options.reverse?c<s:c>=s}categoryAxisCrossingValue(t){const n=this.categoryAxis,s=t.options;return[].concat(s.axisCrossingValues||s.axisCrossingValue)[n.axisIndex||0]||0}reflowPoint(t,n){t.reflow(n)}reflowCategories(){}pointSlot(t,n){const c=this.options.invertAxes,p=c?n:t,S=c?t:n;return new vs(p.x1,S.y1,p.x2,S.y2)}categorySlot(t,n){return t.getSlot(n)}traverseDataPoints(t){const n=this.options.series,s=Ed(n),c=n.length;for(let p=0;p<c;p++)this._outOfRangeCallback(n[p],"_outOfRangeMinPoint",p,t);for(let p=0;p<s;p++)for(let S=0;S<c;S++){const k=n[S],$=this.categoryAxis.categoryAt(p);t(this.plotArea.bindPoint(k,p),{category:$,categoryIx:p,categoriesCount:s,series:k,seriesIx:S})}for(let p=0;p<c;p++)this._outOfRangeCallback(n[p],"_outOfRangeMaxPoint",p,t)}_outOfRangeCallback(t,n,s,c){const p=t[n];if(p){const S=p.categoryIx;c(this.plotArea.bindPoint(t,S,p.item),{category:p.category,categoryIx:S,series:t,seriesIx:s,dataItem:p.item})}}formatPointValue(t,n){return null===t.value?"":this.chartService.format.auto(n,t.value)}pointValue(t){return t.valueFields.value}}ni(qh,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const Yc=qh,vc={click:function(g,t){return g.trigger(cn,this.eventArgs(t))},hover:function(g,t){return g.trigger(xi,this.eventArgs(t))},over:function(g,t){return g.trigger(is,this.eventArgs(t))},out:function(g,t){return g.trigger(Zi,this.eventArgs(t))},eventArgs:function(g){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:ai(g),originalEvent:g,point:this}}},Cu={createNote:function(){const g=this.options.notes,t=this.noteText||g.label.text;!1!==g.visible&&ei(t)&&null!==t&&(this.note=new Oo({value:this.value,text:t,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};class Hu extends mt{constructor(t,n){super(),this.value=t,this.options=n,this.aboveAxis=Et(this.options.aboveAxis,!0),this.tooltipTracking=!0}render(){const{markers:t,labels:n}=this.options;if(!this._rendered){if(this._rendered=!0,t.visible&&t.size&&(this.marker=this.createMarker(),this.append(this.marker)),n.visible){const s=pt(n),c=this.pointData();let p=this.value;s?p=s(c):n.format&&(p=this.formatValue(n.format)),this.label=new Ns(p,U({align:Oe,vAlign:Oe,margin:{left:5,right:5},zIndex:Et(n.zIndex,this.series.zIndex)},n),c),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}}markerBorder(){const t=this.options.markers,n=t.background,s=U({color:this.color},t.border);return ei(s.color)||(s.color=new os.Z(n).brightness(.8).toHex()),s}createVisual(){}createMarker(){const t=this.options.markers;return new Gi({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:t.opacity,zIndex:Et(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})}markerBox(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box}reflow(t){const{options:n,aboveAxis:s}=this,c=n.vertical;this.render(),this.box=t;const p=t.clone();if(c?s?p.y1-=p.height():p.y2+=p.height():s?p.x1+=p.width():p.x2-=p.width(),this._childBox=p,this.marker&&this.marker.reflow(p),this.reflowLabel(p),this.errorBars)for(let S=0;S<this.errorBars.length;S++)this.errorBars[S].reflow(p);if(this.note){let S=this.markerBox();if(!n.markers.visible||!n.markers.size){const k=S.center();S=new vs(k.x,k.y,k.x,k.y)}this.note.reflow(S)}}reflowLabel(t){const{options:n,label:s}=this;let c=n.labels.position;s&&(c=c===fs?ot:c,c=c===Do?$e:c,s.reflow(t),s.box.alignTo(this.markerBox(),c),s.reflow(s.box))}createHighlight(){const t=this.options.highlight.markers,n=this.markerBorder().color,s=this.options.markers,c=s.size+(s.border.width||0)+(t.border.width||0),p=new Gi({type:s.type,width:c,height:c,rotation:s.rotation,background:t.color||n,border:{color:t.border.color,width:t.border.width,opacity:Et(t.border.opacity,1)},opacity:Et(t.opacity,1)});return p.reflow(this._childBox),p.getElement()}highlightVisual(){return(this.marker||{}).visual}highlightVisualArgs(){const t=this.marker;let n,s;if(t)s=t.paddingBox.toRect(),n=t.visual;else{const c=this.options.markers.size,p=c/2,S=this.box.center();s=new Hs.Z([S.x-p,S.y-p],[c,c])}return{options:this.options,rect:s,visual:n}}tooltipAnchor(){const t=this.markerBox(),n=this.owner.pane.clipBox();if(!n||n.overlaps(t)){const p=sn;let S,k;return this.aboveAxis?(S=t.y1,k=$e):(S=t.y2,k=ot),{point:new Qs(t.x2+5,S),align:{horizontal:p,vertical:k}}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.markerBox().overlaps(t)}unclipElements(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}}}Hu.prototype.defaults={vertical:!0,markers:{visible:!0,background:In,size:8,type:Nt,border:{width:2},opacity:1},labels:{visible:!1,position:fs,margin:St(3),padding:St(4),animation:{type:cl,delay:Kl}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},U(Hu.prototype,vc),U(Hu.prototype,Cu);const Ic=Hu;class qd extends mt{constructor(t,n,s){super(),this.linePoints=t,this.series=n,this.seriesIx=s}points(){return this.toGeometryPoints(this.linePoints)}toGeometryPoints(t){const n=[];for(let s=0,c=t.length;s<c;s++)t[s]&&!1!==t[s].visible&&n.push(t[s]._childBox.toRect().center());return n}createVisual(){const t=this.series.visual;t?(this.visual=t({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:()=>(this.segmentVisual(),this.visual)}),this.visual&&!ei(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()}segmentVisual(){const{options:t,series:n}=this;let{color:s,_defaults:c}=n;mn(s)&&c&&(s=c.color);const p=Ws.y.fromPoints(this.points(),{stroke:{color:s,width:n.width,opacity:n.opacity,dashType:n.dashType},zIndex:n.zIndex});t.closed&&p.close(),this.visual=p}aliasFor(t,n){return this.parent.getNearestPoint(n.x,n.y,this.seriesIx)}}ni(qd,{closed:!1});const Md=qd;function ep(g,t,n,s,c){const p=g.box,S=new js.Z;return S[t]=p[t+n],S[s]=p[s+c],S}const tp={calculateStepPoints:function(g){const t=this.parent.plotArea.seriesCategoryAxis(this.series),{justified:n,vertical:s,reverse:c}=t.options,p=s?Qt:yi,S=s?yi:Qt,k=c?2:1,$=k;let me=ep(g[0],p,k,S,$);const Ve=[me];for(let _t=1;_t<g.length;_t++){const Vt=ep(g[_t],p,k,S,$);if(me[p]!==Vt[p]){const Wn=new js.Z;Wn[p]=me[p],Wn[S]=Vt[S],Ve.push(Wn,Vt)}me=Vt}return n?me!==Pt(Ve)&&Ve.push(me):Ve.push(ep(Pt(g),p,k,S,c?1:2)),Ve}};class Ac extends Md{points(){return this.calculateStepPoints(this.linePoints)}}U(Ac.prototype,tp);const wu=Ac,xh=class wh extends Md{segmentVisual(){const t=this.series,n=t._defaults;let s=t.color;mn(s)&&n&&(s=n.color);const p=new Zl(this.options.closed).process(this.points()),S=new Ws.y({stroke:{color:s,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});S.segments.push.apply(S.segments,p),this.visual=S}},ju={renderSegments:function(){const{options:g,seriesPoints:t}=this,n=g.series,s=t.length;let c;this._segments=[];for(let p=0;p<s;p++){const S=n[p],k=this.sortPoints(t[p]),$=k.length;let me=[];for(let Ve=0;Ve<$;Ve++){const _t=k[Ve];_t?me.push(_t):this.seriesMissingValues(S)!==Bi&&(me.length>1&&(c=this.createSegment(me,S,p,c),this._addSegment(c)),me=[])}me.length>1&&(c=this.createSegment(me,S,p,c),this._addSegment(c))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(g){this._segments.push(g),g.parent=this},sortPoints:function(g){return g},seriesMissingValues:function(g){const t=g.missingValues;return!t&&this.options.isStacked?En:t||Bi},getNearestPoint:function(g,t,n){const s=new Qs(g,t),c=this.seriesPoints[n];let S,p=_n;for(let k=0;k<c.length;k++){const $=c[k];if($&&ei($.value)&&null!==$.value&&!1!==$.visible){const Ve=$.box.center().distanceTo(s);Ve<p&&(S=$,p=Ve)}}return S}};class kd extends lo{setup(){this._setEnd(this.options.box.x1)}step(t){const n=this.options.box;this._setEnd(Di(n.x1,n.x2,t))}_setEnd(t){const n=this.element,s=n.segments,c=s[1].anchor(),p=s[2].anchor();n.suspend(),c.setX(t),n.resume(),p.setX(t)}}ni(kd,{duration:Kl}),or.current.register("clip",kd);const Ep=kd,od={createAnimation:function(){const g=this.getRoot();if(g&&!1!==(g.options||{}).transitions){const t=g.size(),n=Ws.y.fromRect(t.toRect());this.visual.clip(n),this.animation=new Ep(n,{box:t}),Qh(this.options.series)&&this._setChildrenAnimation(n)}},_setChildrenAnimation:function(g){const t=this.animationPoints();for(let n=0;n<t.length;n++){const s=t[n];s&&s.visual&&ei(s.visual.options.zIndex)&&s.visual.clip(g)}}};class Eh extends Yc{render(){super.render(),this.updateStackRange(),this.renderSegments()}pointType(){return Ic}createPoint(t,n){const{series:s,seriesIx:c}=n,p=this.seriesMissingValues(s);let S=t.valueFields.value;if(!ei(S)||null===S){if(p!==En)return null;S=0}let k=this.pointOptions(s,c);k=this.evalPointOptions(k,S,n);let $=t.fields.color||s.color;mn(s.color)&&($=k.color);const me=new Ic(S,k);return me.color=$,this.append(me),me}plotRange(t){let n=this.plotValue(t);if(this.options.isStacked){const c=this.categoryPoints[t.categoryIx];for(let p=0;p<c.length;p++){const S=c[p];if(t===S)break;n+=this.plotValue(S),this.options.isStacked100&&(n=Math.min(n,1))}}return[n,n]}createSegment(t,n,s){const c=n.style;let p;return p=c===B?wu:c===Qo?xh:Md,new p(t,n,s)}animationPoints(){const t=this.points,n=[];for(let s=0;s<t.length;s++)n.push((t[s]||{}).marker);return n.concat(this._segments)}supportsPointInactiveOpacity(){return!1}}U(Eh.prototype,ju,od);const Ih=Eh,Wc=class Od extends Md{constructor(t,n,s,c,p){super(t,n,s),this.prevSegment=c,this.stackPoints=p}createVisual(){const t=this.series,n=t._defaults,s=t.line||{};let c=t.color;mn(c)&&n&&(c=n.color),this.visual=new vo.Z({zIndex:t.zIndex}),this.createFill({fill:{color:c,opacity:t.opacity},stroke:null}),s.width>0&&!1!==s.visible&&this.createStroke({stroke:U({color:c,opacity:t.opacity,lineCap:"butt"},s)})}strokeSegments(){let t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t}createStrokeSegments(){return this.segmentsFromPoints(this.points())}stackSegments(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}createStackSegments(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()}segmentsFromPoints(t){return t.map(n=>new Yo.Z(n))}createStroke(t){const n=new Ws.y(t);n.segments.push.apply(n.segments,this.strokeSegments()),this.visual.append(n)}hasStackSegment(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}createFill(t){const n=this.strokeSegments(),s=n.slice(0),c=this.hasStackSegment();if(c){const S=this.stackSegments();ps(s,S)}const p=new Ws.y(t);p.segments.push.apply(p.segments,s),!c&&n.length>1&&this.fillToAxes(p),this.visual.append(p)}fillToAxes(t){const n=this.parent,s=n.options.invertAxes,c=n.seriesValueAxis(this.series),p=n.categoryAxisCrossingValue(c),S=c.getSlot(p,p,!0),k=this.strokeSegments(),$=k[0].anchor(),me=Pt(k).anchor();let Ve=s?S.x1:S.y1;s?t.lineTo(Ve,me.y).lineTo(Ve,$.y):t.lineTo(me.x,Ve).lineTo($.x,Ve)}};class ic extends Wc{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}createStackSegments(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()}}U(ic.prototype,tp);const Yu=ic,eh=class Cf extends Wc{createStrokeSegments(){const t=new Zl(this.options.closed),n=this.points();return t.process(n)}createStackSegments(){const t=this.strokeSegments(),n=[];for(let s=t.length-1;s>=0;s--){const c=t[s];n.push(new Yo.Z(c.anchor(),c.controlOut(),c.controlIn()))}return n}},Ip=class Ad extends Ih{createSegment(t,n,s,c){const S=(n.line||{}).style;let k,$,me;return this.options.isStacked&&s>0&&c&&("gap"!==this.seriesMissingValues(n)?($=c.linePoints,k=c):$=this._gapStackPoints(t,s,S)),me=S===B?Yu:S===Qo?eh:Wc,new me(t,n,s,k,$)}reflow(t){super.reflow(t);const n=this._stackPoints;if(n)for(let s=0;s<n.length;s++){const c=n[s],p=this.categoryAxis.getSlot(c.categoryIx);c.reflow(p)}}_gapStackPoints(t,n,s){const c=this.seriesPoints;let p=t[0].categoryIx,S=t.length;p<0&&(p=0,S--);const k=p+S,$=this.seriesOptions[0]._outOfRangeMinPoint?1:0,me=[];this._stackPoints=this._stackPoints||[];for(let Ve=p;Ve<k;Ve++){const _t=Ve+$;let Wn,Vt=n;do{Vt--,Wn=c[Vt][_t]}while(Vt>0&&!Wn);if(Wn)s!==B&&Ve>p&&!c[Vt][_t-1]&&me.push(this._previousSegmentPoint(Ve,_t,_t-1,Vt)),me.push(Wn),s!==B&&Ve+1<k&&!c[Vt][_t+1]&&me.push(this._previousSegmentPoint(Ve,_t,_t+1,Vt));else{const si=this._createGapStackPoint(Ve);this._stackPoints.push(si),me.push(si)}}return me}_previousSegmentPoint(t,n,s,c){const p=this.seriesPoints;let k,S=c;for(;S>0&&!k;)S--,k=p[S][s];return k?k=p[S][n]:(k=this._createGapStackPoint(t),this._stackPoints.push(k)),k}_createGapStackPoint(t){const n=this.pointOptions({},0),s=new Ic(0,n);return s.categoryIx=t,s.series={},s}seriesMissingValues(t){return t.missingValues||En}supportsPointInactiveOpacity(){return!1}},xu=class q_ extends Xi.Z{constructor(){super(),this.axisRanges={}}update(t){const n=this.axisRanges;for(let s in t){const c=t[s];let p=n[s];n[s]=p=p||{min:_n,max:Ln},p.min=Math.min(p.min,c.min),p.max=Math.max(p.max,c.max)}}reset(t){this.axisRanges[t]=void 0}query(t){return this.axisRanges[t]}};class th extends mt{constructor(t,n,s){super(n),this.textBox=new Ns(t,this.options,s),this.append(this.textBox)}createVisual(){this.textBox.options.noclip=this.options.noclip}reflow(t){const n=this.options,{vertical:s,aboveAxis:c}=n,p=this.children[0],S=p.options,k=p.box,$=p.options.padding;let me=t;S.align=s?Oe:sn,S.vAlign=s?ot:Oe,n.position===nc?s?(S.vAlign=ot,!c&&k.height()<t.height()&&(S.vAlign=$e)):S.align=c?Si:sn:n.position===Oe?(S.vAlign=Oe,S.align=Oe):"insideBase"===n.position?s?S.vAlign=c?$e:ot:S.align=c?sn:Si:n.position===Dc&&(s?me=c?new vs(t.x1,t.y1-k.height(),t.x2,t.y1):new vs(t.x1,t.y2,t.x2,t.y2+k.height()):(S.align=Oe,me=c?new vs(t.x2,t.y1,t.x2+k.width(),t.y2):new vs(t.x1-k.width(),t.y1,t.x1,t.y2))),n.rotation||(s?$.left=$.right=(me.width()-p.contentBox.width())/2:$.top=$.bottom=(me.height()-p.contentBox.height())/2),p.reflow(me)}alignToClipBox(t){const s=this.options.vertical?yi:Qt,c=s+"1",p=s+"2",k=this.parent.box;if(k[c]<t[c]||t[p]<k[p]){const $=this.children[0].paddingBox.clone();$[c]=Math.max(k[c],t[c]),$[p]=Math.min(k[p],t[p]),this.reflow($)}}}ni(th,{position:Dc,margin:St(3),padding:St(4),color:Ze,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:cl,delay:Kl},zIndex:2});const Rd=th;class Pd extends mt{constructor(t,n){super(),this.options=n,this.color=n.color||In,this.aboveAxis=Et(this.options.aboveAxis,!0),this.value=t}render(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))}createLabel(){const t=this.options,n=t.labels;if(n.visible){const s=this.pointData();let p,c=pt(n);p=c?c(s):this.formatValue(n.format),this.label=new Rd(p,U({vertical:t.vertical},n),s),this.append(this.label)}}formatValue(t){return this.owner.formatPointValue(this,t)}reflow(t){this.render();const n=this.label;if(this.box=t,n&&(n.options.aboveAxis=this.aboveAxis,n.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(let s=0;s<this.errorBars.length;s++)this.errorBars[s].reflow(t)}createVisual(){const{box:t,options:n}=this,s=n.visual;if(!1!==this.visible)if(super.createVisual(),s){const c=this.rectVisual=s({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:t.toRect(),createVisual:()=>{const p=new vo.Z;return this.createRect(p),p},options:n});c&&this.visual.append(c)}else t.width()>0&&t.height()>0&&this.createRect(this.visual)}createRect(t){const n=this.options,s=n.border,c=ei(s.opacity)?s.opacity:n.opacity,p=this.box.toRect();p.size.width=Math.round(p.size.width);const S=this.rectVisual=Ws.y.fromRect(p,{fill:{color:this.color,opacity:n.opacity},stroke:{color:this.getBorderColor(),width:s.width,opacity:c,dashType:s.dashType}}),k=this.box.width(),$=this.box.height();if((n.vertical?k:$)>6&&(Cn(S),(k<1||$<1)&&(S.options.stroke.lineJoin="round")),t.append(S),Jd(n)){const Ve=this.createGradientOverlay(S,{baseColor:this.color},U({end:n.vertical?void 0:[0,1]},n.overlay));t.append(Ve)}}createHighlight(t){return Cn(Ws.y.fromRect(this.box.toRect(),t))}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}getBorderColor(){const t=this.color,n=this.options.border,s=n._brightness||.8;let c=n.color;return ei(c)||(c=new os.Z(t).brightness(s).toHex()),c}tooltipAnchor(){const{options:t,box:n,aboveAxis:s}=this,c=this.owner.pane.clipBox()||n;let k,$,p=sn,S=ot;if(t.vertical)k=Math.min(n.x2,c.x2)+5,s?$=Math.max(n.y1,c.y1):($=Math.min(n.y2,c.y2),S=$e);else{const me=Math.max(n.x1,c.x1),Ve=Math.min(n.x2,c.x2);t.isStacked?(S=$e,s?(p=Si,k=Ve):k=me,$=Math.max(n.y1,c.y1)-5):(s?k=Ve+5:(k=me-5,p=Si),$=Math.max(n.y1,c.y1))}return{point:new Qs(k,$),align:{horizontal:p,vertical:S}}}overlapsBox(t){return this.box.overlaps(t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}U(Pd.prototype,vc),U(Pd.prototype,Cu),Pd.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Mh=Pd;function Tp(g,t){g.forEach(t)}function Mp(g,t){const n=g.length;for(let s=n-1;s>=0;s--)t(g[s],s-n-1)}class np extends mt{constructor(t){super(t),this.forEach=t.rtl?Mp:Tp}reflow(t){const{vertical:n,gap:s,spacing:c}=this.options,p=this.children,S=p.length,k=n?yi:Qt,$=S+s+c*(S-1),me=(n?t.height():t.width())/$;let Ve=t[k+1]+me*(s/2);this.forEach(p,(_t,Vt)=>{const Wn=(_t.box||t).clone();Wn[k+1]=Ve,Wn[k+2]=Ve+me,_t.reflow(Wn),Vt<S-1&&(Ve+=me*c),Ve+=me})}}ni(np,{vertical:!1,gap:0,spacing:0});const ip=np;class kp extends mt{reflow(t){const n=this.options.vertical?Qt:yi,s=this.children,c=s.length;let p=this.box=new vs;for(let S=0;S<c;S++){const k=s[S];if(!1!==k.visible){const $=k.box.clone();$.snapTo(t,n),0===S&&(p=this.box=$.clone()),k.reflow($),p.wrap($)}}}}ni(kp,{vertical:!0});const kh=kp;class sp extends Yc{render(){super.render(),this.updateStackRange()}pointType(){return Mh}clusterType(){return ip}stackType(){return kh}stackLimits(t,n){return super.stackLimits(t,n)}createPoint(t,n){const{categoryIx:s,series:c,seriesIx:p}=n,{options:S,children:k}=this,$=S.isStacked,me=this.pointValue(t);let Ve=this.pointOptions(c,p);const _t=Ve.labels;$&&_t.position===Dc&&(_t.position=nc),Ve.isStacked=$;let Vt=t.fields.color||c.color;me<0&&Ve.negativeColor&&(Vt=Ve.negativeColor),Ve=this.evalPointOptions(Ve,me,n),mn(c.color)&&(Vt=Ve.color);const si=new(this.pointType())(me,Ve);si.color=Vt;let Ri=k[s];return Ri||(Ri=new(this.clusterType())({vertical:S.invertAxes,gap:S.gap,spacing:S.spacing,rtl:!S.invertAxes&&(this.chartService||{}).rtl}),this.append(Ri)),$?this.getStackWrap(c,Ri).append(si):Ri.append(si),si}getStackWrap(t,n){const s=t.stack,c=s&&(s.group||s),p=n.children;let S;if(typeof c===Vn){for(let k=0;k<p.length;k++)if(p[k]._stackGroup===c){S=p[k];break}}else S=p[0];return S||(S=new(this.stackType())({vertical:!this.options.invertAxes}),S._stackGroup=c,n.append(S)),S}categorySlot(t,n,s){const c=this.options,p=t.getSlot(n),S=s.startValue();if(c.isStacked){const k=s.getSlot(S,S,!0),$=c.invertAxes?Qt:yi;p[$+1]=p[$+2]=k[$+1]}return p}reflowCategories(t){const n=this.children,s=n.length;for(let c=0;c<s;c++)n[c].reflow(t[c])}createAnimation(){this._setAnimationOptions(),super.createAnimation(),Qh(this.options.series)&&this._setChildrenAnimation()}_setChildrenAnimation(){const t=this.points;for(let n=0;n<t.length;n++){const s=t[n],c=s.visual;c&&ei(c.options.zIndex)&&(s.options.animation=this.options.animation,s.createAnimation())}}_setAnimationOptions(){const t=this.options,n=t.animation||{};let s;if(t.isStacked){const c=this.seriesValueAxis(t.series[0]);s=c.getSlot(c.startValue())}else s=this.categoryAxis.getSlot(0);n.origin=new js.Z(s.x1,s.y1),n.vertical=!t.invertAxes}}ni(sp,{animation:{type:Fe}});const Du=sp;class Oh extends mt{constructor(t,n){super(n),this.value=t}reflow(t){const{options:n,value:s,owner:c}=this,p=c.seriesValueAxis(n),S=p.getSlot(s.open,s.close),k=p.getSlot(s.low,s.high);S.x1=k.x1=t.x1,S.x2=k.x2=t.x2,this.realBody=S;const $=k.center().x,me=[];me.push([[$,k.y1],[$,S.y1]]),me.push([[$,S.y2],[$,k.y2]]),this.lines=me,this.box=k.clone().wrap(S),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()}reflowNote(){this.note&&this.note.reflow(this.box)}createVisual(){super.createVisual(),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()}mainVisual(t){const n=new vo.Z;return this.createBody(n,t),this.createLines(n,t),n}createBody(t,n){const s=Ws.y.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:n.opacity},stroke:null});n.border.width>0&&s.options.set("stroke",{color:this.getBorderColor(),width:n.border.width,dashType:n.border.dashType,opacity:Et(n.border.opacity,n.opacity)}),Cn(s),t.append(s),Jd(n)&&t.append(this.createGradientOverlay(s,{baseColor:this.color},U({end:n.vertical?void 0:[0,1]},n.overlay)))}createLines(t,n){this.drawLines(t,n,this.lines,n.line)}drawLines(t,n,s,c){if(!s)return;const p={stroke:{color:c.color||this.color,opacity:Et(c.opacity,n.opacity),width:c.width,dashType:c.dashType,lineCap:"butt"}};for(let S=0;S<s.length;S++){const k=Ws.y.fromPoints(s[S],p);Cn(k),t.append(k)}}getBorderColor(){const t=this.options.border;let n=t.color;return ei(n)||(n=new os.Z(this.color).brightness(t._brightness).toHex()),n}createOverlay(){const t=Ws.y.fromRect(this.box.toRect(),{fill:{color:In,opacity:0},stroke:null});this.visual.append(t)}createHighlight(){const t=this.options.highlight,n=this.color;this.color=t.color||this.color;const s=this.mainVisual(U({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=n,s}highlightVisual(){return this._mainVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}}tooltipAnchor(){const t=this.box,n=this.owner.pane.clipBox()||t;return{point:new Qs(t.x2+5,Math.max(t.y1,n.y1)+5),align:{horizontal:sn,vertical:ot}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.box.overlaps(t)}}ni(Oh,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),U(Oh.prototype,vc),U(Oh.prototype,Cu);const Cl=Oh;class Ah extends Yc{reflowCategories(t){const n=this.children,s=n.length;for(let c=0;c<s;c++)n[c].reflow(t[c])}addValue(t,n){const{categoryIx:s,category:c,series:p,seriesIx:S}=n,{children:k,options:$}=this,me=t.valueFields,_t=yh(this.splitValue(me)),Vt=p.data[s];let si,Wn=this.categoryPoints[s];Wn||(this.categoryPoints[s]=Wn=[]),_t&&(si=this.createPoint(t,n));let Ri=k[s];Ri||(Ri=new ip({vertical:$.invertAxes,gap:$.gap,spacing:$.spacing,rtl:!$.invertAxes&&(this.chartService||{}).rtl}),this.append(Ri)),si&&(this.updateRange(me,n),Ri.append(si),si.categoryIx=s,si.category=c,si.series=p,si.seriesIx=S,si.owner=this,si.dataItem=Vt,si.noteText=t.fields.noteText),this.points.push(si),Wn.push(si)}pointType(){return Cl}createPoint(t,n){const{series:s}=n,c=this.pointType(),p=t.valueFields;let S=U({},s),k=t.fields.color||s.color;S=this.evalPointOptions(S,p,n),(s.type===kn||s.type===Fu)&&p.open>p.close&&(k=t.fields.downColor||s.downColor||s.color),mn(s.color)&&(k=S.color),S.vertical=!this.options.invertAxes;const $=new c(p,S);return $.color=k,$}splitValue(t){return[t.low,t.open,t.close,t.high]}updateRange(t,n){const s=n.series.axis,c=this.splitValue(t);let p=this.valueAxisRanges[s];p=this.valueAxisRanges[s]=p||{min:_n,max:Ln},p=this.valueAxisRanges[s]={min:Math.min.apply(Math,c.concat([p.min])),max:Math.max.apply(Math,c.concat([p.max]))}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.open,s.high,s.low,s.close,t.category)}animationPoints(){return this.points}}U(Ah.prototype,od);const op=Ah;class nh extends Cl{constructor(t,n){super(t,n),this.createNote()}reflow(t){const{options:n,value:s,owner:c}=this,p=c.seriesValueAxis(n);let S,k;this.boxSlot=k=p.getSlot(s.q1,s.q3),this.realBody=k,this.reflowBoxSlot(t),this.whiskerSlot=S=p.getSlot(s.lower,s.upper),this.reflowWhiskerSlot(t);const $=p.getSlot(s.median);if(s.mean){const me=p.getSlot(s.mean);this.meanPoints=this.calcMeanPoints(t,me)}this.whiskerPoints=this.calcWhiskerPoints(k,S),this.medianPoints=this.calcMedianPoints(t,$),this.box=S.clone().wrap(k),this.reflowNote()}reflowBoxSlot(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2}reflowWhiskerSlot(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2}calcMeanPoints(t,n){return[[[t.x1,n.y1],[t.x2,n.y1]]]}calcWhiskerPoints(t,n){const s=n.center().x;return[[[s-5,n.y1],[s+5,n.y1],[s,n.y1],[s,t.y1]],[[s-5,n.y2],[s+5,n.y2],[s,n.y2],[s,t.y2]]]}calcMedianPoints(t,n){return[[[t.x1,n.y1],[t.x2,n.y1]]]}renderOutliers(t){const n=this.value,s=n.outliers||[],c=3*Math.abs(n.q3-n.q1),p=[];let S=t.markers||{};for(let k=0;k<s.length;k++){const $=s[k];S=$<n.q3+c&&$>n.q1-c?t.outliers:t.extremes;let me=U({},S.border);ei(me.color)||(me.color=ei(this.color)?this.color:new os.Z(S.background).brightness(.8).toHex());const Ve=new Gi({type:S.type,width:S.size,height:S.size,rotation:S.rotation,background:S.background,border:me,opacity:S.opacity});Ve.value=$,p.push(Ve)}return this.reflowOutliers(p),p}reflowOutliers(t){const n=this.owner.seriesValueAxis(this.options),s=this.box.center();for(let c=0;c<t.length;c++){const S=n.getSlot(t[c].value);this.options.vertical?S.move(s.x):S.move(void 0,s.y),this.box=this.box.wrap(S),t[c].reflow(S)}}mainVisual(t){const n=super.mainVisual(t),s=this.renderOutliers(t);for(let c=0;c<s.length;c++){const p=s[c].getElement();p&&n.append(p)}return n}createLines(t,n){this.drawLines(t,n,this.whiskerPoints,n.whiskers),this.drawLines(t,n,this.medianPoints,n.median),this.drawLines(t,n,this.meanPoints,n.mean)}getBorderColor(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:super.getBorderColor()}}ni(nh,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:In,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:Nt,background:In,border:{width:2,opacity:1},opacity:0}}),U(nh.prototype,vc);const H=nh,h=class Ae extends H{reflowBoxSlot(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2}reflowWhiskerSlot(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2}calcMeanPoints(t,n){return[[[n.x1,t.y1],[n.x1,t.y2]]]}calcWhiskerPoints(t,n){const s=n.center().y;return[[[n.x1,s-5],[n.x1,s+5],[n.x1,s],[t.x1,s]],[[n.x2,s-5],[n.x2,s+5],[n.x2,s],[t.x2,s]]]}calcMedianPoints(t,n){return[[[n.x1,t.y1],[n.x1,t.y2]]]}},ue=class x extends op{addValue(t,n){const{categoryIx:s,category:c,series:p,seriesIx:S}=n,{children:k,options:$}=this,me=t.valueFields,_t=yh(this.splitValue(me)),Vt=p.data[s];let si,Wn=this.categoryPoints[s];Wn||(this.categoryPoints[s]=Wn=[]),_t&&(si=this.createPoint(t,n));let Ri=k[s];Ri||(Ri=new ip({vertical:$.invertAxes,gap:$.gap,spacing:$.spacing,rtl:!$.invertAxes&&(this.chartService||{}).rtl}),this.append(Ri)),si&&(this.updateRange(me,n),Ri.append(si),si.categoryIx=s,si.category=c,si.series=p,si.seriesIx=S,si.owner=this,si.dataItem=Vt),this.points.push(si),Wn.push(si)}pointType(){return this.options.invertAxes?h:H}splitValue(t){return[t.lower,t.q1,t.median,t.q3,t.upper]}updateRange(t,n){const s=n.series.axis;let c=this.valueAxisRanges[s],p=this.splitValue(t).concat(this.filterOutliers(t.outliers));ei(t.mean)&&(p=p.concat(t.mean)),c=this.valueAxisRanges[s]=c||{min:_n,max:Ln},c=this.valueAxisRanges[s]={min:Math.min.apply(Math,p.concat([c.min])),max:Math.max.apply(Math,p.concat([c.max]))}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.lower,s.q1,s.median,s.q3,s.upper,s.mean,t.category)}filterOutliers(t){const n=(t||[]).length,s=[];for(let c=0;c<n;c++){const p=t[c];ei(p)&&null!==p&&s.push(p)}return s}supportsPointInactiveOpacity(){return!1}},di=class At extends xd{getAxis(){const t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x}};class Qi extends mt{constructor(t,n){super(n),this.plotArea=t,this.chartService=t.chartService,this._initFields(),this.render()}_initFields(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]}render(){this.traverseDataPoints(this.addValue.bind(this))}addErrorBar(t,n,s){const c=t.value[n],p=n+"Value",S=n+"ErrorLow",k=n+"ErrorHigh",{seriesIx:$,series:me}=s,Ve=t.options.errorBars,_t=s[S],Vt=s[k];if(fi(c)){let Wn;fi(_t)&&fi(Vt)&&(Wn={low:_t,high:Vt}),Ve&&ei(Ve[p])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[n][$]=this.seriesErrorRanges[n][$]||new Hc(Ve[p],me,n),Wn=this.seriesErrorRanges[n][$].getErrorRange(c,Ve[p])),Wn&&this.addPointErrorBar(Wn,t,n)}}addPointErrorBar(t,n,s){const{low:c,high:p}=t,{series:S,options:{errorBars:k}}=n,$=s===yi,me={};n[s+"Low"]=c,n[s+"High"]=p,n.errorBars=n.errorBars||[];const Ve=new di(c,p,$,this,S,k);n.errorBars.push(Ve),n.append(Ve),me[s]=c,this.updateRange(me,S),me[s]=p,this.updateRange(me,S)}addValue(t,n){const{x:s,y:c}=t,p=n.seriesIx,k=this.seriesMissingValues(this.options.series[p]),$=this.seriesPoints[p];let Ve,me=t;ac(s)&&ac(c)||(me=this.createMissingValue(me,k)),me&&(Ve=this.createPoint(me,n),Ve&&(Object.assign(Ve,n),this.addErrorBar(Ve,Qt,n),this.addErrorBar(Ve,yi,n)),this.updateRange(me,n.series)),this.points.push(Ve),$.push(Ve)}seriesMissingValues(t){return t.missingValues}createMissingValue(){}updateRange(t,n){const s=this.chartService.intl,{xAxis:c,yAxis:p}=n;let{x:S,y:k}=t,$=this.xAxisRanges[c],me=this.yAxisRanges[p];ac(S)&&($=this.xAxisRanges[c]=$||{min:_n,max:Ln},bi(S)&&(S=Sr(s,S)),$.min=Math.min($.min,S),$.max=Math.max($.max,S)),ac(k)&&(me=this.yAxisRanges[p]=me||{min:_n,max:Ln},bi(k)&&(k=Sr(s,k)),me.min=Math.min(me.min,k),me.max=Math.max(me.max,k))}evalPointOptions(t,n,s){const{series:c,seriesIx:p}=s,S={defaults:c._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]};let k=this._evalSeries[p];ei(k)||(this._evalSeries[p]=k=iu(t,{},S,!0));let $=t;return k&&($=U({},t),iu($,{value:n,series:c,dataItem:s.dataItem},S)),$}pointType(){return Ic}pointOptions(t,n){let s=this.seriesOptions[n];if(!s){const c=this.pointType().prototype.defaults;this.seriesOptions[n]=s=U({},c,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return s}createPoint(t,n){const s=n.series;let c=this.pointOptions(s,n.seriesIx),p=n.color||s.color;c=this.evalPointOptions(c,t,n),mn(s.color)&&(p=c.color);const S=new Ic(t,c);return S.color=p,this.append(S),S}seriesAxes(t){const{xAxis:n,yAxis:s}=t,c=this.plotArea,p=n?c.namedXAxes[n]:c.axisX,S=s?c.namedYAxes[s]:c.axisY;if(!p)throw new Error("Unable to locate X axis with name "+n);if(!S)throw new Error("Unable to locate Y axis with name "+s);return{x:p,y:S}}reflow(t){const n=this.points,s=!this.options.clip;let c=0;this.traverseDataPoints((p,S)=>{const k=n[c++],$=this.seriesAxes(S.series),me=$.x.getSlot(p.x,p.x,s),Ve=$.y.getSlot(p.y,p.y,s);if(k)if(me&&Ve){const _t=this.pointSlot(me,Ve);k.reflow(_t)}else k.visible=!1}),this.box=t}pointSlot(t,n){return new vs(t.x1,n.y1,t.x2,n.y2)}traverseDataPoints(t){const{options:{series:n},seriesPoints:s}=this;for(let c=0;c<n.length;c++){const p=n[c];s[c]||(s[c]=[]);for(let k=0;k<p.data.length;k++){const{valueFields:$,fields:me}=this.plotArea.bindPoint(p,k);t($,U({pointIx:k,series:p,seriesIx:c,dataItem:p.data[k],owner:this},me))}}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.x,s.y)}animationPoints(){const t=this.points,n=[];for(let s=0;s<t.length;s++)n.push((t[s]||{}).marker);return n}}ni(Qi,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),U(Qi.prototype,od);const Rs=Qi;class Vs extends Ic{constructor(t,n){super(t,n),this.category=t.category}createHighlight(){const t=this.options.highlight,n=t.border,s=this.options.markers,c=this.box.center(),p=(s.size+s.border.width+n.width)/2,S=new vo.Z,k=new Ko.Z(new ms.Z([c.x,c.y+p/5+n.width/2],p+n.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:s.background,stops:[{offset:0,color:s.background,opacity:.3},{offset:1,color:s.background,opacity:0}]})}),$=new Ko.Z(new ms.Z([c.x,c.y],p),{stroke:{color:n.color||new os.Z(s.background).brightness(.8).toHex(),width:n.width,opacity:n.opacity},fill:{color:s.background,opacity:t.opacity}});return S.append(k,$),S}}Vs.prototype.defaults=U({},Vs.prototype.defaults,{labels:{position:Oe},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),Vs.prototype.defaults.highlight.zIndex=void 0;const zo=Vs;class xr extends Rs{_initFields(){this._maxSize=Ln,super._initFields()}addValue(t,n){null!==t.size&&(t.size>0||t.size<0&&n.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(t.size)),super.addValue(t,n)):(this.points.push(null),this.seriesPoints[n.seriesIx].push(null))}reflow(t){this.updateBubblesSize(t),super.reflow(t)}pointType(){return zo}createPoint(t,n){const s=n.series,p=n.pointIx*(Kl/s.data.length),S={delay:p,duration:Kl-p,type:nn};let k=n.color||s.color;t.size<0&&s.negativeValues.visible&&(k=Et(s.negativeValues.color,k));let $=U({labels:{animation:{delay:p,duration:Kl-p}}},this.pointOptions(s,n.seriesIx),{markers:{type:Nt,border:s.border,opacity:s.opacity,animation:S}});$=this.evalPointOptions($,t,n),mn(s.color)&&(k=$.color),$.markers.background=k;const me=new zo(t,$);return me.color=k,this.append(me),me}updateBubblesSize(t){const{options:{series:n}}=this,s=Math.min(t.width(),t.height());for(let c=0;c<n.length;c++){const p=n[c],S=this.seriesPoints[c],me=(p.minSize||Math.max(.02*s,10))/2,Ve=(p.maxSize||.2*s)/2,_t=Math.PI*me*me,si=(Math.PI*Ve*Ve-_t)/this._maxSize;for(let Ri=0;Ri<S.length;Ri++){const ts=S[Ri];if(ts){const Os=Math.abs(ts.value.size)*si,Zs=Math.sqrt((_t+Os)/Math.PI),_a=Et(ts.options.zIndex,0)+(1-Zs/Ve);U(ts.options,{zIndex:_a,markers:{size:2*Zs,zIndex:_a},labels:{zIndex:_a+1}})}}}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.x,s.y,s.size,t.category)}createAnimation(){}createVisual(){}}ni(xr,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const vr=xr;class Fa extends Gi{}U(Fa.prototype,vc);const lc=Fa;class Ul extends mt{constructor(t,n){super(n),this.aboveAxis=this.options.aboveAxis,this.color=n.color||In,this.value=t}render(){const t=this.options;this._rendered||(this._rendered=!0,ei(this.value.target)&&(this.target=new lc({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:ot,align:Si}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())}createLabel(){const n=this.options.labels;if(n.visible){const s=this.pointData();let p,c=pt(n);p=c?c(s):this.formatValue(n.format),this.label=new Rd(p,n,s),this.append(this.label)}}reflow(t){this.render();const{options:n,target:s,owner:c}=this,p=n.invertAxes,S=c.seriesValueAxis(this.options),k=c.categorySlot(c.categoryAxis,n.categoryIx,S),$=S.getSlot(this.value.target),me=p?$:k,Ve=p?k:$;if(s){const Vt=new vs(me.x1,Ve.y1,me.x2,Ve.y2);s.options.height=p?Vt.height():n.target.line.width,s.options.width=p?n.target.line.width:Vt.width(),s.reflow(Vt)}const _t=this.label;_t&&(_t.options.aboveAxis=this.aboveAxis,_t.reflow(t)),this.note&&this.note.reflow(t),this.box=t}createVisual(){super.createVisual();const t=this.options,n=Ws.y.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:t.opacity},stroke:null});t.border.width>0&&n.options.set("stroke",{color:t.border.color||this.color,width:t.border.width,dashType:t.border.dashType,opacity:Et(t.border.opacity,t.opacity)}),this.bodyVisual=n,Cn(n),this.visual.append(n)}createAnimation(){this.bodyVisual&&(this.animation=lo.create(this.bodyVisual,this.options.animation))}createHighlight(t){return Ws.y.fromRect(this.box.toRect(),t)}highlightVisual(){return this.bodyVisual}highlightVisualArgs(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}}overlapsBox(t){return this.box.overlaps(t)}}Ul.prototype.tooltipAnchor=Mh.prototype.tooltipAnchor,ni(Ul,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}}}),U(Ul.prototype,vc),U(Ul.prototype,Cu);const $c=Ul;class $a extends Yc{constructor(t,n){(function Zr(g){const t=g.series;for(let n=0;n<t.length;n++){const s=t[n],c=s.data;c&&!An(c[0])&&!gt(c[0])&&(s.data=[c])}})(n),super(t,n)}reflowCategories(t){const n=this.children,s=n.length;for(let c=0;c<s;c++)n[c].reflow(t[c])}plotRange(t){const s=this.seriesValueAxis(t.series),c=this.categoryAxisCrossingValue(s);return[c,t.value.current||c]}createPoint(t,n){const{categoryIx:s,series:c}=n,{options:p,children:S}=this,k=t.valueFields;let $=U({vertical:!p.invertAxes,overlay:c.overlay,categoryIx:s,invertAxes:p.invertAxes},c),me=t.fields.color||c.color;$=this.evalPointOptions($,k,n),mn(c.color)&&(me=$.color);const Ve=new $c(k,$);Ve.color=me;let _t=S[s];return _t||(_t=new ip({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(_t)),_t.append(Ve),Ve}updateRange(t,n){const{current:s,target:c}=t,p=n.series.axis;let S=this.valueAxisRanges[p];ei(s)&&!isNaN(s)&&ei(c&&!isNaN(c))&&(S=this.valueAxisRanges[p]=S||{min:_n,max:Ln},S.min=Math.min(S.min,s,c),S.max=Math.max(S.max,s,c))}formatPointValue(t,n){return this.chartService.format.auto(n,t.value.current,t.value.target)}pointValue(t){return t.valueFields.current}aboveAxis(t){return t.value.current>0}createAnimation(){const t=this.points;this._setAnimationOptions();for(let n=0;n<t.length;n++){const s=t[n];s.options.animation=this.options.animation,s.createAnimation()}}}$a.prototype._setAnimationOptions=Du.prototype._setAnimationOptions,ni($a,{animation:{type:Fe}});const cc=$a;class hr extends Xi.Z{constructor(t,n){super(),this.chartService=t,this.options=U({},this.options,n)}getStyle(t,n){let{background:s,border:{color:c}}=t;if(n){const S=n.color||n.options.color;s=Et(s,S),c=Et(c,S)}const p=St(t.padding||{},"auto");return{backgroundColor:s,borderColor:c,font:t.font,color:t.color,opacity:t.opacity,borderWidth:Lt(t.border.width),paddingTop:Lt(p.top),paddingBottom:Lt(p.bottom),paddingLeft:Lt(p.left),paddingRight:Lt(p.right)}}show(t,n,s){t.format=n.format;const c=this.getStyle(n,s);t.style=c;const p=new os.Z(c.backgroundColor);!ei(n.color)&&!p.isDark()&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify(ul,t),this.visible=!0}hide(){this.chartService&&this.chartService.notify(ho),this.visible=!1}destroy(){delete this.chartService}}ni(hr,{border:{width:1},opacity:1});const uc=hr;class Eu extends uc{constructor(t,n,s){super(t,s),this.crosshair=n,this.formatService=t.format,this.initAxisName()}initAxisName(){const t=this.crosshair.axis;let s;s=t.plotArea.categoryAxis?t.getCategory?"categoryAxis":"valueAxis":t.options.vertical?"yAxis":"xAxis",this.axisName=s}showAt(t){const{crosshair:{axis:n},options:s}=this;let c=n[s.stickyMode?"getCategory":"getValue"](t),p=c;s.format?p=this.formatService.auto(s.format,c):n.options.type===Kt&&(p=this.formatService.auto(n.options.labels.dateFormats[n.options.baseUnit],c)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:p,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)}hide(){this.chartService.notify(ho,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})}getAnchor(){const{crosshair:t,options:{position:n,padding:s}}=this,c=!t.axis.options.vertical,p=t.line.bbox();let S,k,$;return c?(S=Oe,n===$e?(k=ot,$=p.bottomLeft().translate(0,s)):(k=$e,$=p.topLeft().translate(0,-s))):(k=Oe,n===sn?(S=Si,$=p.topLeft().translate(-s,0)):(S=sn,$=p.topRight().translate(s,0))),{point:$,align:{horizontal:S,vertical:k}}}}ni(Eu,{padding:10});const ya=Eu;class dc extends mt{constructor(t,n,s){super(s),this.axis=n,this.stickyMode=n instanceof hl;const c=this.options.tooltip;c.visible&&(this.tooltip=new ya(t,this,U({},c,{stickyMode:this.stickyMode})))}showAt(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)}hide(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()}moveLine(){const{axis:t,point:n}=this,s=t.options.vertical,c=this.getBox(),p=s?yi:Qt,S=new js.Z(c.x1,c.y1);let k;if(k=s?new js.Z(c.x2,c.y1):new js.Z(c.x1,c.y2),n)if(this.stickyMode){const $=t.getSlot(t.pointCategoryIndex(n));S[p]=k[p]=$.center()[p]}else S[p]=k[p]=n[p];this.box=c,this.line.moveTo(S).lineTo(k)}getBox(){const t=this.axis,n=t.pane.axes,s=n.length,c=t.options.vertical,p=t.lineBox().clone(),S=c?Qt:yi;let k;for(let $=0;$<s;$++){const me=n[$];me.options.vertical!==c&&(k?k.wrap(me.lineBox()):k=me.lineBox().clone())}return p[S+1]=k[S+1],p[S+2]=k[S+2],p}createVisual(){super.createVisual();const t=this.options;this.line=new Ws.y({stroke:{color:t.color,width:t.width,opacity:t.opacity,dashType:t.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)}destroy(){this.tooltip&&this.tooltip.destroy(),super.destroy()}}ni(dc,{color:Ze,width:2,zIndex:-1,tooltip:{visible:!1}});const M=dc;class Re extends mt{constructor(t,n){super(t),this.pane=n}shouldClip(){const t=this.children,n=t.length;for(let s=0;s<n;s++)if(!0===t[s].options.clip)return!0;return!1}_clipBox(){return this.pane.chartsBox()}createVisual(){if(this.visual=new vo.Z({zIndex:0}),this.shouldClip()){const n=(this.clipBox=this._clipBox()).toRect(),s=Ws.y.fromRect(n);Cn(s),this.visual.clip(s),this.unclipLabels()}}stackRoot(){return this}unclipLabels(){const{children:t,clipBox:n}=this;for(let s=0;s<t.length;s++){const c=t[s].points||{},p=c.length;for(let S=0;S<p;S++){const k=c[S];if(k&&!1!==k.visible&&k.overlapsBox&&k.overlapsBox(n))if(k.unclipElements)k.unclipElements();else{const{label:$,note:me}=k;$&&$.options.visible&&($.alignToClipBox&&$.alignToClipBox(n),$.options.noclip=!0),me&&me.options.visible&&(me.options.noclip=!0)}}}}destroy(){super.destroy(),delete this.parent}}Re.prototype.isStackRoot=!0;const r=Re;class b extends et{constructor(t){super(t),this.id=function Te(){return"pane"+J++}(),this.createTitle(),this.content=new mt,this.chartContainer=new r({},this),this.append(this.content),this.axes=[],this.charts=[]}createTitle(){let t=this.options.title;gt(t)&&(t=U({},t,{align:t.position,position:ot})),this.title=mr.buildTitle(t,b.prototype.options.title),this.title&&this.append(this.title)}appendAxis(t){this.content.append(t),this.axes.push(t),t.pane=this}appendAxisAt(t,n){this.content.append(t),this.axes.splice(n,0,t),t.pane=this}appendChart(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this}empty(){const t=this.parent;if(t){for(let n=0;n<this.axes.length;n++)t.removeAxis(this.axes[n]);for(let n=0;n<this.charts.length;n++)t.removeChart(this.charts[n])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]}reflow(t){let n;Pt(this.children)===this.content&&(n=this.children.pop()),super.reflow(t),n&&this.children.push(n),this.title&&(this.contentBox.y1+=this.title.box.height())}visualStyle(){const t=super.visualStyle();return t.zIndex=-10,t}renderComplete(){this.options.visible&&this.createGridLines()}stackRoot(){return this}clipRoot(){return this}createGridLines(){const t=this.axes,n=t.concat(this.parent.axes),s=[],c=[];for(let p=0;p<t.length;p++){const S=t[p],k=S.options.vertical,$=k?s:c;for(let me=0;me<n.length;me++)if(0===$.length){const Ve=n[me];k!==Ve.options.vertical&&ps($,S.createGridLines(Ve))}}}refresh(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()}chartsBox(){const t=this.axes,n=t.length,s=new vs;for(let c=0;c<n;c++){const p=t[c],S=p.options.vertical?yi:Qt,k=p.lineBox();s[S+1]=k[S+1],s[S+2]=k[S+2]}if(0===s.x2){const c=this.parent.axes,p=c.length;for(let S=0;S<p;S++){const k=c[S];if(!k.options.vertical){const $=k.lineBox();s.x1=$.x1,s.x2=$.x2}}}return s}clipBox(){return this.chartContainer.clipBox}notifyRender(){const t=this.getService();t&&t.notify("paneRender",{pane:new Ra(this),index:this.paneIndex,name:this.options.name})}}let J=1;b.prototype.isStackRoot=!0,ni(b,{zIndex:-1,shrinkToFit:!0,title:{align:sn},visible:!0});const zn=b;class Ei extends mt{constructor(t,n,s){super(n),this.initFields(t,n),this.series=t,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=s,this.originalOptions=n,this.originalSeries=t,this._bindCache=new WeakMap,this.createPanes(),this.render(),this.createCrosshairs()}initFields(){}initSeries(){const t=this.series;for(let n=0;n<t.length;n++)t[n].index=n}bindPoint(t,n,s){let c=this._bindCache.get(t);c||(c=[],this._bindCache.set(t,c));let p=c[n];return p||(p=c[n]=Mr.current.bindPoint(t,n,s)),p}createPanes(){const t=this.options.title||{},n=this.options.paneDefaults,s=this.options.panes||[],c=Math.max(s.length,1),p=[],S=U({title:{color:t.color}},n);for(let k=0;k<c;k++){const $=U({},S,s[k]);bi($.title)&&($.title=U({text:$.title},S.title));const me=new zn($);me.paneIndex=k,p.push(me),this.append(me)}this.panes=p}crosshairOptions(t){return t.options.crosshair}createCrosshairs(t=this.panes){for(let n=0;n<t.length;n++){const s=t[n];for(let c=0;c<s.axes.length;c++){const p=s.axes[c],S=this.crosshairOptions(p);if(S&&S.visible){const k=new M(this.chartService,p,S);this.crosshairs.push(k),s.content.append(k)}}}}removeCrosshairs(t){const n=this.crosshairs,s=t.axes;for(let c=n.length-1;c>=0;c--)for(let p=0;p<s.length;p++)if(n[c].axis===s[p]){n.splice(c,1);break}}hideCrosshairs(){const t=this.crosshairs;for(let n=0;n<t.length;n++)t[n].hide()}findPane(t){const n=this.panes;let s;for(let c=0;c<n.length;c++)if(n[c].options.name===t){s=n[c];break}return s||n[0]}findPointPane(t){const n=this.panes;let s;for(let c=0;c<n.length;c++)if(n[c].box.containsPoint(t)){s=n[c];break}return s}appendAxis(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this}removeAxis(t){const n=[];for(let s=0;s<this.axes.length;s++){const c=this.axes[s];t!==c?n.push(c):c.destroy()}this.axes=n}appendChart(t,n){this.charts.push(t),n?n.appendChart(t):this.append(t)}removeChart(t){const n=[];for(let s=0;s<this.charts.length;s++){const c=this.charts[s];c!==t?n.push(c):c.destroy()}this.charts=n}addToLegend(t){const n=t.length,s=this.options.legend,c=s.labels||{},p=s.inactiveItems||{},S=p.labels||{},k=[];for(let $=0;$<n;$++){const me=t[$],Ve=!1!==me.visible;if(!1===me.visibleInLegend)continue;let _t=me.name;const Vt=Ve?pt(c):pt(S)||pt(c);Vt&&(_t=Vt({text:ac(_t)?_t:"",series:me}));const Wn=me._defaults;let Ri,ts,si=me.color;mn(si)&&Wn&&(si=Wn.color),Ve?(Ri={},ts=si):(Ri={color:S.color,font:S.font},ts=p.markers.color),ac(_t)&&""!==_t&&k.push({text:_t,labels:Ri,markerColor:ts,series:me,active:Ve})}ps(s.items,k)}groupAxes(t){const n=[],s=[];for(let c=0;c<t.length;c++){const p=t[c].axes;for(let S=0;S<p.length;S++){const k=p[S];k.options.vertical?s.push(k):n.push(k)}}return{x:n,y:s,any:n.concat(s)}}groupSeriesByPane(){const t=this.series,n={};for(let s=0;s<t.length;s++){const c=t[s],p=this.seriesPaneName(c);n[p]?n[p].push(c):n[p]=[c]}return n}filterVisibleSeries(t){const n=[];for(let s=0;s<t.length;s++){const c=t[s];!1!==c.visible&&n.push(c)}return n}reflow(t){const s=this.panes,c=St(this.options.plotArea.margin);this.box=t.clone().unpad(c),this.reflowPanes(),this.detachLabels(),this.reflowAxes(s),this.reflowCharts(s)}redraw(t){const n=[].concat(t);this.initSeries();const s=this.getRoot();s&&s.cleanGradients();for(let c=0;c<n.length;c++)this.removeCrosshairs(n[c]),n[c].empty();this._bindCache=new WeakMap,this.render(n),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(n),this.createCrosshairs(n);for(let c=0;c<n.length;c++)n[c].refresh()}axisCrossingValues(t,n){const s=t.options,c=[].concat(s.axisCrossingValues||s.axisCrossingValue),p=n.length-c.length,S=c[0]||0;for(let k=0;k<p;k++)c.push(S);return c}alignAxisTo(t,n,s,c){const p=t.getSlot(s,s,!0),S=t.options.reverse?2:1,k=n.getSlot(c,c,!0),$=n.options.reverse?2:1,me=t.box.translate(k[Qt+$]-p[Qt+S],k[yi+$]-p[yi+S]);t.pane!==n.pane&&me.translate(0,t.pane.box.y1-n.pane.box.y1),t.reflow(me)}alignAxes(t,n){const s=t[0],c=n[0],p=this.axisCrossingValues(s,n),S=this.axisCrossingValues(c,t),k={},$={},me={},Ve={};for(let _t=0;_t<n.length;_t++){const Vt=n[_t],Wn=Vt.pane,si=Wn.id,Ri=!1!==Vt.options.visible,ts=Ro(t,Wn)||s;let Os=p;ts!==s&&(Os=this.axisCrossingValues(ts,n)),this.alignAxisTo(Vt,ts,S[_t],Os[_t]),!Vt.options._overlap&&(Ke(Vt.lineBox().x1)===Ke(ts.lineBox().x1)&&(k[si]&&Vt.reflow(Vt.box.alignTo(k[si].box,sn).translate(-Vt.options.margin,0)),Ri&&(k[si]=Vt)),Ke(Vt.lineBox().x2)===Ke(ts.lineBox().x2)&&(Vt._mirrored||(Vt.options.labels.mirror=!Vt.options.labels.mirror,Vt._mirrored=!0),this.alignAxisTo(Vt,ts,S[_t],Os[_t]),$[si]&&Vt.reflow(Vt.box.alignTo($[si].box,Si).translate(Vt.options.margin,0)),Ri&&($[si]=Vt)),0!==_t&&c.pane===Vt.pane&&(Vt.alignTo(c),Vt.reflow(Vt.box)))}for(let _t=0;_t<t.length;_t++){const Vt=t[_t],Wn=Vt.pane,si=Wn.id,Ri=!1!==Vt.options.visible,ts=Ro(n,Wn)||c;let Os=S;ts!==c&&(Os=this.axisCrossingValues(ts,t)),this.alignAxisTo(Vt,ts,p[_t],Os[_t]),!Vt.options._overlap&&(Ke(Vt.lineBox().y1)===Ke(ts.lineBox().y1)&&(Vt._mirrored||(Vt.options.labels.mirror=!Vt.options.labels.mirror,Vt._mirrored=!0),this.alignAxisTo(Vt,ts,p[_t],Os[_t]),me[si]&&Vt.reflow(Vt.box.alignTo(me[si].box,ot).translate(0,-Vt.options.margin)),Ri&&(me[si]=Vt)),Ke(Vt.lineBox().y2,xt)===Ke(ts.lineBox().y2,xt)&&(Ve[si]&&Vt.reflow(Vt.box.alignTo(Ve[si].box,$e).translate(0,Vt.options.margin)),Ri&&(Ve[si]=Vt)),0!==_t&&(Vt.alignTo(s),Vt.reflow(Vt.box)))}}shrinkAxisWidth(t){const n=this.groupAxes(t).any,s=Bs(n);let c=0;for(let p=0;p<t.length;p++){const S=t[p];S.axes.length>0&&(c=Math.max(c,s.width()-S.contentBox.width()))}if(0!==c)for(let p=0;p<n.length;p++){const S=n[p];S.options.vertical||S.reflow(S.box.shrink(c,0))}}shrinkAxisHeight(t){let n;for(let s=0;s<t.length;s++){const c=t[s],p=c.axes,S=Math.max(0,Bs(p).height()-c.contentBox.height());if(0!==S){for(let k=0;k<p.length;k++){const $=p[k];$.options.vertical&&$.reflow($.box.shrink(0,S))}n=!0}}return n}fitAxes(t){const n=this.groupAxes(t).any;let s=0;for(let c=0;c<t.length;c++){const p=t[c],S=p.axes,k=p.contentBox;if(S.length>0){const $=Bs(S),me=Math.max(k.y1-$.y1,k.y2-$.y2);s=Math.max(s,k.x1-$.x1);for(let Ve=0;Ve<S.length;Ve++){const _t=S[Ve];_t.reflow(_t.box.translate(0,me))}}}for(let c=0;c<n.length;c++){const p=n[c];p.reflow(p.box.translate(s,0))}}reflowAxes(t){const n=this.groupAxes(t);for(let s=0;s<t.length;s++)this.reflowPaneAxes(t[s]);n.x.length>0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(n),this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t)&&this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t),this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t)&&this.alignAxes(n.x,n.y),this.fitAxes(t))}autoRotateAxisLabels(t){const{panes:n}=this,s=Bo(n);let c;for(let p=0;p<s.length;p++)s[p].autoRotateLabels()&&(c=!0);if(c){for(let p=0;p<n.length;p++)this.reflowPaneAxes(n[p]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(n))}}reflowPaneAxes(t){const n=t.axes,s=n.length;if(s>0)for(let c=0;c<s;c++)n[c].reflow(t.contentBox)}reflowCharts(t){const n=this.charts,s=n.length,c=this.box;for(let p=0;p<s;p++){const S=n[p].pane;(!S||ui(S,t))&&n[p].reflow(c)}}reflowPanes(){const{box:t,panes:n}=this,s=n.length;let c=t.height(),S=0,k=t.y1;for(let $=0;$<s;$++){const me=n[$],Ve=me.options.height;if(me.options.width=t.width(),me.options.height){if(Ve.indexOf&&Ve.indexOf("%")){const _t=parseInt(Ve,10)/100;me.options.height=_t*t.height()}me.reflow(t.clone()),c-=me.options.height}else S++}for(let $=0;$<s;$++){const me=n[$];me.options.height||(me.options.height=c/S)}for(let $=0;$<s;$++){const me=n[$],Ve=t.clone().move(t.x1,k);me.reflow(Ve),k+=me.options.height}}backgroundBox(){const t=this.axes,n=t.length;let s;for(let c=0;c<n;c++){const p=t[c];for(let S=0;S<n;S++){const k=t[S];if(p.options.vertical!==k.options.vertical){const $=p.lineBox().clone().wrap(k.lineBox());s=s?s.wrap($):$}}}return s||this.box}chartsBoxes(){const t=this.panes,n=[];for(let s=0;s<t.length;s++)n.push(t[s].chartsBox());return n}addBackgroundPaths(t){const n=this.chartsBoxes();for(let s=0;s<n.length;s++)t.paths.push(Ws.y.fromRect(n[s].toRect()))}backgroundContainsPoint(t){const n=this.chartsBoxes();for(let s=0;s<n.length;s++)if(n[s].containsPoint(t))return!0}createVisual(){super.createVisual();const t=this.options.plotArea;let{opacity:n,background:s,border:c={}}=t;(function Go(g){return""===g||null===g||"none"===g||"transparent"===g||!ei(g)})(s)&&(s=In,n=0);const p=this._bgVisual=new Ws.w({fill:{color:s,opacity:n},stroke:{color:c.width?c.color:"",width:c.width,dashType:c.dashType},zIndex:-1});this.addBackgroundPaths(p),this.appendVisual(p)}pointsByCategoryIndex(t){const n=this.charts,s=[];if(null!==t)for(let c=0;c<n.length;c++){if("_navigator"===n[c].pane.options.name)continue;const S=n[c].categoryPoints[t];if(S&&S.length)for(let k=0;k<S.length;k++){const $=S[k];$&&ei($.value)&&null!==$.value&&s.push($)}}return s}pointsBySeriesIndex(t){return this.filterPoints(function(n){return n.series.index===t})}pointsBySeriesName(t){return this.filterPoints(function(n){return n.series.name===t})}filterPoints(t){const n=this.charts,s=[];for(let c=0;c<n.length;c++){const S=n[c].points;for(let k=0;k<S.length;k++){const $=S[k];$&&!1!==$.visible&&t($)&&s.push($)}}return s}findPoint(t){const n=this.charts;for(let s=0;s<n.length;s++){const p=n[s].points;for(let S=0;S<p.length;S++){const k=p[S];if(k&&!1!==k.visible&&t(k))return k}}}paneByPoint(t){const n=this.panes;for(let s=0;s<n.length;s++){const c=n[s];if(c.box.containsPoint(t))return c}}detachLabels(){const t=this.groupAxes(this.panes),n=t.x,s=t.y;this.detachAxisGroupLabels(s,n),this.detachAxisGroupLabels(n,s)}detachAxisGroupLabels(t,n){let s=0;for(let c=0;c<t.length;c++){const p=t[c],S=p.pane,k=Ro(n,S)||n[0],me=this.createLabelAxis(p,c+s,k);if(me){s++;const Ve=S.axes.indexOf(p)+s;S.appendAxisAt(me,Ve)}}}createLabelAxis(t,n,s){const c=t.options.labels,p=c.position;if("end"!==p&&"start"!==p||!1===c.visible)return null;const $=this.groupAxes(this.panes),Ve=this.axisCrossingValues(s,s.options.vertical?$.x:$.y),_t="end"===p,Vt=s.range(),Wn=_t?Vt.max:Vt.min;if(Be(Ve[n],Vt.min,Vt.max)-Wn==0)return null;Ve.splice(n+1,0,Wn),s.options.axisCrossingValues=Ve;const Ri=t.clone();return t.clear(),Ri.options.name=void 0,Ri.options.line.visible=!1,Ri.options.crosshair=void 0,Ri.options.notes=void 0,Ri.options.plotBands=void 0,Ri}isTrendline(t){return t&&ui(t.type,Xe)}trendlineFactory(){}createTrendlineSeries(){const t=[];return this.series=this.series.map(n=>{if(!this.isTrendline(n))return n;const s=this.seriesByName(n.for);if(!s)throw new Error(`Invalid Configuration: Unable to locate linked series "${n.for}" for trendline "${n.name}".`);const c=Mr.current.valueFields(s),p=Pt(c),S=this.trendlineFactory(Object.assign({},{field:p},n),s);return S&&(!1===s.visible&&(S.visible=!1),S.color===an&&(S.color=s.color),t.push(S)),S}).filter(n=>null!==n),t}seriesByName(t){return this.series.find(n=>n.name===t)}}function Xn(g){return!g.pane.axes.some(t=>t.options.vertical===g.options.vertical&&t!==g&&!1!==t.options.visible)}function Bs(g){const t=g.length;let n;for(let s=0;s<t;s++){const c=g[s],p=!1!==c.options.visible;if(p||Xn(c)){const S=p?c.contentBox():c.lineBox();n?n.wrap(S):n=S.clone()}}return n||new vs}function Ro(g,t){for(let n=0;n<g.length;n++){const s=g[n];if(s&&s.pane===t)return s}}const Bo=g=>g.reduce((t,n)=>t.concat(n.axes),[]);ni(Ei,{series:[],plotArea:{margin:{}},background:"",border:{color:Ze,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const Za=Ei,Nd={hover:function(g,t){this._dispatchEvent(g,t,Io)},click:function(g,t){this._dispatchEvent(g,t,"plotAreaClick")}};function Op(g,t,n){let s=t,c=g;if(g.indexOf(".")>-1){const p=g.split(".");for(;p.length>1;)c=p.shift(),ei(s[c])||(s[c]={}),s=s[c];c=p.shift()}s[c]=n}const ih=class rp extends Xi.Z{constructor(t,n,s){super();const c=n.canonicalFields(t),p=n.valueFields(t),S=n.sourceFields(t,c),k=this._seriesFields=[],$=s.query(t.type),me=t.aggregate||$;this._series=t,this._binder=n;for(let Ve=0;Ve<c.length;Ve++){const _t=c[Ve];let Vt;if(gt(me))Vt=me[_t];else{if(0!==Ve&&!ui(_t,p))break;Vt=me}Vt&&k.push({canonicalName:_t,name:S[Ve],transform:mn(Vt)?Vt:mc[Vt]})}}aggregatePoints(t,n){const{_series:s,_seriesFields:c}=this,p=this._bindPoints(t||[]),S=p.dataItems[0];let k={};if(S&&!fi(S)&&!An(S)){const $=function(){};$.prototype=S,k=new $}for(let $=0;$<c.length;$++){const me=c[$],Ve=this._bindField(p.values,me.canonicalName),_t=me.transform(Ve,s,p.dataItems,n);if(!(null===_t||!gt(_t)||ei(_t.length)||_t instanceof Date)){k=_t;break}ei(_t)&&Op(me.name,k,_t)}return k}_bindPoints(t){const{_binder:n,_series:s}=this,c=[],p=[];for(let S=0;S<t.length;S++){const k=t[S];c.push(n.bindPoint(s,k)),p.push(s.data[k])}return{values:c,dataItems:p}}_bindField(t,n){const s=[],c=t.length;for(let p=0;p<c;p++){const S=t[p],k=S.valueFields;let $;$=ei(k[n])?k[n]:S.fields[n],s.push($)}return s}};class sh extends Xi.Z{constructor(){super(),this._defaults={}}register(t,n){for(let s=0;s<t.length;s++)this._defaults[t[s]]=n}query(t){return this._defaults[t]}}sh.current=new sh;const Ld=sh;class n2 extends Mh{createLabel(){const t=this.options.labels,n=U({},t,t.from),s=U({},t,t.to);n.visible&&(this.labelFrom=this._createLabel(n),this.append(this.labelFrom)),s.visible&&(this.labelTo=this._createLabel(s),this.append(this.labelTo))}_createLabel(t){const n=pt(t),s=this.pointData();let c;return c=n?n(s):this.formatValue(t.format),new Rd(c,U({vertical:this.options.vertical},t),s)}reflow(t){this.render();const{labelFrom:n,labelTo:s,value:c}=this;this.box=t,n&&(n.options.aboveAxis=c.from>c.to,n.reflow(t)),s&&(s.options.aboveAxis=c.to>c.from,s.reflow(t)),this.note&&this.note.reflow(t)}}n2.prototype.defaults=U({},n2.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const s2=n2;class ou extends Du{pointType(){return s2}pointValue(t){return t.valueFields}formatPointValue(t,n){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(n,t.value.from,t.value.to)}plotRange(t){return t?[t.value.from,t.value.to]:0}updateRange(t,n){const s=n.series.axis,{from:c,to:p}=t;let S=this.valueAxisRanges[s];null!==t&&fi(c)&&fi(p)&&(S=this.valueAxisRanges[s]=S||{min:_n,max:Ln},S.min=Math.min(S.min,c),S.max=Math.max(S.max,c),S.min=Math.min(S.min,p),S.max=Math.max(S.max,p))}aboveAxis(t){const n=t.value;return n.from<n.to}}ou.prototype.plotLimits=Yc.prototype.plotLimits;const o2=ou,oh=class Ap extends Ic{aliasFor(){return this.parent}};class wf extends mt{constructor(t,n){super(),this.value=t,this.options=n,this.aboveAxis=Et(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}render(){if(this._rendered)return;this._rendered=!0;const{markers:t,labels:n}=this.options,s=this.value,c=this.fromPoint=new oh(s,U({},this.options,{labels:n.from,markers:t.from})),p=this.toPoint=new oh(s,U({},this.options,{labels:n.to,markers:t.to}));this.copyFields(c),this.copyFields(p),this.append(c),this.append(p)}reflow(t){this.render();const{from:n,to:s}=t;this.positionLabels(n,s),this.fromPoint.reflow(n),this.toPoint.reflow(s),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())}createHighlight(){const t=new vo.Z;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t}highlightVisual(){return this.visual}highlightVisualArgs(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}}tooltipAnchor(){const t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){const s=this.box,c=s.center(),p=sn;let S,k,$;return this.options.vertical?(S=c.x,k=s.y1-5,$=$e):(S=s.x2+5,k=c.y,$=Oe),{point:new Qs(S,k),align:{horizontal:p,vertical:$}}}}formatValue(t){return this.owner.formatPointValue(this,t)}overlapsBox(t){return this.box.overlaps(t)}unclipElements(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()}initLabelsFormat(){const t=this.options.labels;t.format||((!t.from||!t.from.format)&&(t.from=Object.assign({},t.from,{format:"{0}"})),(!t.to||!t.to.format)&&(t.to=Object.assign({},t.to,{format:"{1}"})))}positionLabels(t,n){const{labels:s,vertical:c}=this.options;if("auto"===s.position){let p,S;c?n.y1<=t.y1?(S=fs,p=Do):(S=Do,p=fs):n.x1<=t.x1?(S=sn,p=Si):(S=Si,p=sn),(!s.from||!s.from.position)&&(this.fromPoint.options.labels.position=p),(!s.to||!s.to.position)&&(this.toPoint.options.labels.position=S)}}copyFields(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner}}U(wf.prototype,vc),U(wf.prototype,Cu),wf.prototype.defaults={markers:{visible:!1,background:In,size:8,type:Nt,border:{width:2},opacity:1},labels:{visible:!1,margin:St(3),padding:St(4),animation:{type:cl,delay:Kl},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:In,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const yc=wf,Fd=class hm extends Wc{createStrokeSegments(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t}createStroke(t){const n=new Ws.y(t),s=new Ws.y(t);n.segments.push.apply(n.segments,this.strokeSegments()),s.segments.push.apply(s.segments,this.stackSegments()),this.visual.append(n),this.visual.append(s)}hasStackSegment(){return!0}fromPoints(){return this.linePoints.map(t=>t.fromPoint)}toPoints(){return this.linePoints.map(t=>t.toPoint)}},Rp=class Wu extends Fd{createStrokeSegments(){return this.createCurveSegments(this.toPoints())}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t}createCurveSegments(t){return(new Zl).process(this.toGeometryPoints(t))}};class rh extends Fd{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints())),t.reverse()),t}}U(rh.prototype,tp);const Ng=rh;class Rh extends Yc{render(){super.render(),this.renderSegments()}pointType(){return yc}createPoint(t,n){const{series:s,seriesIx:c}=n;let p=t.valueFields;if(!ac(p.from)&&!ac(p.to)){if(this.seriesMissingValues(s)!==En)return null;p={from:0,to:0}}let S=this.pointOptions(s,c);S=this.evalPointOptions(S,p,n);let k=t.fields.color||s.color;mn(s.color)&&(k=S.color);const $=new yc(p,S);return $.color=k,this.append($),$}createSegment(t,n,s){const c=(n.line||{}).style;let p;return p="smooth"===c?Rp:"step"===c?Ng:Fd,new p(t,n,s)}plotRange(t,n){return t?[t.value.from,t.value.to]:[n,n]}valueSlot(t,n){const s=t.getSlot(n[0],n[0],!this.options.clip),c=t.getSlot(n[1],n[1],!this.options.clip);if(s&&c)return{from:s,to:c}}pointSlot(t,n){const{from:s,to:c}=n;let p,S;return this.options.invertAxes?(p=new vs(s.x1,t.y1,s.x2,t.y2),S=new vs(c.x1,t.y1,c.x2,t.y2)):(p=new vs(t.x1,s.y1,t.x2,s.y2),S=new vs(t.x1,c.y1,t.x2,c.y2)),{from:p,to:S}}addValue(t,n){const s=t.valueFields;fi(s.from)||(s.from=s.to),fi(s.to)||(s.to=s.from),super.addValue(t,n)}updateRange(t,n){if(null!==t&&fi(t.from)&&fi(t.to)){const s=n.series.axis,c=this.valueAxisRanges[s]=this.valueAxisRanges[s]||{min:_n,max:Ln},{from:p,to:S}=t;c.min=Math.min(c.min,p,S),c.max=Math.max(c.max,p,S)}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.from,s.to)}animationPoints(){const t=this.points,n=[];for(let s=0;s<t.length;s++){const c=t[s];c&&(n.push((c.fromPoint||{}).marker),n.push((c.toPoint||{}).marker))}return n.concat(this._segments)}}U(Rh.prototype,ju,od);const iv=Rh,zd=class ap extends Cl{reflow(t){const{options:n,value:s,owner:c}=this,p=c.seriesValueAxis(n),S=[],k=[],$=[],me=p.getSlot(s.low,s.high),Ve=p.getSlot(s.open,s.open),_t=p.getSlot(s.close,s.close);Ve.x1=_t.x1=me.x1=t.x1,Ve.x2=_t.x2=me.x2=t.x2;const Vt=me.center().x;S.push([Ve.x1,Ve.y1]),S.push([Vt,Ve.y1]),k.push([Vt,_t.y1]),k.push([_t.x2,_t.y1]),$.push([Vt,me.y1]),$.push([Vt,me.y2]),this.lines=[S,k,$],this.box=me.clone().wrap(Ve.clone().wrap(_t)),this.reflowNote()}createBody(){}},Pc=class Rc extends op{pointType(){return zd}};class xf extends mt{constructor(t,n,s){super(),this.from=t,this.to=n,this.series=s}linePoints(){const t=this.from,{from:{box:n},to:{box:s}}=this,c=[];if(t.isVertical){const p=t.aboveAxis?n.y1:n.y2;c.push([n.x1,p],[s.x2,p])}else{const p=t.aboveAxis?n.x2:n.x1;c.push([p,n.y1],[p,s.y2])}return c}createVisual(){super.createVisual();const t=this.series.line||{},n=Ws.y.fromPoints(this.linePoints(),{stroke:{color:t.color,width:t.width,opacity:t.opacity,dashType:t.dashType}});Cn(n),this.visual.append(n)}}ni(xf,{animation:{type:cl,delay:Kl}});const r2=xf,Bd=class Ph extends Du{render(){super.render(),this.createSegments()}traverseDataPoints(t){const n=this.options.series,s=Ed(n),c=!this.options.invertAxes;for(let p=0;p<n.length;p++){const S=n[p];let k=0,$=0;for(let me=0;me<s;me++){const Ve=Mr.current.bindPoint(S,me),_t=Ve.valueFields.value,Vt=Ve.fields.summary;let si,Wn=k;Vt?"total"===Vt.toLowerCase()?(Ve.valueFields.value=k,Wn=0,si=k):(Ve.valueFields.value=$,si=Wn-$,$=0):fi(_t)&&($+=_t,k+=_t,si=k),t(Ve,{category:this.categoryAxis.categoryAt(me),categoryIx:me,series:S,seriesIx:p,total:k,runningTotal:$,from:Wn,to:si,isVertical:c})}}}updateRange(t,n){super.updateRange({value:n.to},n)}aboveAxis(t){return t.value>=0}plotRange(t){return[t.from,t.to]}createSegments(){const t=this.options.series,n=this.seriesPoints,s=this.segments=[];for(let c=0;c<t.length;c++){const p=t[c],S=n[c];if(S){let k;for(let $=0;$<S.length;$++){const me=S[$];if(me&&k){const Ve=new r2(k,me,p);s.push(Ve),this.append(Ve)}k=me}}}}},$u=function Df(g,t,n){const s=g[String(t)];return s?s(n):null},a2=function yy(g,t){let k,$,n=0,s=0,c=0,p=0,S=0,me=Number.MAX_VALUE,Ve=Number.MIN_VALUE;for(let _t=0;_t<g.length;_t++){const Vt=g[_t],{xValue:Wn,yValue:si}=t(Vt);isFinite(Wn)&&null!==Wn&&isFinite(si)&&null!==si&&(me=Math.min(Wn,me),Ve=Math.max(Wn,Ve),S++,n+=Wn,s+=si,c+=Math.pow(Wn,2),p+=Wn*si)}return S>0&&(k=(S*p-n*s)/(S*c-Math.pow(n,2)),$=(s-k*n)/S),{slope:k,intercept:$,count:S,xMin:me,xMax:Ve}},Fg=function l2(g,t,n){const s=[],c=[],p=Math.max(2,n)-1;let S=0,k=0;for(let $=0;$<g.length;$++){const me=g[$],{xValue:Ve,yValue:_t}=t(me);if(isFinite(_t)&&null!==_t?(c.push(_t),k+=_t,S=Math.max($,S)):c.push(null),$>=p){const Vt=c.filter(si=>null!==si).length,Wn=c.shift()||0;if(Vt>0){s.push([Ve,k/Vt]),k-=Wn;continue}}s.push([Ve,null])}return s.slice(0,S+1)},Nc={};Nc[rc]=function Lg(g){const{options:t,categoryAxis:n,seriesValues:s}=g,{data:c}=function sv({seriesValues:g,categoryAxis:t,options:n}){const{slope:s,intercept:c,count:p}=a2(g(),(g=>({categoryIx:t,valueFields:n})=>({xValue:t+1,yValue:n[g]}))(n.field));if(p>0){const S=[],k=t.totalRangeIndices(),$=t.currentRangeIndices(),me={min:Math.floor(Math.max($.min-1,k.min)),max:Math.ceil(Math.min($.max+2,k.max))};for(let Ve=me.min;Ve<me.max;Ve++)S[Ve]={category:t.categoryAt(Ve,!0),value:s*(Ve+1)+c};return{data:S}}return{data:null}}({seriesValues:s,categoryAxis:n,options:t});return c?Object.assign({},t,{type:"line",data:c,categoryField:"category",field:"value"}):null},Nc[ye]=function c2(g){const{options:t}=g,{data:n}=function ah(g){const{categoryAxis:t}=g,n=function rd({options:g,categoryAxis:t,seriesValues:n}){const s=(g.trendline||{}).period||2,c=t.totalRangeIndices(),p=t.currentRangeIndices(),S={min:Math.floor(Math.max(p.min-s,c.min)),max:Math.ceil(Math.min(p.max+s+2,c.max))};return Fg(n(S),(g=>({categoryIx:t,valueFields:n})=>({xValue:t,yValue:n[g]}))(g.field),s)}(g),s=[];return n.forEach(([c,p])=>{s[c]={category:t.categoryAt(c,!0),value:p}}),s.length>0?{data:s}:{data:null}}(g);return n?Object.assign({},t,{type:"line",data:n,categoryField:"category",field:"value"}):null};const d2=Nc,zg=[ce,_c,Qa,kc],Bg=[qu,hu].concat(zg);class pm extends Za{initFields(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new xu,this._seriesPointsCache={},this._currentPointsCache={},t.length>0){this.invertAxes=ui(t[0].type,[Fe,hi,hu,_c,kc,xc,fa,Bu]);for(let n=0;n<t.length;n++){const s=t[n].stack;if(s&&"100%"===s.type){this.stack100=!0;break}}}}render(t=this.panes){this.series=[...this.originalSeries],this.createCategoryAxes(t),this.aggregateCategories(t),this.createTrendlineSeries(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)}removeAxis(t){const n=t.options.name;super.removeAxis(t),t instanceof hl?delete this.namedCategoryAxes[n]:(this.valueAxisRangeTracker.reset(n),delete this.namedValueAxes[n]),t===this.categoryAxis&&delete this.categoryAxis,t===this.valueAxis&&delete this.valueAxis}trendlineFactory(t,n){const s=this.seriesCategoryAxis(t),c=this.seriesValues.bind(this,n.index),p=$u(d2,t.type,{options:t,categoryAxis:s,seriesValues:c});return p&&(p.categoryAxis=n.categoryAxis,p.valueAxis=n.valueAxis,this.filterSeries(p,s))}trendlineAggregateForecast(){return this.series.map(t=>(t.trendline||{}).forecast).filter(t=>void 0!==t).reduce((t,n)=>({before:Math.max(t.before,n.before||0),after:Math.max(t.after,n.after||0)}),{before:0,after:0})}seriesValues(t,n){const s=[];let c=this.srcSeries[t];const p=this.seriesCategoryAxis(c);Pl(p.options.type,Kt)&&(this._seriesPointsCache={},this._currentPointsCache={},p.options.dataItems=[],c=this.aggregateSeries(c,p,p.totalRangeIndices()));const $=n?n.max:c.data.length;for(let me=n?n.min:0;me<$;me++){const Ve=this.bindPoint(c,me);s.push({categoryIx:me,category:Ve.fields.category,valueFields:Ve.valueFields})}return s}createCharts(t){const n=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const c=t[s],p=n[c.options.name||"default"]||[];this.addToLegend(p);const S=this.filterVisibleSeries(p);if(!S)continue;const k=this.groupSeriesByCategoryAxis(S);for(let $=0;$<k.length;$++)this.createChartGroup(k[$],c)}}createChartGroup(t,n){this.createAreaChart(Ga(t,[ce,_c]),n),this.createRangeAreaChart(Ga(t,[Qa,kc]),n),this.createBarChart(Ga(t,[cs,Fe]),n),this.createRangeBarChart(Ga(t,[Sd,xc]),n),this.createBulletChart(Ga(t,[hi,td]),n),this.createCandlestickChart(Ga(t,kn),n),this.createBoxPlotChart(Ga(t,[Dt,Bu]),n),this.createOHLCChart(Ga(t,Fu),n),this.createWaterfallChart(Ga(t,[pu,fa]),n),this.createLineChart(Ga(t,[qu,hu]),n)}aggregateCategories(t){const n=[...this.series],s=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(let c=0;c<n.length;c++){let p=n[c];if(!this.isTrendline(p)){const S=this.seriesCategoryAxis(p),k=this.findPane(S.options.pane);p=(Pl(S.options.type,Kt)||p.categoryField)&&ui(k,t)?this.aggregateSeries(p,S,S.currentRangeIndices()):this.filterSeries(p,S)}s.push(p)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=n,this.series=s}filterSeries(t,n){const s=(t.data||{}).length;if(n._seriesMax=Math.max(n._seriesMax||0,s),!ei(n.options.min)&&!ei(n.options.max))return t;const c=n.currentRangeIndices(),p=ui(t.type,Bg),S=U({},t);return S.data=(S.data||[]).slice(c.min,c.max+1),p&&Sh(S,c,s,k=>({item:t.data[k],category:n.categoryAt(k,!0),categoryIx:k-c.min}),k=>ei(t.data[k])),S}clearSeriesPointsCache(){this._seriesPointsCache={}}seriesSourcePoints(t,n){const s=`${t.index};${n.categoriesHash()}`;if(this._seriesPointsCache&&this._seriesPointsCache[s])return this._currentPointsCache[s]=this._seriesPointsCache[s],this._seriesPointsCache[s];const c=n.options,p=c.srcCategories,S=Pl(c.type,Kt),k=t.data,$=S?Ec:El,me=[];S||n.mapCategories();for(let Ve=0;Ve<k.length;Ve++){let _t;if(_t=t.categoryField?$(t.categoryField,k[Ve],this.chartService.intl):p[Ve],ei(_t)&&null!==_t){const Vt=n.totalIndex(_t);me[Vt]=me[Vt]||{items:[],category:_t},me[Vt].items.push(Ve)}}return this._currentPointsCache[s]=me,me}aggregateSeries(t,n,s){if(!t.data.length)return t;const p=this.seriesSourcePoints(t,n),S=U({},t),k=new ih(U({},t),Mr.current,Ld.current),$=S.data=[],me=n.options.dataItems||[],Ve=_t=>{const Vt=_t-s.min;let Wn=p[_t];if(Wn||(Wn=p[_t]={}),Wn.categoryIx=Vt,!Wn.item){const si=n.categoryAt(_t,!0);Wn.category=si,Wn.item=k.aggregatePoints(Wn.items,si)}return Wn};for(let _t=s.min;_t<=s.max;_t++){const Vt=Ve(_t);$[Vt.categoryIx]=Vt.item,Vt.items&&Vt.items.length&&(me[Vt.categoryIx]=Vt.item)}return ui(S.type,Bg)&&Sh(S,s,n.totalCount(),Ve,_t=>p[_t]),n.options.dataItems=me,S}appendChart(t,n){const s=t.options.series,c=this.seriesCategoryAxis(s[0]);let p=c.options.categories,S=Math.max(0,Ed(s)-p.length);if(S>0)for(p=c.options.categories=c.options.categories.slice(0);S--;)p.push("");this.valueAxisRangeTracker.update(t.valueAxisRanges),super.appendChart(t,n)}seriesPaneName(t){const n=this.options,s=t.axis;return(Gn([].concat(n.valueAxis),function(me){return me.name===s})[0]||{}).pane||((n.panes||[{}])[0]||{}).name||"default"}seriesCategoryAxis(t){const n=t.categoryAxis,s=n?this.namedCategoryAxes[n]:this.categoryAxis;if(!s)throw new Error("Unable to locate category axis with name "+n);return s}stackableChartOptions(t,n){const s=t.stack;return{isStacked:s,isStacked100:s&&"100%"===s.type,clip:n.options.clip}}groupSeriesByCategoryAxis(t){const n=[],s={};for(let p=0;p<t.length;p++){const S=t[p].categoryAxis||"$$default$$";s.hasOwnProperty(S)||(s[S]=!0,n.push(S))}const c=[];for(let p=0;p<n.length;p++){const k=h2(t,n[p],p);0!==k.length&&c.push(k)}return c}createBarChart(t,n){if(0===t.length)return;const s=t[0],c=new Du(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing},this.stackableChartOptions(s,n)));this.appendChart(c,n)}createRangeBarChart(t,n){if(0===t.length)return;const s=t[0],c=new o2(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing});this.appendChart(c,n)}createBulletChart(t,n){if(0===t.length)return;const s=t[0],c=new cc(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing,clip:n.options.clip});this.appendChart(c,n)}createLineChart(t,n){if(0===t.length)return;const c=new Ih(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t[0],n)));this.appendChart(c,n)}createAreaChart(t,n){if(0===t.length)return;const c=new Ip(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(t[0],n)));this.appendChart(c,n)}createRangeAreaChart(t,n){if(0===t.length)return;const s=new iv(this,{invertAxes:this.invertAxes,series:t,clip:n.options.clip});this.appendChart(s,n)}createOHLCChart(t,n){if(0===t.length)return;const s=t[0],c=new Pc(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:n.options.clip});this.appendChart(c,n)}createCandlestickChart(t,n){if(0===t.length)return;const s=t[0],c=new op(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:n.options.clip});this.appendChart(c,n)}createBoxPlotChart(t,n){if(0===t.length)return;const s=t[0],c=new ue(this,{invertAxes:this.invertAxes,gap:s.gap,series:t,spacing:s.spacing,clip:n.options.clip});this.appendChart(c,n)}createWaterfallChart(t,n){if(0===t.length)return;const s=t[0],c=new Bd(this,{series:t,invertAxes:this.invertAxes,gap:s.gap,spacing:s.spacing});this.appendChart(c,n)}axisRequiresRounding(t,n){const s=Ga(this.series,Cd);for(let c=0;c<this.series.length;c++){const p=this.series[c];if(ui(p.type,zg)){const S=p.line;S&&S.style===B&&s.push(p)}}for(let c=0;c<s.length;c++){const p=s[c].categoryAxis||"";if(p===t||!p&&0===n)return!0}}aggregatedAxis(t,n){const s=this.series;for(let c=0;c<s.length;c++){const p=s[c].categoryAxis||"";if((p===t||!p&&0===n)&&s[c].categoryField)return!0}}createCategoryAxesLabels(){const t=this.axes;for(let n=0;n<t.length;n++)t[n]instanceof hl&&t[n].createLabels()}createCategoryAxes(t){const n=this.invertAxes,s=[].concat(this.options.categoryAxis),c=[];for(let S=0;S<s.length;S++){let k=s[S];if(ui(this.findPane(k.pane),t)){const{name:me,categories:Ve=[]}=k;let _t;if(k=U({vertical:n,reverse:!n&&this.chartService.rtl,axisCrossingValue:n?_n:0},k),ei(k.justified)||(k.justified=this.isJustified()),this.axisRequiresRounding(me,S)&&(k.justified=!1),Su(k,Ve[0])?(k._forecast=this.trendlineAggregateForecast(),_t=new Aa(k,this.chartService)):_t=new hl(k,this.chartService),s[S].categories=_t.options.srcCategories,me){if(this.namedCategoryAxes[me])throw new Error(`Category axis with name ${me} is already defined`);this.namedCategoryAxes[me]=_t}_t.axisIndex=S,c.push(_t),this.appendAxis(_t)}}const p=this.categoryAxis||c[0];this.categoryAxis=p,n?this.axisY=p:this.axisX=p}isJustified(){const t=this.series;for(let n=0;n<t.length;n++)if(!ui(t[n].type,zg))return!1;return!0}createValueAxes(t){const n=this.valueAxisRangeTracker,s=n.query(),c=[].concat(this.options.valueAxis),p=this.invertAxes,S={vertical:!p,reverse:p&&this.chartService.rtl},k=[];this.stack100&&(S.roundToMajorUnit=!1,S.labels={format:"P0"});for(let me=0;me<c.length;me++){const Ve=c[me];if(ui(this.findPane(Ve.pane),t)){const Vt=Ve.name,Wn=Pl(Ve.type,Ea)?{min:.1,max:1}:{min:0,max:1},si=n.query(Vt)||s||Wn;let Ri;0===me&&si&&s&&(si.min=Math.min(si.min,s.min),si.max=Math.max(si.max,s.max)),Ri=Pl(Ve.type,Ea)?Ne:Ya;const ts=new Ri(si.min,si.max,U({},S,Ve),this.chartService);if(Vt){if(this.namedValueAxes[Vt])throw new Error(`Value axis with name ${Vt} is already defined`);this.namedValueAxes[Vt]=ts}ts.axisIndex=me,k.push(ts),this.appendAxis(ts)}}const $=this.valueAxis||k[0];this.valueAxis=$,p?this.axisX=$:this.axisY=$}_dispatchEvent(t,n,s){const c=t._eventCoordinates(n),p=new Qs(c.x,c.y),S=this.pointPane(p),k=[],$=[];if(!S)return;const me=S.axes;for(let Ve=0;Ve<me.length;Ve++){const _t=me[Ve];_t.getValue?Dd($,_t.getValue(p)):Dd(k,_t.getCategory(p))}0===k.length&&Dd(k,this.categoryAxis.getCategory(p)),k.length>0&&$.length>0&&t.trigger(s,{element:ai(n),originalEvent:n,category:Oc(k),value:Oc($)})}pointPane(t){const n=this.panes;for(let s=0;s<n.length;s++){const c=n[s];if(c.contentBox.containsPoint(t))return c}}updateAxisOptions(t,n){Nh(this.options,t,n),Nh(this.originalOptions,t,n)}}function Nh(g,t,n){U([].concat(t instanceof hl?g.categoryAxis:g.valueAxis)[t.axisIndex],n)}function h2(g,t,n){return Gn(g,function(s){return 0===n&&!s.categoryAxis||s.categoryAxis===t})}ni(pm,{categoryAxis:{},valueAxis:{}}),U(pm.prototype,Nd);const lh=pm;function ch(g){return"function"==typeof g}function Iu(g){return"string"==typeof g?[g]:g}function Ef(){this._defaultPrevented=!0}function p2(){return!0===this._defaultPrevented}const Pp=class Jr extends Xi.Z{constructor(){super(),this._events={}}bind(t,n,s){const c=Iu(t),p=ch(n),S=c.length;if(void 0===n){for(let k in t)this.bind(k,t[k]);return this}for(let k=0;k<S;k++){const $=c[k];let me=p?n:n[$];if(me){if(s){const _t=me;me=()=>{this.unbind($,me),_t.apply(this,arguments)},me.original=_t}(this._events[$]=this._events[$]||[]).push(me)}}return this}one(t,n){return this.bind(t,n,!0)}first(t,n){const s=Iu(t),c=ch(n);for(let p=0,S=s.length;p<S;p++){const k=s[p],$=c?n:n[k];$&&(this._events[k]=this._events[k]||[]).unshift($)}return this}trigger(t,n={}){let s=this._events[t];if(s){const c=s.length;n.sender=this,n._defaultPrevented=!1,n.preventDefault=Ef,n.isDefaultPrevented=p2,s=s.slice();for(let p=0;p<c;p++)s[p].call(this,n);return!0===n._defaultPrevented}return!1}unbind(t,n){const s=this._events[t];if(void 0===t)this._events={};else if(s)if(n)for(let c=s.length-1;c>=0;c--)(s[c]===n||s[c].original===n)&&s.splice(c,1);else this._events[t]=[];return this}};var fu=_(46558),f2=_(56288),av=_(5473),If=_(18228),fm=_(1249),Sy=_(62426);const m2=["click","mouseenter","mouseleave","mousemove","resize"],Lh=class g2 extends Pp{constructor(t,n){super(),this.options=Object.assign({},n),this.element=t,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new vo.Z,(0,fu.Z)(t,this.options),this.bind(m2,this.options),this._enableTracking()}draw(t){this._visual.children.push(t)}clear(){this._visual.children=[]}destroy(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}eventTarget(t){let s,n=(0,f2.Z)(t);for(;!s&&n&&(s=n._kendoNode,n!==this.element);)n=n.parentElement;if(s)return s.srcElement}exportVisual(){return this._visual}getSize(){return(0,fu.Z)(this.element)}currentSize(t){if(!t)return this._size;this._size=t}setSize(t){(0,fu.Z)(this.element,t),this.currentSize(t),this._resize()}resize(t){const n=this.getSize(),s=this.currentSize();(t||(n.width>0||n.height>0)&&(!s||n.width!==s.width||n.height!==s.height))&&(this.currentSize(n),this._resize(n,t),this.trigger("resize",n))}size(t){if(!t)return this.getSize();this.setSize(t)}suspendTracking(){this._suspendedTracking=!0}resumeTracking(){this._suspendedTracking=!1}_enableTracking(){}_resize(){}_handler(t){return n=>{const s=this.eventTarget(n);s&&!this._suspendedTracking&&this.trigger(t,{element:s,originalEvent:n,type:t})}}_elementOffset(){const t=this.element,n=(0,av.Z)(t),{left:s,top:c}=(0,If.Z)(t);return{left:s+n.left,top:c+n.top}}_surfacePoint(t){const n=this._elementOffset(),s=(0,fm.Z)(t),c=s.x-n.left,p=s.y-n.top,S=(0,Sy.Z)(this.element).invert();return new js.Z(c,p).transform(S)}},Np=class _2 extends Xi.Z{constructor(t){super(),this.childNodes=[],this.parent=null,t&&(this.srcElement=t,this.observe())}destroy(){this.srcElement&&this.srcElement.removeObserver(this);const t=this.childNodes;for(let n=0;n<t.length;n++)this.childNodes[n].destroy();this.parent=null}load(){}observe(){this.srcElement&&this.srcElement.addObserver(this)}append(t){this.childNodes.push(t),t.parent=this}insertAt(t,n){this.childNodes.splice(n,0,t),t.parent=this}remove(t,n){const s=t+n;for(let c=t;c<s;c++)this.childNodes[c].removeSelf();this.childNodes.splice(t,n)}removeSelf(){this.clear(),this.destroy()}clear(){this.remove(0,this.childNodes.length)}invalidate(){this.parent&&this.parent.invalidate()}geometryChange(){this.invalidate()}optionsChange(){this.invalidate()}childrenChange(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()}};function Ud(g,t){return(0,Fn.Z)(t)&&null!==t?` ${g}="${t}" `:""}function Lp(g){let t="";for(let n=0;n<g.length;n++)t+=Ud(g[n][0],g[n][1]);return t}function v2(g){let t="";for(let n=0;n<g.length;n++){let s=g[n][1];(0,Fn.Z)(s)&&(t+=g[n][0]+":"+s+";")}if(""!==t)return t}const lp={},mm="http://www.w3.org/2000/svg",Tf="none",ad="data-style",y2=g=>g.replace(/\sstyle=/g," "+ad+"="),uh=g=>{Array.from(g.querySelectorAll("["+ad+"]")).forEach(t=>{const n=t.getAttribute(ad);t.removeAttribute(ad),((g,t)=>{g.split(";").filter(n=>""!==n).forEach(n=>{const s=n.split(":");t.style[s[0].trim()]=s[1].trim()})})(n,t)})};let gm=function(g,t){g.innerHTML=y2(t),uh(g)};if(typeof document<"u"){const g="<svg xmlns='"+mm+"'></svg>",t=document.createElement("div"),n=typeof DOMParser<"u";t.innerHTML=g,n&&t.firstChild.namespaceURI!==mm&&(gm=function(s,c){const S=(new DOMParser).parseFromString(y2(c),"text/xml");uh(S);const k=document.adoptNode(S.documentElement);s.innerHTML="",s.appendChild(k)})}const lv=gm,Ug="transform",kf={clip:"clip-path",fill:"fill"};function b2(g,t){return"clip"===g||"fill"===g&&(!t||"Gradient"===t.nodeType)}const dh=class cv extends Np{constructor(t,n){super(t),this.definitions={},this.options=n}destroy(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),super.destroy()}load(t,n){for(let s=0;s<t.length;s++){const c=t[s],p=c.children,S=new lp[c.nodeType](c,this.options);(0,Fn.Z)(n)?this.insertAt(S,n):this.append(S),S.createDefinitions(),p&&p.length>0&&S.load(p);const k=this.element;k&&S.attachTo(k,n)}}root(){let t=this;for(;t.parent;)t=t.parent;return t}attachTo(t,n){const s=document.createElement("div");lv(s,"<svg xmlns='"+mm+"' version='1.1'>"+this.render()+"</svg>");const c=s.firstChild.firstChild;c&&((0,Fn.Z)(n)?t.insertBefore(c,t.childNodes[n]||null):t.appendChild(c),this.setElement(c))}setElement(t){this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this;const n=this.childNodes;for(let s=0;s<n.length;s++)n[s].setElement(t.childNodes[s])}clear(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");const t=this.childNodes;for(let n=0;n<t.length;n++)t[n].destroy();this.childNodes=[]}removeSelf(){if(this.element){const t=this.element.parentNode;t&&t.removeChild(this.element),this.element=null}super.removeSelf()}template(){return this.renderChildren()}render(){return this.template()}renderChildren(){const t=this.childNodes;let n="";for(let s=0;s<t.length;s++)n+=t[s].render();return n}optionsChange(t){const{field:n,value:s}=t;"visible"===n?this.css("display",s?"":Tf):kf[n]&&b2(n,s)?this.updateDefinition(n,s):"opacity"===n?this.attr("opacity",s):"cursor"===n?this.css("cursor",s):"id"===n&&(s?this.attr("id",s):this.removeAttr("id")),super.optionsChange(t)}attr(t,n){this.element&&this.element.setAttribute(t,n)}allAttr(t){for(let n=0;n<t.length;n++)this.attr(t[n][0],t[n][1])}css(t,n){this.element&&(this.element.style[t]=n)}allCss(t){for(let n=0;n<t.length;n++)this.css(t[n][0],t[n][1])}removeAttr(t){this.element&&this.element.removeAttribute(t)}mapTransform(t){const n=[];return t&&n.push([Ug,"matrix("+t.matrix().toString(6)+")"]),n}renderTransform(){return Lp(this.mapTransform(this.srcElement.transform()))}transformChange(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(Ug)}mapStyle(){const t=this.srcElement.options,n=[["cursor",t.cursor]];return!1===t.visible&&n.push(["display",Tf]),n}renderStyle(){return Ud("style",v2(this.mapStyle(!0)))}renderOpacity(){return Ud("opacity",this.srcElement.options.opacity)}renderId(){return Ud("id",this.srcElement.options.id)}createDefinitions(){const t=this.srcElement,n=this.definitions;if(t){const s=t.options;let c;for(let p in kf){let S=s.get(p);S&&b2(p,S)&&(n[p]=S,c=!0)}c&&this.definitionChange({action:"add",definitions:n})}}definitionChange(t){this.parent&&this.parent.definitionChange(t)}updateDefinition(t,n){const s=this.definitions,c=s[t],p=kf[t],S={};c&&(S[t]=c,this.definitionChange({action:"remove",definitions:S}),delete s[t]),n?(S[t]=n,this.definitionChange({action:"add",definitions:S}),s[t]=n,this.attr(p,this.refUrl(n.id))):c&&this.removeAttr(p)}clearDefinitions(){this.definitionChange({action:"remove",definitions:this.definitions}),this.definitions={}}renderDefinitions(){return Lp(this.mapDefinitions())}mapDefinitions(){const t=this.definitions,n=[];for(let s in t)n.push([kf[s],this.refUrl(t[s].id)]);return n}refUrl(t){const n=(this.options||{}).skipBaseHref,s=this.baseUrl().replace(/'/g,"\\'");return`url(${n?"":s}#${t})`}baseUrl(){return function Fp(){const g=document.getElementsByTagName("base")[0];let t=document.location.href,n="";if(g&&!(ss.Z.browser||{}).msie){const s=t.indexOf("#");-1!==s&&(t=t.substring(0,s)),n=t}return n}()}},Gg=class _m extends dh{template(){return`<stop ${this.renderOffset()} ${this.renderStyle()} />`}renderOffset(){return Ud("offset",this.srcElement.offset())}mapStyle(){const t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]}optionsChange(t){"offset"===t.field?this.attr(t.field,t.value):("color"===t.field||"opacity"===t.field)&&this.css("stop-"+t.field,t.value)}},ym=class vm extends dh{constructor(t){super(t),this.id=t.id,this.loadStops()}loadStops(){const t=this.srcElement.stops,n=this.element;for(let s=0;s<t.length;s++){let c=new Gg(t[s]);this.append(c),n&&c.attachTo(n)}}optionsChange(t){"gradient.stops"===t.field?(Np.prototype.clear.call(this),this.loadStops()):"gradient"===t.field&&this.allAttr(this.mapCoordinates())}renderCoordinates(){return Lp(this.mapCoordinates())}mapSpace(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}},Cy=class Of extends ym{template(){return`<linearGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</linearGradient>`}mapCoordinates(){const t=this.srcElement,n=t.start(),s=t.end();return[["x1",n.x],["y1",n.y],["x2",s.x],["y2",s.y],this.mapSpace()]}},Hg=class Tu extends ym{template(){return`<radialGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</radialGradient>`}mapCoordinates(){const t=this.srcElement,n=t.center(),s=t.radius();return[["cx",n.x],["cy",n.y],["r",s],this.mapSpace()]}},Fh=class wy extends dh{constructor(t){super(),this.srcElement=t,this.id=t.id,this.load([t])}template(){return`<clipPath id='${this.id}'>${this.renderChildren()}</clipPath>`}},Gl=class S2 extends dh{constructor(){super(),this.definitionMap={}}attachTo(t){this.element=t}template(){return`<defs>${this.renderChildren()}</defs>`}definitionChange(t){const{definitions:n,action:s}=t;"add"===s?this.addDefinitions(n):"remove"===s&&this.removeDefinitions(n)}createDefinition(t,n){let s;return"clip"===t?s=Fh:"fill"===t&&(n instanceof Ys.Z?s=Cy:n instanceof co.Z&&(s=Hg)),new s(n)}addDefinitions(t){for(let n in t)this.addDefinition(n,t[n])}addDefinition(t,n){const{element:s,definitionMap:c}=this,p=n.id,S=c[p];if(S)S.count++;else{const k=this.createDefinition(t,n);c[p]={element:k,count:1},this.append(k),s&&k.attachTo(this.element)}}removeDefinitions(t){for(let n in t)this.removeDefinition(t[n])}removeDefinition(t){const n=this.definitionMap,s=t.id,c=n[s];c&&(c.count--,0===c.count&&(this.remove(this.childNodes.indexOf(c.element),1),delete n[s]))}},Sm=class bm extends dh{constructor(t){super(),this.options=t,this.defs=new Gl}attachTo(t){this.element=t,this.defs.attachTo(t.firstElementChild)}clear(){Np.prototype.clear.call(this)}template(){return this.defs.render()+this.renderChildren()}definitionChange(t){this.defs.definitionChange(t)}};var Cm=_(8408),hh=_(51617),ph=_(64361),cp=_(5918);const mu={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Af="solid",uv={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},Ku=class dv extends dh{geometryChange(){this.attr("d",this.renderData()),this.invalidate()}optionsChange(t){switch(t.field){case"fill":t.value?this.allAttr(this.mapFill(t.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":t.value?this.allAttr(this.mapStroke(t.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(t.value);break;default:const n=uv[t.field];n&&this.attr(n,t.value)}super.optionsChange(t)}content(){this.element&&(this.element.textContent=this.srcElement.content())}renderData(){return this.srcElement.toString(3)||void 0}mapStroke(t){const n=[];return t&&!(0,cp.Z)(t.color)?(n.push(["stroke",t.color]),n.push(["stroke-width",t.width]),n.push(["stroke-linecap",this.renderLinecap(t)]),n.push(["stroke-linejoin",t.lineJoin]),(0,Fn.Z)(t.opacity)&&n.push(["stroke-opacity",t.opacity]),(0,Fn.Z)(t.dashType)&&n.push(["stroke-dasharray",this.renderDashType(t)])):n.push(["stroke",Tf]),n}renderStroke(){return Lp(this.mapStroke(this.srcElement.options.stroke))}renderDashType(t){const{dashType:n,width:s=1}=t;if(n&&n!==Af){const c=mu[n.toLowerCase()],p=[];for(let S=0;S<c.length;S++)p.push(c[S]*s);return p.join(" ")}}renderLinecap(t){const{dashType:n,lineCap:s}=t;return n&&"solid"!==n?"butt":s}mapFill(t){const n=[];return t&&"Gradient"===t.nodeType||(t&&!(0,cp.Z)(t.color)?(n.push(["fill",t.color]),(0,Fn.Z)(t.opacity)&&n.push(["fill-opacity",t.opacity])):n.push(["fill",Tf])),n}renderFill(){return Lp(this.mapFill(this.srcElement.options.fill))}template(){return`<path ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} ${Ud("d",this.renderData())}${this.renderStroke()}${this.renderFill()}${this.renderDefinitions()}${this.renderTransform()}></path>`}},pv=class hv extends Ku{renderData(){return this.srcElement.toPath().toString(3)}},Rf=class fv extends Ku{geometryChange(){const t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()}center(){return this.srcElement.geometry().center}radius(){return this.srcElement.geometry().radius}template(){return`<circle ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()}cx='${this.center().x}' cy='${this.center().y}' r='${this.radius()}'${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()}${this.renderTransform()} ></circle>`}},gv=class mv extends dh{template(){return`<g${this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions()}>${this.renderChildren()}</g>`}optionsChange(t){"transform"===t.field&&this.transformChange(t.value),super.optionsChange(t)}},zp=/&/g,_v=/</g,Bp=/"/g,vv=/'/g,Vg=/>/g;function ru(g){return String(g).replace(zp,"&amp;").replace(_v,"&lt;").replace(Vg,"&gt;").replace(Bp,"&quot;").replace(vv,"&#39;")}const yv=class jg extends Ku{geometryChange(){this.allAttr(this.mapPosition()),this.invalidate()}optionsChange(t){"src"===t.field&&this.allAttr(this.mapSource()),super.optionsChange(t)}mapPosition(){const t=this.srcElement.rect(),n=t.topLeft();return[["x",n.x],["y",n.y],["width",t.width()+"px"],["height",t.height()+"px"]]}renderPosition(){return Lp(this.mapPosition())}mapSource(t){let n=this.srcElement.src();return t&&(n=ru(n)),[["xlink:href",n]]}renderSource(){return Lp(this.mapSource(!0))}template(){return`<image preserveAspectRatio='none' ${this.renderId()} ${this.renderStyle()} ${this.renderTransform()} ${this.renderOpacity()}${this.renderPosition()} ${this.renderSource()} ${this.renderDefinitions()}></image>`}},Yg=class C2 extends Ku{renderData(){return this.srcElement.toString(3)||"undefined"}},Wg=class w2 extends Ku{geometryChange(){const t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.attr("rx",t.cornerRadius[0]),this.attr("ry",t.cornerRadius[1]),this.invalidate()}size(){return this.srcElement.geometry().size}origin(){return this.srcElement.geometry().origin}rx(){return this.srcElement.geometry().cornerRadius[0]}ry(){return this.srcElement.geometry().cornerRadius[1]}template(){return`<rect ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} x='${this.origin().x}' y='${this.origin().y}' rx='${this.rx()}' ry='${this.ry()}' width='${this.size().width}' height='${this.size().height}' ${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()} ${this.renderTransform()} />`}};var bv=_(15226);const Sv=/&(?:[a-zA-Z]+|#\d+);/g;function wm(g){if(!g||"string"!=typeof g||!Sv.test(g))return g;const t=wm._element;return Sv.lastIndex=0,g.replace(Sv,n=>(t.innerHTML=n,t.textContent||t.innerText))}typeof document<"u"&&(wm._element=document.createElement("span"));const Cv=class xy extends Ku{geometryChange(){const t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()}optionsChange(t){"font"===t.field?(this.attr("style",v2(this.mapStyle())),this.geometryChange()):"content"===t.field&&super.content(this.srcElement.content()),super.optionsChange(t)}mapStyle(t){const n=super.mapStyle(t);let s=this.srcElement.options.font;return t&&(s=ru(s)),n.push(["font",s],["white-space","pre"]),n}pos(){const t=this.srcElement.position(),n=this.srcElement.measure();return t.clone().setY(t.y+n.baseline)}renderContent(){let t=this.srcElement.content();return t=wm(t),t=ru(t),(0,bv.bG)(t)}renderTextAnchor(){let t;return(this.options||{}).rtl&&!(ss.Z.browser.msie||ss.Z.browser.edge)&&(t="end"),Ud("text-anchor",t)}template(){return`<text ${this.renderId()} ${this.renderTextAnchor()} ${this.renderStyle()} ${this.renderOpacity()}x='${this.pos().x}' y='${this.pos().y}' ${this.renderStroke()} ${this.renderTransform()} ${this.renderDefinitions()}${this.renderFill()}>${this.renderContent()}</text>`}};lp.Arc=pv,lp.Circle=Rf,lp.Group=gv,lp.Image=yv,lp.MultiPath=Yg,lp.Path=Ku,lp.Rect=Wg,lp.Text=Cv;const D2=class Dy extends Lh{get type(){return"svg"}constructor(t,n){super(t,n),this._root=new Sm(Object.assign({rtl:"rtl"===(0,Cm.Z)(t,"direction").direction},this.options)),lv(this.element,this._template("")),this._rootElement=this.element.firstElementChild,this._rootElement.style.width="100%",this._rootElement.style.height="100%",this._rootElement.style.overflow="hidden",function x2(g){let t;try{t=g.getScreenCTM?g.getScreenCTM():null}catch{}if(t){const n=-t.e%1,s=-t.f%1,c=g.style;(0!==n||0!==s)&&(c.left=n+"px",c.top=s+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),(0,hh.Z)(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}destroy(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,(0,ph.Z)(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),super.destroy()}translate(t){const n=`${Math.round(t.x)} ${Math.round(t.y)} ${this._size.width} ${this._size.height}`;this._offset=t,this._rootElement.setAttribute("viewBox",n)}draw(t){super.draw(t),this._root.load([t])}clear(){super.clear(),this._root.clear()}svg(){return"<?xml version='1.0' ?>"+this._template()}exportVisual(){let{_visual:t,_offset:n}=this;if(n){const s=new vo.Z;s.children.push(t),s.transform((0,Ho.Z)().translate(-n.x,-n.y)),t=s}return t}_resize(){this._offset&&this.translate(this._offset)}_template(t){return`<svg ${"string"==typeof t?t:"style='width: 100%; height: 100%; overflow: hidden;' "}xmlns='${mm}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${this._root.render()}</svg>`}};var $g=_(52017),Ey=_(4848);const ld={};function xm(g,t){const n=t.segments;if(0===n.length)return;let s=n[0],c=s.anchor();g.moveTo(c.x,c.y);for(let p=1;p<n.length;p++){s=n[p],c=s.anchor();let k=n[p-1].controlOut(),$=s.controlIn();k&&$?g.bezierCurveTo(k.x,k.y,$.x,$.y,c.x,c.y):g.lineTo(c.x,c.y)}t.options.closed&&g.closePath()}const Dm=class Gd extends Np{constructor(t){super(t),t&&this.initClip()}initClip(){const t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))}clear(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),super.clear()}clearClip(){this.clip&&(this.clip.removeObserver(this),delete this.clip)}setClip(t){this.clip&&(t.beginPath(),xm(t,this.clip),t.clip())}optionsChange(t){"clip"===t.field&&(this.clearClip(),this.initClip()),super.optionsChange(t)}setTransform(t){if(this.srcElement){const n=this.srcElement.transform();n&&t.transform.apply(t,n.matrix().toArray(6))}}loadElements(t,n,s){for(let c=0;c<t.length;c++){let p=t[c],S=p.children,k=new ld[p.nodeType](p,s);S&&S.length>0&&k.load(S,n,s),(0,Fn.Z)(n)?this.insertAt(k,n):this.append(k)}}load(t,n,s){this.loadElements(t,n,s),this.invalidate()}setOpacity(t){if(this.srcElement){const n=this.srcElement.opacity();(0,Fn.Z)(n)&&this.globalAlpha(t,n)}}globalAlpha(t,n){let s=n;s&&t.globalAlpha&&(s*=t.globalAlpha),t.globalAlpha=s}visible(){const t=this.srcElement;return!t||t&&!1!==t.options.visible}};var E2=_(439);class xv extends((0,E2.Z)(Dm,"childNodes")){renderTo(t){if(!this.visible())return;t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t);const n=this.childNodes;for(let s=0;s<n.length;s++){let c=n[s];c.visible()&&c.renderTo(t)}t.restore()}}const Pf=xv;function Up(g,t){let s,n=0;if(!t||t<=0)return g;const c=function(){const p=(0,Xr.Z)()-n,S=arguments,k=function(){g.apply(null,S),n=(0,Xr.Z)()};if(!n)return k();s&&clearTimeout(s),p>t?k():s=setTimeout(k,t-p)};return c.cancel=function(){clearTimeout(s)},c}class Em extends((0,E2.Z)(Pf,"childNodes")){constructor(t,n){super(),this.canvas=t,this.size=n,this.ctx=t.getContext("2d");const s=this._invalidate.bind(this);this.invalidate=Up(()=>{Cr(s)},16.666666666666668)}destroy(){super.destroy(),this.canvas=null,this.ctx=null}load(t,n,s){this.loadElements(t,n,s),this._invalidate()}_rescale(t){const{canvas:n,size:s}=this;n.width=s.width*t,n.height=s.height*t,this.ctx.scale(t,t)}_devicePixelRatio(){return"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1}_invalidate(t){if(!this.ctx)return;const s=t&&t.fixedScale?1:this._devicePixelRatio();this._rescale(s),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx)}}const up=Em,dp=class Gp extends Xi.Z{constructor(){super(),this.shapes=[]}_add(t,n){this.shapes.push({bbox:n,shape:t}),t._quadNode=this}pointShapes(t){const n=this.shapes,s=n.length,c=[];for(let p=0;p<s;p++)n[p].bbox.containsPoint(t)&&c.push(n[p].shape);return c}insert(t,n){this._add(t,n)}remove(t){const n=this.shapes,s=n.length;for(let c=0;c<s;c++)if(n[c].shape===t){n.splice(c,1);break}}};var Ev=_(14371);class hp extends dp{constructor(t){super(),this.children=[],this.rect=t}inBounds(t){const n=this.rect,s=n.bottomRight(),c=t.bottomRight();return n.origin.x<=t.origin.x&&n.origin.y<=t.origin.y&&c.x<=s.x&&c.y<=s.y}pointShapes(t){const n=this.children,s=n.length,c=super.pointShapes(t);for(let p=0;p<s;p++)(0,Ev.Z)(c,n[p].pointShapes(t));return c}insert(t,n){const s=this.children;let c=!1;if(this.inBounds(n)){if(this.shapes.length<4)this._add(t,n);else{s.length||this._initChildren();for(let p=0;p<s.length;p++)if(s[p].insert(t,n)){c=!0;break}c||this._add(t,n)}c=!0}return c}_initChildren(){const{rect:t,children:n}=this,s=t.center(),c=t.width()/2,p=t.height()/2;n.push(new hp(new Hs.Z([t.origin.x,t.origin.y],[c,p])),new hp(new Hs.Z([s.x,t.origin.y],[c,p])),new hp(new Hs.Z([t.origin.x,s.y],[c,p])),new hp(new Hs.Z([s.x,s.y],[c,p])))}}const Iy=hp,Hd=3e3;function bc(g,t){return g._zIndex<t._zIndex?1:g._zIndex>t._zIndex?-1:0}const Ju=class Nf extends Xi.Z{constructor(){super(),this.initRoots()}initRoots(){this.rootMap={},this.root=new dp,this.rootElements=[]}clear(){const t=this.rootElements;for(let n=0;n<t.length;n++)this.remove(t[n]);this.initRoots()}pointShape(t){const n=(this.rootMap[Math.floor(t.x/Hd)]||{})[Math.floor(t.y/Hd)];let s=this.root.pointShapes(t);n&&(s=s.concat(n.pointShapes(t))),this.assignZindex(s),s.sort(bc);for(let c=0;c<s.length;c++)if(s[c].containsPoint(t))return s[c]}assignZindex(t){for(let n=0;n<t.length;n++){let s=t[n],c=0,p=Math.pow(1e4,75),S=[];for(;s;)S.push(s),s=s.parent;for(;S.length;)s=S.pop(),c+=((s.parent?s.parent.children:this.rootElements).indexOf(s)+1)*p,p/=1e4;t[n]._zIndex=c}}optionsChange(t){("transform"===t.field||"stroke.width"===t.field)&&this.bboxChange(t.element)}geometryChange(t){this.bboxChange(t.element)}bboxChange(t){if("Group"===t.nodeType)for(let n=0;n<t.children.length;n++)this.bboxChange(t.children[n]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)}add(t){const n=Array.isArray(t)?t.slice(0):[t];(0,Ev.Z)(this.rootElements,n),this._insert(n)}childrenChange(t){if("remove"===t.action)for(let n=0;n<t.items.length;n++)this.remove(t.items[n]);else this._insert(Array.prototype.slice.call(t.items,0))}_insert(t){let n;for(;t.length>0;)n=t.pop(),n.addObserver(this),"Group"===n.nodeType?(0,Ev.Z)(t,n.children):this._insertShape(n)}_insertShape(t){const n=t.bbox();if(n){const s=this.getSectors(n),c=s[0][0],p=s[1][0];if(this.inRoot(s))this.root.insert(t,n);else{const S=this.rootMap;S[c]||(S[c]={}),S[c][p]||(S[c][p]=new Iy(new Hs.Z([c*Hd,p*Hd],[Hd,Hd]))),S[c][p].insert(t,n)}}}remove(t){if(t.removeObserver(this),"Group"===t.nodeType){const n=t.children;for(let s=0;s<n.length;s++)this.remove(n[s])}else t._quadNode&&(t._quadNode.remove(t),delete t._quadNode)}inRoot(t){return t[0].length>1||t[1].length>1}getSectors(t){const n=t.bottomRight(),s=Math.floor(n.x/Hd),c=Math.floor(n.y/Hd),p=[[],[]];for(let S=Math.floor(t.origin.x/Hd);S<=s;S++)p[0].push(S);for(let S=Math.floor(t.origin.y/Hd);S<=c;S++)p[1].push(S);return p}};var fp=_(1174),Ty=_(46574);const Vd=class Mv extends Dm{renderTo(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()}setFill(t){const n=this.srcElement.options.fill;let s=!1;return n&&("Gradient"===n.nodeType?(this.setGradientFill(t,n),s=!0):(0,cp.Z)(n.color)||(t.fillStyle=n.color,t.save(),this.globalAlpha(t,n.opacity),t.fill(),t.restore(),s=!0)),s}setGradientFill(t,n){const s=this.srcElement.rawBBox();let c;if(n instanceof Ys.Z){let p=n.start(),S=n.end();c=t.createLinearGradient(p.x,p.y,S.x,S.y)}else if(n instanceof co.Z){let p=n.center();c=t.createRadialGradient(p.x,p.y,0,p.x,p.y,n.radius())}(function I2(g,t){for(let n=0;n<t.length;n++){let s=t[n],c=(0,fp.ZP)(s.color());c.a*=s.opacity(),g.addColorStop(s.offset(),c.toCssRgba())}})(c,n.stops),t.save(),n.userSpace()||t.transform(s.width(),0,0,s.height(),s.origin.x,s.origin.y),t.fillStyle=c,t.fill(),t.restore()}setStroke(t){const n=this.srcElement.options.stroke;if(n&&!(0,cp.Z)(n.color)&&n.width>0)return t.strokeStyle=n.color,t.lineWidth=(0,Ty.Z)(n.width,1),t.save(),this.globalAlpha(t,n.opacity),t.stroke(),t.restore(),!0}dashType(){const t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()}setLineDash(t){const n=this.dashType();if(n&&n!==Af){const s=mu[n];t.setLineDash?t.setLineDash(s):(t.mozDash=s,t.webkitLineDash=s)}}setLineCap(t){const n=this.dashType(),s=this.srcElement.options.stroke;n&&n!==Af?t.lineCap="butt":s&&s.lineCap&&(t.lineCap=s.lineCap)}setLineJoin(t){const n=this.srcElement.options.stroke;n&&n.lineJoin&&(t.lineJoin=n.lineJoin)}renderPoints(t,n){xm(t,n)}},Bh=class Kg extends Vd{renderPoints(t){xm(t,this.srcElement.toPath())}},Ov=class kv extends Vd{renderPoints(t){const{center:n,radius:s}=this.srcElement.geometry();t.arc(n.x,n.y,s,0,2*Math.PI)}},Lf=class T2 extends Vd{constructor(t,n){super(t),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=(0,$g.Z)();const s=this.img=new Image,c=t.src();n&&!/^data:/i.test(c)&&(s.crossOrigin=n),c&&(s.src=c),s.complete?this.onLoad():(s.onload=this.onLoad,s.onerror=this.onError)}renderTo(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())}optionsChange(t){"src"===t.field?(this.loading=(0,$g.Z)(),this.img.src=this.srcElement.src()):super.optionsChange(t)}onLoad(){this.loading.resolve(),this.invalidate()}onError(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}drawImage(t){const n=this.srcElement.rect(),s=n.topLeft();t.drawImage(this.img,s.x,s.y,n.width(),n.height())}},M2=class Jb extends Vd{renderPoints(t){const n=this.srcElement.paths;for(let s=0;s<n.length;s++)xm(t,n[s])}},k2=class Jg extends Vd{renderPoints(t){const n=this.srcElement.geometry(),[s,c]=n.cornerRadius;if(0===s&&0===c){const{origin:p,size:S}=n;t.rect(p.x,p.y,S.width,S.height)}else super.renderPoints(t,Ws.y.fromRect(n))}},Av=class My extends Vd{renderTo(t){const n=this.srcElement,s=n.position(),c=n.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=n.options.font,t.textAlign="left",this.setFill(t)&&t.fillText(n.content(),s.x,s.y+c.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(n.content(),s.x,s.y+c.baseline)),t.restore()}};ld.Arc=Bh,ld.Circle=Ov,ld.Group=Pf,ld.Image=Lf,ld.MultiPath=M2,ld.Path=Vd,ld.Rect=k2,ld.Text=Av;const Qg=class Hp extends Lh{get type(){return"canvas"}constructor(t,n){super(t,n),this.element.innerHTML=this._template(this);const s=this.element.firstElementChild;s.style.width="100%",s.style.height="100%";const c=(0,fu.Z)(t);s.width=c.width,s.height=c.height,this._rootElement=s,this._root=new up(s,c),this._mouseTrackHandler=this._trackMouse.bind(this),(0,hh.Z)(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}destroy(){super.destroy(),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),(0,ph.Z)(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}draw(t){super.draw(t),this._root.load([t],void 0,this.options.cors),this._searchTree&&this._searchTree.add([t])}clear(){super.clear(),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()}eventTarget(t){if(this._searchTree){const n=this._surfacePoint(t);return this._searchTree.pointShape(n)}}image(){const{_root:t,_rootElement:n}=this,s=[];t.traverse(S=>{S.loading&&s.push(S.loading)});const c=(0,$g.Z)(),p=()=>{t._invalidate({fixedScale:!0});try{const S=n.toDataURL();c.resolve(S)}catch(S){c.reject(S)}};return(0,Ey.Z)(s).then(p,p),c}suspendTracking(){super.suspendTracking(),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)}resumeTracking(){if(super.resumeTracking(),!this._searchTree){this._searchTree=new Ju;const t=this._root.childNodes,n=[];for(let s=0;s<t.length;s++)n.push(t[s].srcElement);this._searchTree.add(n)}}_resize(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()}_template(){return"<canvas></canvas>"}_enableTracking(){this._searchTree=new Ju,this._cursor=new class pp{constructor(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element}clear(){this._resetCursor()}destroy(){this._resetCursor(),delete this.element}_mouseenter(t){const n=this._shapeCursor(t);n?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(n)):this._resetCursor()}_mouseleave(){this._resetCursor()}_shapeCursor(t){let n=t.element;for(;n&&!(0,Fn.Z)(n.options.cursor);)n=n.parent;if(n)return n.options.cursor}_getCursor(){if(this.element)return this.element.style.cursor}_setCursor(t){this.element&&(this.element.style.cursor=t,this._current=t)}_resetCursor(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}(this),super._enableTracking()}_trackMouse(t){if(this._suspendedTracking)return;const n=this.eventTarget(t);if("click"!==t.type){const s=this._currentShape;s&&s!==n&&this.trigger("mouseleave",{element:s,originalEvent:t,type:"mouseleave"}),n&&s!==n&&this.trigger("mouseenter",{element:n,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:n,originalEvent:t,type:"mousemove"}),this._currentShape=n}else n&&this.trigger("click",{element:n,originalEvent:t,type:"click"})}};let Im,Rv;const Pv=()=>typeof document<"u";class Xg extends Xi.Z{static get support(){return Rv||(Rv={canvas:Pv()&&document.createElement("canvas").getContext,svg:Pv()&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}),Rv}static get current(){return Im||(Im=new Xg),Im}constructor(){super(),this._items=[{name:"svg",type:D2},{name:"canvas",type:Qg}]}create(t,n){const s=this._items;let c=s[0];if(n&&n.type){const p=n.type.toLowerCase();for(let S=0;S<s.length;S++)if(s[S].name===p){c=s[S];break}}if(c)return new c.type(t,n);us(`Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: ${navigator.userAgent}`)}}const Tm=Xg,Vp=class A2 extends Lh{static get support(){return Tm.support}static create(t,n){return Tm.current.create(t,n)}};function qg(){this._defaultPrevented=!0}const Nv=class R2 extends Xi.Z{constructor(){super(),this._points=[]}destroy(){this._points=[]}show(t,n){const s=[].concat(t);this.hide();for(let c=0;c<s.length;c++){const p=s[c];p&&p.toggleHighlight&&p.hasHighlight()&&(this.togglePointHighlight(p,!0,n),this._points.push(p))}}togglePointHighlight(t,n,s){const c=(t.options.highlight||{}).toggle;if(c){const p={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:qg,visual:t.highlightVisual(),show:n};c(p),p._defaultPrevented||t.toggleHighlight(n,s)}else t.toggleHighlight(n,s)}hide(){const t=this._points;for(;t.length;)this.togglePointHighlight(t.pop(),!1)}isHighlighted(t){const n=this._points;for(let s=0;s<n.length;s++)if(t===n[s])return!0;return!1}};function Mm(g,t){const n=(t||"").toLowerCase(),s=g.event;return"none"===n&&!(s.ctrlKey||s.shiftKey||s.altKey)||s[n+"Key"]}function Lv(g){const t={};for(let n=0;n<g.length;n++){const s=g[n];s.axis.options.name&&(t[s.axis.options.name]={min:s.range.min,max:s.range.max})}return t}class km extends Xi.Z{constructor(t,n){super(),this.plotArea=t,this.options=U({},this.options,n)}start(t){return this._active=Mm(t,this.options.key),this._active}move(t){if(this._active){const n=this.axisRanges=this._panAxes(t,Qt).concat(this._panAxes(t,yi));if(n.length)return this.axisRanges=n,Lv(n)}}end(){const t=this._active;return this._active=!1,t}pan(){const{plotArea:t,axisRanges:n}=this;if(n.length){for(let s=0;s<n.length;s++){const c=n[s];t.updateAxisOptions(c.axis,c.range)}t.redraw(t.panes)}}destroy(){delete this.plotArea}_panAxes(t,n){const s=this.plotArea,c=-t[n].delta,p=(this.options.lock||"").toLowerCase(),S=[];if(0!==c&&(p||"").toLowerCase()!==n){const k=s.axes;for(let $=0;$<k.length;$++){const me=k[$];if(n===Qt&&!me.options.vertical||n===yi&&me.options.vertical){const Ve=me.pan(c);Ve&&(Ve.limitRange=!0,S.push({axis:me,range:Ve}))}}}return S}}km.prototype.options={key:"none",lock:"none"};const Oy=km;class Mu extends Xi.Z{constructor(t,n){super(),this.chart=t,this.options=U({},this.options,n),this.createElement()}createElement(){const t=this._marquee=document.createElement("div");t.className="k-marquee";const n=document.createElement("div");n.className="k-marquee-color",t.appendChild(n)}removeElement(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)}setStyles(t){jn(this._marquee,t)}start(t){if(Mm(t,this.options.key)){const n=this.chart,s=n._eventCoordinates(t),c=this._zoomPane=n._plotArea.paneByPoint(s),p=c?c.chartsBox().clone():null;if(c&&p){const S=this._elementOffset();return p.translate(S.left,S.top),this._zoomPaneClipBox=p,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1}_elementOffset(){const t=this.chart.element,{paddingLeft:n,paddingTop:s}=jn(t,["paddingLeft","paddingTop"]),c=po(t);return{left:n+c.left,top:s+c.top}}move(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))}end(t){if(this._zoomPane){const s=this._elementOffset(),c=this._selectionPosition(t);return c.left-=s.left,c.top-=s.top,this._updateAxisRanges({x:c.left,y:c.top},{x:c.left+c.width,y:c.top+c.height}),this.removeElement(),delete this._zoomPane,Lv(this.axisRanges)}}zoom(){const t=this.axisRanges;if(t&&t.length){const n=this.chart._plotArea;for(let s=0;s<t.length;s++){const c=t[s];n.updateAxisOptions(c.axis,c.range)}n.redraw(n.panes)}}destroy(){this.removeElement(),delete this._marquee,delete this.chart}_updateAxisRanges(t,n){const s=(this.options.lock||"").toLowerCase(),c=[],p=this._zoomPane.axes;for(let S=0;S<p.length;S++){const k=p[S],$=k.options.vertical;if((s!==Qt||$)&&(s!==yi||!$)&&ei(k.axisIndex)){const me=k.pointsRange(t,n);me&&c.push({axis:k,range:me})}}this.axisRanges=c}_selectionPosition(t){const n=this._zoomPaneClipBox,s={x:t.x.startLocation,y:t.y.startLocation},{x:{location:c},y:{location:p}}=t,S=(this.options.lock||"").toLowerCase();let k=Math.min(s.x,c),$=Math.min(s.y,p),me=Math.abs(s.x-c),Ve=Math.abs(s.y-p);return S===Qt&&(k=n.x1,me=n.width()),S===yi&&($=n.y1,Ve=n.height()),c>n.x2&&(me=n.x2-s.x),c<n.x1&&(me=s.x-n.x1),p>n.y2&&(Ve=n.y2-s.y),p<n.y1&&(Ve=s.y-n.y1),{left:Math.max(k,n.x1),top:Math.max($,n.y1),width:me,height:Ve}}}Mu.prototype.options={key:"shift",lock:"none"};const Ff=Mu,jp=class Kc extends Xi.Z{constructor(t,n){super(),this.chart=t,this.options=U({rate:.3},this.options,n)}updateRanges(t,n){const s=(this.options.lock||"").toLowerCase(),c=[],p=this.chart._plotArea.axes;for(let S=0;S<p.length;S++){const k=p[S],$=k.options.vertical;if((s!==Qt||$)&&(s!==yi||!$)&&k.zoomRange){const me=Be(this.options.rate,.01,.9),Ve=k.zoomRange(-t*me,n);Ve&&c.push({axis:k,range:Ve})}}return this.axisRanges=c,Lv(c)}zoom(){const t=this.axisRanges,n=this.chart._plotArea;if(t&&t.length&&n.updateAxisOptions){for(let s=0;s<t.length;s++){const c=t[s];n.updateAxisOptions(c.axis,c.range)}n.redraw(n.panes)}}destroy(){delete this.chart}};var gp=_(57303);function gu(g,t,n){const s=n.transform()||(0,Ho.Z)(),c=s.matrix();c.e+=g.x-t.origin.x,c.f+=g.y-t.origin.y,s.matrix(c),n.transform(s)}function Uh(g,t,n,s,c){let p;return p="start"===n?t.origin[s]:"end"===n?t.origin[s]+t.size[c]-g:t.origin[s]+(t.size[c]-g)/2,p}function _p(g,t,n,s,c){let p;return p="start"===n?t.origin[s]+t.size[c]-g:"end"===n?t.origin[s]:t.origin[s]+(t.size[c]-g)/2,p}const Qu={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},zf=(g,t)=>{g.forEach(t)},Bf=(g,t)=>{for(let s=g.length-1;s>=0;s--)t(g[s],s)},Yp=class Uf extends vo.Z{constructor(t,n){super(Object.assign({},Qu,n)),this._rect=t,this._fieldMap={}}rect(t){return t?(this._rect=t,this):this._rect}_initMap(){const t=this.options,n=this._fieldMap;"horizontal"===t.orientation?(n.sizeField="width",n.groupsSizeField="height",n.groupAxis="x",n.groupsAxis="y"):(n.sizeField="height",n.groupsSizeField="width",n.groupAxis="y",n.groupsAxis="x"),t.reverse?(this.forEach=Bf,this.justifyAlign=_p):(this.forEach=zf,this.justifyAlign=Uh)}reflow(){if(!this._rect||0===this.children.length)return;this._initMap(),this.options.transform&&this.transform(null);const t=this.options,n=this._rect,{groups:s,groupsSize:c}=this._initGroups(),{sizeField:p,groupsSizeField:S,groupAxis:k,groupsAxis:$}=this._fieldMap,me=new js.Z,Ve=new js.Z,_t=new gp.Z;let Wn,si,Ri,Vt=Uh(c,n,t.alignContent,$,S);const ts=(Os,Zs)=>{const wr=si.elements[Zs];Ve[k]=Wn,Ve[$]=Uh(Os.size[S],Ri,t.alignItems,$,S),gu(Ve,Os,wr),Wn+=Os.size[p]+t.spacing};for(let Os=0;Os<s.length;Os++)si=s[Os],me[k]=Wn=this.justifyAlign(si.size,n,t.justifyContent,k,p),me[$]=Vt,_t[p]=si.size,_t[S]=si.lineSize,Ri=new Hs.Z(me,_t),this.forEach(si.bboxes,ts),Vt+=si.lineSize+t.lineSpacing;if(!t.wrap&&si.size>n.size[p]){const Os=n.size[p]/Ri.size[p],Zs=Ri.topLeft().scale(Os,Os),_a=Uh(Ri.size[S]*Os,n,t.alignContent,$,S),ka=(0,Ho.Z)();"x"===k?ka.translate(n.origin.x-Zs.x,_a-Zs.y):ka.translate(_a-Zs.x,n.origin.y-Zs.y),ka.scale(Os,Os),this.transform(ka)}}_initGroups(){const{options:t,children:n}=this,{lineSpacing:s,wrap:c,spacing:p}=t,S=this._fieldMap.sizeField;let k=this._newGroup();const $=[],me=function(){$.push(k),Ve+=k.lineSize+s};let Ve=-s;for(let _t=0;_t<n.length;_t++){let Vt=n[_t],Wn=n[_t].clippedBBox();Vt.visible()&&Wn&&(c&&k.size+Wn.size[S]+p>this._rect.size[S]?0===k.bboxes.length?(this._addToGroup(k,Wn,Vt),me(),k=this._newGroup()):(me(),k=this._newGroup(),this._addToGroup(k,Wn,Vt)):this._addToGroup(k,Wn,Vt))}return k.bboxes.length&&me(),{groups:$,groupsSize:Ve}}_addToGroup(t,n,s){t.size+=n.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(n.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(n),t.elements.push(s)}_newGroup(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}},Hf=class Gf extends mt{constructor(t,n){super(t),this.chartService=n}render(){const{children:t,options:n}=this,s=n.vertical;this.visual=new Yp(null,{spacing:s?0:n.spacing,lineSpacing:s?n.spacing:0,orientation:s?"vertical":"horizontal",reverse:n.rtl,alignItems:s?"start":"center"});for(let c=0;c<t.length;c++){let p=t[c];p.reflow(new vs),p.renderVisual()}}reflow(t){this.visual.rect(t.toRect()),this.visual.reflow();const n=this.visual.clippedBBox();this.box=n?$i(n):new vs}renderVisual(){this.addVisual()}createVisual(){}},Fv=class hc extends et{constructor(t){super(t),this.createContainer(),t.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}createContainer(){this.container=new bt({vertical:!1,wrap:!1,align:Oe,spacing:this.options.spacing}),this.append(this.container)}createMarker(){this.container.append(new Gi(this.markerOptions()))}markerOptions(){const t=this.options,n=t.markerColor;return U({},t.markers,{background:n,border:{color:n}})}createLabel(){const t=this.options,n=U({},t.labels);this.container.append(new Ns(t.text,n))}renderComplete(){super.renderComplete();const t=this.options.cursor||{},n=this._itemOverlay=Ws.y.fromRect(this.container.box.toRect(),{fill:{color:In,opacity:0},stroke:null,cursor:t.style||t});this.appendVisual(n)}click(t,n){const s=this.eventArgs(n);!t.trigger("legendItemClick",s)&&n&&"contextmenu"===n.type&&n.preventDefault()}over(t,n){const s=this.eventArgs(n);return t.trigger("legendItemHover",s)||t._legendItemHover(s.seriesIndex,s.pointIndex),!0}out(t,n){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(n))}eventArgs(t){const n=this.options;return{element:ai(t),text:n.text,series:n.series,seriesIndex:n.series.index,pointIndex:n.pointIndex}}renderVisual(){const t=this.options,n=t.visual;n?(this.visual=n({active:t.active,series:t.series,sender:this.getSender(),pointIndex:t.pointIndex,options:{markers:this.markerOptions(),labels:t.labels},createVisual:()=>{this.createVisual(),this.renderChildren(),this.renderComplete();const s=this.visual;return delete this.visual,s}}),this.addVisual()):super.renderVisual()}},zv="horizontal",Om="custom";class Uv extends mt{constructor(t,n={}){super(t),this.chartService=n,ui(this.options.position,[ot,Si,$e,sn,Om])||(this.options.position=Si),this.createContainers(),this.createLegendTitle(t.title),this.createItems()}createContainers(){const t=this.options,{position:n,align:s}=t;let c=n,p=Oe;n===Om?c=sn:ui(n,[ot,$e])?(c="start"===s?sn:"end"===s?Si:Oe,p=n):s&&("start"===s?p=ot:"end"===s&&(p=$e)),this.container=new et({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:p,align:c,zIndex:t.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new et({vAlign:p,align:c,zIndex:t.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}createItems(){const t=this.getService(),n=this.options,s=this.isVertical(),c=new Hf({vertical:s,spacing:n.spacing,rtl:t.rtl},t);let p=n.items;n.reverse&&(p=p.slice(0).reverse());const S=p.length;for(let k=0;k<S;k++)c.append(new Fv(U({},{markers:n.markers,labels:n.labels,rtl:t.rtl},n.item,p[k])));c.render(),this.itemsContainer.append(c)}isVertical(){const{orientation:t,position:n}=this.options;return n===Om&&t!==zv||(ei(t)?t!==zv:ui(n,[sn,Si]))}hasItems(){return this.container.children[0].children.length>0}reflow(t){const n=this.options,s=t.clone();this.hasItems()?(n.position===Om?(this.containerCustomReflow(s),this.box=s):this.containerReflow(s),this.hasTitle()&&this.title.reflow(new vs(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=s}containerReflow(t){const{options:n,container:s}=this,{position:c,width:p,height:S}=n,k=c===ot||c===$e?Qt:yi,$=this.isVertical(),me=t.clone();let Ve=t.clone();(c===sn||c===Si)&&(Ve.y1=me.y1=0),$&&S?(Ve.y2=Ve.y1+S,Ve.align(me,yi,s.options.vAlign)):!$&&p&&(Ve.x2=Ve.x1+p,Ve.align(me,Qt,s.options.align)),s.reflow(Ve),Ve=s.box;const _t=Ve.clone();(n.offsetX||n.offsetY)&&(Ve.translate(n.offsetX,n.offsetY),s.reflow(Ve)),_t[k+1]=t[k+1],_t[k+2]=t[k+2],this.box=_t}containerCustomReflow(t){const{options:n,container:s}=this,{offsetX:c,offsetY:p,width:S,height:k}=n,$=this.isVertical();let me=t.clone();$&&k?me.y2=me.y1+k:!$&&S&&(me.x2=me.x1+S),s.reflow(me),me=s.box,s.reflow(new vs(c,p,c+me.width(),p+me.height()))}renderVisual(){this.hasItems()&&super.renderVisual()}createLegendTitle(t){let n=U({},{color:Ze,position:ot,align:Oe},t),s=n.text;if(t&&!1!==t.visible){if(ei(n)&&n.visible){const c=pt(n);c?s=c({text:s}):n.format&&(s=this.chartService.format.auto(n.format,s))}this.title=new Ns(s,n),this.createTitleLayout(),this.appendTitleLayoutContent()}}createTitleLayout(){this.layout=new bt({vertical:!0,wrap:!1}),this.container.append(this.layout)}hasTitle(){return Boolean(this.options.title&&!1!==this.options.title.visible)}appendTitleLayoutContent(){this.options.title.position===$e?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}ni(Uv,{position:Si,items:[],offsetX:0,offsetY:0,margin:St(5),padding:St(5),border:{color:Ze,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:sn,vAlign:Oe}});const P2=Uv;class e_ extends Xi.Z{constructor(){super(),this._registry=[]}register(t,n){this._registry.push({type:t,seriesTypes:n})}create(t,n,s){const c=this._registry;let S,p=c[0];for(let k=0;k<c.length;k++){const $=c[k];S=Ga(t,$.seriesTypes);const me=Ga(t,Xe);if(S.length-me.length>0){p=$;break}}return new p.type(S,n,s)}}e_.current=new e_;const cd=e_;function fh(g){const t=document.createElement("div");return g&&(t.className=g),t}function vp(g){let t=g;for(;t&&!ri(t,"k-handle");)t=t.parentNode;return t}class Wp extends Xi.Z{constructor(t,n,s,c){super();const p=t.element;this.options=U({},this.options,s),this.chart=t,this.observer=c,this.chartElement=p,this.categoryAxis=n,this._dateAxis=this.categoryAxis instanceof Aa,this.initOptions(),this.visible=this.options.visible&&p.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}onPane(t){return this.categoryAxis.pane===t}createElements(){const t=this.options,n=this.wrapper=fh("k-selector k-pointer-events-none");jn(n,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});const s=this.selection=fh("k-selection k-pointer-events-none");this.leftMask=fh("k-mask k-pointer-events-none"),this.rightMask=fh("k-mask k-pointer-events-none"),n.appendChild(this.leftMask),n.appendChild(this.rightMask),n.appendChild(s);const c=this.body=fh("k-selection-bg k-pointer-events-none");s.appendChild(c);const p=this.leftHandle=fh("k-handle k-left-handle k-pointer-events-auto"),S=this.rightHandle=fh("k-handle k-right-handle k-pointer-events-auto");p.appendChild(fh()),S.appendChild(fh()),s.appendChild(p),s.appendChild(S),this.chartElement.appendChild(n);const k=jn(s,["borderLeftWidth","borderRightWidth","height"]),$=jn(p,"height").height,me=jn(S,"height").height;t.selection={border:{left:k.borderLeftWidth,right:k.borderRightWidth}},jn(p,{top:(k.height-$)/2}),jn(S,{top:(k.height-me)/2}),n.style.cssText=n.style.cssText}bindEvents(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),_s(this.chartElement,{[nd]:this._mousewheelHandler})),this._domEvents=Tl.create(this.chartElement,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}initOptions(){const{options:t,categoryAxis:n}=this,s=n.pane.chartsBox(),c=this.chart.chartService.intl;this._dateAxis&&U(t,{min:Sr(c,t.min),max:Sr(c,t.max),from:Sr(c,t.from),to:Sr(c,t.to)});const{paddingLeft:p,paddingTop:S}=jn(this.chartElement,["paddingLeft","paddingTop"]);this.options=U({},{width:s.width(),height:s.height()+.1,padding:{left:p,top:S},offset:{left:s.x1+p,top:s.y1+S},from:t.min,to:t.max},t)}destroy(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Qe(this.chartElement,{[nd]:this._mousewheelHandler}),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}_rangeEventArgs(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}}_pointInPane(t,n){const s=this.categoryAxis.pane.box,c=this.chart._toModelCoordinates(t,n);return s.containsPoint(c)}_start(t){const n=this.options,s=ai(t);if(this._state||!s)return;const c=un(t);if(!this._pointInPane(c.x,c.y))return;const S=vp(s),k=this.body.getBoundingClientRect(),$=!S&&c.x>=k.x&&c.x<=k.x+k.width&&c.y>=k.y&&c.y<=k.y+k.height;this.chart._unsetActivePoint(),this._state={moveTarget:S,startLocation:t.x?t.x.location:0,inBody:$,range:{from:this._index(n.from),to:this._index(n.to)}};const me=this._rangeEventArgs({from:this._index(n.from),to:this._index(n.to)});this.trigger(Na,me)&&(this._state=null)}_press(t){let n;n=this._state?this._state.moveTarget:vp(ai(t)),n&&Ht(n,"k-handle-active")}_move(t){if(!this._state)return;const{_state:n,options:s,categoryAxis:c}=this,{range:p,moveTarget:S}=n,k=c.options.reverse,$=this._index(s.from),me=this._index(s.to),Ve=this._index(s.min),_t=this._index(s.max),Vt=n.startLocation-t.x.location,Wn_from=p.from,Wn_to=p.to,si=p.to-p.from,Ri=jn(this.wrapper,"width").width/(c.categoriesCount()-1),ts=Math.round(Vt/Ri)*(k?-1:1);if(!S&&!n.inBody)return;const Os=S&&ri(S,"k-left-handle"),Zs=S&&ri(S,"k-right-handle");n.inBody?(p.from=Math.min(Math.max(Ve,$-ts),_t-si),p.to=Math.min(p.from+si,_t)):Os&&!k||Zs&&k?(p.from=Math.min(Math.max(Ve,$-ts),_t-1),p.to=Math.max(p.from+1,p.to)):(Os&&k||Zs&&!k)&&(p.to=Math.min(Math.max(Ve+1,me-ts),_t),p.from=Math.min(p.to-1,p.from)),(p.from!==Wn_from||p.to!==Wn_to)&&(this.move(p.from,p.to),this.trigger(tc,this._rangeEventArgs(p)))}_end(){if(this._state){const t=this._state.moveTarget;t&&Sn(t,"k-handle-active");const n=this._state.range;this.set(n.from,n.to),this.trigger(rl,this._rangeEventArgs(n)),delete this._state}}_tap(t){const{options:n,categoryAxis:s}=this,c=this.chart._eventCoordinates(t),p=s.pointCategoryIndex(new Qs(c.x,s.box.y1)),S=this._index(n.from),k=this._index(n.to),$=this._index(n.min),me=this._index(n.max),Ve=k-S,Vt={},Wn=3===t.event.which;let si=Math.round(S+Ve/2-p);this._state||Wn||(this.chart._unsetActivePoint(),s.options.justified||si--,Vt.from=Math.min(Math.max($,S-si),me-Ve),Vt.to=Math.min(Vt.from+Ve,me),this._start(t),this._state&&(this._state.range=Vt,this.trigger(tc,this._rangeEventArgs(Vt)),this._end()))}_mousewheel(t){let n=as(t);if(this._start(t),this._state){const s=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(n)>1&&(n*=3),this.options.mousewheel.reverse&&(n*=-1),this.expand(n)&&this.trigger(tc,{axis:this.categoryAxis.options,delta:n,originalEvent:t,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._end()},150)}}_gesturestart(t){const n=this.options,s=t.touches[0];if(!this._pointInPane(s.pageX,s.pageY))return;this._state={range:{from:this._index(n.from),to:this._index(n.to)}};const p=this._rangeEventArgs(this._state.range);this.trigger(Na,p)?this._state=null:t.preventDefault()}_gestureend(){this._state&&(this.trigger(rl,this._rangeEventArgs(this._state.range)),delete this._state)}_gesturechange(t){if(!this._state)return;const{chart:n,_state:s,options:c,categoryAxis:p}=this,S=s.range,k=n._toModelCoordinates(t.touches[0].x.location).x,$=n._toModelCoordinates(t.touches[1].x.location).x,me=Math.min(k,$),Ve=Math.max(k,$);t.preventDefault(),S.from=p.pointCategoryIndex(new Qs(me))||c.min,S.to=p.pointCategoryIndex(new Qs(Ve))||c.max,this.move(S.from,S.to),this.trigger(tc,this._rangeEventArgs(S))}_index(t){let n=t;return t instanceof Date&&(n=this.categoryAxis.categoryIndex(t)),n}_value(t){let n=t;return this._dateAxis&&(n=this.categoryAxis.categoryAt(t),n>this.options.max&&(n=this.options.max)),n}_slot(t){const n=this.categoryAxis,s=this._index(t);return n.getSlot(s,s,!0)}move(t,n){const s=this.options,c=this.categoryAxis.options.reverse,{offset:p,padding:S,selection:{border:k}}=s,me=c?t:n,Ve="x"+(c?2:1);let _t=this._slot(c?n:t);const Vt=Ke(_t[Ve]-p.left+S.left);jn(this.leftMask,{width:Vt}),jn(this.selection,{left:Vt}),_t=this._slot(me);const Wn=Ke(s.width-(_t[Ve]-p.left+S.left));jn(this.rightMask,{width:Wn});let si=s.width-Wn;si!==s.width&&(si+=k.right),jn(this.rightMask,{left:si}),jn(this.selection,{width:Math.max(s.width-(Vt+Wn)-k.right,0)})}set(t,n){const s=this.options,c=this._index(s.min),p=this._index(s.max),S=Be(this._index(t),c,p),k=Be(this._index(n),S+1,p);s.visible&&this.move(S,k),s.from=this._value(S),s.to=this._value(k)}expand(t){const n=this.options,s=this._index(n.min),c=this._index(n.max),p=n.mousewheel.zoom,S=this._index(n.from),k=this._index(n.to);let $={from:S,to:k};const me=U({},$);if(this._state&&($=this._state.range),p!==Si&&($.from=Be(Be(S-t,0,k-1),s,c)),p!==sn&&($.to=Be(Be(k+t,$.from+1,c),s,c)),$.from!==me.from||$.to!==me.to)return this.set($.from,$.to),!0}zoom(t,n){const s=this.options,c=this._index(s.min),p=this._index(s.max),S=this._index(s.from),k=this._index(s.to);let $={from:S,to:k};const me=U({},$),{reverse:Ve}=this.categoryAxis.options,_t=Qt+(Ve?"2":"1"),Vt=this.categoryAxis.lineBox(),Wn=Math.abs(Vt[_t]-n[Qt]),si=Vt.width(),Ri=Ke(Wn/si,2),ts=Ke(Ri*t),Os=Ke((1-Ri)*t);if(this._state&&($=this._state.range),$.from=Be(Be(S-ts,0,k-1),c,p),$.to=Be(Be(k+Os,$.from+1,p),c,p),$.from!==me.from||$.to!==me.to)return this.set($.from,$.to),!0}trigger(t,n){return(this.observer||this.chart).trigger(t,n)}}ni(Wp,{visible:!0,mousewheel:{zoom:"both"},min:Ln,max:_n});const Am=Wp,Pm=class Rm extends uc{show(t){if(!t||!t.tooltipAnchor||this._current&&this._current===t)return;const n=U({},this.options,t.options.tooltip),s=t.tooltipAnchor();s?(this._current=t,super.show({point:t,anchor:s},n,t)):this.hide()}hide(){delete this._current,super.hide()}};class n_ extends uc{constructor(t,n){super(t.chartService,n),this.plotArea=t,this.formatService=t.chartService.format}showAt(t,n){const s=Gn(t,function(c){const p=c.series.tooltip;return!(p&&!1===p.visible)});if(s.length>0){const c=s[0],p=this.plotArea.categoryAxis.getSlot(c.categoryIx),S=n?this._slotAnchor(n,p):this._defaultAnchor(c,p);this.show({anchor:S,shared:!0,points:t,category:c.category,categoryText:this.formatService.auto(this.options.categoryFormat,c.category),series:this.plotArea.series},this.options)}}_slotAnchor(t,n){return this.plotArea.categoryAxis.options.vertical||(t.x=n.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}}_defaultAnchor(t,n){const s=t.owner.pane.chartsBox(),c=this.plotArea.categoryAxis.options.vertical,p=s.center(),S=n.center();let $;return $=c?new Qs(p.x,S.y):new Qs(S.x,p.y),{point:$,align:{horizontal:"center",vertical:"center"}}}}ni(n_,{categoryFormat:"{0:d}"});const $p=n_;class Zp extends lo{setup(){const{element:t,options:n}=this;if(t.bbox()){this.origin=n.origin;const c=n.vertical?yi:Qt,p=this.fromScale=new js.Z(1,1);p[c]=Lu,t.transform(Ho.Z().scale(p.x,p.y))}else this.abort()}step(t){const n=Di(this.fromScale.x,1,t),s=Di(this.fromScale.y,1,t);this.element.transform(Ho.Z().scale(n,s,this.origin))}abort(){super.abort(),this.element.transform(null)}}ni(Zp,{duration:Kl}),or.current.register(Fe,Zp);class s_ extends lo{setup(){const t=this.center=this.element.bbox().center();this.element.transform(Ho.Z().scale(Lu,Lu,t))}step(t){this.element.transform(Ho.Z().scale(t,t,this.center))}}ni(s_,{easing:"easeOutElastic"}),or.current.register(nn,s_);class Gh extends lo{setup(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}step(t){this.element.opacity(t*this.fadeTo)}}ni(Gh,{duration:200,easing:"linear"}),or.current.register(cl,Gh);class Hh extends lo{setup(){this.element.transform(Ho.Z().scale(Lu,Lu,this.options.center))}step(t){this.element.transform(Ho.Z().scale(t,t,this.options.center))}}ni(Hh,{easing:"easeOutElastic",duration:Kl}),or.current.register(eu,Hh);class Gv extends Rs{render(){super.render(),this.renderSegments()}createSegment(t,n,s){let p;return p=n.style===Qo?xh:Md,new p(t,n,s)}animationPoints(){return super.animationPoints().concat(this._segments)}createMissingValue(t,n){if(n===En){const s={x:t.x,y:t.y};return ac(s.x)||(s.x=0),ac(s.y)||(s.y=0),s}}}U(Gv.prototype,ju);const Hv=Gv,jv=g=>({valueFields:t})=>({xValue:t.x,yValue:t[g]}),o_={};o_[rc]=function Yv(g){const{options:t,seriesValues:n}=g,s=function F2({seriesValues:g,options:t}){let{slope:n,intercept:s,count:c,xMin:p,xMax:S}=a2(g(),jv(t.field));if(c>0){const k=[],$=(t.trendline||{}).forecast;$&&($.before>0&&(p-=$.before),$.after>0&&(S+=$.after));const me=(t.trendline||{}).samplingInterval;let Ve=Et(me,jr(p,S)/10);me<=0&&(Ve=S-p);for(let _t=p;_t<=S;_t+=Ve)k.push([_t,n*_t+s]);return k}return null}({seriesValues:n,options:t});return s?Object.assign({},t,{type:"scatterLine",data:s}):null},o_[ye]=function B2(g){const{options:t}=g,n=function U2({options:g,seriesValues:t}){const n=(g.trendline||{}).period||2,c=Fg(t({before:n,after:n}),jv(g.field),n);return c.length>0?c:null}(g);return n?Object.assign({},t,{type:"scatterLine",data:n}):null};const G2=o_;class Lm extends Za{initFields(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new xu,this.yAxisRangeTracker=new xu}render(t=this.panes){this.series=[...this.originalSeries],this.createTrendlineSeries();const n=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const c=t[s],p=n[c.options.name||"default"]||[];this.addToLegend(p);const S=this.filterVisibleSeries(p);S&&(this.createScatterChart(Ga(S,ed),c),this.createScatterLineChart(Ga(S,yu),c),this.createBubbleChart(Ga(S,nn),c))}this.createAxes(t)}appendChart(t,n){this.xAxisRangeTracker.update(t.xAxisRanges),this.yAxisRangeTracker.update(t.yAxisRanges),super.appendChart(t,n)}removeAxis(t){const n=t.options.name;super.removeAxis(t),t.options.vertical?(this.yAxisRangeTracker.reset(n),delete this.namedYAxes[n]):(this.xAxisRangeTracker.reset(n),delete this.namedXAxes[n]),t===this.axisX&&delete this.axisX,t===this.axisY&&delete this.axisY}seriesPaneName(t){const n=this.options,s=t.xAxis,p=Gn([].concat(n.xAxis),function(Vt){return Vt.name===s})[0],S=t.yAxis,$=Gn([].concat(n.yAxis),function(Vt){return Vt.name===S})[0];return(p||{}).pane||($||{}).pane||(n.panes||[{}])[0].name||"default"}createScatterChart(t,n){t.length>0&&this.appendChart(new Rs(this,{series:t,clip:n.options.clip}),n)}createScatterLineChart(t,n){t.length>0&&this.appendChart(new Hv(this,{series:t,clip:n.options.clip}),n)}createBubbleChart(t,n){t.length>0&&this.appendChart(new vr(this,{series:t,clip:n.options.clip}),n)}createXYAxis(t,n,s){const c=t.name,p=n?this.namedYAxes:this.namedXAxes,S=n?this.yAxisRangeTracker:this.xAxisRangeTracker,k=U({reverse:!n&&this.chartService.rtl},t,{vertical:n}),$=Pl(k.type,Ea),me=S.query(),Ve=$?{min:.1,max:1}:{min:0,max:1},_t=S.query(c)||me||Ve,Vt=[k.min,k.max],Wn=this.series;for(let Os=0;Os<Wn.length;Os++){const Zs=Wn[Os],wr=Zs[n?"yAxis":"xAxis"];if(wr===k.name||0===s&&!wr){const _a=Mr.current.bindPoint(Zs,0).valueFields;Vt.push(_a[n?"y":"x"]);break}}let si,Ri;0===s&&me&&(_t.min=Math.min(_t.min,me.min),_t.max=Math.max(_t.max,me.max));for(let Os=0;Os<Vt.length;Os++)if(Vt[Os]instanceof Date){si=!0;break}Ri=Pl(k.type,Kt)||!k.type&&si?He:$?Ne:Ya;const ts=new Ri(_t.min,_t.max,k,this.chartService);if(ts.axisIndex=s,c){if(p[c])throw new Error(`${n?"Y":"X"} axis with name ${c} is already defined`);p[c]=ts}return this.appendAxis(ts),ts}createAxes(t){const n=this.options,s=[].concat(n.xAxis),c=[],p=[].concat(n.yAxis),S=[];for(let k=0;k<s.length;k++)ui(this.findPane(s[k].pane),t)&&c.push(this.createXYAxis(s[k],!1,k));for(let k=0;k<p.length;k++)ui(this.findPane(p[k].pane),t)&&S.push(this.createXYAxis(p[k],!0,k));this.axisX=this.axisX||c[0],this.axisY=this.axisY||S[0]}_dispatchEvent(t,n,s){const c=t._eventCoordinates(n),p=new Qs(c.x,c.y),S=this.axes,k=S.length,$=[],me=[];for(let Ve=0;Ve<k;Ve++){const _t=S[Ve],Vt=_t.options.vertical?me:$,Wn=_t.getValue(p);null!==Wn&&Vt.push(Wn)}$.length>0&&me.length>0&&t.trigger(s,{element:ai(n),originalEvent:n,x:Oc($),y:Oc(me)})}updateAxisOptions(t,n){const s=t.options.vertical,c=this.groupAxes(this.panes),p=(s?c.y:c.x).indexOf(t);Vf(this.options,p,s,n),Vf(this.originalOptions,p,s,n)}trendlineFactory(t,n){const s=this.seriesValues.bind(this,n.index),c=$u(G2,t.type,{options:t,seriesValues:s});return c&&(c.xAxis=n.xAxis,c.yAxis=n.yAxis),c}seriesValues(t){const n=[],s=this.series[t];for(let c=0;c<s.data.length;c++){const p=this.bindPoint(s,c);n.push({pointIx:c,valueFields:p.valueFields})}return n}}function Vf(g,t,n,s){U([].concat(n?g.yAxis:g.xAxis)[t],s)}ni(Lm,{xAxis:{},yAxis:{}}),U(Lm.prototype,Nd);const jf=Lm;class r_ extends mt{constructor(t,n,s){super(s),this.value=t,this.sector=n}render(){const t=this.options.labels,n=this.owner.chartService;let s=this.value;if(this._rendered||!1===this.visible)return;this._rendered=!0;const c=pt(t),p=this.pointData();if(c?s=c(p):t.format&&(s=n.format.auto(t.format,s)),t.visible&&(s||0===s)){if(t.position===Oe||t.position===nc)t.color||(t.color=wi(this.options.color)),t.background||(t.background=this.options.color);else{const S=n.theme.seriesDefaults.labels;t.color=t.color||S.color,t.background=t.background||S.background}this.label=new Ns(s,U({},t,{align:Oe,vAlign:"",animation:{type:cl,delay:this.animationDelay}}),p),this.append(this.label)}}reflow(t){this.render(),this.box=t,this.reflowLabel()}reflowLabel(){const{options:{labels:t},label:n}=this,s=this.sector.clone(),c=t.distance,p=s.middle();if(n){const S=n.box.height(),k=n.box.width();let $;if(t.position===Oe)s.radius=Math.abs((s.radius-S)/2)+S,$=s.point(p),n.reflow(new vs($.x,$.y-S/2,$.x,$.y));else if(t.position===nc)s.radius=s.radius-S/2,$=s.point(p),n.reflow(new vs($.x,$.y-S/2,$.x,$.y));else{let me;$=s.clone().expand(c).point(p),$.x>=s.center.x?(me=$.x+k,n.orientation=Si):(me=$.x-k,n.orientation=sn),n.reflow(new vs(me,$.y-S,$.x,$.y))}}}createVisual(){const{sector:t,options:n}=this;if(super.createVisual(),this.value)if(n.visual){const s=(t.startAngle+180)%360,c=n.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new js.Z(t.center.x,t.center.y),radius:t.radius,innerRadius:t.innerRadius,startAngle:s,endAngle:s+t.angle,options:n,sender:this.getSender(),createVisual:()=>{const p=new vo.Z;return this.createSegmentVisual(p),p}});c&&this.visual.append(c)}else this.createSegmentVisual(this.visual)}createSegmentVisual(t){const{sector:n,options:s}=this,c=s.border||{},S=s.color,k={color:S,opacity:s.opacity},$=this.createSegment(n,U({fill:k,stroke:{opacity:s.opacity},zIndex:s.zIndex},c.width>0?{stroke:{color:c.color,width:c.width,opacity:c.opacity,dashType:c.dashType}}:{}));t.append($),Jd(s)&&t.append(this.createGradientOverlay($,{baseColor:S,fallbackFill:k},U({center:[n.center.x,n.center.y],innerRadius:n.innerRadius,radius:n.radius,userSpace:!0},s.overlay)))}createSegment(t,n){return n.singleSegment?new Ko.Z(new ms.Z(new js.Z(t.center.x,t.center.y),t.radius),n):Fr.current.createRing(t,n)}createAnimation(){const{options:t,sector:{center:n}}=this;U(t,{animation:{center:[n.x,n.y],delay:this.animationDelay}}),super.createAnimation()}createHighlight(t){const n=this.options.highlight||{},s=n.border||{};return this.createSegment(this.sector,U({},t,{fill:{color:n.color,opacity:n.opacity},stroke:{opacity:s.opacity,width:s.width,color:s.color}}))}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new js.Z(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}}tooltipAnchor(){const t=this.sector.clone().expand(5),n=t.middle();return{point:t.point(n),align:$v(n+180)}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}const Fm=Ke(xe(30),We),Wv=Ke(xe(60),We);function $v(g){const t=xe(g),n=Ke(Math.sin(t),We),s=Ke(Math.cos(t),We);let c,p;return c=Math.abs(n)>Wv?Oe:s<0?Si:sn,p=Math.abs(n)<Fm?Oe:n<0?$e:ot,{horizontal:c,vertical:p}}ni(r_,{color:In,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:$t,margin:St(.5),align:Nt,zIndex:1,position:Dc},animation:{type:eu},highlight:{visible:!0,border:{width:1}},visible:!0}),U(r_.prototype,vc);const a_=r_,Zv={createLegendItem:function(g,t,n){const s=this.options.legend||{},c=s.labels||{},p=s.inactiveItems||{},S=p.labels||{};if(n&&!1!==n.visibleInLegend){const k=!1!==n.visible,$=k?pt(c):pt(S)||pt(c);let Ve,_t,me=n.category;$&&(me=$({text:me,series:n.series,dataItem:n.dataItem,percentage:n.percentage,value:g})),k?(Ve={},_t=t.color):(Ve={color:S.color,font:S.font},_t=(p.markers||{}).color),ac(me)&&""!==me&&this.legendItems.push({active:k,pointIndex:n.index,text:me,series:n.series,markerColor:_t,labels:Ve})}}};class ud extends mt{constructor(t,n){super(n),this.plotArea=t,this.chartService=t.chartService,this.points=[],this.legendItems=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}traverseDataPoints(t){const{options:n,plotArea:{options:{seriesColors:s=[]}}}=this,c=s.length,p=n.series,S=p.length;for(let k=0;k<S;k++){const $=p[k],me=$.data,{total:Ve,points:_t,count:Vt}=Gu($),Wn=360/Ve;let si,Ri;isFinite(Wn)||(si=360/Vt),Ri=ei($.startAngle)?$.startAngle:n.startAngle,k!==S-1&&$.labels.position===Dc&&($.labels.position=Oe);for(let ts=0;ts<_t.length;ts++){const Os=_t[ts];if(!Os)continue;const{fields:Zs,value:wr,visible:_a}=Os,ka=0!==wr?si||wr*Wn:0,Ql=1!==me.length&&Boolean(Zs.explode);mn($.color)||($.color=Zs.color||s[ts%c]),t(wr,new so(null,0,0,Ri,ka),{owner:this,category:ei(Zs.category)?Zs.category:"",index:ts,series:$,seriesIx:k,dataItem:me[ts],percentage:0!==Ve?wr/Ve:0,explode:Ql,visibleInLegend:Zs.visibleInLegend,visible:_a,zIndex:S-k,animationDelay:this.animationDelay(ts,k,S)}),!1!==_a&&(Ri+=ka)}}}evalSegmentOptions(t,n,s){const c=s.series;iu(t,{value:n,series:c,dataItem:s.dataItem,category:s.category,percentage:s.percentage},{defaults:c._defaults,excluded:["data","content","template","visual","toggle"]})}addValue(t,n,s){const c=U({},s.series,{index:s.index});if(this.evalSegmentOptions(c,t,s),this.createLegendItem(t,c,s),!1===s.visible)return;const p=new a_(t,n,c);Object.assign(p,s),this.append(p),this.points.push(p)}reflow(t){const{options:n,points:s,seriesConfigs:c=[]}=this,p=s.length,S=t.clone(),$=Math.min(S.width(),S.height()),me=$/2,Ve=$-.85*$,_t=new vs(S.x1,S.y1,S.x1+$,S.y1+$),Vt=_t.center(),Wn=S.center(),si=n.series.length,Ri=[],ts=[];let Os=Et(n.padding,Ve);this.targetBox=t,Os=Os>me-5?me-5:Os,_t.translate(Wn.x-Vt.x,Wn.y-Vt.y);const Zs=me-Os,wr=new Qs(Zs+_t.x1+Os,Zs+_t.y1+Os);for(let _a=0;_a<p;_a++){const ka=s[_a],Ql=ka.sector,wc=ka.seriesIx;if(Ql.radius=Zs,Ql.center=wr,c.length){const Pg=c[wc];Ql.innerRadius=Pg.innerRadius,Ql.radius=Pg.radius}wc===si-1&&ka.explode&&(Ql.center=Ql.clone().setRadius(.15*Ql.radius).point(Ql.middle())),ka.reflow(_t);const Bc=ka.label;Bc&&Bc.options.position===Dc&&wc===si-1&&(Bc.orientation===Si?ts.push(Bc):Ri.push(Bc))}Ri.length>0&&(Ri.sort(this.labelComparator(!0)),this.leftLabelsReflow(Ri)),ts.length>0&&(ts.sort(this.labelComparator(!1)),this.rightLabelsReflow(ts)),this.box=_t}leftLabelsReflow(t){const n=this.distanceBetweenLabels(t);this.distributeLabels(n,t)}rightLabelsReflow(t){const n=this.distanceBetweenLabels(t);this.distributeLabels(n,t)}distanceBetweenLabels(t){const n=Pt(this.points),s=n.sector,c=t.length-1,p=s.radius+n.options.labels.distance,S=[];let k=t[0].box,$=Ke(k.y1-(s.center.y-p-k.height()-k.height()/2));S.push($);for(let me=0;me<c;me++)k=t[me].box,$=Ke(t[me+1].box.y1-k.y2),S.push($);return $=Ke(s.center.y+p-t[c].box.y2-t[c].box.height()/2),S.push($),S}distributeLabels(t,n){const s=t.length;let c,p,S;for(let k=0;k<s;k++)for(S=-t[k],c=p=k;S>0&&(c>=0||p<s);)S=this._takeDistance(t,k,--c,S),S=this._takeDistance(t,k,++p,S);this.reflowLabels(t,n)}_takeDistance(t,n,s,c){let p=c;if(t[s]>0){const S=Math.min(t[s],p);p-=S,t[s]-=S,t[n]+=S}return p}reflowLabels(t,n){const s=Pt(this.points),c=s.sector,p=s.options.labels,S=n.length,k=p.distance;let me,$=c.center.y-(c.radius+k)-n[0].box.height();t[0]+=2;for(let Ve=0;Ve<S;Ve++){const _t=n[Ve],Vt=_t.box;$+=t[Ve],me=this.hAlignLabel(Vt.x2,c.clone().expand(k),$,$+Vt.height(),_t.orientation===Si),_t.orientation===Si?(p.align!==Nt&&(me=c.radius+c.center.x+k),_t.reflow(new vs(me+Vt.width(),$,me,$))):(p.align!==Nt&&(me=c.center.x-c.radius-k),_t.reflow(new vs(me-Vt.width(),$,me,$))),$+=Vt.height()}}createVisual(){const{options:{connectors:t},points:n}=this,s=n.length;super.createVisual(),this._connectorLines=[];for(let p=0;p<s;p++){const S=n[p],{sector:k,label:$}=S,me=k.middle();if($){const _t=new Ws.y({stroke:{color:(S.options.connectors||{}).color||t.color,width:t.width},animation:{type:cl,delay:S.animationDelay}});if($.options.position===Dc){const Vt=$.box,Wn=k.center;let ts,Os,Zs,si=k.point(me),Ri=new Qs(Vt.x1,Vt.center().y);si=k.clone().expand(t.padding).point(me),_t.moveTo(si.x,si.y),$.orientation===Si?(Os=new Qs(Vt.x1-t.padding,Vt.center().y),Zs=Kv(Wn,si,Ri,Os),Ri=new Qs(Os.x-4,Os.y),Zs=Zs||Ri,Zs.x=Math.min(Zs.x,Ri.x),this.pointInCircle(Zs,k.center,k.radius+4)||Zs.x<k.center.x?(ts=k.center.x+k.radius+4,_t.lineTo(S.options.labels.align!==cs?ts<Ri.x?ts:si.x+8:ts,si.y),_t.lineTo(Ri.x,Os.y)):(Zs.y=Os.y,_t.lineTo(Zs.x,Zs.y))):(Os=new Qs(Vt.x2+t.padding,Vt.center().y),Zs=Kv(Wn,si,Ri,Os),Ri=new Qs(Os.x+4,Os.y),Zs=Zs||Ri,Zs.x=Math.max(Zs.x,Ri.x),this.pointInCircle(Zs,k.center,k.radius+4)||Zs.x>k.center.x?(ts=k.center.x-k.radius-4,_t.lineTo(S.options.labels.align!==cs?ts>Ri.x?ts:si.x-8:ts,si.y),_t.lineTo(Ri.x,Os.y)):(Zs.y=Os.y,_t.lineTo(Zs.x,Zs.y))),_t.lineTo(Os.x,Os.y),this._connectorLines.push(_t),this.visual.append(_t)}}}}renderVisual(){if(super.renderVisual(),gn(this.options.series,t=>t.autoFit)){const t=this.targetBox,n=this.box.center(),s=this.visual.bbox();if(!s)return;const c=s.bottomRight(),p=Math.min((n.y-t.y1)/(n.y-s.origin.y),(t.y2-n.y)/(c.y-n.y),(n.x-t.x1)/(n.x-s.origin.x),(t.x2-n.x)/(c.x-n.x));p<1&&this.visual.transform(Ho.Z().scale(p,p,[n.x,n.y]))}}labelComparator(t){const n=t?-1:1;return function(s,c){return((s.parent.sector.middle()+270)%360-(c.parent.sector.middle()+270)%360)*n}}hAlignLabel(t,n,s,c,p){const{radius:S,center:{x:k,y:$}}=n,me=Math.min(Math.abs($-s),Math.abs($-c));return me>S?t:k+Math.sqrt(S*S-me*me)*(p?1:-1)}pointInCircle(t,n,s){return Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)<Math.pow(s,2)}formatPointValue(t,n){return this.chartService.format.auto(n,t.value)}animationDelay(t){return 70*t}stackRoot(){return this}}function Kv(g,t,n,s){const p=(s.y-n.y)*(t.x-g.x)-(s.x-n.x)*(t.y-g.y);let S;if(0!==p){const k=((s.x-n.x)*(g.y-n.y)-(s.y-n.y)*(g.x-n.x))/p;S=new Qs(g.x+k*(t.x-g.x),g.y+k*(t.y-g.y))}return S}ni(ud,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),U(ud.prototype,Zv),ud.prototype.isStackRoot=!0;const Jv=ud,Kp=class Qv extends Za{render(){this.createPieChart(this.series)}createPieChart(t){const n=t[0],s=new Jv(this,{series:t,padding:n.padding,startAngle:n.startAngle,connectors:n.connectors,legend:this.options.legend});this.appendChart(s)}appendChart(t,n){super.appendChart(t,n),ps(this.options.legend.items,t.legendItems)}};class Yf extends a_{reflowLabel(){const{options:{labels:t},label:n}=this,s=this.sector.clone(),c=s.middle();if(n){const p=n.box.height();if(t.position===Oe){s.radius-=(s.radius-s.innerRadius)/2;const S=s.point(c);n.reflow(new vs(S.x,S.y-p/2,S.x,S.y))}else super.reflowLabel()}}createSegment(t,n){return Fr.current.createRing(t,n)}}ni(Yf,{overlay:{gradient:"roundedGlass"},labels:{position:Oe},animation:{type:eu}}),U(Yf.prototype,vc);const Bm=Yf;class Ly extends Jv{addValue(t,n,s){const c=U({},s.series,{index:s.index});if(this.evalSegmentOptions(c,t,s),this.createLegendItem(t,c,s),!1===s.visible)return;const p=new Bm(t,n,c);Object.assign(p,s),this.append(p),this.points.push(p)}reflow(t){const n=this.options,s=t.clone(),p=Math.min(s.width(),s.height()),S=p/2,$=n.series,me=$.length;let Ve=Et(n.padding,p-.85*p);Ve=Ve>S-5?S-5:Ve;let Wn,_t=S-Ve,Vt=0;for(let Zs=0;Zs<me;Zs++){const wr=$[Zs];0===Zs&&ei(wr.holeSize)&&(Wn=wr.holeSize,_t-=wr.holeSize),ei(wr.size)?_t-=wr.size:Vt++,ei(wr.margin)&&Zs!==me-1&&(_t-=wr.margin)}ei(Wn)||(Wn=(S-Ve)/(me+.75)*.75,_t-=Wn);let ts,Os,si=Wn,Ri=0;this.seriesConfigs=[];for(let Zs=0;Zs<me;Zs++){const wr=$[Zs];ts=Et(wr.size,_t/Vt),si+=Ri,Os=si+ts,this.seriesConfigs.push({innerRadius:si,radius:Os}),Ri=wr.margin||0,si=Os}super.reflow(t)}animationDelay(t,n,s){return 50*t+Kl*(n+1)/(s+1)}}ni(Ly,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Um=Ly,Sc=class Gm extends Za{initFields(){this.valueAxisRangeTracker=new xu}render(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()}alignAxes(){const t=this.valueAxis,n=t.range(),c=t.getSlot(t.options.reverse?n.max:n.min),p=this.polarAxis.getSlot(0).center,S=t.box.translate(p.x-c.x1,p.y-c.y1);t.reflow(S)}createValueAxis(){const t=this.valueAxisRangeTracker,n=t.query(),s=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});let c,p;s.type===Ea?(c=Hr,p={min:.1,max:1}):(c=jo,p={min:0,max:1});const S=t.query(name)||n||p;S&&n&&(S.min=Math.min(S.min,n.min),S.max=Math.max(S.max,n.max));const k=new c(S.min,S.max,s,this.chartService);this.valueAxis=k,this.appendAxis(k)}reflowAxes(){const{options:{plotArea:t},valueAxis:n,polarAxis:s,box:c}=this,p=.15*Math.min(c.width(),c.height()),S=St(t.padding||{},p),k=c.clone().unpad(S),$=k.clone();$.y2=$.y1+Math.min($.width(),$.height()),$.align(k,yi,Oe);const me=$.clone().shrink(0,$.height()/2);s.reflow($),n.reflow(me);const Ve=n.lineBox().height()-n.box.height();n.reflow(n.box.unpad({top:Ve})),this.axisBox=$,this.alignAxes($)}backgroundBox(){return this.box}detachLabels(){}};class Hm extends Rs{pointSlot(t,n){const c=Qs.onCircle(t.center,t.startAngle,t.center.y-n.y1);return new vs(c.x,c.y,c.x,c.y)}}ni(Hm,{clip:!1});const Vm=Hm;class Vh extends Hv{}Vh.prototype.pointSlot=Vm.prototype.pointSlot,ni(Vh,{clip:!1});const e1=Vh,H2=class Fy extends eh{fillToAxes(t){const n=this._polarAxisCenter();t.lineTo(n.x,n.y)}_polarAxisCenter(){return this.parent.plotArea.polarAxis.box.center()}strokeSegments(){let t=this._strokeSegments;if(!t){const n=this._polarAxisCenter(),s=new Zl(!1),c=this.points();c.push(n),t=this._strokeSegments=s.process(c),t.pop()}return t}},mh=class V2 extends Wc{fillToAxes(t){const s=this.parent.plotArea.polarAxis.box.center(),c=new Yo.Z([s.x,s.y]);t.segments.unshift(c),t.segments.push(c)}};function Y2(g,t){return g.value.x-t.value.x}const W2=class j2 extends e1{createSegment(t,n,s){let p;return p=(n.line||{}).style===Qo?new H2(t,n,s):new mh(t,n,s),p}createMissingValue(t,n){let s;return ac(t.x)&&n!==Bi&&(s={x:t.x,y:t.y},n===En&&(s.y=0)),s}seriesMissingValues(t){return t.missingValues||En}_hasMissingValuesGap(){const t=this.options.series;for(let n=0;n<t.length;n++)if("gap"===this.seriesMissingValues(t[n]))return!0}sortPoints(t){if(t.sort(Y2),this._hasMissingValuesGap())for(let n=0;n<t.length;n++){const s=t[n];s&&!ac(s.value.y)&&"gap"===this.seriesMissingValues(s.series)&&delete t[n]}return t}};class l_ extends Sc{createPolarAxis(){const t=new tn(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)}render(){this.series=[...this.originalSeries],this.createTrendlineSeries(),super.render()}valueAxisOptions(t){return U(t,{majorGridLines:{type:Ft},minorGridLines:{type:Ft}},this.options.yAxis)}createValueAxis(){super.createValueAxis(),this.axisY=this.valueAxis}trendlineFactory(t,n){const s=jf.prototype.trendlineFactory.call(this,t,n);return s&&(s.type=zu),s}appendChart(t,n){this.valueAxisRangeTracker.update(t.yAxisRanges),Za.prototype.appendChart.call(this,t,n)}createCharts(){const t=this.filterVisibleSeries(this.series),n=this.panes[0];this.createLineChart(Ga(t,[zu]),n),this.createScatterChart(Ga(t,[Rl]),n),this.createAreaChart(Ga(t,[Kd]),n)}createLineChart(t,n){if(0===t.length)return;const s=new e1(this,{series:t});this.appendChart(s,n)}createScatterChart(t,n){if(0===t.length)return;const s=new Vm(this,{series:t});this.appendChart(s,n)}createAreaChart(t,n){if(0===t.length)return;const s=new W2(this,{series:t});this.appendChart(s,n)}_dispatchEvent(t,n,s){const c=t._eventCoordinates(n),p=new Qs(c.x,c.y),S=this.axisX.getValue(p),k=this.axisY.getValue(p);null!==S&&null!==k&&t.trigger(s,{element:ai(n),x:S,y:k})}createCrosshairs(){}}ni(l_,{xAxis:{},yAxis:{}}),U(l_.prototype,Nd,{seriesValues:jf.prototype.seriesValues});const Yd=l_;class Jp extends Ih{pointSlot(t,n){const s=t.center.y-n.y1,c=Qs.onCircle(t.center,t.middle(),s);return new vs(c.x,c.y,c.x,c.y)}renderSegments(){if(super.renderSegments(),this._segments&&this._segments.length>1){const t=function Qb(g){const t=[];for(let n=0;n<g.length;n++){const s=g[n];t[s.seriesIx]=t[s.seriesIx]||[],t[s.seriesIx].push(s)}return t}(this._segments);for(let n=0;n<t.length;n++){const s=t[n];if(s&&s.length>1){const c=s[0].linePoints[0],p=Pt(s),S=Pt(p.linePoints);0===c.categoryIx&&S.categoryIx===S.categoriesCount-1&&Pt(s).linePoints.push(c)}}}}createSegment(t,n,s){let p;p=n.style===Qo?xh:Md;const S=new p(t,n,s),k=this.seriesMissingValues(n);return(t.length===n.data.length||k===Bi)&&(S.options.closed=!0),S}}ni(Jp,{clip:!1,limitPoints:!1});const jm=Jp,c_=class au extends eh{fillToAxes(){}},ku=class t1 extends Wc{fillToAxes(){}},hd=class dd extends jm{createSegment(t,n,s,c){const S=(n.line||{}).style;let k,$,me;return this.options.isStacked&&s>0&&c&&($=c.linePoints.slice(0),k=c),S===Qo?(me=new c_(t,n,s,k,$),me.options.closed=!0):(t.push(t[0]),me=new ku(t,n,s,k,$)),me}seriesMissingValues(t){return t.missingValues||En}};class u_ extends Bm{constructor(t,n){super(t,null,n)}}ni(u_,{overlay:{gradient:"none"},labels:{distance:10}});const Ym=u_;class n1 extends mt{constructor(t){super(t),this.forEach=t.rtl?Mp:Tp}reflow(t){const{options:n,children:s}=this,{gap:c,spacing:p}=n,S=s.length,$=t.angle/(S+c+p*(S-1));let me=t.startAngle+$*(c/2);this.forEach(s,Ve=>{const _t=t.clone();_t.startAngle=me,_t.angle=$,Ve.sector&&(_t.radius=Ve.sector.radius),Ve.reflow(_t),Ve.sector=_t,me+=$+$*p})}}ni(n1,{gap:1,spacing:0});const $2=n1,d_=class Z2 extends mt{reflow(t){const{options:{reverse:n},children:s}=this,c=s.length,p=n?c-1:0,S=n?-1:1;this.box=new vs;for(let k=p;k>=0&&k<c;k+=S){const $=s[k].sector;$.startAngle=t.startAngle,$.angle=t.angle}}};class $f extends Du{pointType(){return Ym}clusterType(){return $2}stackType(){return d_}categorySlot(t,n){return t.getSlot(n)}pointSlot(t,n){const s=t.clone(),c=t.center.y;return s.radius=c-n.y1,s.innerRadius=c-n.y2,s}reflowPoint(t,n){t.sector=n,t.reflow()}createAnimation(){this.options.animation.center=this.box.toRect().center(),super.createAnimation()}}$f.prototype.reflow=Yc.prototype.reflow,ni($f,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const yp=$f;class Zf extends Sc{createPolarAxis(){const t=new L(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createTrendlineSeries(),this.createCategoryAxesLabels()}valueAxisOptions(t){return this._hasBarCharts&&U(t,{majorGridLines:{type:Ft},minorGridLines:{type:Ft}}),this._isStacked100&&U(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),U(t,this.options.valueAxis)}aggregateCategories(){lh.prototype.aggregateCategories.call(this,this.panes)}createCategoryAxesLabels(){lh.prototype.createCategoryAxesLabels.call(this,this.panes)}filterSeries(t){return t}trendlineFactory(t,n){const s=lh.prototype.trendlineFactory.call(this,t,n);return s&&(s.type=du),s}createCharts(){const t=this.filterVisibleSeries(this.series),n=this.panes[0];this.createAreaChart(Ga(t,[oo]),n),this.createLineChart(Ga(t,[du]),n),this.createBarChart(Ga(t,[bd]),n)}chartOptions(t){const n={series:t},s=t[0];if(s){const c=this.filterVisibleSeries(t),p=s.stack;n.isStacked=p&&c.length>1,n.isStacked100=p&&"100%"===p.type&&c.length>1,n.isStacked100&&(this._isStacked100=!0)}return n}createAreaChart(t,n){if(0===t.length)return;const s=new hd(this,this.chartOptions(t));this.appendChart(s,n)}createLineChart(t,n){if(0===t.length)return;const s=new jm(this,this.chartOptions(t));this.appendChart(s,n)}createBarChart(t,n){if(0===t.length)return;const s=t[0],c=this.chartOptions(t);c.gap=s.gap,c.spacing=s.spacing;const p=new yp(this,c);this.appendChart(p,n),this._hasBarCharts=!0}seriesCategoryAxis(){return this.categoryAxis}_dispatchEvent(t,n,s){const c=t._eventCoordinates(n),p=new Qs(c.x,c.y),S=this.categoryAxis.getCategory(p),k=this.valueAxis.getValue(p);null!==S&&null!==k&&t.trigger(s,{element:ai(n),category:S,value:k})}createCrosshairs(){}}U(Zf.prototype,Nd,{appendChart:lh.prototype.appendChart,aggregateSeries:lh.prototype.aggregateSeries,seriesSourcePoints:lh.prototype.seriesSourcePoints,seriesValues:lh.prototype.seriesValues}),ni(Zf,{categoryAxis:{categories:[]},valueAxis:{}});const K2=Zf;class h_ extends mt{constructor(t,n,s){super(n),this.value=t,this.options.index=s.index}reflow(t){const n=this.points,s=this.children[0];this.box=new vs(n[0].x,n[0].y,n[1].x,n[2].y),s&&s.reflow(new vs(t.x1,n[0].y,t.x2,n[2].y))}createVisual(){const t=this.options;let n;super.createVisual(),n=t.visual?t.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:t,sender:this.getSender(),createVisual:()=>this.createPath()}):this.createPath(),n&&this.visual.append(n)}createPath(){const t=this.options,n=t.border;return Ws.y.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:n.color,opacity:n.opacity,width:n.width}}).close()}createHighlight(t){return Ws.y.fromPoints(this.points,t)}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=Ws.y.fromPoints(this.points).close();return{options:this.options,path:t}}tooltipAnchor(){const t=this.box;return{point:new Qs(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}}formatValue(t){return this.owner.formatPointValue(this,t)}}ni(h_,{color:In,border:{width:1}}),U(h_.prototype,vc);const zy=h_;class Wm extends mt{constructor(t,n){super(n),this.plotArea=t,this.chartService=t.chartService,this.points=[],this.labels=[],this.legendItems=[],this.render()}formatPointValue(t,n){return this.chartService.format.auto(n,t.value)}render(){const{options:t,plotArea:{options:{seriesColors:n=[]}}}=this,s=t.series[0],c=s.data;if(!c)return;const{total:p,points:S}=Gu(s);for(let k=0;k<S.length;k++){const $=S[k];if(!$)continue;let me=$.fields;mn(s.color)||(s.color=me.color||n[k%n.length]),me=U({index:k,owner:this,series:s,dataItem:c[k],percentage:$.value/p},me,{visible:$.visible});const Ve=$.valueFields.value,_t=this.createSegment(Ve,me),Vt=this.createLabel(Ve,me);_t&&Vt&&_t.append(Vt)}}evalSegmentOptions(t,n,s){const c=s.series;iu(t,{value:n,series:c,dataItem:s.dataItem,index:s.index},{defaults:c._defaults,excluded:["data","content","template","toggle","visual"]})}createSegment(t,n){const s=U({},n.series);if(this.evalSegmentOptions(s,t,n),this.createLegendItem(t,s,n),!1!==n.visible){const c=new zy(t,s,n);return Object.assign(c,n),this.append(c),this.points.push(c),c}}createLabel(t,n){const{series:s,dataItem:c}=n,p=U({},this.options.labels,s.labels);let S=t;if(p.visible){const k=pt(p),$={dataItem:c,value:t,percentage:n.percentage,category:n.category,series:s};k?S=k($):p.format&&(S=this.chartService.format.auto(p.format,S)),p.color||(p.color=wi(s.color),p.background||(p.background=s.color)),this.evalSegmentOptions(p,t,n);const me=new Ns(S,U({vAlign:p.position},p),$);return this.labels.push(me),me}}labelPadding(){const t=this.labels,n={left:0,right:0};for(let s=0;s<t.length;s++){const p=t[s].options.align;if(p!==Oe){const S=t[s].box.width();p===sn?n.left=Math.max(n.left,S):n.right=Math.max(n.right,S)}}return n}dynamicSlopeReflow(t,n,s){const{options:c,points:p}=this,S=p.length,k=p[0];let $=k;for(let Vt=0;Vt<p.length;Vt++)p[Vt].percentage>$.percentage&&($=p[Vt]);let me=k.percentage/$.percentage*n,Ve=(n-me)/2,_t=0;for(let Vt=0;Vt<S;Vt++){const Wn=p[Vt].percentage,si=p[Vt+1],Ri=si?si.percentage:Wn,ts=p[Vt].points=[],Os=c.dynamicHeight?s*Wn:s/S;let Zs;Zs=Wn?(n-me*(Ri/Wn))/2:Ri?0:n/2,Zs=Be(Zs,0,n),ts.push(new js.Z(t.x1+Ve,t.y1+_t)),ts.push(new js.Z(t.x1+n-Ve,t.y1+_t)),ts.push(new js.Z(t.x1+n-Zs,t.y1+Os+_t)),ts.push(new js.Z(t.x1+Zs,t.y1+Os+_t)),Ve=Zs,_t+=Os+c.segmentSpacing,me=Be(n-2*Zs,0,n)}}constantSlopeReflow(t,n,s){const{options:c,points:p}=this,S=p.length,k=c.neckRatio<=1;let me=k?0:(n-n/c.neckRatio)/2;const _t=((k?n:n-2*me)-(k?c.neckRatio*n:n))/2;let Vt=0;for(let Wn=0;Wn<S;Wn++){const si=p[Wn].points=[],Ri=p[Wn].percentage,ts=c.dynamicHeight?_t*Ri:_t/S,Os=c.dynamicHeight?s*Ri:s/S;si.push(new js.Z(t.x1+me,t.y1+Vt)),si.push(new js.Z(t.x1+n-me,t.y1+Vt)),si.push(new js.Z(t.x1+n-me-ts,t.y1+Os+Vt)),si.push(new js.Z(t.x1+me+ts,t.y1+Os+Vt)),me+=ts,Vt+=Os+c.segmentSpacing}}reflow(t){const n=this.points,s=n.length;if(!s)return;const c=this.options,p=t.clone().unpad(this.labelPadding()),S=p.height()-c.segmentSpacing*(s-1),k=p.width();c.dynamicSlope?this.dynamicSlopeReflow(p,k,S):this.constantSlopeReflow(p,k,S);for(let $=0;$<s;$++)n[$].reflow(t)}}ni(Wm,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:Oe,position:Oe,zIndex:1}}),U(Wm.prototype,Zv);const s1=Wm,p_=class By extends s1{constructor(t,n){n.dynamicSlope=!1,n.neckRatio=1e6,super(t,n)}};class Wd extends mt{constructor(t,n){super(),this.options=n,this.color=n.color||In,this.value=t}render(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())}createLabel(){const n=this.options.labels;if(n.visible){const s=this.pointData();let p,c=pt(n),S=n.color;p=c?c(s):this.formatValue(n.format),S||(S=wi(this.color)),this.label=new Ns(p,U({align:Oe,vAlign:Oe,margin:{left:5,right:5},zIndex:Et(n.zIndex,this.series.zIndex)},n,{color:S}),s),this.append(this.label)}}formatValue(t){return this.owner.formatPointValue(this,t)}reflow(t){this.render();const n=this.label;this.box=t,n&&n.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())}markerBox(){const n=this.options.markers,s=n.border,c=this.box.toRect(),S=Et(n.type,"rect")===Ni;let k=Et(s.width,S?1:0);const $=Math.round(k/2);if(n.size){const me=c.center();c.size.width=c.size.height=n.size,c.origin.x=Math.round(me.x-c.size.width/2),c.origin.y=Math.round(me.y-c.size.height/2)}return c.size.width-=k,c.size.height-=k,c.origin.y+=$+.5,c.origin.x+=$+.5,$i(c)}markerBorder(){const t=this.options,s=t.markers.border,c=Et(s.opacity,t.opacity);return{color:s.color||this.color,width:s.width,opacity:c,dashType:s.dashType}}createMarker(){const t=this.options,n=t.markers,s=new Gi({type:Et(n.type,"rect"),width:n.size,height:n.size,rotation:n.rotation,background:this.color,border:this.markerBorder(),borderRadius:n.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:Et(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=s,this.append(s)}createHighlight(t){const n=this.options,s=this.options.highlight.markers||this.options.markers,c=new Gi({type:Et(s.type,"rect"),width:s.size,height:s.size,rotation:s.rotation,background:s.color||this.color,border:this.markerBorder(),borderRadius:s.borderRadius,opacity:this.series.opacity||n.opacity,zIndex:Et(n.zIndex,this.series.zIndex)});c.reflow(this.markerBox());const p=c.getElement();return p.options.fill=t.fill,p.options.stroke=t.stroke,p}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}tooltipAnchor(){const t=this.box.center().x;return{point:new Qs(t,this.box.y1-5),align:{horizontal:Oe,vertical:$e}}}overlapsBox(t){return this.box.overlaps(t)}unclipElements(){}pointData(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}}}U(Wd.prototype,vc),U(Wd.prototype,Cu),Wd.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const pd=Wd;class Qp extends mt{constructor(t,n){super(n),this.plotArea=t,this.chartService=t.chartService,this._initFields(),this.render()}_initFields(){this.points=[],this.seriesOptions=[],this.valueRange={min:_n,max:Ln},this._evalSeries=[]}render(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))}setRange(){const{options:{series:t}}=this;for(let n=0;n<t.length;n++){const s=t[n];for(let c=0;c<s.data.length;c++){const{valueFields:p}=this.plotArea.bindPoint(s,c);ei(p.value)&&null!==p.value&&(this.valueRange.min=Math.min(this.valueRange.min,p.value),this.valueRange.max=Math.max(this.valueRange.max,p.value))}}}addValue(t,n){let s;t&&ei(t.value)&&null!==t.value&&(s=this.createPoint(t,n),s&&Object.assign(s,n)),this.points.push(s)}evalPointOptions(t,n,s){const{series:c,seriesIx:p}=s,S={defaults:c._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory"]};let k=this._evalSeries[p];ei(k)||(this._evalSeries[p]=k=iu(t,{},S,!0));let $=t;return k&&($=U({},t),iu($,{value:n,series:c,dataItem:s.dataItem,min:this.valueRange.min,max:this.valueRange.max},S)),$}pointType(){return pd}pointOptions(t,n){let s=this.seriesOptions[n];if(!s){const c=this.pointType().prototype.defaults;this.seriesOptions[n]=s=U({},c,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return s}createPoint(t,n){const s=n.series;let c=this.pointOptions(s,n.seriesIx),p=n.color||s.color;c=this.evalPointOptions(c,t,n),mn(s.color)?p=c.color:0!==this.valueRange.max&&(p=((g,t=.05)=>{const n=(0,fp.ZP)(g),s=1-t;return c=>{const p=n.toHSL(),S=100-p.l;return p.l+=Math.min((s-c)*S,S),p.toCss()}})(p)(t.value/this.valueRange.max));const S=new pd(t,c);return S.color=p,this.append(S),S}seriesAxes(t){const{xAxis:n,yAxis:s}=t,c=this.plotArea,p=n?c.namedXAxes[n]:c.axisX,S=s?c.namedYAxes[s]:c.axisY;if(!p)throw new Error("Unable to locate X axis with name "+n);if(!S)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:p,yAxis:S}}reflow(t){const n=this.points,s=!this.options.clip;let c=0;this.traverseDataPoints((p,S)=>{const k=n[c++],{xAxis:$,yAxis:me}=this.seriesAxes(S.series),Ve=$.categoryIndex(p.x),_t=me.categoryIndex(p.y),Vt=$.getSlot(Ve,Ve,s),Wn=me.getSlot(_t,_t,s);if(k)if(Vt&&Wn){const si=this.pointSlot(Vt,Wn);k.reflow(si)}else k.visible=!1}),this.box=t}pointSlot(t,n){return new vs(t.x1,n.y1,t.x2,n.y2)}traverseDataPoints(t){const{options:{series:n}}=this;for(let s=0;s<n.length;s++){const c=n[s],{xAxis:p,yAxis:S}=this.seriesAxes(c),k=p.currentRangeIndices(),$=S.currentRangeIndices();for(let me=0;me<c.data.length;me++){const{valueFields:Ve,fields:_t}=this.plotArea.bindPoint(c,me),Vt=p.totalIndex(Ve.x),Wn=S.totalIndex(Ve.y);k.min<=Vt&&Vt<=k.max&&$.min<=Wn&&Wn<=$.max&&t(Ve,U({pointIx:me,series:c,seriesIx:s,dataItem:c.data[me],owner:this},_t))}}}formatPointValue(t,n){const s=t.value;return this.chartService.format.auto(n,s.x,s.y,s.value)}animationPoints(){const t=this.points,n=[];for(let s=0;s<t.length;s++)n.push((t[s]||{}).marker);return n}}ni(Qp,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0});const Km=Qp;class Xp extends Za{initFields(){this.namedXAxes={},this.namedYAxes={}}render(t=this.panes){this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()}bindCategories(){const t=this.srcSeries||this.series;for(let n=0;n<t.length;n++){const s=t[n],c=s.data||[],{xAxis:p,yAxis:S}=this.seriesAxes(s),k=So(p.categories||[]),$=So(S.categories||[]);for(let me=0;me<c.length;me++){const{x:Ve,y:_t}=Mr.current.bindPoint(s,me).valueFields;k.has(Ve)||k.add(Ve),$.has(_t)||$.add(_t)}p.categories=k.values(),S.categories=$.values()}}createCharts(t){const n=this.groupSeriesByPane();for(let s=0;s<t.length;s++){const c=t[s],p=n[c.options.name||"default"]||[];this.addToLegend(p);const S=this.filterVisibleSeries(p);S&&this.createHeatmapChart(Ga(S,[Ua]),c)}}createHeatmapChart(t,n){const s=new Km(this,{series:t});this.appendChart(s,n)}seriesPaneName(t){const n=this.options,s=t.xAxis,p=Gn([].concat(n.xAxis),function(Vt){return Vt.name===s})[0],S=t.yAxis,$=Gn([].concat(n.yAxis),function(Vt){return Vt.name===S})[0];return(p||{}).pane||($||{}).pane||(n.panes||[{}])[0].name||"default"}seriesAxes(t){let n,s;const c=this.options,p=[].concat(c.xAxis),S=t.xAxis;n=S?p.find(me=>me.name===S):p[0];const k=[].concat(c.yAxis),$=t.yAxis;if(s=$?k.find(me=>me.name===$):k[0],!n)throw new Error("Unable to locate X axis with name "+S);if(!s)throw new Error("Unable to locate Y axis with name "+$);return{xAxis:n,yAxis:s}}createAxisLabels(){const t=this.axes;for(let n=0;n<t.length;n++)t[n].createLabels()}createXYAxis(t,n,s){const c=t.name,p=n?this.namedYAxes:this.namedXAxes,S=Object.assign({axisCrossingValue:0},t,{vertical:n,reverse:n||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),$=[S.min,S.max,S.categories?S.categories[0]:null],me=this.series;for(let Wn=0;Wn<me.length;Wn++){const si=me[Wn],Ri=si[n?"yAxis":"xAxis"];if(Ri===S.name||0===s&&!Ri){const ts=Mr.current.bindPoint(si,0).valueFields;$.push(ts[n?"y":"x"]);break}}let Ve,_t;for(let Wn=0;Wn<$.length;Wn++)if($[Wn]instanceof Date){Ve=!0;break}_t=Pl(S.type,Kt)||!S.type&&Ve?Aa:hl;const Vt=new _t(S,this.chartService);if(Vt.axisIndex=s,c){if(p[c])throw new Error(`${n?"Y":"X"} axis with name ${c} is already defined`);p[c]=Vt}return this.appendAxis(Vt),Vt.mapCategories(),Vt}createAxes(t){const n=this.options,s=[].concat(n.xAxis),c=[],p=[].concat(n.yAxis),S=[];for(let k=0;k<s.length;k++)ui(this.findPane(s[k].pane),t)&&c.push(this.createXYAxis(s[k],!1,k));for(let k=0;k<p.length;k++)ui(this.findPane(p[k].pane),t)&&S.push(this.createXYAxis(p[k],!0,k));this.axisX=this.axisX||c[0],this.axisY=this.axisY||S[0]}removeAxis(t){const n=t.options.name;super.removeAxis(t),t.options.vertical?delete this.namedYAxes[n]:delete this.namedXAxes[n],t===this.axisX&&delete this.axisX,t===this.axisY&&delete this.axisY}_dispatchEvent(t,n,s){const c=t._eventCoordinates(n),p=new Qs(c.x,c.y),S=this.axes,k=S.length,$=[],me=[];for(let Ve=0;Ve<k;Ve++){const _t=S[Ve];Dd(_t.options.vertical?me:$,_t.getCategory(p))}$.length>0&&me.length>0&&t.trigger(s,{element:ai(n),originalEvent:n,x:Oc($),y:Oc(me)})}updateAxisOptions(t,n){const s=t.options.vertical,c=this.groupAxes(this.panes),p=(s?c.y:c.x).indexOf(t);Jm(this.options,p,s,n),Jm(this.originalOptions,p,s,n)}crosshairOptions(t){return Object.assign({},t.options.crosshair,{zIndex:0})}}function Jm(g,t,n,s){U([].concat(n?g.yAxis:g.xAxis)[t],s)}ni(Xp,{xAxis:{},yAxis:{}}),U(Xp.prototype,Nd);const Qm=Xp,Lc="color",lu="first",Jc="max",$d="noteText";cd.current.register(lh,[Fe,cs,qu,hu,ce,_c,kn,Fu,hi,td,Dt,Bu,Sd,xc,pu,fa,Qa,kc,...Xe]),cd.current.register(jf,[ed,yu,nn,...Xe]),cd.current.register(Kp,[eu]),cd.current.register(class Wf extends Kp{render(){this.createDonutChart(this.series)}createDonutChart(t){const n=t[0],s=new Um(this,{series:t,padding:n.padding,connectors:n.connectors,legend:this.options.legend});this.appendChart(s)}},[qs]),cd.current.register(class f_ extends Za{render(){this.createChart(s1,Ga(this.series,[xa])),this.createChart(p_,Ga(this.series,[Pa]))}createChart(t,n){const s=n[0];if(!s)return;const c=new t(this,{series:n,legend:this.options.legend,neckRatio:s.neckRatio,dynamicHeight:s.dynamicHeight,dynamicSlope:s.dynamicSlope,segmentSpacing:s.segmentSpacing,highlight:s.highlight});this.appendChart(c)}appendChart(t,n){super.appendChart(t,n),ps(this.options.legend.items,t.legendItems)}},[xa,Pa]),cd.current.register(Yd,[Kd,zu,Rl,...Xe]),cd.current.register(K2,[oo,bd,du,...Xe]),cd.current.register(Qm,[Ua]),Mr.current.register([Fe,cs,qu,hu,ce,_c],[lt],[dl,Lc,$d,vu,Xu,nu]),Mr.current.register([Sd,xc,Qa,kc],["from","to"],[dl,Lc,$d,nu]),Mr.current.register([pu,fa],[lt],[dl,Lc,$d,"summary",nu]),Mr.current.register([Kd,zu,Rl],[Qt,yi],[Lc,nu]),Mr.current.register([oo,bd,du],[lt],[Lc,nu]),Mr.current.register([xa,Pa],[lt],[dl,Lc,"visibleInLegend","visible",nu]),Ld.current.register([Fe,cs,qu,hu,ce,_c,pu,fa],{value:Jc,color:lu,noteText:lu,errorLow:"min",errorHigh:Jc}),Ld.current.register([Sd,xc,Qa,kc],{from:"min",to:Jc,color:lu,noteText:lu}),Ld.current.register([oo,bd,du],{value:Jc,color:lu}),Mr.current.register([ed,yu,nn],[Qt,yi],[Lc,$d,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Mr.current.register([nn],[Qt,yi,"size"],[Lc,dl,$d]),Mr.current.register([Ua],[Qt,yi,lt],[Lc,$d]),Mr.current.register([kn,Fu],["open","high","low","close"],[dl,Lc,"downColor",$d]),Ld.current.register([kn,Fu],{open:Jc,high:Jc,low:"min",close:Jc,color:lu,downColor:lu,noteText:lu}),Mr.current.register([Dt,Bu],["lower","q1","median","q3","upper","mean","outliers"],[dl,Lc,$d,nu]),Ld.current.register([Dt,Bu],{lower:Jc,q1:Jc,median:Jc,q3:Jc,upper:Jc,mean:Jc,outliers:lu,color:lu,noteText:lu}),Mr.current.register([hi,td],["current","target"],[dl,Lc,"visibleInLegend",$d,nu]),Ld.current.register([hi,td],{current:Jc,target:Jc,color:lu,noteText:lu}),Mr.current.register([eu,qs],[lt],[dl,Lc,"explode","visibleInLegend","visible",nu]);const qm=[dl,lt,Qt,yi],qp="mousemove",ef="contextmenu",tf="mouseleave";class eg extends Xi.Z{constructor(t,n,s,c={}){super(),this.observers=[],this.addObserver(c.observer),this.chartService=new er(this,c),this.chartService.theme=s,this._initElement(t);const p=U({},this.options,n);this._originalOptions=U({},p),this._theme=s,this._initTheme(p,s),this._initHandlers(),this._initSurface(),this.bindCategories(),vi.preloadFonts(n,()=>{this.fontLoaded=!0,this._destroyed||(this.trigger("init"),this._redraw(),this._attachEvents())})}_initElement(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t}_setElementClass(t){Ht(t,"k-chart")}_initTheme(t,n){const s=[],c=t.series||[];for(let p=0;p<c.length;p++)s.push(Object.assign({},c[p]));t.series=s,function __(g){const t=qm;for(let n=0;n<t.length;n++){const s=t[n]+"Axes";g[s]&&(g[t[n]+"Axis"]=g[s],delete g[s])}}(t),this.applyDefaults(t,n),null===t.seriesColors&&delete t.seriesColors,bi(t.title)&&(t.title={text:t.title}),this.options=U({},n,t),this.applySeriesColors()}getSize(){const t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}}resize(t){const n=this.getSize(),s=this._size,c=n.width>0||n.height>0;t||c&&(!s||n.width!==s.width||n.height!==s.height)?(this._size=n,this._resize(n,t),this.trigger("resize",n)):c&&this._selections&&gn(this._selections,p=>!p.visible)&&(this._destroySelections(),this._setupSelection())}_resize(){this._noTransitionsRedraw()}redraw(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){const n=this._model._plotArea,s=n.findPane(t);n.redraw(s)}else this._redraw()}getAxis(t){return Wo(t,this._plotArea.axes)}findAxisByName(t){return this.getAxis(t)}findPaneByName(t){const n=this._plotArea.panes;for(let s=0;s<n.length;s++)if(n[s].options.name===t)return new Ra(n[s])}findPaneByIndex(t){const n=this._plotArea.panes;if(n[t])return new Ra(n[t])}plotArea(){return new sl(this._plotArea)}toggleHighlight(t,n){const s=this._plotArea,c=(s.srcSeries||s.series||[])[0];let p;if(mn(n))p=s.filterPoints(n);else{let S,k;gt(n)?(S=n.series,k=n.category):S=k=n,p=c.type===qs?J2(s.pointsBySeriesName(S),k):ui(c.type,[eu,xa,Pa])?J2((s.charts[0]||{}).points,k):s.pointsBySeriesName(S)}p&&this.togglePointsHighlight(t,p)}togglePointsHighlight(t,n){const s=this._highlight;for(let c=0;c<n.length;c++)s.togglePointHighlight(n[c],t)}showTooltip(t){const n=this._sharedTooltip(),{_tooltip:s,_plotArea:c}=this;let p,S;if(mn(t)?(p=c.findPoint(t),p&&n&&(S=p.categoryIx)):n&&ei(t)&&(S=c.categoryAxis.categoryIndex(t)),n){if(S>=0){const k=this._plotArea.pointsByCategoryIndex(S);s.showAt(k)}}else p&&s.show(p)}hideTooltip(){this._tooltip.hide()}_initSurface(){const t=this.surface,n=this._surfaceWrap(),s=this.options.chartArea||{};s.width&&As(n,{width:s.width}),s.height&&As(n,{height:s.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Vp.create(n,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}_surfaceWrap(){return this.element}_redraw(){const t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse(function(n){n.animation&&n.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse(function(n){n.animation&&n.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new Nv,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),rf(this._plotArea.panes),this._navState||this._cancelDomEvents()}exportVisual(t){let n;if(t&&(t.width||t.height||t.options)){const s=this.options,c=U({},t.options,{chartArea:{width:t.width,height:t.height}});sf(this._originalOptions,c),this.options=U({},this._originalOptions,c),this._initTheme(this.options,this._theme),this.bindCategories();const p=this._getModel();p.renderVisual(),rf(p._plotArea.panes),n=p.visual,this.options=s}else n=this.surface.exportVisual();return n}_sharedTooltip(){return this._plotArea instanceof lh&&this.options.tooltip&&this.options.tooltip.shared}_createPannable(){const t=this.options;!1!==t.pannable&&(this._pannable=new Oy(this._plotArea,t.pannable))}_createZoomSelection(){const t=this.options.zoomable,n=(t||{}).selection;!1!==t&&!1!==n&&(this._zoomSelection=new Ff(this,n))}_createMousewheelZoom(){const t=this.options.zoomable,n=(t||{}).mousewheel;!1!==t&&!1!==n&&(this._mousewheelZoom=new jp(this,n))}_toggleDragZoomEvents(){const n=this.options.zoomable,c=(n||{}).mousewheel,p=!(this.options.pannable||!1!==n&&!1!==(n||{}).selection||this.requiresHandlers([ma,_r,Kr])),S=(!1===n||!1===c)&&!this.requiresHandlers([Da,ol,fl]),k=this.element;this._dragZoomEnabled&&p&&S?(k.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(p&&S)&&(k.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!p,!S)}_toggleDomEvents(t,n){const s=this.domEvents;s&&(s.toggleDrag&&s.toggleDrag(t),s.toggleZoom&&s.toggleZoom(n))}_createTooltip(){const{options:{tooltip:t}}=this;let n;return n=this._sharedTooltip()?this._createSharedTooltip(t):new Pm(this.chartService,t),n}_createSharedTooltip(t){return new $p(this._plotArea,t)}applyDefaults(t,n){(function Q2(g,t){const n=(t||{}).axisDefaults||{};let s,c,p;function S(k){const $=(k||{}).color||c.color,me=U({},n,n[s],c,c[s],{line:{color:$},labels:{color:$},title:{color:$}},k);return delete me[s],me}for(let k=0;k<qm.length;k++)s=qm[k]+"Axis",c=g.axisDefaults||{},p=[].concat(g[s]),p=p.map(S),g[s]=p.length>1?p:p[0]})(t,n),function r1(g,t){const n=g.series,s=n.length,c=g.seriesDefaults,p=U({},g.seriesDefaults),S=t?U({},t.seriesDefaults):{},k=U({},S);a1(p),a1(k);for(let $=0;$<s;$++){const me=n[$].type||g.seriesDefaults.type,Ve=U({data:[]},k,S[me],{tooltip:g.tooltip},p,c[me]);n[$]._defaults=Ve,n[$]=U({},Ve,n[$]),n[$].data=n[$].data||[]}}(t,n)}applySeriesColors(){const t=this.options,n=t.series,s=t.seriesColors||[];for(let c=0;c<n.length;c++){const p=n[c],S=s[c%s.length],k=p._defaults;p.color=p.color||S,k&&(k.color=k.color||S)}}_getModel(){const t=this.options,n=this._createPlotArea(),s=new ar(this._modelOptions());s.chart=this,s._plotArea=n;const c=mr.buildTitle(t.title),p=mr.buildTitle(t.subtitle,{align:t.title.align,position:t.title.position});return s.append.apply(s,mr.orderTitles([c,p])),t.legend&&t.legend.visible&&s.append(new P2(n.options.legend,this.chartService)),s.append(n),s.reflow(),s}_modelOptions(){const t=this.options,n=this.getSize();return U({transitions:t.transitions,width:n.width||600,height:n.height||400},t.chartArea)}_createPlotArea(t){const n=this.options;return cd.current.create(t?[]:n.series,n,this.chartService)}_setupSelection(){const{_plotArea:{axes:t}}=this,n=this._selections=[];for(let s=0;s<t.length;s++){const c=t[s],p=c.options;if(c instanceof hl&&p.select&&!p.vertical){const S=c.range(),k=new Am(this,c,U({min:S.min,max:S.max},p.select));n.push(k)}}}_selectStart(t){return this.trigger(Na,t)}_select(t){return this.trigger(tc,t)}_selectEnd(t){return this.trigger(rl,t)}_initHandlers(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Up(this._mousemove.bind(this),20)}addObserver(t){t&&this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n>=0&&this.observers.splice(n,1)}requiresHandlers(t){const n=this.observers;for(let s=0;s<n.length;s++)if(n[s].requiresHandlers(t))return!0}trigger(t,n={}){n.sender=this,t===ul?n.anchor.point=this._toDocumentCoordinates(n.anchor.point):t===is?this._updateDrilldownPoint(n.point):t===Zi?this._resetDrilldownPoint():t===cn&&this._startDrilldown(n.point);const s=this.observers;let c=!1;for(let p=0;p<s.length;p++)s[p].trigger(t,n)&&(c=!0);return c}_attachEvents(){const t=this.element;this._touchAction=t.style.touchAction,_s(t,{[ef]:this._clickHandler,[nd]:this._mousewheelHandler,[tf]:this._mouseleaveHandler}),this._shouldAttachMouseMove()&&_s(t,{[qp]:this._mousemove}),this.domEvents=Tl.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()}_mouseleave(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(dr)),this._hasInactiveOpacity()&&this._activeChartInstance&&(this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._updateSeriesOpacity(null,!0))}_cancelDomEvents(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()}_gesturestart(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())}_gestureend(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger(fl,{}))}_gesturechange(t){const n=this._mousewheelZoom;if(n&&!this._stopChartHandlers(t)){t.preventDefault();let c=-t.distance/this._gestureDistance+1;if(Math.abs(c)>=.1){c=Math.round(10*c),this._gestureDistance=t.distance;const p={delta:c,axisRanges:Jf(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Da,p)){const S=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(p.axisRanges=n.updateRanges(c,S))&&!this.trigger(ol,p)&&n.zoom()}}}}_mouseout(t){if(t.element){const n=this._drawingChartElement(t.element,t);n&&n.leave&&n.leave(this,t.originalEvent)}}_start(t){const n=this._eventCoordinates(t);this._stopChartHandlers(t)||!this._plotArea.backgroundContainsPoint(n)||(this.requiresHandlers([ma,_r,Kr])&&this._startNavigation(t,n,ma),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger(Da,{axisRanges:Jf(this._plotArea.axes),originalEvent:t}))}_move(t){let{_navState:n,_pannable:s}=this;if(!this._stopChartHandlers(t)){if(s){const c=s.move(t);c&&!this.trigger(_r,{axisRanges:c,originalEvent:t})&&s.pan()}else if(n){const c={},p=n.axes;for(let S=0;S<p.length;S++){const k=p[S];if(k.options.name){const me=k.options.vertical?t.y:t.x,Ve=me.startLocation-me.location;0!==Ve&&(c[k.options.name]=k.translateRange(Ve))}}n.axisRanges=c,this.trigger(_r,{axisRanges:c,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}}_end(t){if(this._stopChartHandlers(t))return;const n=this._pannable;if(n&&n.end(t)?(this.surface.resumeTracking(),this.trigger(Kr,{axisRanges:Jf(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Kr),this._zoomSelection){const s=this._zoomSelection.end(t);s&&!this.trigger(ol,{axisRanges:s,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(fl,{axisRanges:s,originalEvent:t}))}}_stopChartHandlers(t){const n=this._selections||[];if(!n.length)return!1;const s=this._eventCoordinates(t),c=this._plotArea.paneByPoint(s);if(c)for(let p=0;p<n.length;p++)if(n[p].onPane(c))return!0}_mousewheelZoomRate(){return Et(((this.options.zoomable||{}).mousewheel||{}).rate,.3)}_mousewheel(t){const n=as(t),s=this._mousewheelZoom,c=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(c))if(s){const p={delta:n,axisRanges:Jf(this._plotArea.axes),originalEvent:t};(this._zooming||!this.trigger(Da,p))&&(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),p.axisRanges=s.updateRanges(n,c),p.axisRanges&&!this.trigger(ol,p)&&s.zoom(),this._mwTimeout=setTimeout(()=>{this.trigger(fl,p),this._zooming=!1,this.surface&&this.surface.resumeTracking()},150))}else{let p=this._navState;if(p||this._startNavigation(t,c,Da)||(p=this._navState),p){const S=p.totalDelta||n;p.totalDelta=S+n;const k=this._navState.axes,$={};for(let me=0;me<k.length;me++){const Ve=k[me],_t=Ve.options.name;_t&&($[_t]=Ve.scaleRange(-S*this._mousewheelZoomRate(),c))}this.trigger(ol,{delta:n,axisRanges:$,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._endNavigation(t,fl)},150)}}}_startNavigation(t,n,s){const c=this._model._plotArea,p=c.findPointPane(n),S=c.axes.slice(0);if(!p)return;const k=Jf(S);this.trigger(s,{axisRanges:k,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:k,pane:p,axes:S})}_endNavigation(t,n){this._navState&&(this.trigger(n,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)}_getChartElement(t,n){const s=this.surface.eventTarget(t);if(s)return this._drawingChartElement(s,t,n)}_drawingChartElement(t,n,s){let p,c=t;for(;c&&!p;)p=c.chartElement,c=c.parent;if(p)return p.aliasFor&&(p=p.aliasFor(n,this._eventCoordinates(n))),s&&(p=p.closest(s),p&&p.aliasFor&&(p=p.aliasFor())),p}_eventCoordinates(t){const n=un(t);return this._toModelCoordinates(n.x,n.y)}_elementPadding(){if(!this._padding){const{paddingLeft:t,paddingTop:n}=jn(this.element,["paddingLeft","paddingTop"]);this._padding={top:n,left:t}}return this._padding}_toDocumentCoordinates(t){const n=this._elementPadding(),s=po(this.element);return{left:Ke(t.x+n.left+s.left),top:Ke(t.y+n.top+s.top)}}_toModelCoordinates(t,n){const s=this.element,c=po(s),p=this._elementPadding(),S=function Fi(g){if(!g)return Ce.unit();let t=Mi(g),n=g.parentElement;for(;n;){const s=Mi(n);t=t.multiplyCopy(s),n=n.parentElement}return t.b=t.c=t.e=t.f=0,t}(s).invert(),k=new js.Z(t-c.left-p.left,n-c.top-p.top).transform(S);return new Qs(k.x,k.y)}_tap(t){const n=this.surface.eventTarget(t),s=this._drawingChartElement(n,t),c=this._sharedTooltip();!this._startHover(n,t)&&!c&&this._unsetActivePoint(),c&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(s,t),this.handlingTap=!0,setTimeout(()=>{this.handlingTap=!1},0)}_click(t){const n=this._getChartElement(t);this._propagateClick(n,t)}_propagateClick(t,n){let s=t;for(;s;)s.click&&s.click(this,n),s=s.parent}_startHover(t,n){if(this._suppressHover)return!1;let s=this._drawingChartElement(t,n,function(c){return(c.hover||c.over)&&!(c instanceof Za)});return this._showInactiveOpacity(s,n),s}_displayTooltip(t){U({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)}_displayInactiveOpacity(t,n,s){const c=this._activeChartInstance=this._chartInstanceFromPoint(t);if(c)if(n)this._updateSeriesOpacity(t),this._applySeriesOpacity(c.children,null,!0),this._applySeriesOpacity(c.children,t.series),this._highlight.show(s||t);else{let p;if(!c.supportsPointInactiveOpacity())return void this._highlight.show(t);p=this._getInactivePoints(t,c),p&&p.length&&this._highlight.show(p,1-this._getInactiveOpacityForSeries(t.series))}}_getInactivePoints(t,n){return this._getAllPointsOfType(n,t.constructor).filter(c=>c!==t)}_getAllPointsOfType(t,n){let s=[];for(let c=0;c<t.children.length;c++){const p=t.children[c];p.constructor===n?s.push(p):p.children&&p.children.length&&(s=s.concat(this._getAllPointsOfType(p,n)))}return s}_updateHoveredPoint(t,n){const s=this._hoveredPoint;s&&s!==t&&(s.out(this,n),this._hoveredPoint=null),t&&s!==t&&t.over&&(this._hoveredPoint=t,t.over(this,n))}_updateDrilldownPoint(t){if(!t||!t.series)return;const{fields:n}=Mr.current.bindPoint(t.series,null,t.dataItem);n.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")}_resetDrilldownPoint(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)}_startDrilldown(t){if(!t||!t.series)return;const n=t.series,{fields:s}=Mr.current.bindPoint(n,null,t.dataItem),c=s.drilldown;c&&this.trigger("drilldown",{series:n,point:t,value:c,sender:this})}_updateSeriesOpacity(t,n){const s=this._plotArea,c=s.series.length;for(let p=0;p<c;p++){const S=s.series[p],k=this._getDefaultOpacityForSeries(S),$=this._getInactiveOpacityForSeries(S);n||S===t.series?(S.opacity=k,S.line&&(S.line.opacity=k)):(S.defaultOpacity=k,S.opacity=$,S.line&&(S.line.opacity=$))}}_applySeriesOpacity(t,n,s,c){for(let p=0;p<t.length;p++){const S=t[p],k=S.series||c;k&&(k.highlight||{}).visible&&S.visual&&(k!==n||s)&&S.visual.opacity(s?1:c?c.opacity:S.series.opacity),S.children&&S.children.length&&this._applySeriesOpacity(S.children,n,s,S.series)}}_chartInstanceFromPoint(t){let n=t.parent;for(;n&&!n.plotArea;)n=n.parent;return n}_showInactiveOpacity(t,n){const s=this._activePoint,c=this._plotArea.series.length>1,p=this._hasInactiveOpacity();return this._updateHoveredPoint(t,n),t&&s!==t&&t.hover&&(this._activePoint=t,!this._sharedTooltip()&&!t.hover(this,n)&&(this._displayTooltip(t),p?this._displayInactiveOpacity(t,c):this._highlight.show(t))),t}_hideInactiveOpacity(t){const n=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(n&&this._activeChartInstance&&(this._updateSeriesOpacity(t,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)}_hasInactiveOpacity(){let t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,n=this.options.series.filter(s=>void 0!==s.highlight.inactiveOpacity).length>0;return t||n}_getInactiveOpacityForSeries(t){return t.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||t.opacity||1}_getDefaultOpacityForSeries(t){return t.defaultOpacity||t.opacity||1}_mouseover(t){const n=this._startHover(t.element,t.originalEvent);n&&n.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),_s(document,{[qp]:this._mouseMoveTrackHandler}))}_mouseMoveTracking(t){const{options:n,_tooltip:s,_highlight:c,_activePoint:p}=this,S=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(S)){if(p&&p.tooltipTracking&&p.series&&p.parent.getNearestPoint){const k=p.parent.getNearestPoint(S.x,S.y,p.seriesIx);k&&k!==p&&(this._activePoint=k,k.hover(this,t)||(U({},n.tooltip,k.options.tooltip).visible&&s.show(k),c.show(k)))}}else Qe(document,{[qp]:this._mouseMoveTrackHandler}),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(p)}_mousemove(t){const n=this._eventCoordinates(t),s=this._plotArea;if(this._trackCrosshairs(n),s.hover){const c=s.backgroundContainsPoint(n);c?(this._plotAreaHovered=!0,this._plotArea.hover(this,t)):this._plotAreaHovered&&!c&&(this._plotAreaHovered=!1,this.trigger(dr))}this._sharedTooltip()&&this._trackSharedTooltip(n,t)}_trackCrosshairs(t){const n=this._plotArea.crosshairs;for(let s=0;s<n.length;s++){const c=n[s];c.box.containsPoint(t)?c.showAt(t):c.hide()}}_trackSharedTooltip(t,n,s){if(this._suppressHover)return;const{options:{tooltip:c},_plotArea:p,_plotArea:{categoryAxis:S},_tooltip:k,_highlight:$}=this;if(p.backgroundContainsPoint(t)){const me=S.pointCategoryIndex(t);if(me!==this._tooltipCategoryIx||!this._sharedHighlight&&s){const Ve=p.pointsByCategoryIndex(me),_t=Ve.map(function(Wn){return Wn.eventArgs(n)}),Vt=_t[0]||{};Vt.categoryPoints=_t,Ve.length>0&&!this.trigger(xi,Vt)?(c.visible&&k.showAt(Ve,t),$.show(Ve),this._sharedHighlight=!0):k.hide(),this._tooltipCategoryIx=me}else s&&this._sharedHighlight&&($.hide(),k.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&($.hide(),k.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}hideElements(t){const n=this._plotArea;this._mousemove.cancel(),n.hideCrosshairs(),this._unsetActivePoint(t)}_unsetActivePoint(t){const{_tooltip:n,_highlight:s}=this;this._activePoint=null,this._hoveredPoint=null,n&&!(t&&t.keepTooltipOpen)&&n.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,s&&s.hide()}_deferRedraw(){this._redraw()}_clearRedrawTimeout(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}bindCategories(){const n=[].concat(this.options.categoryAxis);for(let s=0;s<n.length;s++){const c=n[s];!1!==c.autoBind&&this.bindCategoryAxisFromSeries(c,s)}}bindCategoryAxisFromSeries(t,n){const s=this.options.series,c=s.length,p=new mi;let $,S=[],k=!1;for(let me=0;me<c;me++){const Ve=s[me],Vt=Ve.data,Wn=Vt.length,si=Ve.categoryField&&(Ve.categoryAxis===t.name||!Ve.categoryAxis&&0===n);if(k=si||k,si&&Wn>0){$=Su(t,El(Ve.categoryField,Vt[0]));const Ri=$?Ec:El;for(let ts=0;ts<Wn;ts++){const Os=Vt[ts],Zs=Ri(Ve.categoryField,Os,this.chartService.intl);($||!p.get(Zs))&&(S.push([Zs,Os]),$||p.set(Zs,!0))}}}if(S.length>0){$&&(S=function v_(g,t=lr){const n=function nf(g,t=lr){for(let n=1,s=g.length;n<s;n++)if(t(g[n],g[n-1])<0){g.sort(t);break}return g}(g,t),s=n.length,c=s>0?[n[0]]:[];for(let p=1;p<s;p++)0!==t(n[p],Pt(c))&&c.push(n[p]);return c}(S,function(Ve,_t){return lr(Ve[0],_t[0])}));const me=function X2(g){const t=g.length,n=[];for(let s=0;s<t;s++){const c=g[s],p=c.length;for(let S=0;S<p;S++)n[S]=n[S]||[],n[S].push(c[S])}return n}(S);t.categories=me[0]}else k&&(t.categories=[])}_isBindable(t){const n=Mr.current.valueFields(t);let s=!0;for(let c=0;c<n.length;c++){let p=n[c];if(p===lt?p="field":p+="Field",!ei(t[p])){s=!1;break}}return s}_noTransitionsRedraw(){const t=this.options;let n;!1!==t.transitions&&(t.transitions=!1,n=!0),this._redraw(),n&&(t.transitions=!0)}_legendItemHover(t,n){const{_plotArea:s,_highlight:c}=this,p=(s.srcSeries||s.series)[t];let S;S=ui(p.type,[eu,qs,xa,Pa])?s.findPoint(function(k){return k.series.index===t&&k.index===n}):s.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&p.visible&&S?this._displayInactiveOpacity(S.length?S[0]:S,s.series.length>1,S):c.show(S)}_shouldAttachMouseMove(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Io,dr])}updateMouseMoveHandler(){Qe(this.element,{[qp]:this._mousemove}),this._shouldAttachMouseMove()&&_s(this.element,{[qp]:this._mousemove})}applyOptions(t,n){sf(this._originalOptions,t),this._originalOptions=U(this._originalOptions,t),this.options=U({},this._originalOptions),n&&(this._theme=n,this.chartService.theme=n),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}setOptions(t,n){this.applyOptions(t,n),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}setDirection(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()}setIntlService(t){this.chartService.intl=t}noTransitionsRedraw(){this._noTransitionsRedraw()}destroy(){this._destroyed=!0,Qe(this.element,{[ef]:this._clickHandler,[nd]:this._mousewheelHandler,[qp]:this._mousemove,[tf]:this._mouseleaveHandler}),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Qe(document,{[qp]:this._mouseMoveTrackHandler}),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}_destroySurface(){const t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)}_destroySelections(){const t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()}_destroyView(){const t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._resetDrilldownPoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}function J2(g,t){if(g)for(let n=0;n<g.length;n++)if(g[n].category===t)return[g[n]]}function a1(g){delete g.bar,delete g.column,delete g.rangeColumn,delete g.line,delete g.verticalLine,delete g.pie,delete g.donut,delete g.area,delete g.verticalArea,delete g.scatter,delete g.scatterLine,delete g.bubble,delete g.candlestick,delete g.ohlc,delete g.boxPlot,delete g.bullet,delete g.verticalBullet,delete g.polarArea,delete g.polarLine,delete g.radarArea,delete g.radarLine,delete g.waterfall}function Jf(g){const t={};for(let n=0;n<g.length;n++){const s=g[n],c=s.options.name;c&&(t[c]=s.range())}return t}const q2=["data","categories"];function sf(g,t){for(let n in t)if(!ui(n,q2)&&t.hasOwnProperty(n)){const s=t[n],c=g[n];if(ei(c)){const p=null===s;p||!ei(s)?(delete g[n],p&&delete t[n]):c&&gt(s)&&gt(c)&&sf(c,s)}}}function rf(g){for(let t=0;t<g.length;t++)g[t].notifyRender()}ni(eg,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:cs,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});const Qf=eg,jh=class c1 extends $p{_slotAnchor(t,n){const c=this.plotArea.categoryAxis.options.vertical,p=c?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};let S;return S=c?new Qs(this.plotArea.box.x2,n.center().y):new Qs(n.center().x,-2),{point:S,align:p}}_defaultAnchor(t,n){return this._slotAnchor({},n)}},af=[Fe,hi];function t0(g){const t=[];for(let n=0;n<g.length;n++){const s=g[n];t[n]=s.style.display,s.style.display="none"}return t}function tg(g,t){for(let n=0;n<g.length;n++)g[n].style.display=t[n]}function Hy(g){return fi(g)?[g]:g}ni(class y_ extends Qf{_setElementClass(t){Ht(t,"k-sparkline")}_initElement(t){super._initElement(t),this._initialWidth=Math.floor(As(t).width)}_resize(){const t=this.element,n=t0(t.childNodes);this._initialWidth=Math.floor(As(t).width),tg(t.childNodes,n),super._resize()}_modelOptions(){const t=this.options,n=this._surfaceWrap(),s=t0(n.childNodes),c=document.createElement("span");c.innerHTML="&nbsp;",n.appendChild(c);const p=U({width:this._autoWidth,height:As(n).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return As(n,{width:p.width,height:p.height}),n.removeChild(c),tg(n.childNodes,s),this.surface&&this.surface.resize(),p}_surfaceWrap(){if(!this.stage){const t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage}_createPlotArea(t){const n=super._createPlotArea(t);return this._autoWidth=this._initialWidth||this._calculateWidth(n),n}_calculateWidth(t){const n=this.options,s=St(n.chartArea.margin),c=t.charts,p=this._surfaceWrap();let S=0;for(let $=0;$<c.length;$++){const me=c[$],Ve=(me.options.series||[])[0];if(!Ve)continue;if(Ve.type===Fe)return 150;if(Ve.type===hi)return 150;if(Ve.type===eu)return As(p).height;const _t=me.categoryAxis;if(_t){const Vt=_t.categoriesCount()*(!me.options.isStacked&&ui(Ve.type,[cs,td])?me.seriesOptions.length:1);S=Math.max(S,Vt)}}let k=S*n.pointWidth;return k>0&&(k+=s.left+s.right),k}_createSharedTooltip(t){return new jh(this._plotArea,t)}static normalizeOptions(t){let n=Hy(t);return n=An(n)?{seriesDefaults:{data:n}}:U({},n),n.series||(n.series=[{data:Hy(n.data)}]),U(n,{seriesDefaults:{type:n.type}}),(ui(n.series[0].type,af)||ui(n.seriesDefaults.type,af))&&(n=U({},{categoryAxis:{crosshair:{visible:!1}}},n)),n}},{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});const Dr=class Xb extends lo{setup(){this._initialOpacity=parseFloat(jn(this.element,"opacity").opacity)}step(t){jn(this.element,{opacity:String(Di(this._initialOpacity,0,t))})}abort(){super.abort(),jn(this.element,{display:"none",opacity:String(this._initialOpacity)})}cancel(){super.abort(),jn(this.element,{opacity:String(this._initialOpacity)})}};function u1(g,t){const n=document.createElement("div");return n.className=g,t&&(n.style.cssText=t),n}class n0 extends Xi.Z{constructor(t,n,s){super(),this.options=U({},this.options,s),this.container=t,this.chartService=n;const c=jn(t,["paddingLeft","paddingTop"]);this.chartPadding={top:c.paddingTop,left:c.paddingLeft},this.createElements(),t.appendChild(this.element)}createElements(){const t=this.element=u1("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),n=this.tooltip=u1("k-tooltip k-chart-tooltip"),s=this.scroll=u1("k-scroll");n.innerHTML="&nbsp;",t.appendChild(n),t.appendChild(s)}show(t,n,s){const{element:c,options:p,scroll:S,tooltip:k}=this,$=Ms(no(t)+no(n-t)/2),me=.4*s.width(),Ve=s.center().x-me,si=(s.center().x-Ve)/(p.max-p.min),Ri=$-p.min;let ts=this.chartService.intl.format(p.format,t,n);const Os=pt(p);this.clearHideTimeout(),this._visible||(jn(c,{visibility:"hidden",display:"block"}),this._visible=!0),Os&&(ts=Os({from:t,to:n})),k.innerHTML=ts,jn(k,{left:s.center().x-k.offsetWidth/2,top:s.y1});const Zs=jn(k,["marginTop","borderTopWidth","height"]);jn(S,{width:me,left:Ve+Ri*si,top:s.y1+Zs.marginTop+Zs.borderTopWidth+Zs.height/2}),jn(c,{visibility:"visible"})}clearHideTimeout(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}hide(){this.clearHideTimeout(),this._hideTimeout=setTimeout(()=>{this._visible=!1,this._hideAnimation=new Dr(this.element),this._hideAnimation.setup(),this._hideAnimation.play()},this.options.hideDelay)}destroy(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}ni(n0,{format:"{0:d} - {1:d}",hideDelay:500});const s0=n0,Ou="_navigator",Yh=Ou,ng="_default";class Nl extends Xi.Z{constructor(t){super(),this.chart=t;const n=this.options=U({},this.options,t.options.navigator),s=n.select;s&&(s.from=this.parseDate(s.from),s.to=this.parseDate(s.to)),ei(n.hint.visible)||(n.hint.visible=n.visible),this.chartObserver=new gs(this,{[_r]:"_drag",[Kr]:"_dragEnd",[ol]:"_zoom",[fl]:"_zoomEnd"}),t.addObserver(this.chartObserver)}parseDate(t){return Sr(this.chart.chartService.intl,t)}clean(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}destroy(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}redraw(){this._redrawSelf(),this.initSelection()}initSelection(){const{chart:t,options:n}=this,s=this.mainAxis(),{min:c,max:p}=s.roundedRange(),{from:S,to:k,mousewheel:$}=n.select,me=function o0(g){return Vy.prototype=g,new Vy}(s);0!==s.categoriesCount()&&(this.clean(),me.box=s.box,this.selection=new Am(t,me,{min:c,max:p,from:S||c,to:k||p,mousewheel:Et($,{zoom:"left"}),visible:n.visible},new gs(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),n.hint.visible&&(this.hint=new s0(t.element,t.chartService,{min:c,max:p,template:pt(n.hint),format:n.hint.format})))}setRange(){const n=this.chart._createPlotArea(!0).namedCategoryAxes[Yh],{min:s,max:c}=n.roundedRange(),p=this.options.select||{};let S=p.from||s;S<s&&(S=s);let k=p.to||c;k>c&&(k=c),this.options.select=U({},p,{from:S,to:k}),this.filterAxes()}_redrawSelf(t){const n=this.chart._plotArea;n&&n.redraw(Pt(n.panes),t)}redrawSlaves(){const t=this.chart,n=t._plotArea,s=n.panes.filter(c=>c.options.name!==Ou);n.srcSeries=t.options.series,n.options.categoryAxis=t.options.categoryAxis,n.clearSeriesPointsCache(),n.redraw(s)}_drag(t){const{chart:n,selection:s}=this,c=n._eventCoordinates(t.originalEvent),p=this.mainAxis(),S=p.roundedRange(),k=p.pane.box.containsPoint(c),me=t.axisRanges[n._plotArea.categoryAxis.options.name],Ve=this.options.select;let _t;if(!me||k||!s)return;_t=Ve.from&&Ve.to?no(Ve.to)-no(Ve.from):no(s.options.to)-no(s.options.from);const Vt=Ms(Be(no(me.min),S.min,no(S.max)-_t)),Wn=Ms(Be(no(Vt)+_t,no(S.min)+_t,S.max));this.options.select={from:Vt,to:Wn},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),s.set(Vt,Wn),this.showHint(Vt,Wn)}_dragEnd(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}readSelection(){const{selection:{options:{from:t,to:n}},options:{select:s}}=this;s.from=t,s.to=n}filterAxes(){const{options:{select:t={}},chart:n}=this,s=n.options.categoryAxis,{from:c,to:p}=t;for(let S=0;S<s.length;S++){const k=s[S];k.pane!==Ou&&(k.min=c,k.max=p)}}filter(){const{chart:t,options:{select:n}}=this;if(!t.requiresHandlers(["navigatorFilter"]))return;const s=this.mainAxis(),c={from:n.from,to:n.to};if("category"!==s.options.type){const p=new Aa(U({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[n.from,n.to]}),t.chartService).options;c.from=yo(p.min,-p.baseUnitStep,p.baseUnit),c.to=yo(p.max,p.baseUnitStep,p.baseUnit)}this.chart.trigger("navigatorFilter",c)}_zoom(t){const{chart:{_plotArea:{categoryAxis:n}},selection:s,options:{select:c,liveDrag:p}}=this,S=this.mainAxis();let k=t.delta;if(!s)return;const $=S.categoryIndex(s.options.from),me=S.categoryIndex(s.options.to),Ve=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(k)>1&&(k*=3),me-$>1?(s.zoom(k,Ve),this.readSelection()):(n.options.min=c.from,c.from=n.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),Ve).min),p&&(this.filterAxes(),this.redrawSlaves()),s.set(c.from,c.to),this.showHint(this.options.select.from,this.options.select.to)}_zoomEnd(t){this._dragEnd(t)}showHint(t,n){this.hint&&this.hint.show(t,n,this.chart._plotArea.backgroundBox())}_selectStart(t){return this.chart._selectStart(t)}_select(t){return this.showHint(t.from,t.to),this.chart._select(t)}_selectEnd(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)}mainAxis(){const t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Yh]}select(t,n){const s=this.options.select;return t&&n&&(s.from=this.parseDate(t),s.to=this.parseDate(n),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,n)),{from:s.from,to:s.to}}static setup(t={},n={}){if(t.__navi)return;t.__navi=!0;const s=U({},n.navigator,t.navigator),c=t.panes=[].concat(t.panes),p=U({},s.pane,{name:Ou});s.visible||(p.visible=!1,p.height=.1),"top"!==t.navigator.position?c.push(p):c.unshift(p),c.forEach(S=>S.name=S.name||ng),Nl.attachAxes(t,s),Nl.attachSeries(t,s,n)}static attachAxes(t,n){const s=n.series||[],c=t.categoryAxis=[].concat(t.categoryAxis),p=t.valueAxis=[].concat(t.valueAxis);c.concat(p).forEach(_t=>_t.pane=_t.pane||ng);const $=0===Ga(s,Cd).length,me=U({type:"date",pane:Ou,roundToBaseUnit:!$,justified:$,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:n.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),Ve=n.categoryAxis;c.push(U({},me,{maxDateGroups:200},Ve,{name:Yh,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),U({},me,Ve,{name:Yh+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),U({},me,Ve,{name:Yh+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),p.push(U({name:Yh,pane:Ou,majorGridLines:{visible:!1},visible:!1},n.valueAxis))}static attachSeries(t,n,s){const c=t.series=t.series||[],p=[].concat(n.series||[]),S=s.seriesColors,k=n.seriesDefaults;for(let $=0;$<p.length;$++)c.push(U({color:S[$%S.length],categoryField:n.dateField,visibleInLegend:!1,tooltip:{visible:!1}},k,p[$],{axis:Yh,categoryAxis:Yh,autoBind:n.autoBindElements}))}}function Vy(){}const S_=Nl;ni(class d1 extends Qf{applyDefaults(t,n){const s=As(this.element).width||600;let c=n;const p={seriesDefaults:{categoryField:t.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(s/28)}}};c&&(c=U({},c,p)),S_.setup(t,c),super.applyDefaults(t,c)}_setElementClass(t){Ht(t,"k-chart k-stockchart")}setOptions(t){this.destroyNavigator(),super.setOptions(t)}noTransitionsRedraw(){const t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t}_resize(){this.noTransitionsRedraw()}_redraw(){const t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()}_dirty(){const t=this.options,s=Gn([].concat(t.series,t.navigator.series),function(p){return p&&p.visible}).length,c=this._seriesCount!==s;return this._seriesCount=s,c}_fullRedraw(){let t=this.navigator;t||(t=this.navigator=new S_(this),this.trigger("navigatorCreated",{navigator:t})),t.clean(),t.setRange(),super._redraw(),t.initSelection()}_trackSharedTooltip(t){const s=this._plotArea.paneByPoint(t);s&&s.options.name===Ou?this._unsetActivePoint():super._trackSharedTooltip(t)}bindCategories(){super.bindCategories(),this.copyNavigatorCategories()}copyNavigatorCategories(){const t=[].concat(this.options.categoryAxis);let n;for(let s=0;s<t.length;s++){const c=t[s];c.name===Yh?n=c.categories:n&&c.pane===Ou&&(c.categories=n)}}destroyNavigator(){this.navigator&&(this.navigator.destroy(),this.navigator=null)}destroy(){this.destroyNavigator(),super.destroy()}_stopChartHandlers(t){const n=this._eventCoordinates(t),s=this._plotArea.paneByPoint(n);return super._stopChartHandlers(t)||s&&s.options.name===Ou}_toggleDragZoomEvents(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)}},{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var C_=_(3735),sg=_(95991),r0=_(68341),a0=_(49458),h1=_(86620);class Yy extends((0,r0.Z)((0,a0.Z)((0,h1.Z)(sg.Z)))){get nodeType(){return"Arc"}constructor(t=new fr.Z,n={}){super(n),this.geometry(t),(0,Fn.Z)(this.options.stroke)||this.stroke("#000")}_bbox(t){return this._geometry.bbox(t)}rawBBox(){return this.geometry().bbox()}toPath(){const t=new Ws.y,n=this.geometry().curvePoints();if(n.length>0){t.moveTo(n[0].x,n[0].y);for(let s=1;s<n.length;s+=3)t.curveTo(n[s],n[s+1],n[s+2])}return t}_containsPoint(t){return this.geometry().containsPoint(t)}_isOnPath(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}const Wy=Yy;var rg=_(38742);class Xf extends((0,r0.Z)((0,a0.Z)((0,h1.Z)(sg.Z)))){get nodeType(){return"Rect"}constructor(t=new Hs.Z,n={}){super(n),this.geometry(t),(0,Fn.Z)(this.options.stroke)||this.stroke("#000")}_bbox(t){return this._geometry.bbox(t)}rawBBox(){return this._geometry.bbox()}_containsPoint(t){return this._geometry.containsPoint(t)}_isOnPath(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}const l0=Xf;function ag(g,t,n,s,c){for(let p=0;p<g.length;p++){const S=g[p].clippedBBox();if(S){const k=S.origin.clone();k[s]=Uh(S.size[c],t,n||"start",s,c),gu(k,S,g[p])}}}function p1(g,t,n){ag(g,t,n,"x","width")}function c0(g,t,n){ag(g,t,n,"y","height")}function cf(g,t,n,s){if(g.length>1){const c=new js.Z;let p=g[0].bbox;for(let S=1;S<g.length;S++){let k=g[S].element,$=g[S].bbox;c[t]=p.origin[t]+p.size[s],c[n]=$.origin[n],gu(c,$,k),$.origin[t]=c[t],p=$}}}function bp(g){const t=[];for(let n=0;n<g.length;n++){let s=g[n],c=s.clippedBBox();c&&t.push({element:s,bbox:c})}return t}function $y(g){cf(bp(g),"x","y","width")}function u0(g){cf(bp(g),"y","x","height")}function lg(g,t,n,s,c){const p=function Zy(g,t,n){const s=t.size[n],c=[];let k,$,p=[],S=0;const me=function(){p.push({element:k,bbox:$})};for(let Ve=0;Ve<g.length;Ve++)if(k=g[Ve],$=k.clippedBBox(),$){let _t=$.size[n];S+_t>s?p.length?(c.push(p),p=[],me(),S=_t):(me(),c.push(p),p=[],S=0):(me(),S+=_t)}return p.length&&c.push(p),c}(g,t,c),S=t.origin.clone(),k=[];for(let $=0;$<p.length;$++){let me=p[$],Ve=me[0];S[s]=Ve.bbox.origin[s],gu(S,Ve.bbox,Ve.element),Ve.bbox.origin[n]=S[n],cf(me,n,s,c),k.push([]);for(let _t=0;_t<me.length;_t++)k[$].push(me[_t].element)}return k}function cg(g,t){return lg(g,t,"x","y","width")}function w_(g,t){return lg(g,t,"y","x","height")}function f1(g,t){const n=g.clippedBBox();if(n){const s=n.size,c=t.size;if(c.width<s.width||c.height<s.height){const p=Math.min(c.width/s.width,c.height/s.height),S=g.transform()||(0,Ho.Z)();S.scale(p,p),g.transform(S)}}}var ug=_(51086),m1=_(39290),g1=_(80327);let _1;class d0 extends Xi.Z{static get current(){return _1||(_1=new d0),_1}parse(t,n){const s=new Ws.w(n);return(0,g1.Z)(s,t)}}const Ky=d0;var Jy=_(64914);function v1(g){const t=new Sm({skipBaseHref:!0}),n=g.clippedBBox();let s=g;if(n){const p=n.getOrigin(),S=new vo.Z;S.transform((0,Ho.Z)().translate(-p.x,-p.y)),S.children.push(g),s=S}t.load([s]);const c=`<?xml version='1.0' ?><svg xmlns='${mm}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${t.render()}</svg>`;return t.destroy(),c}function qf(g,t){const n={width:"800px",height:"600px",cors:"Anonymous"};let s=g;const c=g.clippedBBox();if(c){const _t=c.getOrigin();s=new vo.Z,s.transform((0,Ho.Z)().translate(-_t.x,-_t.y)),s.children.push(g);const Vt=c.getSize();n.width=Vt.width+"px",n.height=Vt.height+"px"}const p=Object.assign(n,t),S=document.createElement("div"),k=S.style;k.display="none",k.width=p.width,k.height=p.height,document.body.appendChild(S);const $=new Qg(S,p);$.suspendTracking(),$.draw(s);const me=$.image(),Ve=()=>{$.destroy(),document.body.removeChild(S)};return me.then(Ve,Ve),me}var Qy=_(59852);function h0(g,t){let n=v1(g);return(!t||!t.raw)&&(n="data:image/svg+xml;base64,"+(0,Qy.Z)(n)),(0,$g.Z)().resolve(n)}const y1="arrowPointer",tm="barPointer",x_=Math.PI/180,Cp="inside",D_="linear",uf="outside",p0="radialPointer",E_="radialRangePointer";function fd(g,t){const n=g.getOrigin(),s=g.getSize(),c=St(t);return g.setOrigin([n.x-c.left,n.y-c.top]),g.setSize([s.width+(c.left+c.right),s.height+(c.top+c.bottom)]),g}const{Group:hg,Path:I_,Text:S1}=A;function f0(g,t){const n=g.box,s=g.children[0].box,c=t.border||{},p=t.background||"",S=I_.fromRect(new Hs.Z([n.x1,n.y1],[n.width(),n.height()]),{stroke:{}}),k=new S1(g.text,new js.Z(s.x1,s.y1),{font:t.font,fill:{color:t.color}}),$=fd(k.bbox().clone(),t.padding),me=I_.fromRect($,{stroke:{color:c.width?c.color:"",width:c.width,opacity:c.opacity,dashType:c.dashType,lineJoin:"round",lineCap:"round"},fill:{color:p}}),Ve=new hg;return Ve.append(S),Ve.append(me),Ve.append(k),Ve}function T_(g,t,n){const s=ei(g.from)?g.from:Ln,c=ei(g.to)?g.to:_n;return g.from=Math.max(Math.min(c,s),t),g.to=Math.min(Math.max(c,s),n),g}function C1(g,t){const n=St(t);return n.left=-n.left,n.top=-n.top,n.right=-n.right,n.bottom=-n.bottom,fd(g,n)}const{Path:m0,Surface:g0}=A;class qy extends Xi.Z{constructor(t,n,s,c={}){super(),this.element=t,this.theme=s,this.contextService=new er(this,c),this._originalOptions=U({},this.options,n),this.options=U({},this._originalOptions),this._initTheme(s),this.redraw()}destroy(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}value(t){const n=this.pointers[0];if(0===arguments.length)return n.value();n.value(t),this._setValueOptions(t)}_draw(){const t=this.surface;t.clear(),t.draw(this._visuals)}exportVisual(){return this._visuals}allValues(t){const n=this.pointers,s=[];if(0===arguments.length){for(let c=0;c<n.length;c++)s.push(n[c].value());return s}if(An(t))for(let c=0;c<t.length;c++)fi(t[c])&&n[c].value(t[c]);this._setValueOptions(t)}_setValueOptions(t){const n=[].concat(this.options.pointer),s=[].concat(t);for(let c=0;c<s.length;c++)n[c].value=s[c]}resize(){this.noTransitionsRedraw()}noTransitionsRedraw(){const t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)}redraw(){const t=this._surfaceSize(),n=new Hs.Z([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();const s=C1(n.bbox(),this._gaugeAreaMargin);this.reflow(s)}setOptions(t,n){this._originalOptions=U(this._originalOptions,t),this.options=U({},this._originalOptions),this._initTheme(n),this.redraw()}setDirection(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)}setIntlService(t){this.contextService.intl=t}_initTheme(t){let n=t||this.theme||{};this.theme=n,this.options=U({},n,this.options);const s=this.options,c=s.pointer;if(An(c)){const p=[];for(let S=0;S<c.length;S++)p.push(U({},n.pointer,c[S]));s.pointer=p}}_createGaugeArea(){const t=this.options.gaugeArea,n=this.surface.size(),s=t.border||{};let c=new Hs.Z([0,0],[n.width,n.height]);return this._gaugeAreaMargin=t.margin||5,s.width>0&&(c=C1(c,s.width)),m0.fromRect(c,{stroke:{color:s.width?s.color:"",width:s.width,dashType:s.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})}_initSurface(){const{options:t,surface:n}=this,s=this._surfaceElement(),c=this._surfaceSize();As(s,c),n&&n.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(n&&n.destroy(),this.surface=g0.create(s,{type:t.renderAs}))}_surfaceSize(){const t=this.options,n=this._getSize();return t.gaugeArea&&U(n,t.gaugeArea),n}_surfaceElement(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}getSize(){return this._getSize()}_getSize(){const t=this.element,n=this._defaultSize();let s=t.offsetWidth,c=t.offsetHeight;return s||(s=n.width),c||(c=n.height),{width:s,height:c}}_defaultSize(){return{width:200,height:200}}_toggleTransitions(t){this.options.transitions=t;for(let n=0;n<this.pointers.length;n++)this.pointers[n].options.animation.transitions=t}}ni(qy,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Zd=qy,{Path:k_,Group:O_}=A,A_=js.Z;function qb(g,t){const{position:n,tickX:s,tickY:c}=g;let p,S;return g.vertical?(p=new A_(s,n),S=new A_(s+t.size,n)):(p=new A_(n,c),S=new A_(n,c+t.size)),new k_({stroke:{color:t.color,width:t.width}}).moveTo(p).lineTo(S)}function eb(g,t,n,s){const c=t.length;if(s.visible){const{mirror:p,lineBox:S}=n;for(let k=s.skip;k<c;k+=s.step)k%s.skipUnit!=0&&(n.tickX=p?S.x2:S.x2-s.size,n.tickY=p?S.y1-s.size:S.y1,n.position=t[k],g.append(qb(n,s)))}}class tb extends Ya{constructor(t,n){let s=t||{};!ei(s.reverse)&&!1===s.vertical&&(n||{}).rtl&&(s=Object.assign({},s,{reverse:!0})),super(0,1,s,n),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}initUserOptions(t){let n=U({},this.options,t);return n=U({},n,{labels:{mirror:n.mirror}}),n.majorUnit=n.majorUnit||jr(n.min,n.max),n}initFields(){}render(){const t=this.elements=new O_,n=this.renderLabels(),s=this.renderLine(),c=this.renderTicks(),p=this.renderRanges();return t.append(s,n,c,p),t}renderRanges(){const t=this.options,{min:n,max:s,vertical:c,labels:{mirror:p}}=t,S=t.ranges||[],k=new O_,$=S.length,me=t.rangeSize||t.minorTicks.size/2;for(let Ve=0;Ve<$;Ve++){const _t=T_(S[Ve],n,s),Vt=this.getSlot(_t.from,_t.to),Wn=c?this.lineBox():Vt,si=c?Vt:this.lineBox();c?Wn.x1-=me*(p?-1:1):si.y2+=me*(p?-1:1),k.append(k_.fromRect(new Hs.Z([Wn.x1,si.y1],[Wn.x2-Wn.x1,si.y2-si.y1]),{fill:{color:_t.color,opacity:_t.opacity},stroke:{}}))}return k}renderLabels(){const{labels:t,options:n}=this,s=new O_;for(let c=0;c<t.length;c++)s.append(f0(t[c],n.labels));return s}renderLine(){const t=this.options.line,n=this.lineBox(),s=new O_;if(t.width>0&&t.visible){const c=new k_({stroke:{color:t.color,dashType:t.dashType,width:t.width}});c.moveTo(n.x1,n.y1).lineTo(n.x2,n.y2),s.append(c)}return s}renderTicks(){const t=new O_,n=this.options,s=n.majorTicks.visible?n.majorUnit:0,c={vertical:n.vertical,mirror:n.labels.mirror,lineBox:this.lineBox()};return eb(t,this.getMajorTickPositions(),c,n.majorTicks),eb(t,this.getMinorTickPositions(),c,U({},{skipUnit:s/n.minorUnit},n.minorTicks)),t}}ni(tb,{min:0,max:50,majorTicks:{size:15,align:Cp,color:Ze,width:.5,visible:!0},minorTicks:{size:10,align:Cp,color:Ze,width:.5,visible:!0},line:{width:.5},labels:{position:Cp,padding:2},mirror:!1,_alignLines:!1});const eS=tb;class nb extends Xi.Z{constructor(t,n){super();const{min:s,max:c}=t.options,p=this.options=U({},this.options,n);p.fill=p.color,this.scale=t,p.value=ei(p.value)?Be(p.value,s,c):s}value(t){const n=this.options;if(0===arguments.length)return n.value;const{min:c,max:p}=this.scale.options;n._oldValue=ei(n._oldValue)?n.value:c,n.value=Be(t,c,p),this.elements&&this.repaint()}}ni(nb,{color:Ze});const _0=nb;class ib extends _0{constructor(t,n){super(t,n),this.options=U({track:{visible:ei(n.track)}},this.options)}reflow(){const{options:t,scale:n}=this,{mirror:s,vertical:c}=n.options,p=n.lineBox(),S=t.track.size||t.size,k=t.size/2,$=St(t.margin);let Ve,_t,Vt,me=c?$[s?"left":"right"]:$[s?"bottom":"top"];me=s?-me:me,c?(Vt=new vs(p.x1+me,p.y1,p.x1+me,p.y2),s?Vt.x1-=S:Vt.x2+=S,t.shape!==tm&&(_t=new vs(p.x2+me,p.y1-k,p.x2+me,p.y2+k),Ve=_t)):(Vt=new vs(p.x1,p.y1-me,p.x2,p.y1-me),s?Vt.y2+=S:Vt.y1-=S,t.shape!==tm&&(_t=new vs(p.x1-k,p.y1-me,p.x2+k,p.y1-me),Ve=_t)),this.trackBox=Vt,this.pointerRangeBox=_t,this.box=Ve||Vt.clone().pad(t.border.width)}getElementOptions(){const t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:ei(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}}_margin(){const{scale:t,options:n}=this,{mirror:s,vertical:c}=t.options,p=St(n.margin);return c?p[s?"left":"right"]:p[s?"bottom":"top"]}}ni(ib,{shape:tm,track:{border:{width:1}},color:Ze,border:{width:1},opacity:1,margin:St(3),animation:{type:tm},visible:!0});const sb=ib;class w1 extends lo{setup(){const t=this.options,{margin:n,from:s,to:c,vertical:p}=t,S=p?"x1":"y1";t.mirror===p?(s[S]-=n,c[S]-=n):(s[S]+=n,c[S]+=n);const k=this.fromScale=new js.Z(s.x1,s.y1),$=this.toScale=new js.Z(c.x1,c.y1);0!==t.duration&&(t.duration=Math.max(k.distanceTo($)/t.duration*1e3,1))}step(t){const n=Di(this.fromScale.x,this.toScale.x,t),s=Di(this.fromScale.y,this.toScale.y,t);this.element.transform(Ho.Z().translate(n,s))}}ni(w1,{easing:D_,duration:250}),or.current.register(y1,w1);const ob=w1,pg=js.Z,rb=Ws.y,ab=class v0 extends sb{constructor(t,n){super(t,n),ei(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}pointerShape(){const{scale:t,options:{size:n}}=this,s=n/2,c=t.options.mirror?-1:1;let p;return p=t.options.vertical?[new pg(0,0-s),new pg(0-c*n,0),new pg(0,0+s)]:[new pg(0-s,0),new pg(0,0+c*n),new pg(0+s,0)],p}repaint(){const{scale:t,options:n}=this,s=new ob(this.elements,U(n.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(n.margin),from:t.getSlot(n._oldValue),to:t.getSlot(n.value)}));!1===n.animation.transitions&&(s.options.duration=0),s.setup(),s.play()}render(){const{scale:t,options:n}=this,s=this.getElementOptions(),c=this.pointerShape(n.value);n.animation.type=y1;const p=new rb({stroke:s.stroke,fill:s.fill}).moveTo(c[0]).lineTo(c[1]).lineTo(c[2]).close(),S=t.getSlot(n.value);return p.transform(Ho.Z().translate(S.x1,S.y1)),this.elements=p,p}};class y0 extends lo{setup(){const t=this.options,n=this.axis=t.vertical?yi:Qt,s=this.to=t.newPoints[0][n],c=this.from=t.oldPoints[0][n];0!==t.duration&&(t.duration=Math.max(Math.abs(s-c)/t.speed*1e3,1)),this._set(c)}step(t){const n=Di(this.from,this.to,t);this._set(n)}_set(t){const n="set"+this.axis.toUpperCase(),s=this.options.newPoints;s[0][n](t),s[1][n](t)}}ni(y0,{easing:D_,speed:250}),or.current.register(tm,y0);const lb=y0,{Group:x1,Path:D1}=A,b0=class df extends sb{constructor(t,n){super(t,n),ei(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}pointerShape(t){const{scale:n,options:s}=this,{mirror:c,vertical:p}=n.options,S=c===p?-1:1,k=s.size*S,$=n.getSlot(n.options.min),me=n.getSlot(t),Ve=p?yi:Qt,_t=p?Qt:yi,Vt=this._margin()*S,Wn=new js.Z;Wn[Ve]=$[Ve+"1"],Wn[_t]=$[_t+"1"];const si=new js.Z;si[Ve]=me[Ve+"1"],si[_t]=me[_t+"1"],p?(Wn.translate(Vt,0),si.translate(Vt,0)):(Wn.translate(0,Vt),si.translate(0,Vt));const Ri=si.clone(),ts=Wn.clone();return p?(Ri.translate(k,0),ts.translate(k,0)):(Ri.translate(0,k),ts.translate(0,k)),[Wn,si,Ri,ts]}repaint(){const{scale:t,options:n}=this,s=this.pointerShape(n.value),c=this.pointerPath,p=this.pointerShape(n._oldValue);c.moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).lineTo(s[3]).close();const S=new lb(c,U(n.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[p[1],p[2]],newPoints:[s[1],s[2]]}));!1===n.animation.transitions&&(S.options.duration=0),S.setup(),S.play()}render(){const t=new x1,n=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());const s=this.pointerPath=new D1({stroke:n.stroke,fill:n.fill});return t.append(s),this.elements=t,t}renderTrack(){const t=this.options.track,n=t.border||{},s=this.trackBox.clone().pad(n.width||0);return new D1.fromRect(s.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:n.width?n.color||t.color:"",width:n.width,dashType:n.dashType}})}},E1=vo.Z;ni(class nS extends Zd{reflow(t){const n=this.pointers,s=t.origin.x,c=t.origin.y,p=new vs(s,c,s+t.width(),c+t.height());this.scale.reflow(p),this._shrinkScaleWidth(p);for(let S=0;S<n.length;S++)n[S].reflow();this.bbox=this._getBox(p),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()}_buildVisual(){const t=new E1,n=this.scale.render(),s=this.pointers;t.append(this.gaugeArea),t.append(n);for(let c=0;c<s.length;c++){const p=s[c];t.append(p.render()),p.value(p.options.value)}this._visuals=t}_createModel(){const t=this.options,n=this.scale=new eS(t.scale,this.contextService);this.pointers=[];let s=t.pointer;s=An(s)?s:[s];for(let c=0;c<s.length;c++){const p=U({},s[c],{animation:{transitions:t.transitions}});this.pointers.push(new("arrow"===p.shape?ab:b0)(n,p))}}_defaultSize(){const t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}}_getBox(t){const{scale:n,pointers:s}=this,c=t.center();let S,p=s[0].box.clone().wrap(n.box);for(let k=0;k<s.length;k++)p.wrap(s[k].box.clone());return n.options.vertical?(S=p.width()/2,p=new vs(c.x-S,t.y1,c.x+S,t.y2)):(S=p.height()/2,p=new vs(t.x1,c.y-S,t.x2,c.y+S)),p}_alignElements(){const{scale:t,pointers:n}=this,s=t.box,c=n[0].box.clone().wrap(t.box),p=this.bbox;for(let k=0;k<n.length;k++)c.wrap(n[k].box.clone());let S;t.options.vertical?(S=p.center().x-c.center().x,t.reflow(new vs(s.x1+S,p.y1,s.x2+S,p.y2))):(S=p.center().y-c.center().y,t.reflow(new vs(s.x1,s.y1+S,s.x2,s.y2+S)));for(let k=0;k<n.length;k++)n[k].reflow(this.bbox)}_shrinkScaleWidth(t){const{scale:n}=this;if(!n.options.vertical){const s=n.contentBox().width()-t.width();s>0&&(n.box.shrink(s,0),n.box.alignTo(t,"center"),n.reflow(n.box))}}_shrinkElements(){const{scale:t,pointers:n}=this,s=t.box.clone(),c=t.options.vertical?"y":"x",p=n[0].box;for(let S=0;S<n.length;S++)p.wrap(n[S].box.clone());s[c+1]+=Math.max(s[c+1]-p[c+1],0),s[c+2]-=Math.max(p[c+2]-s[c+2],0),t.reflow(s);for(let S=0;S<n.length;S++)n[S].reflow(this.bbox)}},{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const{Arc:I1,Path:iS,Group:im}=A;function C0(g,t,n,s){const c=new im,p=g.center,S=g.getRadiusX();if(s.visible)for(let k=0;k<t.length;k++){const $=g.pointAt(t[k]),me=new js.Z(p.x+S-s.size,p.y).rotate(t[k],p);c.append(new iS({stroke:{color:s.color,width:s.width}}).moveTo($).lineTo(me))}return c}function P_(g,t,n,s){return{from:g,to:t,color:n,opacity:s}}class sm extends Ya{constructor(t,n){super(0,1,t,n)}initUserOptions(t){const n=U({},this.options,t);return n.majorUnit=n.majorUnit||jr(n.min,n.max),n.minorUnit=n.minorUnit||n.majorUnit/10,n}initFields(){}render(t,n){const s=this.renderArc(t,n);this.bbox=s.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()}reflow(t){const n=t.center(),s=Math.min(t.height(),t.width())/2;if(!ei(this.bbox))return this.render(n,s);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()}slotAngle(t){const{min:n,max:s,reverse:c,startAngle:p,endAngle:S}=this.options,k=S-p;let $;return $=c?S-(t-n)/(s-n)*k:(t-n)/(s-n)*k+p,$+180}hasRanges(){const t=this.options.ranges;return t&&t.length}ticksSize(){const{majorTicks:t,minorTicks:n}=this.options;let s=0;return t.visible&&(s=t.size),n.visible&&(s=Math.max(n.size,s)),s}labelsCount(){let t=super.labelsCount();const n=this.options;return n.endAngle-n.startAngle>=360&&n.max%n.majorUnit==0&&(t-=1),t}renderLabels(){const t=this.options,n=this.arc.clone();let s=n.getRadiusX();const c=this.tickAngles(n,t.majorUnit),p=t.rangeSize=t.rangeSize||.1*s,S=new im;let k=.05*s;ei(t.rangeDistance)?k=t.rangeDistance:t.rangeDistance=k;const $=t.labels,me=$.position===Cp,Ve=ei(this.labelElements);me&&(s-=this.ticksSize(),this.hasRanges()&&!Ve&&(s-=p+k),n.setRadiusX(s).setRadiusY(s));const _t=this.labels,Vt=_t.length,Wn=St($.padding),si=(Wn.left+Wn.right)/2,Ri=(Wn.top+Wn.bottom)/2;for(let ts=0;ts<Vt;ts++){const Os=_t[ts],Zs=Os.box.width()/2,wr=Os.box.height()/2,_a=c[ts],ka=(_a-180)*x_,Ql=n.pointAt(_a),wc=Ql.x+Math.cos(ka)*(Zs+si)*(me?1:-1),Bc=Ql.y+Math.sin(ka)*(wr+Ri)*(me?1:-1);Os.reflow(new vs(wc-Zs,Bc-wr,wc+Zs,Bc+wr));const Pg=new js.Z(Os.box.x1,Os.box.y1);let yd;if(Ve){yd=this.labelElements.children[ts];const VS=yd.bbox().origin,vy=yd.transform()||Ho.Z();vy.translate(Pg.x-VS.x,Pg.y-VS.y),yd.transform(vy)}else yd=f0(Os,t.labels),S.append(yd);this.bbox=Hs.Z.union(this.bbox,yd.bbox())}return S}repositionRanges(){const t=this.ranges.children;if(t.length>0){const{rangeDistance:n,rangeSize:s}=this.options;let c=this.getRangeRadius();this.options.labels.position===Cp&&(c+=s+n);const p=c+s/2;for(let S=0;S<t.length;S++)t[S]._geometry.setRadiusX(p).setRadiusY(p);this.bbox=Hs.Z.union(this.bbox,this.ranges.bbox())}}renderRanges(){const t=this.rangeSegments(),n=t.length,s=new im;if(n){const{rangeSize:c,reverse:p,rangeDistance:S}=this.options,k=this.getRangeRadius();this.radius(this.radius()-c-S);for(let $=0;$<n;$++){const me=t[$],Ve=this.slotAngle(me[p?"to":"from"]),_t=this.slotAngle(me[p?"from":"to"]);_t-Ve!=0&&s.append(this.createRange(Ve,_t,k,me))}}return s}createRange(t,n,s,c){const p=this.options.rangeSize,S=new fr.Z(this.arc.center,{radiusX:s+p/2,radiusY:s+p/2,startAngle:t,endAngle:n});return new I1(S,{stroke:{width:p,color:c.color,opacity:c.opacity,lineCap:c.lineCap}})}rangeSegments(){const t=this.options,n=t.ranges||[],s=n.length,c=[];if(s){const{min:p,max:S,rangePlaceholderColor:k}=t;c.push(P_(p,S,k));for(let $=0;$<s;$++){const me=T_(n[$],p,S),Ve=c.length;for(let _t=0;_t<Ve;_t++){const Vt=c[_t];if(Vt.from<=me.from&&me.from<=Vt.to){c.push(P_(me.from,me.to,me.color,me.opacity)),Vt.from<=me.to&&me.to<=Vt.to&&c.push(P_(me.to,Vt.to,k,me.opacity)),Vt.to=me.from;break}}}}return c}getRangeRadius(){const{arc:t,options:n}=this,{rangeSize:s,rangeDistance:c,majorTicks:{size:p}}=n;let S;return S=n.labels.position===uf?t.getRadiusX()-p-c-s:t.getRadiusX()-s,S}renderArc(t,n){const s=this.options;return this.arc=new fr.Z(t,{radiusX:n,radiusY:n,startAngle:s.startAngle+180,endAngle:s.endAngle+180})}renderTicks(){const{arc:t,options:n}=this,s=t.clone();this.majorTickAngles=this.tickAngles(t,n.majorUnit),this.majorTicks=C0(s,this.majorTickAngles,0,n.majorTicks);const c=new im;c.append(this.majorTicks);const p=n.majorTicks.size,S=n.minorTicks.size;if(this._tickDifference=p-S,n.labels.position===uf){const k=s.getRadiusX();s.setRadiusX(k-p+S).setRadiusY(k-p+S)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,n.minorUnit)),this.minorTicks=C0(s,this.minorTickAngles,0,n.minorTicks),c.append(this.minorTicks),c}normalizeTickAngles(t){const n=this.options,s=n.majorUnit/n.minorUnit;for(let c=t.length-1;c>=0;c--)c%s==0&&t.splice(c,1);return t}tickAngles(t,n){const s=this.options,S=t.endAngle-t.startAngle;let k=(s.max-s.min)/n,$=t.startAngle,me=S/k;s.reverse&&($+=S,me=-me),S>=360&&s.max%n==0&&(k-=1);const Ve=[];for(let _t=0;_t<k;_t++)Ve.push(Ke($,xt)),$+=me;return Ke($)<=t.endAngle&&Ve.push($),Ve}radius(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)}repositionTicks(t,n,s){const c=s&&this._tickDifference||0;let p=this.arc;const S=p.getRadiusX();s&&this.options.labels.position===uf&&0!==c&&(p=this.arc.clone(),p.setRadiusX(S-c).setRadiusY(S-c));for(let k=0;k<t.length;k++){const $=p.pointAt(n[k]),me=t[k].segments,Ve=$.x-me[0].anchor().x,_t=$.y-me[0].anchor().y;t[k].transform((new Ho.Z).translate(Ve,_t))}}}ni(sm,{min:0,max:100,majorTicks:{size:15,align:Cp,color:Ze,width:.5,visible:!0},minorTicks:{size:10,align:Cp,color:Ze,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:Cp,padding:2}});const fg=sm;class w0 extends lo{constructor(t,n){super(t,n);const s=this.options;s.duration=Math.max(Math.abs(s.newAngle-s.oldAngle)/s.duration*1e3,1)}step(t){const n=this.options,s=Di(n.oldAngle,n.newAngle,t);this.element.transform(Ho.Z().rotate(s,n.center))}}ni(w0,{easing:D_,duration:150}),or.current.register(p0,w0);const N_=w0,{Circle:D0,Group:T1,Path:L_}=A;class F_ extends _0{setAngle(t){this.elements.transform(Ho.Z().rotate(t,this.center))}repaint(){const{scale:t,options:n}=this,s=t.slotAngle(n._oldValue),c=t.slotAngle(n.value);!1===n.animation.transitions?this.setAngle(c):new N_(this.elements,U(n.animation,{oldAngle:s,newAngle:c})).play()}render(){const{scale:t,options:n}=this,s=new T1;return!1!==n.animation&&U(n.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),s.append(this._renderNeedle(),this._renderCap()),this.elements=s,this.setAngle(x_),s}reflow(t){const n=this.center=t.center,s=Be(this.options.length||1,.1,1.5),c=this.radius=t.getRadiusX()*s,p=this.capSize=Math.round(c*this.options.cap.size);this.bbox=Hs.Z.fromPoints(new js.Z(n.x-p,n.y-p),new js.Z(n.x+p,n.y+p))}_renderNeedle(){const t=this.scale.options.minorTicks.size,n=this.center,s=this.options.color,c=new L_({fill:{color:s},stroke:{color:s,width:.5}});return c.moveTo(n.x+this.radius-t,n.y).lineTo(n.x,n.y-this.capSize/2).lineTo(n.x,n.y+this.capSize/2).close(),c}_renderCap(){const t=this.options,n=t.cap.color||t.color,s=new ms.Z(this.center,this.capSize);return new D0(s,{fill:{color:n},stroke:{color:n}})}}ni(F_,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:p0,duration:150}});const E0=F_,I0=vo.Z;ni(class T0 extends Zd{reflow(t){const n=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(let s=0;s<n.length;s++)n[s].reflow(this.scale.arc),this._initialPlotArea=Hs.Z.union(this._initialPlotArea,n[s].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,n,this.scale),this._draw()}_buildVisual(t,n,s){const c=this._visuals=new I0;c.append(t),c.append(s.ticks),c.append(s.ranges),this._buildPointers(n),c.append(s.labelElements)}_buildPointers(t){for(let n=0;n<t.length;n++){const s=t[n];s.render(),this._visuals.append(s.elements),s.value(s.options.value)}}fitScale(t){const n=this.scale.arc,c=Math.abs(this.getDiff(this._initialPlotArea,t));let k,$,me,Ve,_t,p=Ke(c,xt),S=Ke(-c,xt),Vt=0,Wn=0;for(;Wn++<100&&(Vt=_t===me?Vt+1:0,!(Vt>5||p!==Ve&&(k=this.getPlotBox(p,t,n),0<=k&&k<=2)||S!==Ve&&(me=this.getPlotBox(S,t,n),0<=me&&me<=2)||(Ve=k>0&&me>0?2*p:k<0&&me<0?2*S:Ke((p+S)/2||1,xt),$=this.getPlotBox(Ve,t,n),0<=$&&$<=2)));)_t=me,$>0?(S=Ve,me=$):(p=Ve,k=$)}getPlotBox(t,n,s){const c=this.scale,p=this.pointers,S=s.getRadiusX(),k=s.clone();k.setRadiusX(S+t).setRadiusY(S+t),c.arc=k,c.reflow(n),this.plotBbox=c.bbox;for(let $=0;$<p.length;$++)p[$].reflow(k),this.plotBbox=Hs.Z.union(this.plotBbox,p[$].bbox);return this.getDiff(this.plotBbox,n)}getDiff(t,n){return Math.min(n.width()-t.width(),n.height()-t.height())}alignScale(t){const n=this.plotBbox.center(),s=t.center(),c=n.x-s.x,p=n.y-s.y,{scale:S,pointers:k}=this;S.arc.center.x-=c,S.arc.center.y-=p,S.reflow(t);for(let $=0;$<k.length;$++)k[$].reflow(S.arc),this.plotBbox=Hs.Z.union(S.bbox,k[$].bbox)}_createModel(){const t=this.options,n=t.pointer,s=this.scale=new fg(t.scale,this.contextService);this.pointers=[];const c=An(n)?n:[n];for(let p=0;p<c.length;p++){const S=new E0(s,U({},c[p],{animation:{transitions:t.transitions}}));this.pointers.push(S)}}},{transitions:!0,gaugeArea:{background:""}}),ni(class M1 extends fg{rangeSegments(){const{min:t,max:n,rangePlaceholderColor:s,rangeLineCap:c}=this.options;return[{from:t,to:n,color:s,lineCap:c}]}hasRanges(){return!0}placeholderRangeAngle(t){const n=this.ranges.children[0].geometry();this.options.reverse?n.setEndAngle(t):n.setStartAngle(t)}addRange(t,n,s){const c=this.options.reverse,p=this.slotAngle(c?n:t),S=this.slotAngle(c?t:n),k=this.createRange(p,S,this.getRangeRadius(),s);return this.ranges.append(k),k}},{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});class mg extends lo{constructor(t,n){super(t,n);const s=this.options,c=Math.abs(s.newAngle-s.oldAngle)/s.duration*1e3;s.duration=Be(c,150,800);const p=t.elements.options.get("stroke.color"),S=t.currentColor();p!==S&&(this.startColor=new os.Z(p),this.color=new os.Z(S))}step(t){const{options:n,startColor:s,color:c}=this,p=Di(n.oldAngle,n.newAngle,t);if(this.element.angle(p),c){const S=Ke(Di(s.r,c.r,t)),k=Ke(Di(s.g,c.g,t)),$=Ke(Di(s.b,c.b,t));this.element.stroke(new os.Z(S,k,$).toHex())}}}ni(mg,{easing:D_,duration:150}),or.current.register(E_,mg);const sS=mg;ni(class oS extends _0{repaint(){const{scale:t,options:n}=this,s=t.slotAngle(n._oldValue),c=t.slotAngle(n.value);this.animation&&this.animation.abort(),!1===n.animation.transitions?(this.angle(c),this.stroke(this.currentColor())):(this.animation=new sS(this,U(n.animation,{oldAngle:s,newAngle:c})),this.animation.play())}angle(t){const n=this.elements.geometry();this.scale.options.reverse?n.setStartAngle(t):n.setEndAngle(t),this.scale.placeholderRangeAngle(t)}stroke(t){this.elements.stroke(t)}render(){if(this.elements)return;const{scale:t,options:n}=this;!1!==n.animation&&U(n.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:n.opacity,lineCap:t.options.rangeLineCap})}currentColor(){const{min:t,max:n}=this.scale.options,{colors:s,color:c,value:p}=this.options,S=fi(p)?p:t;if(s)for(let k=0;k<s.length;k++){const{color:$,from:me=t,to:Ve=n}=s[k];if(me<=S&&S<=Ve)return $}return c}reflow(){this.render(),this.bbox=this.elements.bbox()}},{animation:{type:E_,duration:150}});class Wh extends Xi.Z{constructor(t){super(),this.setOptions(t),this.initProperties()}initProperties(){}setOptions(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0}encode(t,n,s){const c=ei(t)?String(t):t;return this.initValue(c,n,s),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}}initValue(){}addQuietZone(){this.pattern.push(this.options.quietZoneLength||10)}addData(){}invalidCharacterError(t){throw new Error(`Character "${t}" is not valid for symbology ${this.name}.`)}}ni(Wh,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});const k1=Object.assign;class O1 extends Wh{initProperties(){super.initProperties(),k1(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})}initValue(t,n){this.pattern=[],this.value=t,this.width=n,this.totalUnits=0}addData(){const t=this.value;this.addPattern(this.START);for(let n=0;n<t.length;n++)this.addCharacter(t.charAt(n));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addCheckSum(){const t=this.value;let n=t.length;const s=this.getWeightedSum(t,n,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(s),this.addPattern(this.characterMap[s]),n++,n>=this.kCheckSumMinLength){let c=(s+this.getWeightedSum(t,n,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=c,this.addPattern(this.characterMap[c])}}getWeightedSum(t,n,s){let c=0;for(let p=0;p<t.length;p++)c+=this.weightedValue(this.getValue(t.charAt(p)),n,p,s);return c}weightedValue(t,n,s,c){return((n-s)%c||c)*t}getValue(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)}addCharacter(t){const n=this.getValue(t);this.addPattern(this.characterMap[n])}addPattern(t){let n;for(let s=0;s<t.length;s++)n=parseInt(t.charAt(s),10),this.pattern.push(n),this.totalUnits+=n}}ni(O1,{addCheckSum:!0});const z_=Object.assign;class B_ extends Wh{initProperties(){super.initProperties(),z_(this,{minBaseUnitLength:.7})}addData(){const t=this.value;this.addStart();for(let n=0;n<t.length;n++)this.addCharacter(t.charAt(n));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()}addCharacter(t){const n=this.characterMap[t];n||this.invalidCharacterError(t),this.addBase(n)}addBase(){}}class hf extends B_{initProperties(){super.initProperties(),z_(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})}initValue(t,n,s){this.width=n,this.height=s,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""}prepareValues(){const t=this.minBaseUnitLength,n=this.minRatio,s=Math.ceil(Math.max(.15*this.width,24));let c,p=this.maxRatio;if(this.height<s)throw new Error(`Insufficient height for Code39 encoding: the current height is ${this.height}px and the minimum height is ${s}px.`);for(c=this.getBaseUnit(p);c<t&&p>n;)p=parseFloat((p-.1).toFixed(1)),c=this.getBaseUnit(p);if(c<t){let S=Math.ceil(this.getBaseWidth(n)*t);throw new Error(`Insufficient width for Code39 encoding: the current width is ${this.width}px and the minimum width for value "${this.value}" is ${S}px.`)}this.ratio=p,this.baseUnit=c,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,p).split(this.splitCharacter))}getBaseUnit(t){return this.width/this.getBaseWidth(t)}getBaseWidth(t){return this.quietZoneLength+3*(t+2)*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()}addBase(t){this.addPattern(t.pattern),this.addCharacterGap()}addStop(){this.addPattern(this.characterMap.START.pattern)}addPattern(t){for(let n=0;n<t.length;n++)this.patternString+=this.patternMappings[t.charAt(n)]}addCharacterGap(){this.patternString+=this.gapWidth+this.splitCharacter}}ni(hf,{addCheckSum:!1});const U_={addCharacter(g){this.characterMap[g]?this.addBase(this.characterMap[g]):g.charCodeAt(0)>127?this.invalidCharacterError(g):this.addExtended(g.charCodeAt(0))},addExtended(g){let t;for(let n=0;n<this.extendedMappings.length;n++)if(t=this.extendedMappings[n].call(this,g),t){for(let s=0;s<t.length;s++)this.addBase(t[s]);return void(this.dataLength+=t.length-1)}},extendedMappings:[function(g){if(97<=g&&g<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(g-32)]]},function(g){if(33<=g&&g<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(g+32)]]},function(g){if(1<=g&&g<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(g+64)]]},function(g){let t,n;if(this.specialAsciiCodes[g]){t=[];for(let s=0;s<this.specialAsciiCodes[g].length;s++)t.push(this.characterMap[this.shiftCharacters[3]]),t.push(this.characterMap[this.specialAsciiCodes[g][s]])}else n=6*Math.floor(g/32)+(g-27)%32+64,t=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(n)]];return t}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},_g=Object.assign;class G_ extends B_{initProperties(){super.initProperties(),_g(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})}initValue(t,n,s){this.value=t,this.width=n,this.height=s,this.pattern=[],this.values=[],this.dataLength=t.length}prepareValues(){let t=Math.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error(`Insufficient height for Code93 encoding: the current height is ${this.height}px, the minimum required height is ${t}px.`);if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){const n=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error(`Insufficient width for Code93 encoding: the current width is ${this.width}px and the minimum required width for value "${this.value}" is ${n}px.`)}}setBaseUnit(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern)}addStop(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)}addBase(t){this.addPattern(t.pattern),this.values.push(t.value)}pushCheckSum(){const t=this._getCheckValues();let n;this.checksum=t.join("");for(let s=0;s<t.length;s++)n=this.characterMap[this._findCharacterByValue(t[s])],this.addPattern(n.pattern)}_getCheckValues(){const t=this.values,n=t.length;let c,p,S,s=0;for(S=n-1;S>=0;S--)s+=this.weightedValue(t[S],n-S,this.cCheckSumTotal);for(c=s%this.checkSumMod,s=this.weightedValue(c,1,this.kCheckSumTotal),S=n-1;S>=0;S--)s+=this.weightedValue(t[S],n-S+1,this.kCheckSumTotal);return p=s%this.checkSumMod,[c,p]}_findCharacterByValue(t){for(let n in this.characterMap)if(this.characterMap[n].value===t)return n}weightedValue(t,n,s){return(n%s||s)*t}addPattern(t){let n;for(let s=0;s<t.length;s++)n=parseInt(t.charAt(s),10),this.pattern.push(n)}}const A1=/^\d+$/,L0=Object.assign,R1=/^\d+$/,F0=/^[a-z0-9]+$/i,Au=Object.assign;class om extends Xi.Z{constructor(t){super(),this.encoding=t,this.initProperties()}initProperties(){}addStart(){}is(){}isCode(){return!1}move(){}pushState(){}}class vg extends om{constructor(t,n){super(t),this.states=n,this._initMoves(n)}initProperties(){super.initProperties(),U(this,{FNC4:"FNC4",SHIFT:98})}addStart(){this.encoding.addPattern(this.START)}is(t,n){let s=t.charCodeAt(n);return this.isCode(s)}move(t){let n=0;for(;!this._moves[n].call(this,t)&&n<this._moves.length;)n++}pushState(t){let p,s=t.value,c=s.length;if(ui("C",this.states)){let S=s.substr(t.index).match(/\d{4,}/g);S&&(c=s.indexOf(S[0],t.index))}for(;(p=t.value.charCodeAt(t.index))>=0&&this.isCode(p)&&t.index<c;)this.encoding.addPattern(this.getValue(p)),t.index++}_initMoves(t){this._moves=[],ui(this.FNC4,t)&&this._moves.push(this._moveFNC),ui(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)}_moveFNC(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key}_shiftState(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0}_moveState(){return this.encoding.addPattern(this.MOVE),!0}}const md={};md.A=class extends vg{initProperties(){super.initProperties(),Au(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}isCode(t){return 0<=t&&t<96}getValue(t){return t<32?t+64:t-32}},md.B=class extends vg{initProperties(){super.initProperties(),Au(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}isCode(t){return 32<=t&&t<128}getValue(t){return t-32}},md.C=class extends om{initProperties(){super.initProperties(),Au(this,{key:"C",MOVE:99,START:105})}addStart(){this.encoding.addPattern(this.START)}is(t,n){let s=H_(t,n,4);return(n+4<=t.length||2===t.length)&&R1.test(s)}move(){this.encoding.addPattern(this.MOVE)}pushState(t){let n;for(;(n=H_(t.value,t.index,2))&&R1.test(n)&&2===n.length;)this.encoding.addPattern(parseInt(n,10)),t.index+=2}getValue(t){return t}},md.FNC4=class extends om{constructor(t,n){super(t),this._initSubStates(n)}initProperties(){super.initProperties(),Au(this,{key:"FNC4",dependentStates:["A","B"]})}addStart(t){let n=t.value.charCodeAt(0)-128,s=this._getSubState(n);this.encoding[s].addStart()}is(t,n){let s=t.charCodeAt(n);return this.isCode(s)}isCode(t){return 128<=t&&t<256}pushState(t){let p,n=this._initSubState(t),s=this.encoding,c=n.value.length;if(t.index+=c,c<3)for(;n.index<c;n.index++)p=n.value.charCodeAt(n.index),n.state=this._getSubState(p),n.previousState!==n.state&&(n.previousState=n.state,s[n.state].move(n)),s.addPattern(s[n.state].MOVE),s.addPattern(s[n.state].getValue(p));else n.state!==n.previousState&&s[n.state].move(n),this._pushStart(n),s.pushData(n,this.subStates),t.index<t.value.length&&this._pushStart(n);t.fnc=!0,t.state=n.state}_pushStart(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)}_initSubState(t){const n={value:this._getAll(t.value,t.index),index:0};return n.state=this._getSubState(n.value.charCodeAt(0)),n.previousState=t.previousState===this.key?n.state:t.previousState,n}_initSubStates(t){this.subStates=[];for(let n=0;n<t.length;n++)ui(t[n],this.dependentStates)&&this.subStates.push(t[n])}_getSubState(t){for(let n=0;n<this.subStates.length;n++)if(this.encoding[this.subStates[n]].isCode(t))return this.subStates[n]}_getAll(t,n){let s,c="",p=n;for(;(s=t.charCodeAt(p++))&&this.isCode(s);)c+=String.fromCharCode(s-128);return c}},md.FNC1=class extends om{constructor(t,n){super(t),this.states=n}initProperties(){super.initProperties(),Au(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})}addStart(){this.encoding[this.startState].addStart()}is(){return ui(this.key,this.states)}pushState(t){let k,$,me,n=this.encoding,s=t.value.replace(/\s/g,""),c=new RegExp("["+this.startAI+this.endAI+"]","g"),p=t.index,S={state:this.startState};for(n.addPattern(this.START);;){if(S.index=0,me=s.charAt(p)===this.startAI?2:0,k=me>0?this.getBySeparator(s,p):this.getByLength(s,p),k.ai.length)$=p+me+k.id.length+k.ai.length;else if($=s.indexOf(this.startAI,p+1),$<0){if(p+k.ai.max+k.id.length+me<s.length)throw new Error("Separators are required after variable length identifiers");$=s.length}if(S.value=s.substring(p,$).replace(c,""),this.validate(k,S.value),n.pushData(S,this.dependentStates),$>=s.length)break;p=$,S.state!==this.startState&&(n[this.startState].move(S),S.state=this.startState),k.ai.length||n.addPattern(this.START)}t.index=t.value.length}validate(t,n){let s=n.substr(t.id.length),c=t.ai;if(!c.type&&!R1.test(s))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===c.type&&!F0.test(s))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(c.length&&c.length!==s.length)throw new Error("Application identifier "+t.id+" must be "+c.length+" characters long.");if(c.min&&c.min>s.length)throw new Error("Application identifier "+t.id+" must be at least "+c.min+" characters long.");if(c.max&&c.max<s.length)throw new Error("Application identifier "+t.id+" must be at most "+c.max+" characters long.")}getByLength(t,n){let s,c;for(let p=2;p<=4;p++)if(s=H_(t,n,p),c=this.getApplicationIdentifier(s)||this.getApplicationIdentifier(s.substring(0,s.length-1)),c)return{id:s,ai:c};this.unsupportedAIError(s)}unsupportedAIError(t){throw new Error("'"+t+"' is not a supported Application Identifier")}getBySeparator(t,n){let s=t.indexOf(this.startAI,n),c=t.indexOf(this.endAI,s),p=t.substring(s+1,c),S=this.getApplicationIdentifier(p)||this.getApplicationIdentifier(p.substr(p.length-1));return S||this.unsupportedAIError(p),{ai:S,id:p}}getApplicationIdentifier(t){let n=this.applicationIdentifiers,s=n.multiKey;if(n[t])return n[t];for(let c=0;c<s.length;c++){if(s[c].ids&&ui(t,s[c].ids))return s[c].type;if(s[c].ranges){let p=s[c].ranges;for(let S=0;S<p.length;S++)if(p[S][0]<=t&&t<=p[S][1])return s[c].type}}}};class yg extends Wh{constructor(t){super(t),this._initStates()}initProperties(){super.initProperties(),Au(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})}_initStates(){for(let t=0;t<this.states.length;t++)this[this.states[t]]=new md[this.states[t]](this,this.states)}initValue(t,n,s){this.pattern=[],this.value=t,this.width=n,this.height=s,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1}addData(){let t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())}pushData(t,n){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){let c=t.state;t.state=t.previousState,t.previousState=c,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,n),this[t.state].move(t)}addStart(t){this[t.state].addStart(t),this.position=1}addCheckSum(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}addStop(){this.addPattern(this.STOP)}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addPattern(t){const n=this.characterMap[t].toString();let s;for(let c=0;c<n.length;c++)s=parseInt(n.charAt(c),10),this.pattern.push(s),this.totalUnits+=s;this.checkSum+=t*this.position++}getNextState(t,n){for(let s=0;s<n.length;s++)if(this[n[s]].is(t.value,t.index))return n[s];this.invalidCharacterError(t.value.charAt(t.index))}}function H_(g,t,n){return g.substring(t,t+n)}const Sg=Object.assign;class ff extends Wh{initProperties(){super.initProperties(),Sg(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:z0})}initValue(t,n){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=n}setBaseUnit(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)}addData(){const t=this.value;this.addPattern(this.START);for(let n=0;n<t.length;n++)this.addCharacter(t.charAt(n));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}addCharacter(t){const n=this.characterMap[t];n||this.invalidCharacterError(t),this.addPattern(n)}addPattern(t){for(let n=0;n<t.length;n++)this.pattern.push(parseInt(t.charAt(n),10))}addCheckSum(){const n=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=n.join("");for(let s=0;s<n.length;s++)this.checkSumLength++,this.addPattern(this.characterMap[n[s]])}}const z0={Modulo10(g){let s,c,p,t=[0,""],n=g.length%2;for(s=0;s<g.length;s++)t[(s+n)%2]+=parseInt(g.charAt(s),10);for(p=t[0],c=(2*t[1]).toString(),s=0;s<c.length;s++)p+=parseInt(c.charAt(s),10);return[(10-p%10)%10]},Modulo11(g){let c,p,t=0,s=g.length;for(let S=0;S<s;S++)c=((s-S)%6||6)+1,t+=c*g.charAt(S);return p=(11-t%11)%11,10!==p?[p]:[1,0]},Modulo11Modulo10(g){let n,t=this.Modulo11(g);return n=g+t[0],t.concat(this.Modulo10(n))},Modulo10Modulo10(g){let n,t=this.Modulo10(g);return n=g+t[0],t.concat(this.Modulo10(n))}},B0=Object.assign;class xg extends Wh{initProperties(){super.initProperties(),B0(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})}initValue(t,n,s){const c=String(t);if(12!==c.length||/\D/.test(c))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=s,this.baseUnit=n/(95+this.quietZoneLength),this.value=c,this.checksum=this.calculateChecksum(),this.leftKey=c[0],this.leftPart=c.substr(1,6),this.rightPart=c.substr(7)+this.checksum}addData(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)}addSide(t,n){for(let s=0;s<t.length;s++)n&&parseInt(this.keyTable[n].charAt(s),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(s)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(s)],!0)}addPieces(t,n){for(let s=0;s<t.length;s++)this.pattern.push(n?{y1:0,y2:.95*this.options.height,width:t[s]}:t[s])}calculateChecksum(){let t=0,n=0,s=this.value.split("").reverse().join("");for(let p=0;p<s.length;p++)p%2?n+=parseInt(s.charAt(p),10):t+=parseInt(s.charAt(p),10);return(10-(3*t+n)%10)%10}}const V_=Object.assign,Dg={code11:O1,code39:hf,code39extended:class P0 extends hf{initProperties(){super.initProperties(),U(this,U_,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})}},code93:G_,code93extended:class N0 extends G_{initProperties(){super.initProperties(),U(this,U_,{name:"Code 93 extended",pushCheckSum:function(){const t=this._getCheckValues();let n;this.checksum=t.join("");for(let s=0;s<t.length;s++)if(n=t[s],this.shiftValuesAsciiCodes[n])this.addExtended(this.shiftValuesAsciiCodes[n]);else{const c=this._findCharacterByValue(n);this.addPattern(this.characterMap[c].pattern)}}})}},code128:class bg extends yg{initProperties(){super.initProperties(),Au(this,{name:"Code 128",states:["C","B","A","FNC4"]})}},code128a:class P1 extends yg{initProperties(){super.initProperties(),Au(this,{name:"Code 128 A",states:["A"]})}},code128b:class _h extends yg{initProperties(){super.initProperties(),Au(this,{name:"Code 128 B",states:["B"]})}},code128c:class hb extends yg{initProperties(){super.initProperties(),Au(this,{name:"Code 128 C",states:["C"]})}},"gs1-128":class pf extends yg{initProperties(){super.initProperties(),Au(this,{name:"Code GS1-128",states:["FNC1","C","B"]})}},msimod10:class Cg extends ff{initProperties(){super.initProperties(),Sg(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})}},msimod11:class wg extends ff{initProperties(){super.initProperties(),Sg(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})}},msimod1010:class N1 extends ff{initProperties(){super.initProperties(),Sg(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})}},msimod1110:class pb extends ff{initProperties(){super.initProperties(),Sg(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})}},postnet:class YS extends Wh{initProperties(){super.initProperties(),L0(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})}initValue(t,n,s){this.height=s,this.width=n,this.baseHeight=s/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()}addData(){const t=this.value;this.addPattern(this.START);for(let n=0;n<t.length;n++)this.addCharacter(t.charAt(n));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()}addCharacter(t){const n=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(n)}addCheckSum(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)}setBaseUnit(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)}validate(t){if(A1.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ui(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")}addPattern(t){let n;for(let s=0;s<t.length;s++)n=this.height-this.baseHeight*t.charAt(s),this.pattern.push({width:1,y1:n,y2:this.height}),this.pattern.push(1)}},ean8:class j_ extends xg{initProperties(){super.initProperties(),V_(this,{name:"EAN 8"})}initValue(t,n,s){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=s,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=n/(67+this.quietZoneLength)}},ean13:xg};function U0(g,t){const n=g.style.display;"canvas"===t&&(g.style.display="block");const s={width:g.clientWidth,height:g.clientHeight};return g.style.display=n,s}ni(class fb extends Xi.Z{constructor(t,n,s=wo){super(),this.options=U({},this.options,n),this.element=t,this.onError=s,this._initElement(),this._initSurface(),this._setOptions(n),n&&ei(n.value)&&this.redraw()}destroy(){this._destroySurface()}_initElement(){Ht(this.element,"k-barcode")}_initSurface(){const{options:t,surface:n}=this;(!n||n.options.type!==t.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return Vp.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}setOptions(t){this._setOptions(t),this._initSurface(),this.redraw()}redraw(){let t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)}getSize(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}_resize(){this.redraw()}createVisual(){this.visual=this._render()}_render(){const t=this.options,n=t.value,s=t.text,c=St(s.margin),p=this._getSize(),S=t.border||{},k=this.encoding,$=new vs(0,0,p.width,p.height).unpad(S.width).unpad(t.padding);let Ve,_t,Vt,me=$.height();const Wn=new vo.Z;this.contentBox=$,Wn.append(this._getBackground(p)),s.visible&&(Vt=Xt.Z(n,{font:s.font}).height,me-=Vt+c.top+c.bottom);try{Ve=k.encode(n,$.width(),me)}catch(si){return this.onError(si),Wn}return s.visible&&(_t=n,t.checksum&&ei(k.checksum)&&(_t+=" "+k.checksum),Wn.append(this._getText(_t))),this.barHeight=me,this._bandsGroup=this._getBands(Ve.pattern,Ve.baseUnit),Wn.append(this._bandsGroup),Wn}exportVisual(){return this._render()}_getSize(){const n=U0(this.element,this.options.renderAs),s=new gp.Z(300,100);return n.width>0&&(s.width=n.width),n.height>0&&(s.height=n.height),this.options.width&&(s.width=this.options.width),this.options.height&&(s.height=this.options.height),s}value(t){if(!ei(t))return this.options.value;this.options.value=String(t),this.redraw()}_getBands(t,n){const s=this.contentBox;let p,S,c=s.x1;const k=new vo.Z;for(let $=0;$<t.length;$++){if(S=gt(t[$])?t[$]:{width:t[$],y1:0,y2:this.barHeight},p=S.width*n,$%2){const me=Hs.Z.fromPoints(new js.Z(c,S.y1+s.y1),new js.Z(c+p,S.y2+s.y1)),Ve=Ws.y.fromRect(me,{fill:{color:this.options.color},stroke:null});k.append(Ve)}c+=p}return k}_getBackground(t){const n=this.options,s=n.border||{},c=new vs(0,0,t.width,t.height).unpad(s.width/2);return Ws.y.fromRect(c.toRect(),{fill:{color:n.background},stroke:{color:s.width?s.color:"",width:s.width,dashType:s.dashType}})}_getText(t){const n=this.options.text,s=this._textbox=new Ns(t,{font:n.font,color:n.color,align:"center",vAlign:"bottom",margin:n.margin});return s.reflow(this.contentBox),s.renderVisual(),s.visual}_setOptions(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!Dg[this.type])throw new Error(`Encoding '${this.type}' is not supported.`);this.encoding=new Dg[this.type],this.options=U({},this.options,t)}},{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});const rm=Object.assign;function V0(g,t){let n=[],s=0;for(;s<g.length;)n.push(g.substring(s,s+t)),s+=t;return n}function Ru(g,t){let n=Number(g).toString(2);return n.length<t&&(n=new Array(t-n.length+1).join(0)+n),n}function a(g){return parseInt(g,2)}class f extends Xi.Z{constructor(t){super(),this.matrix=t,this.row=t.length-1,this.column=t.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}move(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c}getNextCell(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}getNextRemainderCell(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}class i extends Xi.Z{constructor(t,n){super(),this.dataString=t,this.version=n}}class u extends Xi.Z{getEncodingResult(t,n){let s=function q0(g){let n,t=[],s=0,c=g;for(t.push(Y1(c,W0,vb,$0,n)),n=t[0].mode,c=c.substr(t[0].modeString.length);c.length>0;){let p=Y1(c,Z0,K0,z1,n);p.mode!==n?(n=p.mode,t.push(p),s++):t[s].modeString+=p.modeString,c=c.substr(p.modeString.length)}return t}(t),c=function yb(g){let n,t=0;for(let s=0;s<g.length;s++)n=ls[g[s].mode],t+=n.getStringBitsLength(g[s].modeString.length);return Math.ceil(t/8)}(s),p=W_(c,n),S=function bb(g,t){let s,n="";for(let c=0;c<g.length;c++)s=ls[g[c].mode],n+=s.encode(g[c].modeString,t);return n}(s,p);return new i(S,p)}}class I extends Xi.Z{constructor(){super(),this.initProperties()}initProperties(){rm(this,{modeIndicator:"",bitsInCharacterCount:[]})}getVersionIndex(t){return t<10?0:t>26?2:1}getBitsCharacterCount(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]}getModeCountString(t,n){return this.modeIndicator+Ru(t,this.getBitsCharacterCount(n))}encode(){}getStringBitsLength(){}getValue(){}}let ls={numeric:new class K extends I{initProperties(){super.initProperties(),rm(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}getValue(t){return parseInt(t,10)}encode(t,n){let S,c=V0(t,3),p=this.getModeCountString(t.length,n);for(S=0;S<c.length-1;S++)p+=Ru(c[S],10);return p+Ru(c[S],1+3*c[S].length)}getStringBitsLength(t,n){let s=t%3;return 4+this.getBitsCharacterCount(n)+10*Math.floor(t/3)+3*s+(0===s?0:1)}},alphanumeric:new class at extends I{initProperties(){super.initProperties(),rm(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})}getValue(t){return this.characters[t]}encode(t,n){let p,S,s=V0(t,2),c=this.getModeCountString(t.length,n);for(S=0;S<s.length-1;S++)p=45*this.getValue(s[S].charAt(0))+this.getValue(s[S].charAt(1)),c+=Ru(p,11);return p=2===s[S].length?45*this.getValue(s[S].charAt(0))+this.getValue(s[S].charAt(1)):this.getValue(s[S].charAt(0)),c+Ru(p,1+5*s[S].length)}getStringBitsLength(t,n){return 4+this.getBitsCharacterCount(n)+11*Math.floor(t/2)+t%2*6}},byte:new class jt extends I{initProperties(){super.initProperties(),rm(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})}getValue(t){let n=t.charCodeAt(0);if(n<=127||160<=n&&n<=255)return n;throw new Error(`Unsupported character in QR Code: "${t}".`)}encode(t,n){let s=this,c=s.getModeCountString(t.length,n);for(let p=0;p<t.length;p++)c+=Ru(s.getValue(t.charAt(p)),8);return c}getStringBitsLength(t,n){return 4+this.getBitsCharacterCount(n)+8*t}}};class pr extends Xi.Z{constructor(){super(),this.initProperties(),this.mode=ls[this.encodingMode]}initProperties(){rm(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})}getEncodingResult(t,n){let s=this.encode(t),p=W_(this.getDataCodewordsCount(s),n),S=this.mode.getModeCountString(s.length/8,p)+s;return new i(S,p)}getDataCodewordsCount(t){return Math.ceil((this.initialModeCountStringLength+t.length)/8)}encode(t){let n=this.utfBOM;for(let s=0;s<t.length;s++)n+=this.encodeCharacter(t.charCodeAt(s));return n}encodeCharacter(t){let n=this.getBytesCount(t),s=n-1,c="";if(1===n)c=Ru(t,8);else{let p=8-n;for(let S=0;S<s;S++)c=Ru(t>>6*S&63|128,8)+c;c=(t>>6*s|255>>p<<p).toString(2)+c}return c}getBytesCount(t){let n=this.ranges;for(let s=0;s<n.length;s++)if(t<n[s])return s+1}}const sr=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}];let na="0000",_o="numeric",Xo="alphanumeric",qo="byte",Ia={1:0},ba={0:1},eo={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},Vr=[1,0,1,1,1],Ha=[1,0,1],Fc={L:"01",M:"00",Q:"11",H:"10"},pc="101010000010010",Qc="10100110111",Ll="1111100100101",gd=["11101100","00010001"],Pu=93,Hl=[(g,t)=>(g+t)%2==0,(g,t)=>g%2==0,(g,t)=>t%3==0,(g,t)=>(g+t)%3==0,(g,t)=>(Math.floor(g/2)+Math.floor(t/3))%2==0,(g,t)=>g*t%2+g*t%3==0,(g,t)=>(g*t%2+g*t%3)%2==0,(g,t)=>((g+t)%2+g*t%3)%2==0],Eg=/^\d+/,vh="A-Z0-9 $%*+./:-",F1=new RegExp("^[A-Z $%*+./:-]+"),Ig=new RegExp("^["+vh+"]+"),Y0=new RegExp("^[^"+vh+"]+"),W0=8,vb=5,$0=8,Z0=17,K0=9,z1=16;const Tg=[[1,0],[1,25,0]];function cu(g,t,n,s){for(let c=0;c<g.length;c++)g[c][n][s]=t}function Y_(g,t,n,s){for(let c=0;c<Hl.length;c++)g[c][n][s]=Hl[c](n,s)?1^t:parseInt(t,10)}function U1(g,t){let n=[];for(let c=g.length-2;c>=0;c--)n[c]=g[c]^t[c];return n}function X0(g,t){let n=[];for(let s=0;s<g.length;s++)for(let c=0;c<t.length;c++)n[s+c]=void 0===n[s+c]?(g[s]+(t[c]>=0?t[c]:0))%255:Ia[ba[n[s+c]]^ba[(g[s]+t[c])%255]];return n}function H1(g,t){let n=[],s=g.length-1;do{n[s]=ba[(g[s]+t)%255],s--}while(void 0!==g[s]);return n}function V1(g,t){let k,$,n=Tg[t-1],s=new Array(t).concat(g),c=new Array(s.length-n.length).concat(n),p=g.length,S=[];for($=0;$<p;$++)k=H1(c,Ia[s[s.length-1]]),c.splice(0,1),s=U1(k,s);for($=s.length-1;$>=0;$--)S[t-1-$]=Ru(s[$],8);return S}function Y1(g,t,n,s,c){let _t,Vt,p=Eg.exec(g),S=p?p[0]:"",k=F1.exec(g),$=k?k[0]:"",me=Ig.exec(g),Ve=me?me[0]:"";return S&&(S.length>=t||g.length===S.length||S.length>=n&&!Ig.test(g.charAt(S.length)))?(_t=_o,Vt=S):Ve&&(g.length===Ve.length||Ve.length>=s||c===Xo)?(_t=Xo,Vt=S||$):(_t=qo,Vt=Ve?Ve+Y0.exec(g.substring(Ve.length))[0]:Y0.exec(g)[0]),{mode:_t,modeString:Vt}}function W_(g,t){let n=0,s=sr.length-1,c=Math.floor(sr.length/2);do{g<sr[c][t].totalDataCodewords?s=c:n=c,c=n+Math.floor((s-n)/2)}while(s-n>1);return g<=sr[n][t].totalDataCodewords?c+1:s+1}function ey(g,t,n){let s=a(t),c=t.length-1,p=g<<c,k=Ru(g,n-c),$=function Cb(g,t){let n=t.toString(2).length,s=g.toString(2).length,c=g;do{c^=t<<s-n,s=c.toString(2).length}while(s>=n);return c}(p,s);return $=k+Ru($,c),$}function Mg(g,t){return parseInt(g.charAt(t),10)}function ty(g,t){let s,c,n=g[0],p=0,S=t.length;for(s=0,c=8;s<=8;s++)6!==s&&cu(g,Mg(t,S-1-p++),s,c);for(s=8,c=7;c>=0;c--)6!==c&&cu(g,Mg(t,S-1-p++),s,c);for(p=0,c=n.length-1,s=8;c>=n.length-8;c--)cu(g,Mg(t,S-1-p++),s,c);for(cu(g,1,n.length-8,8),s=n.length-7,c=8;s<n.length;s++)cu(g,Mg(t,S-1-p++),s,c)}function am(g,t){let $,me,Ve,s=g[0].length,p=s-11,S=s-11;for(let _t=0;_t<t.length;_t++)$=Math.floor(_t/3),me=_t%3,Ve=Mg(t,t.length-_t-1),cu(g,Ve,0+$,p+me),cu(g,Ve,S+me,0+$)}function $_(g,t,n,s){let S,c=t.length+2,p=t.length+1;for(let k=0;k<t.length;k++)for(let $=k;$<c-k;$++)S=t[k],cu(g,S,n+$,s+k),cu(g,S,n+k,s+$),cu(g,S,n+p-$,s+p-k),cu(g,S,n+p-k,s+p-$)}function kg(g,t,n,s){let c=n,p=s,S=g[0];do{cu(g,0,c,s),cu(g,0,n,p),c+=t[0],p+=t[1]}while(c>=0&&c<S.length)}function Ag(g,t,n,s,c){t[g][s]=(t[g][s]<<1^c)%128,t[g][s]===Pu&&(n[g]+=40)}function Z_(g,t,n,s,c,p){n[g][p]===s?c[g][p]++:(n[g][p]=s,c[g][p]>=5&&(t[g]+=3+c[g][p]-5),c[g][p]=1)}function ny(g,t){let n=Math.floor(g/t*100),s=n%5,c=Math.abs(n-s-50),p=Math.abs(n+5-s-50);return 10*Math.min(c/5,p/5)}(function Q0(){let g,t;for(t=1;t<255;t++)g=2*ba[t-1],g>255&&(g^=285),ba[t]=g,Ia[g]=t;g=2*ba[t-1]^285,ba[t]=g,ba[-1]=0})(),function G1(){for(let t=2;t<=68;t++)Tg[t]=X0(Tg[t-1],[t,0])}();const Z1=Math.round,$S=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],K1=[[0,1],[1,1],[1,0]];ni(class H3 extends Xi.Z{constructor(t,n,s=wo){super(),this.options=U({},this.options,n),this.element=t,this.wrapper=this.element,this.onError=s,this._initElement(),this._initSurface(),this.setOptions(n)}destroy(){this._destroySurface()}_initElement(){Ht(this.element,"k-qrcode")}_initSurface(){const{options:t,surface:n}=this;(!n||n.options.type!==t.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return Vp.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}redraw(){let t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)}getSize(){const t=this.element,n=t.clientWidth,s=t.clientHeight,c={width:0,height:0};return n>0&&(c.width=n),s&&(c.height=s),c}_resize(){this.redraw()}createVisual(){this.visual=this._render()}exportVisual(){return this._render()}_render(){let n,S,k,$,me,Ve,t=this._value,s=this.options.border||{},c=this.options.padding||0,p=s.width||0;s.width=p;let _t=new vo.Z;try{t&&(k=function WS(g,t,n){let s=function To(g){return g&&g.toLowerCase().indexOf("utf_8")>=0?new pr:new u}(n),c=s.getEncodingResult(g,t),p=c.version,S=sr[p-1][t],k=function J0(g,t){let n=8*t,s=0,c=0,p=g;for(;p.length<n&&s<na.length;)p+=na.charAt(s++);for(p.length%8!=0&&(p+=new Array(9-p.length%8).join("0"));p.length<n;)p+=gd[c],c^=1;return p}(c.dataString,S.totalDataCodewords),$=function j1(g,t){let p,k,$,me,Ve,n=0,s=[],c=[],S=t.groups;for(let _t=0;_t<S.length;_t++){$=S[_t][0];for(let Vt=0;Vt<$;Vt++){k=S[_t][1],p=[],me=[];for(let Wn=1;Wn<=k;Wn++)Ve=g.substring(n,n+8),p.push(Ve),me[k-Wn]=a(Ve),n+=8;s.push(p),c.push(V1(me,t.errorCodewordsPerBlock))}}return[s,c]}(k,S),me=function wb(g){let t=[],n=17+4*g;for(let s=0;s<Hl.length;s++){t[s]=new Array(n);for(let c=0;c<n;c++)t[s][c]=new Array(n)}return t}(p);(function Og(g){let t=g[0].length;$_(g,Vr,0,0),kg(g,[-1,-1],7,7),$_(g,Vr,t-7,0),kg(g,[1,-1],t-8,7),$_(g,Vr,0,t-7),kg(g,[-1,1],7,t-8)})(me),function W1(g,t){if(t<2)return;let S,k,n=g[0],s=n.length,c=Math.floor(t/7),p=[6],$=0;for((S=eo[t])?k=(s-13-S)/c:S=k=(s-13)/(c+1),p.push(p[$++]+S);p[$]+k<s;)p.push(p[$++]+k);for(let me=0;me<p.length;me++)for(let Ve=0;Ve<p.length;Ve++)void 0===n[p[me]][p[Ve]]&&$_(g,Ha,p[me]-2,p[Ve]-2)}(me,p),function $1(g){let s=1,c=g[0].length;for(let p=8;p<c-8;p++)cu(g,s,6,p),cu(g,s,p,6),s^=1}(me),p>=7&&am(me,Ru(0,18)),ty(me,Ru(0,15)),function B1(g,t){let s,c,p,n=new f(g[0]);for(let S=0;S<t.length;S++)for(s=t[S],c=0;s.length>0;){for(let k=0;k<s.length;k++)for(let $=0;$<8;$++)p=n.getNextCell(),Y_(g,s[k][c].charAt($),p.row,p.column);for(c++;s[0]&&c===s[0].length;)s.splice(0,1)}for(;p=n.getNextRemainderCell();)Y_(g,0,p.row,p.column)}(me,$);let Ve=function Db(g){let S,k,t=[],n=[],s=[],c=[],p=[],Ve=g[0].length;for(k=0;k<g.length;k++)t[k]=0,s[k]=0,p[k]=[0,0],c[k]=[0,0],n[k]=[];for(let si=0;si<Ve;si++)for(let Ri=0;Ri<Ve;Ri++)for(let ts=0;ts<g.length;ts++)S=g[ts],s[ts]+=parseInt(S[si][Ri],10),n[ts][0]===S[si][Ri]&&si+1<Ve&&Ri-1>=0&&S[si+1][Ri]===n[ts][0]&&S[si+1][Ri-1]===n[ts][0]&&(t[ts]+=3),Ag(ts,c,t,0,S[si][Ri]),Ag(ts,c,t,1,S[Ri][si]),Z_(ts,t,n,S[si][Ri],p,0),Z_(ts,t,n,S[Ri][si],p,1);let Vt,_t=Ve*Ve,Wn=Number.MAX_VALUE;for(k=0;k<t.length;k++)t[k]+=ny(s[k],_t),t[k]<Wn&&(Wn=t[k],Vt=k);return Vt}(me),_t=me[Ve];return p>=7&&am([_t],function xb(g){return ey(g,Ll,18)}(p)),ty([_t],function Sb(g){let n,s="";if(0===a(g))return"101010000010010";n=ey(a(g),Qc,15);for(let c=0;c<n.length;c++)s+=n.charAt(c)^pc.charAt(c);return s}(Fc[t]+Ru(Ve,3))),_t}(t,this.options.errorCorrection,this.options.encoding),$=this._getSize(),Ve=$-2*(p+c),n=this._calculateBaseUnit(Ve,k.length),me=k.length*n,S=p+c+(Ve-me)/2,_t.append(this._renderBackground($,s)),_t.append(this._renderMatrix(k,n,S)),this._hasCustomLogo()?_t.append(this._renderLogo($,n)):this._isSwiss()&&_t.append(this._renderSwissCode($,n)))}catch(Vt){this.onError(Vt)}return _t}_renderLogo(t,n){let s,c,p=Z1(t/2),S=this._getLogoSize(7*n),k=this.options.overlay.imageUrl,$={x:p-S.width/2,y:p-S.height/2};return c=new Hs.Z(new js.Z($.x,$.y),new gp.Z(S.width,S.height)),s=new rg.Z(k,c),s}_renderSwissCode(t,n){let s=this._getLogoSize(7*n);s=Math.max(s.width,s.height);let c=s/4,p=c/2,S=t/2,k={},$=new vo.Z;return k.x=k.y=Math.ceil(S-n-s/2),$.append(this._renderShape(k,Math.ceil(s+2*n),K1,"#fff")),k.x=k.y=S-s/2,$.append(this._renderShape(k,s,K1,this.options.color)),k.x=S+p-s/2,k.y=S+p+c-s/2,$.append(this._renderShape(k,c,$S,"#fff")),$}_renderShape(t,n,s,c){let p=new Ws.w({fill:{color:c},stroke:null});p.moveTo(t.x,t.y);for(let S=0;S<s.length;S++)p.lineTo(t.x+n*s[S][0],t.y+n*s[S][1]);return p.close(),p}_getSize(){let t;if(this.options.size)t=parseInt(this.options.size,10);else{const s=U0(this.element,this.options.renderAs),c=Math.min(s.width,s.height);t=c>0?c:200}return t}_calculateBaseUnit(t,n){let s=Math.floor(t/n);if(s<1){const c=Math.ceil(1*n);this.onError(new Error(`Insufficient size for QR Code: the current size is ${t}px and the minimum size is ${c}px.`))}else s*n>=t&&s-1>=1&&s--;return s}_renderMatrix(t,n,s){let c=new Ws.w({fill:{color:this.options.color},stroke:null});for(let p=0;p<t.length;p++){let S=s+p*n,k=0;for(;k<t.length;){for(;0===t[p][k]&&k<t.length;)k++;if(k<t.length){let $=k;for(;1===t[p][k];)k++;let me=Z1(s+$*n),Ve=Z1(S),_t=Z1(s+k*n),Vt=Z1(S+n);c.moveTo(me,Ve).lineTo(me,Vt).lineTo(_t,Vt).lineTo(_t,Ve).close()}}}return c}_renderBackground(t,n){const s=new vs(0,0,t,t).unpad(n.width/2);return Ws.y.fromRect(s.toRect(),{fill:{color:this.options.background},stroke:{color:n.color,width:n.width}})}setOptions(t){this.options=rm(this.options,t||{}),void 0!==t.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()}value(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()}_hasCustomLogo(){return Boolean(this.options.overlay.imageUrl)}_isSwiss(){return"swiss"===this.options.overlay.type}_getLogoSize(t){let n=this.options.overlay.width,s=this.options.overlay.height;return n||s?n&&!s?s=n:!n&&s&&(n=s):n=s=t,{width:n,height:s}}},{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const aS={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function xp(g){return g*g}let gf=Math,lS=gf.abs,ZS=gf.atan,_d=gf.atan2,lm=gf.cos,$h=gf.sin,cS=gf.tan;class Fl extends Xi.Z{constructor(t,n){super(),this.initProperties(),1===arguments.length?(this.lat=t[0],this.lng=t[1]):(this.lat=t,this.lng=n)}initProperties(){U(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})}toArray(){return[this.lat,this.lng]}equals(t){return t&&t.lat===this.lat&&t.lng===this.lng}clone(){return new Fl(this.lat,this.lng)}round(t){return this.lng=Ke(this.lng,t),this.lat=Ke(this.lat,t),this}wrap(){return this.lng=this.lng%180,this.lat=this.lat%90,this}distanceTo(t,n){return this.greatCircleTo(t,n).distance}destination(t,n,s){let c=xe(n),p=s||aS.WGS84,S=xe(this.lat),k=xe(this.lng),$=t/p.a,me=gf.asin($h(S)*lm($)+lm(S)*$h($)*lm(c)),Ve=k+_d($h(c)*$h($)*lm(S),lm($)-$h(S)*$h(me));return new Fl(Fs(me),Fs(Ve))}greatCircleTo(t,n){let s=Fl.create(s),c=n||aS.WGS84;if(!s||this.clone().round(8).equals(s.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};let ts,wr,_a,ka,Ql,wc,Bc,Pg,p=c.a,S=c.b,k=c.f,$=xe(s.lng-this.lng),me=ZS((1-k)*cS(xe(this.lat))),Ve=$h(me),_t=lm(me),Vt=ZS((1-k)*cS(xe(s.lat))),Wn=$h(Vt),si=lm(Vt),Ri=$,Os=this.DISTANCE_ITERATIONS,Zs=!1;for(;!Zs&&Os-- >0;){wr=$h(Ri),_a=lm(Ri),ka=gf.sqrt(xp(si*wr)+xp(_t*Wn-Ve*si*_a)),wc=Ve*Wn+_t*si*_a,Pg=_d(ka,wc);let b6=_t*si*wr/ka;Ql=1-xp(b6),Bc=0,0!==Ql&&(Bc=wc-2*Ve*Wn/Ql),ts=Ri;let U3=k/16*Ql*(4+k*(4-3*Ql));Ri=$+(1-U3)*k*b6*(Pg+U3*ka*(Bc+U3*wc*(2*xp(Bc)-1))),Zs=lS(Ri-ts)<=this.DISTANCE_CONVERGENCE}let yd=Ql*(xp(p)-xp(S))/xp(S),VS=1+yd/16384*(4096+yd*(yd*(320-175*yd)-768)),vy=yd/1024*(256+yd*(yd*(74-47*yd)-128)),FD=vy*ka*(Bc+vy/4*(wc*(2*xp(Bc)-1)-vy/6*Bc*(4*xp(ka)-3)*(4*xp(Bc)-3))),zD=_d(si*wr,_t*Wn-Ve*si*_a),BD=_d(_t*wr,-Ve*si+_t*Wn*_a);return{distance:Ke(S*VS*(Pg-FD),this.DISTANCE_PRECISION),azimuthFrom:Fs(zD),azimuthTo:Fs(BD)}}toString(){return String(this.lat)+","+String(this.lng)}static fromLngLat(t){return new Fl(t[1],t[0])}static fromLatLng(t){return new Fl(t[0],t[1])}static create(t,n){if(ei(t))return t instanceof Fl?t.clone():1===arguments.length&&2===t.length?Fl.fromLatLng(t):new Fl(t,n)}}let Xc=Math,Eb=Xc.atan,iy=Xc.exp,uS=Xc.pow,dS=Xc.sin,sy=Xc.log,Ib=Xc.tan,Tb=js.Z,oy=Xc.PI,ry=oy/2,Mb=oy/4,KS=oy/180,hS=aS.WGS84;class kb extends Xi.Z{constructor(t){super(),this.initProperties(),this._initOptions(t)}_initOptions(t){this.options=U({},this.options,t)}initProperties(){U(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}forward(t,n){let s=this,c=s.options,S=c.datum.a,k=c.centralMeridian,$=Be(t.lat,-s.MAX_LAT,s.MAX_LAT),me=n?Be(t.lng,-s.MAX_LNG,s.MAX_LNG):t.lng,Ve=xe(me-k)*S,_t=s._projectLat($);return new Tb(Ve,_t)}_projectLat(t){let n=this.options.datum,s=n.e,c=n.a,p=xe(t),S=Ib(Mb+p/2),k=s*dS(p),$=uS((1-k)/(1+k),s/2);return c*sy(S*$)}inverse(t,n){let s=this,c=s.options,$=t.x/(KS*c.datum.a)+c.centralMeridian,me=Be(s._inverseY(t.y),-s.MAX_LAT,s.MAX_LAT);return n&&($=Be($,-s.MAX_LNG,s.MAX_LNG)),new Fl(me,$)}_inverseY(t){let me,n=this,s=n.options.datum,p=s.e,S=p/2,k=iy(-t/s.a),$=ry-2*Eb(k);for(me=0;me<=n.INVERSE_ITERATIONS;me++){let Ve=p*dS($),_t=uS((1-Ve)/(1+Ve),S),Vt=ry-2*Eb(k*_t)-$;if($+=Vt,Xc.abs(Vt)<=n.INVERSE_CONVERGENCE)break}return Fs($)}}ni(kb,{centralMeridian:0,datum:hS});class Ob extends kb{initProperties(){super.initProperties(),U(this,{MAX_LAT:85.0511287798})}_projectLat(t){let n=this.options.datum.a,s=xe(t),c=Ib(Mb+s/2);return n*sy(c)}_inverseY(t){let s=iy(-t/this.options.datum.a);return Fs(ry-2*Eb(s))}}class cm extends Xi.Z{constructor(){super();let n=this._proj=new Ob,s=this.c=2*oy*n.options.datum.a;this._tm=Ho.Z().translate(.5,.5).scale(1/s,-1/s),this._itm=Ho.Z().scale(s,-s).translate(-.5,-.5)}toPoint(t,n,s){return this._proj.forward(t,s).transform(this._tm).scale(n||1)}toLocation(t,n,s){let c=t.clone().scale(1/(n||1)).transform(this._itm);return this._proj.inverse(c,s)}}const Ab=Object.defineProperty;let K_=g=>{const t=document.createElement("div");return t.innerHTML=g,t.firstChild},J1=g=>{for(;g.firstChild;)g.removeChild(g.firstChild)},fS=(g,t)=>{t.insertBefore(g,t.firstChild)},Rb=g=>g.replace(/([a-z][A-Z])/g,function(n){return n.charAt(0)+"-"+n.charAt(1).toLowerCase()}),qS=g=>{let t;return t=g&&String(g).endsWith("px")?g:String(g)+"px",t};const Pb=g=>{let n,t=!1,s=[],c={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},p={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},S={tablet:/playbook|ipad|fire/i},k={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(let $ in c)if(c.hasOwnProperty($)&&(s=g.match(c[$]),s)){if("windows"===$&&"plugins"in navigator)return!1;t={},t.device=$,t.tablet=Nb($,S,!1),t.browser=Nb(g,k,"default"),t.name=Nb($,p),t[t.name]=!0,t.majorVersion=s[2],t.minorVersion=(s[3]||"0").replace("_","."),n=t.minorVersion.replace(".","").substr(0,2),t.flatVersion=t.majorVersion+n+new Array(3-(n.length<3?n.length:2)).join("0");break}return t};function Nb(g,t,n){for(let s in t)if(t.hasOwnProperty(s)&&t[s].test(g))return s;return void 0!==n?n:g}let Q1=()=>{let g={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};const t=um();return t.touch&&(t.mobileOS.ios||t.mobileOS.android)?g={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:t.pointers?g={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:t.msPointers&&(g={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),g};const um=()=>{const g=Pb(navigator.userAgent),t=(g=>{let t=!1,n=[],s={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(let c in s)if(s.hasOwnProperty(c)&&(n=g.match(s[c]),n)){t={},t[c]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t})(navigator.userAgent);let n=t.chrome,s=t.crios,c=t.mozilla,p=t.safari;const S={};S.mobileOS=g,S.touch="ontouchstart"in window,S.pointers=!n&&!s&&!c&&!p&&window.PointerEvent,S.msPointers=!n&&window.MSPointerEvent,S.mouseAndTouchPresent=S.touch&&!(S.mobileOS.ios||S.mobileOS.android),S.eventCapture=document.documentElement.addEventListener;let k=document.createElement("table"),$=S.transitions=!1,me=S.transforms=!1;return["Moz","webkit","O","ms"].forEach(function(_t){let Vt="string"==typeof k.style[_t+"Transition"];if(Vt||"string"==typeof k.style[_t+"Transform"]){let Wn=_t.toLowerCase();return me={css:"ms"!==Wn?"-"+Wn+"-":"",prefix:_t,event:"o"===Wn||"webkit"===Wn?Wn:""},Vt&&($=me,$.event=$.event?$.event+"TransitionEnd":"transitionend"),!1}}),k=null,S.transforms=me,S.transitions=$,S.delayedClick=function(){if(S.touch){if(S.mobileOS.ios)return!0;if(S.mobileOS.android){if(!S.browser.chrome)return!0;if(S.browser.version<32)return!1;const _t=document.querySelector("meta[name=viewport]");return!(_t?_t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},S},ml=(g,t)=>g.bind(t),uu=(g,t,n,s,c)=>{ay(g,t,n,s,c)},ay=(g,t,n,s,c)=>{(An(t)?t:(t||"").split(" ")).forEach(function(S){yS(g,S,n,s,c)})},yS=(g,t,n,s,c)=>{let S,p=s;n&&mn(n)&&!s?p=n:n&&function vS(g){return"string"==typeof g}(n)&&mn(p)&&(S=n),g.addEventListener(t,function(k){const $=k.target?k.target.closest(S):null;(!S||S&&k.target&&$)&&(Ab(k,"currentTarget",{value:S?$:k.currentTarget}),Ab(k,"delegateTarget",{value:g}),p(k))},Boolean(c))},vd=(g,t,n,s,c)=>{e3(g,t,n,s,c)},e3=(g,t,n,s)=>{(An(t)?t:(t||"").split(" ")).forEach(function(p){t3(g,p,n,s)})},t3=(g,t,n,s)=>{g.removeEventListener(t,n,Boolean(s))},Zh=g=>{const t=Q1(navigator.userAgent);return g.replace(/([^ ]+)/g,function n(p){return t[p]||p})},Lb=(g,t)=>{const n=g.prototype;n.events?t.forEach(s=>{n.events.indexOf(s)<0&&n.events.push(s)}):n.events=t},vf=()=>Number(new Date),SS=()=>{},n3=g=>{let t=[];if(g){let n=Rb(g).split("-");for(let s=0;s<n.length;s++)t.push("k-pos-"+n[s])}return t.join(" ")},o3="function";let J3=function(){this._defaultPrevented=!0},Q3=function(){return!0===this._defaultPrevented};class Kh extends Xi.Z{constructor(){super(),this._events={}}destroy(){this.unbind()}bind(t,n,s){let p,k,$,me,_t,c=this,S="string"==typeof t?[t]:t||[],Ve=typeof n===o3;if(void 0===n){for(p in t)c.bind(p,t[p]);return c}for(p=0,k=S.length;p<k;p++){let Vt=S[p];me=Ve?n:n[Vt],me&&(s&&($=me,me=function(){c.unbind(Vt,me),$.apply(c,arguments)},me.original=$),_t=c._events[Vt]=c._events[Vt]||[],_t.push(me))}return c}one(t,n){return this.bind(t,n,!0)}first(t,n){let c,S,k,me,s=this,p="string"==typeof t?[t]:t,$=typeof n===o3;for(c=0,S=p.length;c<S;c++){let Ve=p[c];k=$?n:n[Ve],k&&(me=s._events[Ve]=s._events[Ve]||[],me.unshift(k))}return s}trigger(t,n){let p,S,s=this,c=s._events[t];if(c){let k=n||{};for(k.sender=s,k._defaultPrevented=!1,k.preventDefault=J3,k.isDefaultPrevented=Q3,c=c.slice(),p=0,S=c.length;p<S;p++)c[p].call(s,k);return!0===k._defaultPrevented}return!1}unbind(t,n){let p,s=this,c=s._events[t];if(void 0===t)s._events={};else if(c)if(n)for(p=c.length-1;p>=0;p--)(c[p]===n||c[p].original===n)&&c.splice(p,1);else s._events[t]=[];return s}_setEvents(t){const n=(this.events||[]).length;for(let s=0;s<n;s++){let c=this.events[s];this.options[c]&&t[c]&&(this.unbind(c,this.options[c]),this._events&&this._events[c]&&delete this._events[c])}this.bind(this.events,t)}}class X1 extends Kh{constructor(t,n){super(),this.element=t,this._initOptions(n),this.items=[],Ht(this.element,"k-widget k-attribution")}_initOptions(t){this.options=U({},this.options,t)}filter(t,n){this._extent=t,this._zoom=n,this._render()}add(t){let n=t;ei(t)&&("string"==typeof t&&(n={text:t}),this.items.push(n),this._render())}remove(t){let n=[];for(let s=0;s<this.items.length;s++){let c=this.items[s];c.text!==t&&n.push(c)}this.items=n,this._render()}clear(){this.items=[],J1(this.element)}_render(){let t=[];for(let n=0;n<this.items.length;n++){let c=this._itemText(this.items[n]);""!==c&&t.push(c)}t.length>0?(J1(this.element),((g,t)=>{const n=document.createElement("div");for(n.innerHTML=g;n.childNodes.length>0;)t.appendChild(n.childNodes[0])})(t.join(this.options.separator),this.element),this.showElement()):this.hideElement()}hideElement(){this.element.style.display="none"}showElement(){this.element.style.display=""}_itemText(t){let n="",s=this._inZoomLevel(t.minZoom,t.maxZoom),c=this._inArea(t.extent);return s&&c&&(n+=t.text),n}_inZoomLevel(t,n){let s=!0,c=Et(t,-Number.MAX_VALUE),p=Et(n,Number.MAX_VALUE);return s=this._zoom>c&&this._zoom<p,s}_inArea(t){let n=!0;return t&&(n=t.contains(this._extent)),n}}ni(X1,{name:"Attribution",separator:"&nbsp;|&nbsp;"});const r3={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function q1(g,t){const n='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+r3[g].className+'" aria-label="move '+g+'">'+Ui({icon:`caret-alt-${g}`,iconClass:"k-button-icon",svgIcons:t.svgIcons,type:t.type})+"</button>";return K_(n)}class yf extends Kh{constructor(t,n){super(),this.element=t,this._initOptions(n);const s=q1("up",n.icons),c=q1("right",n.icons),p=q1("down",n.icons),S=q1("left",n.icons);this.element.appendChild(s),this.element.appendChild(c),this.element.appendChild(p),this.element.appendChild(S),Ht(this.element,"k-widget k-navigator"),uu(this.element,"click",".k-button",ml(this._click,this));let k=this.element.parentNode.closest("[data-role]");this._keyroot=k||this.element,this._tabindex(this._keyroot),this._keydownHandler=ml(this._keydown,this),uu(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.dispose()}dispose(){vd(this._keyroot,"keydown",this._keydownHandler)}_tabindex(t){const n=t||this.wrapper||this.element;let s=this.element,c="tabindex",p=n.getAttribute(c)||s.getAttribute(c);s.removeAttribute(c),n.setAttribute(c,isNaN(p)?0:p)}_initOptions(t){this.options=U({},this.options,t)}_pan(t,n){let s=this.options.panStep;this.trigger("pan",{x:t*s,y:n*s})}_click(t){let n=0,s=0,c=t.currentTarget;c.matches(".k-navigator-n")?s=1:c.matches(".k-navigator-s")?s=-1:c.matches(".k-navigator-e")?n=1:c.matches(".k-navigator-w")&&(n=-1),this._pan(n,s),t.preventDefault()}_keydown(t){switch(t.which){case 38:this._pan(0,1),t.preventDefault();break;case 40:this._pan(0,-1),t.preventDefault();break;case 39:this._pan(1,0),t.preventDefault();break;case 37:this._pan(-1,0),t.preventDefault()}}}function Fb(g,t,n){const s='<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+g+'" title="zoom-'+g+'" aria-label="zoom-'+g+'">'+Ui({icon:t,iconClass:"k-button-icon",svgIcons:n.svgIcons,type:n.type})+"</button>";return K_(s)}ni(yf,{name:"Navigator",panStep:1}),Lb(yf,["pan"]);class J_ extends Kh{constructor(t,n,s){super(),this.element=t,this._initOptions(n);const c=Fb("in","plus",s),p=Fb("out","minus",s);this.element.appendChild(c),this.element.appendChild(p),Ht(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),uu(this.element,"click",".k-button",this._clickHandler);let S=this.element.parentNode.closest("[data-role]");this._keyroot=S||this.element,this._tabindex(this._keyroot),this._keydownHandler=this._keydown.bind(this),uu(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.element&&vd(this.element,"click",this._clickHandler),this._keyroot&&vd(this._keyroot,"keydown",this._keydownHandler)}_tabindex(t){const n=t||this.wrapper||this.element;let s=this.element,c="tabindex",p=n.getAttribute(c)||s.getAttribute(c);s.removeAttribute(c),n.setAttribute(c,isNaN(p)?0:p)}_initOptions(t){this.options=U({},this.options,t)}_change(t){this.trigger("change",{delta:t*this.options.zoomStep})}_click(t){let s=1;ri(t.currentTarget,"k-zoom-out")&&(s=-1),this._change(s),t.preventDefault()}_keydown(t){switch(t.which){case 107:case 187:case 61:this._change(1);break;case 109:case 189:case 173:this._change(-1)}}}ni(J_,{name:"ZoomControl",zoomStep:1}),Lb(J_,["change"]);let l3=Math,c3=l3.max,u3=l3.min;class dm extends Xi.Z{constructor(t,n){super();let s=Fl.create(t),c=Fl.create(n);s.lng+180>c.lng+180&&s.lat+90<c.lat+90?(this.se=s,this.nw=c):(this.se=c,this.nw=s)}contains(t){let n=this.nw,s=this.se,c=Et(t.lng,t[1]),p=Et(t.lat,t[0]);return t&&c+180>=n.lng+180&&c+180<=s.lng+180&&p+90>=s.lat+90&&p+90<=n.lat+90}center(){let t=this.nw,n=this.se;return new Fl(t.lat+(n.lat-t.lat)/2,t.lng+(n.lng-t.lng)/2)}containsAny(t){let n=!1;for(let s=0;s<t.length;s++)n=n||this.contains(t[s]);return n}include(t){let n=this.nw,s=this.se,c=Et(t.lng,t[1]),p=Et(t.lat,t[0]);n.lng=u3(n.lng,c),n.lat=c3(n.lat,p),s.lng=c3(s.lng,c),s.lat=u3(s.lat,p)}includeAll(t){for(let n=0;n<t.length;n++)this.include(t[n])}edges(){let t=this.nw,n=this.se;return{nw:this.nw,ne:new Fl(t.lat,n.lng),se:this.se,sw:new Fl(n.lat,t.lng)}}toArray(){let t=this.nw,n=this.se;return[t,new Fl(t.lat,n.lng),n,new Fl(n.lat,t.lng)]}overlaps(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())}static create(t,n){return t instanceof dm?t:t&&n?new dm(t,n):t&&4===t.length&&!n?new dm([t[0],t[1]],[t[2],t[3]]):void 0}static get World(){return new dm([90,-180],[-90,180])}}const xS="centerChange";class Gb extends Xi.Z{constructor(t,n){super(),this.widgetService=t,this.options=U({},this.options,n),this.offset={x:0,y:0}}show(t,n){this.location!==n.location&&(this.anchor=t,this.location=n.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},n)),this.visible=!0)}hide(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null}get anchor(){return this._anchor}set anchor(t){const n=this.widgetService.widget._toDocumentCoordinates({x:t.left-this.offset.x,y:t.top-this.offset.y});this._anchor={left:n.left,top:n.top}}destroy(){this.widgetService=null}}ni(Gb,{border:{width:1},opacity:1});class cy extends Xi.Z{constructor(t,n){super(),this.support=um(),this._initOptions(n),this.map=t;let s=document.createElement("div");Ht(s,"k-layer"),s.style.zIndex=this.options.zIndex,s.style.opacity=this.options.opacity,this.element=s,t.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}destroy(){this._deactivate()}_initOptions(t){this.options=U({},this.options,t)}show(){this.reset(),this._activate(),this._applyExtent(!0)}hide(){this._deactivate(),this._setVisibility(!1)}reset(){this._beforeReset(),this._reset()}_reset(){this._applyExtent()}_beforeReset(){}_resize(){}_panEnd(){this._applyExtent()}_applyExtent(){let t=this.options,n=this.map.zoom(),s=!ei(t.minZoom)||n>=t.minZoom,c=!ei(t.maxZoom)||n<=t.maxZoom,p=dm.create(t.extent),S=!p||p.overlaps(this.map.extent());this._setVisibility(s&&c&&S)}_setVisibility(t){this.element.style.display=t?"":"none"}_activate(){let t=this.map;this._deactivate(),t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)}_deactivate(){let t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)}_updateAttribution(){const t=this.map.attribution;t&&t.add(this.options.attribution)}_readData(){return this.options.data||[]}_hasData(){return this._data&&this._data.length>0}_layerIndex(){return(this.map.layers||[]).indexOf(this)}}let bf=Math,Hb=js.Z;function DS(g){return mn(g)?g:je.compile(g)}function uy(g){let t=g;return"string"!=typeof g&&(t+="px"),t}class f3 extends cy{constructor(t,n){super(t,n),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));let s=this._viewType();this._view=new s(this.element,this.options)}destroy(){super.destroy(),this._view.destroy(),this._view=null}_beforeReset(){let t=this.map,n=t.locationToLayer(t.extent().nw).round();this._view.viewOrigin(n)}_reset(){super._reset(),this._updateView(),this._view.reset()}_viewType(){return IS}_activate(){super._activate(),this.support.mobileOS||(this._pan||(this._pan=Up(this._render.bind(this),100)),this.map.bind("pan",this._pan))}_deactivate(){super._deactivate(),this._pan&&this.map.unbind("pan",this._pan)}_updateView(){let t=this._view,n=this.map,s=n.extent(),c={nw:n.locationToLayer(s.nw).round(),se:n.locationToLayer(s.se).round()};t.center(n.locationToLayer(n.center())),t.extent(c),t.zoom(n.zoom())}_resize(){this._render()}_panEnd(t){super._panEnd(t),this._render()}_render(){this._updateView(),this._view.render()}}ni(f3,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});class IS extends Xi.Z{constructor(t,n){super(),this.element=t,this._initOptions(n),this.pool=new TS}_initOptions(t){this.options=U({},this.options,t)}center(t){this._center=t}extent(t){this._extent=t}viewOrigin(t){this._viewOrigin=t}zoom(t){this._zoom=t}pointToTileIndex(t){return new Hb(bf.floor(t.x/this.options.tileSize),bf.floor(t.y/this.options.tileSize))}tileCount(){let t=this.size(),n=this.pointToTileIndex(this._extent.nw),s=this._extent.nw,c=this.indexToPoint(n).translate(-s.x,-s.y);return{x:bf.ceil((bf.abs(c.x)+t.width)/this.options.tileSize),y:bf.ceil((bf.abs(c.y)+t.height)/this.options.tileSize)}}size(){let t=this._extent.nw,s=this._extent.se.clone().translate(-t.x,-t.y);return{width:s.x,height:s.y}}indexToPoint(t){return new Hb(t.x*this.options.tileSize,t.y*this.options.tileSize)}subdomainText(){let t=this.options.subdomains;return t[this.subdomainIndex++%t.length]}destroy(){J1(this.element),this.pool.empty()}reset(){this.pool.reset(),this.subdomainIndex=0,this.render()}render(){let s,c,p,t=this.tileCount(),n=this.pointToTileIndex(this._extent.nw);for(c=0;c<t.x;c++)for(p=0;p<t.y;p++)s=this.createTile({x:n.x+c,y:n.y+p}),s.visible||s.show()}createTile(t){let n=this.tileOptions(t),s=this.pool.get(this._center,n);return s.element.parentNode||this.element.append(s.element),s}tileOptions(t){let n=this.wrapIndex(t),s=this.indexToPoint(t),c=this._viewOrigin,p=s.clone().translate(-c.x,-c.y);return{index:n,currentIndex:t,point:s,offset:(g=p,new Hb(Ke(g.x),Ke(g.y))),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate};var g}wrapIndex(t){let n=bf.pow(2,this._zoom);return{x:this.wrapValue(t.x,n),y:Be(t.y,0,n-1)}}wrapValue(t,n){let s=bf.abs(t)%n,c=t;return c=t>=0?s:n-(0===s?n:s),c}}class dy extends Xi.Z{constructor(t,n){super(),this.id=t,this.visible=!0,this._initOptions(n),this.createElement(),this.show()}destroy(){const t=this.element,n=t?t.parentNode:null;t&&(n&&n.removeChild(t),this.element=null)}_initOptions(t){this.options=U({},this.options,t)}createElement(){let t=document.createElement("img");const n=this.options.size+"px";t.style.position="absolute",t.style.display="block",t.style.width=t.style.maxWidth=n,t.style.height=t.style.maxHeight=n,this.element=t}show(){let t=this.element;t.style.top=uy(this.options.offset.y),t.style.left=uy(this.options.offset.x);let n=this.url();n&&t.setAttribute("src",n),t.style.visibility="visible",this.visible=!0}hide(){this.element.style.visibility="hidden",this.visible=!1}url(){return DS(this.options.urlTemplate)(this.urlOptions())}errorUrl(){return DS(this.options.errorUrlTemplate)(this.urlOptions())}urlOptions(){let t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}}}ni(dy,{urlTemplate:"",errorUrlTemplate:""});class TS extends Xi.Z{constructor(){super(),this._items=[]}get(t,n){return this._items.length>=this.options.maxSize&&this._remove(t),this._create(n)}empty(){let t=this._items;for(let n=0;n<t.length;n++)t[n].destroy();this._items=[]}reset(){let t=this._items;for(let n=0;n<t.length;n++)t[n].hide()}_create(t){let s,n=this._items,c=Le(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate);for(let p=0;p<n.length;p++)if(n[p].id===c){s=n[p];break}return s?s.show():(s=new dy(c,t),this._items.push(s)),s}_remove(t){let n=this._items,s=-1,c=-1;for(let p=0;p<n.length;p++){let S=n[p].options.point.distanceTo(t);S>s&&!n[p].visible&&(c=p,s=S)}-1!==c&&(n[c].destroy(),n.splice(c,1))}}ni(TS,{maxSize:100});const Rg=Object.assign,hy="change";class X3 extends Kh{constructor(t,n){super();let s=this,c=t[0]||t;s.capture=!1;const p=Q1(navigator.userAgent);c.addEventListener?(p.down.split(" ").forEach(function(S){c.addEventListener(S,ml(s._press,s),!0)}),p.up.split(" ").forEach(function(S){c.addEventListener(S,ml(s._release,s),!0)})):(p.down.split(" ").forEach(function(S){c.attachEvent(S,ml(s._press,s))}),p.up.split(" ").forEach(function(S){c.attachEvent(S,ml(s._release,s))})),s.bind(["press","release"],n||{})}captureNext(){this.capture=!0}cancelCapture(){this.capture=!1}_press(t){this.trigger("press"),this.capture&&t.preventDefault()}_release(t){let n=this;n.trigger("release"),n.capture&&(t.preventDefault(),n.cancelCapture())}}class MS extends Kh{constructor(t){super();let n=this;n.forcedEnabled=!1,Rg(n,t),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")}makeVirtual(){Rg(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}virtualSize(t,n){(this._virtualMin!==t||this._virtualMax!==n)&&(this._virtualMin=t,this._virtualMax=n,this.update())}outOfBounds(t){return t>this.max||t<this.min}forceEnabled(){this.forcedEnabled=!0}getSize(){return this.container[this.measure]}getTotal(){return this.element[this.scrollSize]}rescale(t){this.scale=t}update(t){let n=this,s=n.virtual?n._virtualMax:n.getTotal(),c=s*n.scale,p=n.getSize();0===s&&!n.forcedEnabled||(n.max=n.virtual?-n._virtualMin:0,n.size=p,n.total=c,n.min=Math.min(n.max,p-c),n.minScale=p/s,n.centerOffset=(c-p)/2,n.enabled=n.forcedEnabled||c>p,t||n.trigger(hy,n))}}class m3 extends Kh{constructor(t){super();let n=this;n.x=new MS(Rg({horizontal:!0},t)),n.y=new MS(Rg({horizontal:!1},t)),n.container=t.container,n.forcedMinScale=t.minScale,n.maxScale=t.maxScale||100,n.bind(hy,t)}rescale(t){this.x.rescale(t),this.y.rescale(t),this.refresh()}centerCoordinates(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}refresh(){let t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(hy)}}class kS extends Kh{constructor(t){super(),Rg(this,t)}outOfBounds(){return this.dimension.outOfBounds(this.movable[this.axis])}dragMove(t){let n=this,s=n.dimension,c=n.axis,p=n.movable,S=p[c]+t;if(!s.enabled)return;let k=t;(S<s.min&&t<0||S>s.max&&t>0)&&(k*=n.resistance),p.translateAxis(c,k),n.trigger(hy,n)}}class q3 extends Xi.Z{constructor(t){super();let s,c,p,S,n=this;Rg(n,{elastic:!0},t),p=n.elastic?.5:0,S=n.movable,n.x=s=new kS({axis:"x",dimension:n.dimensions.x,resistance:p,movable:S}),n.y=c=new kS({axis:"y",dimension:n.dimensions.y,resistance:p,movable:S}),n.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart(k){n.gesture=k,n.offset=po(n.dimensions.container)},press(k){const $=k.event.target.closest("a");$&&$.matches("[data-navigate-on-press=true]")&&k.sender.cancel()},gesturechange(k){let si,$=n.gesture,me=$.center,Ve=k.center,_t=k.distance/$.distance,Wn=n.dimensions.maxScale;S.scale<=n.dimensions.minScale&&_t<1&&(_t+=.8*(1-_t)),S.scale*_t>=Wn&&(_t=Wn/S.scale);let Ri=S.x+n.offset.left,ts=S.y+n.offset.top;si={x:(Ri-me.x)*_t+Ve.x-Ri,y:(ts-me.y)*_t+Ve.y-ts},S.scaleWith(_t),s.dragMove(si.x),c.dragMove(si.y),n.dimensions.rescale(S.scale),n.gesture=k,k.preventDefault()},move(k){k.event.target.tagName.match(/textarea|input/i)||(s.dimension.enabled||c.dimension.enabled?(s.dragMove(k.x.delta),c.dragMove(k.y.delta),k.preventDefault()):k.touch.skip())},end(k){k.preventDefault()}})}}let g3=function(g,t,n){return"translate3d("+g+"px,"+t+"px,0) scale("+n+")"};class OS extends Kh{constructor(t){super();let n=this;n.support=um(),this.transformStyle=this.support.transitions.prefix+"Transform",n.element=t,n.element.style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1;const s=g3(n.x,n.y,n.scale);n.element.style[this.transformStyle]=s,n._saveCoordinates(s)}translateAxis(t,n){this[t]+=n,this.refresh()}scaleTo(t){this.scale=t,this.refresh()}scaleWith(t){this.scale*=t,this.refresh()}translate(t){this.x+=t.x,this.y+=t.y,this.refresh()}moveAxis(t,n){this[t]=n,this.refresh()}moveTo(t){Rg(this,t),this.refresh()}refresh(){let c,t=this,n=t.x,s=t.y;t.round&&(n=Math.round(n),s=Math.round(s)),c=g3(n,s,t.scale),c!==t.coordinates&&(t.element.style[this.transformStyle]=c,t._saveCoordinates(c),t.trigger(hy))}_saveCoordinates(t){this.coordinates=t}}const AS=vo.Z;class Vb extends cy{constructor(t,n){super(t,n),this._pan=ml(this._pan,this),this.surface=Vp.create(this.element,{width:t.scrollElement.clientWidth,height:t.scrollElement.clientHeight}),this._initRoot(),this.movable=new OS(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}destroy(){super.destroy(),this.surface.destroy()}_reset(){super._reset(),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}_initRoot(){this._root=new AS,this.surface.draw(this._root)}_beforeReset(){this.surface.clear(),this._initRoot()}_resize(){this.surface.size(this.map.size())}_readData(){const t=super._readData();return"FeatureCollection"===t.type?t.features:"GeometryCollection"===t.type?t.geometries:t}_load(t){this._data=t,this._clearMarkers(),this._loader||(this._loader=new eC(this.map,this.options.style,this));let n=new AS;for(let s=0;s<t.length;s++){let c=this._loader.parse(t[s]);c&&n.append(c)}this._root.clear(),this._root.append(n)}shapeCreated(t){let n=!1;return t instanceof Ko.Z&&this.map.options.renderPointsAsMarkers&&(n=ei(this._createMarker(t))),n||(n=this.map.trigger("shapeCreated",{layer:this,shape:t})),n}featureCreated(t){t.layer=this,this.map.trigger("shapeFeatureCreated",t)}_createMarker(t){let n=this.map.markers.bind({location:t.location},t.dataItem);return n&&this._markers.push(n),n}_clearMarkers(){for(let t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]}_pan(){this._panning||(this._panning=!0,this.surface.suspendTracking())}_panEnd(t){super._panEnd(t),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1}_translateSurface(){let t=this.map,n=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(n),this.movable.moveTo({x:n.x,y:n.y}))}_eventArgs(t){return{layer:this,layerIndex:this._layerIndex(),shape:t.element,shapeIndex:(this._data||[]).indexOf(t.element.dataItem),originalEvent:t.originalEvent}}_handler(t){return n=>{n.element&&this.map.trigger(t,this._eventArgs(n))}}_mouseenter(t){if(!t.element)return;this.map.trigger("shapeMouseEnter",this._eventArgs(t));const n=t.element,s=this._tooltipAnchor(t);this.map._tooltip.show(s,this._tooltipContext(n))}_tooltipContext(t){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:t.dataItem,location:t.location}}_tooltipAnchor(t){const n=this.map.eventOffset(t.originalEvent);return{top:n.y,left:n.x}}_activate(){super._activate(),this._panHandler=ml(this._pan,this),this.map.bind("pan",this.panHandler)}_deactivate(){super._deactivate(),this.map.unbind("pan",this._panHandler)}}ni(Vb,{autoBind:!0,zIndex:100});class eC extends Xi.Z{constructor(t,n,s){super(),this.observer=s,this.locator=t,this.style=n}parse(t){let n=new AS,s=!0;return"Feature"===t.type?(s=!1,this._loadGeometryTo(n,t.geometry,t),this._featureCreated(n,t)):this._loadGeometryTo(n,t,t),s&&n.children.length<2&&(n=n.children[0]),n}_shapeCreated(t){let n=!1;return this.observer&&this.observer.shapeCreated&&(n=this.observer.shapeCreated(t)),n}_featureCreated(t,n){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:t,dataItem:n,properties:n.properties})}_loadGeometryTo(t,n,s){let p,S,c=n.coordinates;switch(n.type){case"LineString":S=this._loadPolygon(t,[c],s),this._setLineFill(S);break;case"MultiLineString":for(p=0;p<c.length;p++)S=this._loadPolygon(t,[c[p]],s),this._setLineFill(S);break;case"Polygon":this._loadPolygon(t,c,s);break;case"MultiPolygon":for(p=0;p<c.length;p++)this._loadPolygon(t,c[p],s);break;case"Point":this._loadPoint(t,c,s);break;case"MultiPoint":for(p=0;p<c.length;p++)this._loadPoint(t,c[p],s)}}_setLineFill(t){let n=t.segments;(n.length<4||!n[0].anchor().equals(Pt(n).anchor()))&&(t.options.fill=null)}_loadShape(t,n){return this._shapeCreated(n)||t.append(n),n}_loadPolygon(t,n,s){let c=this._buildPolygon(n);return c.dataItem=s,c.location=this.locator.viewToLocation(c.bbox().center()),this._loadShape(t,c)}_buildPolygon(t){let s=new(t.length>1?Ws.w:Ws.y)(this.style);for(let c=0;c<t.length;c++)for(let p=0;p<t[c].length;p++){let S=this.locator.locationToView(Fl.fromLngLat(t[c][p]));0===p?s.moveTo(S.x,S.y):s.lineTo(S.x,S.y)}return s}_loadPoint(t,n,s){let c=Fl.fromLngLat(n),p=this.locator.locationToView(c),S=new ms.Z(p,10),k=new Ko.Z(S,this.style);return k.dataItem=s,k.location=c,this._loadShape(t,k)}}class _3 extends Vb{_readData(){return this.options.data||[]}_load(t){if(this._data=t,this.surface.clear(),0===t.length)return;let n=this.options,s=hn(n.valueField),c=t.slice(0);c.sort(function($,me){return s(me)-s($)});let S,p=this._scaleType(),k=hn(this.options.locationField);for(let $=0;$<c.length;$++){let me=c[$],Ve=k(me),_t=s(me);if(ei(Ve)&&ei(_t)){S||(S=new p([0,_t],[n.minSize,n.maxSize])),Ve=Fl.create(Ve);let Vt=this.map.locationToView(Ve),Wn=S.map(_t),si=this._createSymbol({center:Vt,size:Wn,style:n.style,dataItem:me,location:Ve});si.dataItem=me,si.location=Ve,si.value=_t,this._drawSymbol(si)}}}_scaleType(){let t=this.options.scale;return mn(t)?t:nC[t]}_createSymbol(t){let n=this.options.symbol;return mn(n)||(n=iC[n]),n(t)}_drawSymbol(t){this.map.trigger("shapeCreated",{layer:this,shape:t})||this.surface.draw(t)}_tooltipContext(t){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:t.dataItem,location:t.location,value:t.value}}_tooltipAnchor(t){const s=t.element.bbox().center();return{top:s.y,left:s.x}}}ni(_3,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});let nC={sqrt:class tC extends Xi.Z{constructor(t,n){super(),this._domain=t,this._range=n;let s=Math.sqrt(t[1])-Math.sqrt(t[0]);this._ratio=(n[1]-n[0])/s}map(t){let n=(Math.sqrt(t)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+n}}},iC={circle:function(g){let t=new ms.Z(g.center,g.size/2);return new Ko.Z(t,g.style)},square:function(g){let t=new Ws.y(g.style),n=g.size/2,s=g.center;return t.moveTo(s.x-n,s.y-n).lineTo(s.x+n,s.y-n).lineTo(s.x+n,s.y+n).lineTo(s.x-n,s.y+n).close(),t}};const l="mouseenter",d="mouseleave",m=Object.assign,C="k-marker",O="."+C;class Z extends cy{constructor(t,n){super(t,n),this._markerClickHandler=ml(this._markerClick,this),uu(this.element,"click",O,this._markerClickHandler),this.items=[],this._load(this._readData())}destroy(){super.destroy(),vd(this.element,"click",this._markerClickHandler),this.clear()}add(t){if(!An(t))return this._addOne(t);for(let n=0;n<t.length;n++)this._addOne(t[n])}remove(t){t.destroy();let n=(this.items||[]).indexOf(t);n>-1&&this.items.splice(n,1)}clear(){for(let t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]}update(t){let n=t.location();n&&(t.showAt(this.map.locationToView(n)),this.map.trigger("markerActivate",{marker:t,layer:this}))}_reset(){super._reset();let t=this.items;for(let n=0;n<t.length;n++)this.update(t[n])}bind(t,n){let s=be.create(t,this.options);if(s.dataItem=n,!this.map.trigger("markerCreated",{marker:s,layer:this}))return this.add(s),s}_addOne(t){let n=be.create(t,this.options);return n.addTo(this),n}_readData(){return this.options.data||[]}_load(t){this._data=t,this.clear();let n=hn(this.options.locationField),s=hn(this.options.titleField);for(let c=0;c<t.length;c++){let p=t[c];this.bind({location:n(p),title:s(p)},p)}}_markerClick(t){const n=t.currentTarget._kendoNode;let s={layer:this,layerIndex:this._layerIndex(),marker:n,markerIndex:(this.items||[]).indexOf(n),originalEvent:t};this.map.trigger("markerClick",s)}_markerMouseEnter(t){const n=this._createMarkerEventArgs(t);this.map.trigger("markerMouseEnter",n)}_markerMouseLeave(t){const n=this._createMarkerEventArgs(t);this.map.trigger("markerMouseLeave",n)}_createMarkerEventArgs(t){const n=t.marker;return m({},{layer:this,layerIndex:this._layerIndex(),marker:n,markerIndex:(this.items||[]).indexOf(n)},t)}}ni(Z,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});class be extends Xi.Z{constructor(t){super(),this.options=t||{}}destroy(){this.layer=null,this.unbindEvents(),this.hide()}addTo(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)}location(t){return t?(this.options.location=Fl.create(t).toArray(),this.layer&&this.layer.update(this),this):Fl.create(this.options.location)}showAt(t){this.render(),this._anchor={left:Math.round(t.x),top:Math.round(t.y)},this.element.style.left=qS(this._anchor.left),this.element.style.top=qS(this._anchor.top)}hide(){this.element&&(this.element.remove(),this.element=null)}bindEvents(){this.element&&(this._mouseEnterHandler=ml(this._mouseEnter,this),uu(this.element,l,O,this._mouseEnterHandler),this._mouseLeaveHandler=ml(this._mouseLeave,this),uu(this.element,d,O,this._mouseLeaveHandler))}unbindEvents(){this.element&&(vd(this.element,l,this._mouseEnterHandler),vd(this.element,d,this._mouseLeaveHandler))}render(){if(!this.element){let t=this.options,n=this.layer,s=document.createElement("span");if(Ht(s,C),this.options.template){const S=this._compileTemplate(this.options.template)(this.dataItem),k=K_(S);s.appendChild(k)}else if(t.svgIcon)Ui(s,{icon:t.svgIcon,iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:"svg"});else{let p={icon:"map-marker",iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:this.options.icons.type};t.shape?"pinTarget"===t.shape?(p.icon="map-marker-target",Ui(s,p)):"pin"===t.shape?Ui(s,p):Ht(s,"k-icon k-icon-xxl k-i-marker-"+Rb(t.shape||"pin")):Ui(s,p)}t.title&&s.setAttribute("title",t.title);const c=t.attributes||{};Object.keys(c).forEach(function(p){s.setAttribute(p,c[p])}),s._kendoNode=this,s.style.zIndex=t.zIndex,this.element=s,n&&n.element.appendChild(this.element),this.bindEvents()}}_mouseEnter(t){const n=this._createEventArgs(t);this.layer._markerMouseEnter(n),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())}_tooltipContext(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}}_mouseLeave(t){const n=this._createEventArgs(t);this.layer._markerMouseLeave(n)}_createEventArgs(t){return{marker:this,originalEvent:t}}_compileTemplate(t){return je.compile(t,{paramName:"dataItem",useWithBlock:!1})}static create(t,n){return t instanceof be?t:new be(U({},n,t))}}const Ge=Object.assign;function nt(g){window.requestAnimationFrame(g)}class Yt extends Xi.Z{constructor(){super();let t=this;t._tickProxy=ml(t._tick,t),t._started=!1}tick(){}done(){}onEnd(){}onCancel(){}start(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,nt(this._tickProxy)))}enabled(){return!0}cancel(){this._started=!1,this.onCancel()}_tick(){let t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):nt(t._tickProxy))}}class On extends Yt{constructor(t){super(),Ge(this,t)}done(){return this.timePassed()>=this.duration}timePassed(){return Math.min(this.duration,vf()-this.startDate)}moveTo(t){let n=this;n.initial=n.movable[n.axis],n.delta=t.location-n.initial,n.duration="number"==typeof t.duration?t.duration:300,n.tick=n._easeProxy(t.ease),n.startDate=vf(),n.start()}_easeProxy(t){let n=this;return function(){n.movable.moveAxis(n.axis,t(n.timePassed(),n.initial,n.delta,n.duration))}}static easeOutExpo(t,n,s,c){return t===c?n+s:s*(1-Math.pow(2,-10*t/c))+n}}const li=Object.assign,Ai=g=>{g.preventDefault()};let Ji=800,io=0,Qr="move",jb="tap",sC="doubleTap",oC="release",rC="gesturechange",aC="gestureend",lC="gesturetap",w6={api:0,touch:0,mouse:9,pointer:9};function cC(g){const t=um();let S,k,$,n=[],s=g.originalEvent||g,c=g.currentTarget,p=0;if(g.api)n.push({id:2,event:g,target:g.target,currentTarget:g.target,location:g,type:"api"});else if(g.type.match(/touch/))for(k=s?s.changedTouches:[],S=k.length;p<S;p++)$=k[p],n.push({location:$,event:g,target:$.target,currentTarget:c,id:$.identifier,type:"touch"});else n.push(t.pointers||t.msPointers?{location:s,event:g,target:g.target,currentTarget:c,id:s.pointerId,type:"pointer"}:{id:1,event:g,target:g.target,currentTarget:c,location:g,type:"mouse"});return n}class uC extends Xi.Z{constructor(t,n){super();let s=this;s.support=um(),s.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,s.axis=t,s._updateLocationData(n),s.startLocation=s.location,s.velocity=s.delta=0,s.timeStamp=vf()}move(t){let n=this,s=t["page"+n.axis],c=vf(),p=c-n.timeStamp||1;!s&&this.invalidZeroEvents||(n.delta=s-n.location,n._updateLocationData(t),n.initialDelta=s-n.startLocation,n.velocity=n.delta/p,n.timeStamp=c)}_updateLocationData(t){let n=this,s=n.axis;n.location=t["page"+s],n.client=t["client"+s],n.screen=t["screen"+s]}}class D6 extends Xi.Z{constructor(t,n,s){super(),li(this,{x:new uC("X",s.location),y:new uC("Y",s.location),type:s.type,useClickAsTap:t.useClickAsTap,threshold:t.threshold||w6[s.type],userEvents:t,target:n,currentTarget:s.currentTarget,initialTouch:s.target,id:s.id,pressEvent:s,_clicks:t._clicks,supportDoubleTap:t.supportDoubleTap,_moved:!1,_finished:!1})}press(){this._holdTimeout=setTimeout(ml(this._hold,this),this.userEvents.minHold),this._trigger("press",this.pressEvent)}_tap(t){let n=this;n.userEvents._clicks++,1===n.userEvents._clicks&&(n._clickTimeout=setTimeout(function(){n._trigger(1===n.userEvents._clicks?jb:sC,t),n.userEvents._clicks=0},300))}_hold(){this._trigger("hold",this.pressEvent)}move(t){let n=this;if(!(n._finished||"api"!==t.type&&n.userEvents._shouldNotMove)){if(n.x.move(t.location),n.y.move(t.location),!n._moved){if(n._withinIgnoreThreshold())return;if(py.current&&py.current!==n.userEvents)return n.dispose();n._start(t)}n._finished||n._trigger(Qr,t)}}end(t){this.endTime=vf(),!this._finished&&(this._finished=!0,this._trigger(oC,t),this._moved?this._trigger("end",t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(jb,t)),clearTimeout(this._holdTimeout),this.dispose())}dispose(){let n=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);const s=n.indexOf(this);n.splice(s,1)}skip(){this.dispose()}cancel(){this.dispose()}isMoved(){return this._moved}_start(t){clearTimeout(this._holdTimeout),this.startTime=vf(),this._moved=!0,this._trigger("start",t)}_trigger(t,n){let s=this,c=n.event;s.userEvents.notify(t,{touch:s,x:s.x,y:s.y,target:s.target,event:c})&&c.preventDefault()}_withinIgnoreThreshold(){let t=this.x.initialDelta,n=this.y.initialDelta;return Math.sqrt(t*t+n*n)<=this.threshold}}function dC(g){let n=Q1(navigator.userAgent).up.split(" "),s=0,c=n.length;for(;s<c;s++)g(n[s])}class py extends Kh{constructor(t,n){super();let c,s=this;const p=um();if(this.support=p,this.options=n=n||{},c=s.filter=n.filter,s.threshold=n.threshold||io,s.minHold=n.minHold||Ji,s.touches=[],s._maxTouches=n.multiTouch?2:1,s.allowSelection=n.allowSelection,s.captureUpIfMoved=n.captureUpIfMoved,s.useClickAsTap=!n.fastTap&&!p.delayedClick(),s._clicks=0,s.supportDoubleTap=n.supportDoubleTap,li(s,{element:t,surface:!n.global||p.touch&&!p.mouseAndTouchPresent?n.surface||t:t.ownerDocument.documentElement,stopPropagation:n.stopPropagation,pressed:!1}),this._surfaceMoveHandler=ml(this._move,this),uu(s.surface,Zh("move"),this._surfaceMoveHandler),this._surfaceEndHandler=ml(this._end,this),uu(s.surface,Zh("up cancel"),this._surfaceEndHandler),this._elementStartHandler=ml(this._start,this),uu(t,Zh("down"),c,this._elementStartHandler),s.useClickAsTap&&(this._elementClickHandler=ml(this._click,this),uu(t,Zh("click"),c,this._elementClickHandler)),p.pointers||p.msPointers)if(p.browser.version<11){let k="pinch-zoom double-tap-zoom";t.style["-ms-touch-action"]=n.touchAction&&"none"!==n.touchAction?k+" "+n.touchAction:k}else t.style["touch-action"]=n.touchAction||"none";if(n.preventDragEvent&&(this._elementDragStartHandler=Ai,uu(t,Zh("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=ml(this._select,this),uu(t,Zh("mousedown"),c,this._elementSelectHandler),s.captureUpIfMoved&&p.eventCapture){let k=s.surface,$=ml(s.preventIfMoving,s);dC(function(me){k.addEventListener(me,$,!0)})}s.bind(["press","hold",jb,sC,"start",Qr,"end",oC,"cancel","gesturestart",rC,aC,lC,"select"],n)}preventIfMoving(t){this._isMoved()&&t.preventDefault()}destroy(){let t=this;const n=this.options,s=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){let c=t.surface;dC(function(p){c.removeEventListener(p,t.preventIfMoving)})}vd(t.surface,Zh("move"),this._surfaceMoveHandler),vd(t.surface,Zh("up cancel"),this._surfaceEndHandler),vd(s,Zh("down"),this._elementStartHandler),t.useClickAsTap&&vd(s,Zh("click"),this._elementClickHandler),n.preventDragEvent&&vd(s,Zh("dragstart"),this._elementDragStartHandler),vd(s,Zh("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}}capture(){py.current=this}cancel(){this._disposeAll(),this.trigger("cancel")}notify(t,n){let c=this.touches,p=t;if(this._isMultiTouch()){switch(p){case Qr:p=rC;break;case"end":p=aC;break;case jb:p=lC}li(n,{touches:c},function x6(g,t){let n=g.x.location,s=g.y.location,c=t.x.location,p=t.y.location,S=n-c,k=s-p;return{center:{x:(n+c)/2,y:(s+p)/2},distance:Math.sqrt(S*S+k*k)}}(c[0],c[1]))}return this.trigger(p,li(n,{type:p}))}press(t,n,s){this._apiCall("_start",t,n,s)}move(t,n){this._apiCall("_move",t,n)}end(t,n){this._apiCall("_end",t,n)}_isMultiTouch(){return this.touches.length>1}_maxTouchesReached(){return this.touches.length>=this._maxTouches}_disposeAll(){let t=this.touches;for(;t.length>0;)t.pop().dispose()}_isMoved(){return Gn(this.touches,function(t){return t.isMoved()}).length}_select(t){(!this.allowSelection||this.trigger("select",{event:t}))&&t.preventDefault()}_start(t){let p,$,n=this,s=0,c=n.filter,S=cC(t),k=S.length,me=t.which;if(!(me&&me>1||n._maxTouchesReached()))for(py.current=null,n.currentTarget=t.currentTarget,n.stopPropagation&&t.stopPropagation();s<k&&!n._maxTouchesReached();s++)$=S[s],p=c?$.currentTarget:n.element,(!p||0!==p.length)&&($=new D6(n,p,$),n.touches.push($),$.press(),n._isMultiTouch()&&n.notify("gesturestart",{}))}_move(t){this._eachTouch("move",t)}_end(t){this._eachTouch("end",t)}_click(t){let n={touch:{initialTouch:t.target,target:t.currentTarget,endTime:vf(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:t.currentTarget,event:t,type:"tap"};this.trigger("tap",n)&&t.preventDefault()}_eachTouch(t,n){let k,$,me,Ve,c={},p=cC(n),S=this.touches;for(k=0;k<S.length;k++)$=S[k],c[$.id]=$;for(k=0;k<p.length;k++)me=p[k],Ve=c[me.id],Ve&&Ve[t](me)}_apiCall(t,n,s,c){this[t]({api:!0,pageX:n,pageY:s,clientX:n,clientY:s,target:c||this.element,stopPropagation:SS,preventDefault:SS})}static defaultThreshold(t){io=t}static minHold(t){Ji=t}}let fy=Object.assign,e2=Math.abs,RS="change";class P6 extends Yt{constructor(t){super(t);let n=this;fy(n,t),n.userEvents.bind("gestureend",n.start.bind(this)),n.tapCapture.bind("press",n.cancel.bind(this))}enabled(){return this.movable.scale<this.dimensions.minScale}done(){return this.dimensions.minScale-this.movable.scale<.01}tick(){let t=this.movable;t.scaleWith(1.1),this.dimensions.rescale(t.scale)}onEnd(){let t=this.movable;t.scaleTo(this.dimensions.minScale),this.dimensions.rescale(t.scale)}}class N6 extends Yt{constructor(t){super();let n=this;fy(n,t,{transition:new On({axis:t.axis,movable:t.movable,onEnd(){n._end()}})}),n.tapCapture.bind("press",function(){n.cancel()}),n.userEvents.bind("end",ml(n.start,n)),n.userEvents.bind("gestureend",ml(n.start,n)),n.userEvents.bind("tap",ml(n.onEnd,n))}onCancel(){this.transition.cancel()}freeze(t){this.cancel(),this._moveTo(t)}onEnd(){let t=this;t.paneAxis.outOfBounds()?t._snapBack():t._end()}done(){return e2(this.velocity)<1}start(t){let s,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n.transition._started?(n.transition.cancel(),n.velocity=Math.min(t.touch[n.axis].velocity*n.velocityMultiplier,55),super.start()):n._snapBack():(s=2===t.touch.id?0:t.touch[n.axis].velocity,n.velocity=Math.max(Math.min(s*n.velocityMultiplier,55),-55),n.tapCapture.captureNext(),super.start()))}tick(){let t=this,n=t.dimension,s=t.paneAxis.outOfBounds()?.5:t.friction,c=t.velocity*=s,p=t.movable[t.axis]+c;!t.elastic&&n.outOfBounds(p)&&(p=Math.max(Math.min(p,n.max),n.min),t.velocity=0),t.movable.moveAxis(t.axis,p)}_end(){this.tapCapture.cancelCapture(),this.end()}_snapBack(){let t=this,n=t.dimension;t._moveTo(t.movable[t.axis]>n.max?n.max:n.min)}_moveTo(t){this.transition.moveTo({location:t,duration:500,ease:On.easeOutExpo})}}class L6 extends Yt{constructor(t){super(t),fy(this,t,{origin:{},destination:{},offset:{}})}tick(){this._updateCoordinates(),this.moveTo(this.origin)}done(){return e2(this.offset.y)<5&&e2(this.offset.x)<5}onEnd(){this.moveTo(this.destination),this.callback&&this.callback.call()}setCoordinates(t,n){this.offset={},this.origin=t,this.destination=n}setCallback(t){t&&mn(t)?this.callback=t:t=void 0}_updateCoordinates(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}class F6 extends Xi.Z{constructor(t){super();let n=this,s="x"===t.axis;const p=K_('<div class="km-touch-scrollbar km-'+(s?"horizontal":"vertical")+'-scrollbar" />');fy(n,t,{element:p,elementSize:0,movable:new OS(p),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:s?"width":"height"}),n.scrollMovable.bind(RS,n.refresh.bind(n)),n.container.appendChild(p),t.alwaysVisible&&n.show()}refresh(){let t=this,n=t.axis,s=t.dimension,c=s.size,S=c/s.total,k=Math.round(-t.scrollMovable[n]*S),$=Math.round(c*S);this.element.style.display=S>=1?"none":"",k+$>c?$=c-k:k<0&&($+=k,k=0),t.elementSize!==$&&(t.element.style[t.size]=$+"px",t.elementSize=$),t.movable.moveAxis(n,k)}show(){this.element.style.opacity=.7,this.element.style.visibility="visible"}hide(){this.alwaysVisible||(this.element.style.opacity=0)}}class b3 extends Kh{constructor(t,n){super();let s=this;this.element=t,this._initOptions(n);const c=(g=>{const t=Pb(g);return t.ios||t.android})(navigator.userAgent);s._native=s.options.useNative&&c;const p=K_('<div class="km-scroll-header"/>');if(s._native)return Ht(t,"km-native-scroller"),fS(p,t),void fy(s,{scrollElement:t,fixedContainer:t.children[0]});t.style.overflow="hidden",Ht(t,"km-scroll-wrapper"),((g,t)=>{for(g.appendChild(t);g.firstChild!==t;)t.appendChild(g.firstChild)})(t,K_('<div class="km-scroll-container"/>')),fS(p,t);let k=t.children[1],$=new X3(t),me=new OS(k),Ve=new m3({element:k,container:t,forcedEnabled:s.options.zoom}),_t=this.options.avoidScrolling,Vt=new py(t,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:s.options.zoom,supportDoubleTap:s.options.supportDoubleTap,start(ts){Ve.refresh();let Os=e2(ts.x.velocity),Zs=e2(ts.y.velocity),wr=2*Os>=Zs,_a=((g,t)=>g===t||((g,t)=>{if(!t)return!1;let n=t.parentNode;for(;null!==n;){if(n===g)return!0;n=n.parentNode}return!1})(g,t))(s.fixedContainer,ts.event.target),ka=2*Zs>=Os;!_a&&!_t(ts)&&s.enabled&&(Ve.x.enabled&&wr||Ve.y.enabled&&ka)?Vt.capture():Vt.cancel()}}),Wn=new q3({movable:me,dimensions:Ve,userEvents:Vt,elastic:s.options.elastic}),si=new P6({movable:me,dimensions:Ve,userEvents:Vt,tapCapture:$}),Ri=new L6({moveTo(ts){s.scrollTo(ts.x,ts.y)}});me.bind(RS,function(){s.scrollTop=-me.y,s.scrollLeft=-me.x,s.trigger("scroll",{scrollTop:s.scrollTop,scrollLeft:s.scrollLeft})}),s.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),uu(t,"wheel",this._wheelScrollHandler)),fy(s,{movable:me,dimensions:Ve,zoomSnapBack:si,animatedScroller:Ri,userEvents:Vt,pane:Wn,tapCapture:$,pulled:!1,enabled:!0,scrollElement:k,scrollTop:0,scrollLeft:0,fixedContainer:t.children[0]}),s._initAxis("x"),s._initAxis("y"),s._wheelEnd=function(){s._wheel=!1,s.userEvents.end(0,s._wheelY)},Ve.refresh(),s.options.pullToRefresh&&s._initPullToRefresh()}_initOptions(t){this.options=U({},this.options,t)}_wheelScroll(t){if(t.ctrlKey)return;this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);let n=(g=>{const t=g.originalEvent||g,n=t.wheelDeltaY;let s;return t.wheelDelta?(void 0===n||n)&&(s=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(s=10*-t.detail),s})(t);n&&(this._wheelY+=n,this.userEvents.move(0,this._wheelY)),t.preventDefault()}makeVirtual(){this.dimensions.y.makeVirtual()}virtualSize(t,n){this.dimensions.y.virtualSize(t,n)}height(){return this.dimensions.y.size}scrollHeight(){return this.scrollElement.scrollHeight}scrollWidth(){return this.scrollElement.scrollWidth}_resize(){this._native||this.contentResized()}setOptions(t){this._initOptions(t),t.pullToRefresh&&this._initPullToRefresh()}reset(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}contentResized(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}zoomOut(){let t=this.dimensions;t.refresh(),this._scale(t.fitScale),this.movable.moveTo(t.centerCoordinates())}enable(){this.enabled=!0}disable(){this.enabled=!1}scrollTo(t,n){this._native?(this.scrollElement.scrollLeft(e2(t)),this.scrollElement.scrollTop(e2(n))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:n}))}animatedScrollTo(t,n,s){let c,p;this._native?this.scrollTo(t,n):(c={x:this.movable.x,y:this.movable.y},p={x:t,y:n},this.animatedScroller.setCoordinates(c,p),this.animatedScroller.setCallback(s),this.animatedScroller.start())}pullHandled(){}destroy(){vd(this.element,"wheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}_scale(t){this.dimensions.rescale(t),this.movable.scaleTo(t)}_initPullToRefresh(){}_dragEnd(){}_paneChange(){}_initAxis(t){let n=this,s=n.movable,c=n.dimensions[t],p=n.tapCapture,S=n.pane[t],k=new F6({axis:t,movable:s,dimension:c,container:n.element,alwaysVisible:n.options.visibleScrollHints});c.bind(RS,function(){k.refresh()}),S.bind(RS,function(){k.show()}),n[t+"inertia"]=new N6({axis:t,paneAxis:S,movable:s,tapCapture:p,userEvents:n.userEvents,dimension:c,elastic:n.options.elastic,friction:n.options.friction||.96,velocityMultiplier:n.options.velocityMultiplier||10,end(){k.hide(),n.trigger("scrollEnd",{axis:t,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft})}})}}ni(b3,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:()=>!1,pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Lb(b3,["pull","scroll","resize"]);let Q_=Math,fC=Q_.min,S3=Q_.pow,mC=js.Z,PS="marker",NS="location";const Y6={bubble:_3,shape:Vb,tile:f3,[PS]:Z};class _C extends Kh{constructor(t,n={},s={},c={}){super(),this._init(t,n,s,c)}destroy(){this.scroller.destroy(),this._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),An(this.markers)?this.markers.forEach(t=>{t.destroy()}):this.markers.destroy();for(let t=0;t<this.layers.length;t++)this.layers[t].destroy();vd(this.element,"wheel",this._mousewheelHandler),super.destroy()}_init(t,n={},s={},c={}){this.support=um(),this.context=c,this.initObserver(c),this.initServices(c),this._notifyObserver("init"),this._initOptions(n),this._setEvents(n),this.crs=new cm,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();const p=Up(this._mousewheel.bind(this),50);this._mousewheelHandler=S=>{S.preventDefault(),p(S)},uu(this.element,"wheel",this._mousewheelHandler)}_initOptions(t){this.options=U({},this.options,t)}_initElement(t){this.element=t,Ht(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),J1(t);const n=K_("<div />");this.element.appendChild(n)}initServices(t={}){this.widgetService=new class z6{constructor(t,n={}){this.sender=n.sender||t,this.widget=t,this.rtl=Boolean(n.rtl)}notify(t,n){this.widget&&this.widget.trigger(t,n)}}(this,t)}initObserver(t={}){this.observers=[],this.addObserver(t.observer)}addObserver(t){t&&this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n>=0&&this.observers.splice(n,1)}requiresHandlers(t){const n=this.observers;for(let s=0;s<n.length;s++)if(n[s].requiresHandlers(t))return!0}trigger(t,n={}){n.sender=this;const s=this.observers;let c=!1;for(let p=0;p<s.length;p++)s[p].trigger(t,n)&&(c=!0);return c||super.trigger(t,n),c}_notifyObserver(t,n={}){n.sender=this;const s=this.observers;let c=!1;for(let p=0;p<s.length;p++)s[p].trigger(t,n)&&(c=!0);return c}zoom(t){let s,n=this.options;if(ei(t)){const c=Q_.round(Be(t,n.minZoom,n.maxZoom));n.zoom!==c&&(n.zoom=c,this.widgetService.notify("zoomChange",{zoom:n.zoom}),this._reset()),s=this}else s=n.zoom;return s}center(t){let n;if(t){const s=Fl.create(t),c=Fl.create(this.options.center);s.equals(c)||(this.options.center=s.toArray(),this.widgetService.notify(xS,{center:this.options.center}),this._reset()),n=this}else n=Fl.create(this.options.center);return n}extent(t){let n;return t?(this._setExtent(t),n=this):n=this._getExtent(),n}setOptions(t={}){const n=this.element;this.destroy(),J1(n),this._init(n,t,{},this.context),this._reset()}locationToLayer(t,n){let s=!this.options.wraparound;const c=Fl.create(t);return this.crs.toPoint(c,this._layerSize(n),s)}layerToLocation(t,n){let s=!this.options.wraparound;const c=mC.create(t);return this.crs.toLocation(c,this._layerSize(n),s)}locationToView(t){const n=Fl.create(t);let s=this.locationToLayer(this._viewOrigin);return this.locationToLayer(n).translateWith(s.scale(-1))}viewToLocation(t,n){const s=this.locationToLayer(this._getOrigin(),n),p=mC.create(t).clone().translateWith(s);return this.layerToLocation(p,n)}eventOffset(t){let n,s,c=po(this.element);if(t.x&&t.x[NS]||t.y&&t.y[NS])n=t.x[NS]-c.left,s=t.y[NS]-c.top;else{let S=t.originalEvent||t;n=Et(S.pageX,S.clientX)-c.left,s=Et(S.pageY,S.clientY)-c.top}return new js.Z(n,s)}eventToView(t){let n=this.eventOffset(t);return this.locationToView(this.viewToLocation(n))}eventToLayer(t){return this.locationToLayer(this.eventToLocation(t))}eventToLocation(t){let n=this.eventOffset(t);return this.viewToLocation(n)}viewSize(){let t=this.element,n=this._layerSize(),s=t.clientWidth;return this.options.wraparound||(s=fC(n,s)),{width:s,height:fC(n,t.clientHeight)}}exportVisual(){return this._reset(),!1}hideTooltip(){this._tooltip&&this._tooltip.hide()}_setOrigin(t,n){let c,s=this.viewSize();const p=this._origin=Fl.create(t);return c=this.locationToLayer(p,n),c.x+=s.width/2,c.y+=s.height/2,this.options.center=this.layerToLocation(c,n).toArray(),this.widgetService.notify(xS,{center:this.options.center}),this}_getOrigin(t){let s,n=this.viewSize();return(t||!this._origin)&&(s=this.locationToLayer(this.center()),s.x-=n.width/2,s.y-=n.height/2,this._origin=this.layerToLocation(s)),this._origin}_setExtent(t){let n=dm.create(t),s=n.se.clone();this.options.wraparound&&s.lng<0&&t.nw.lng>0&&(s.lng=180+(180+s.lng));const c=new dm(n.nw,s);this.center(c.center());let k,p=this.element.clientWidth,S=this.element.clientHeight;for(k=this.options.maxZoom;k>=this.options.minZoom;k--){let $=this.locationToLayer(c.nw,k),me=this.locationToLayer(c.se,k),Ve=Q_.abs(me.x-$.x),_t=Q_.abs(me.y-$.y);if(Ve<=p&&_t<=S)break}this.zoom(k)}_getExtent(){let t=this._getOrigin(),n=this.locationToLayer(t),s=this.viewSize();n.x+=s.width,n.y+=s.height;let c=this.layerToLocation(n);return new dm(t,c)}_zoomAround(t,n){this._setOrigin(this.layerToLocation(t,n),n),this.zoom(n)}_initControls(){let t=this.options.controls;t.attribution&&this._createAttribution(t.attribution),this.support.mobileOS||(t.navigator&&this._createNavigator(t.navigator),t.zoom&&this._createZoomControl(t.zoom))}_createControlElement(t,n){let s=t.position||n,c="."+n3(s).replace(" ","."),p=this.element.querySelector(".k-map-controls"+c)||[];if(0===p.length){let k=document.createElement("div");Ht(k,"k-map-controls "+n3(s)),p=k,this.element.appendChild(p)}let S=document.createElement("div");return p.appendChild(S),S}_createAttribution(t){let n=this._createControlElement(t,"bottomRight");this.attribution=new X1(n,t)}_createNavigator(t){let n=this._createControlElement(t,"topLeft"),s=this.navigator=new yf(n,U({},t,{icons:this.options.icons}));this._navigatorPan=this._navigatorPan.bind(this),s.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),s.bind("center",this._navigatorCenter)}_navigatorPan(t){let n=this.scroller,s=n.scrollLeft+t.x,c=n.scrollTop-t.y,p=this._virtualSize,k=this.element.clientHeight;s=Be(s,p.x.min,p.x.max-this.element.clientWidth),c=Be(c,p.y.min,p.y.max-k),this.scroller.one("scroll",ml(this._scrollEnd,this)),this.scroller.scrollTo(-s,-c)}_navigatorCenter(){this.center(this.options.center)}_createZoomControl(t){let n=this._createControlElement(t,"topLeft"),s=this.zoomControl=new J_(n,t,this.options.icons);this._zoomControlChange=this._zoomControlChange.bind(this),s.bind("change",this._zoomControlChange)}_zoomControlChange(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))}_initScroller(){let s=this.scroller=new b3(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});s.bind("scroll",ml(this._scroll,this)),s.bind("scrollEnd",ml(this._scrollEnd,this)),s.userEvents.bind("gesturestart",ml(this._scaleStart,this)),s.userEvents.bind("gestureend",ml(this._scale,this)),s.userEvents.bind("doubleTap",ml(this._doubleTap,this)),s.userEvents.bind("tap",ml(this._tap,this)),this.scrollElement=s.scrollElement}_initLayers(){let t=this.options.layers,n=this.layers=[];for(let s=0;s<t.length;s++){const p=this._createLayer(t[s]);n.push(p)}}_createLayer(t){let n=t.type||"shape",s=this.options.layerDefaults[n],c=n===PS?U({},this.options.markerDefaults,t,{icons:this.options.icons}):U({},s,t),S=new(0,Y6[n])(this,c);return n===PS&&(this.markers=S),S}_createTooltip(){return new Gb(this.widgetService,this.options.tooltip)}_initMarkers(){(this.options.layers||[]).filter(n=>n&&n.type===PS).length>0||(this.markers=new Z(this,U({},this.options.markerDefaults,{icons:this.options.icons})),this.markers.add(this.options.markers))}_scroll(t){let n=this.locationToLayer(this._viewOrigin).round(),s=t.sender.movable,c=new js.Z(s.x,s.y).scale(-1).scale(1/s.scale);n.x+=c.x,n.y+=c.y,this._scrollOffset=c,this._tooltip.offset=c,this.hideTooltip(),this._setOrigin(this.layerToLocation(n)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})}_scrollEnd(t){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=vf(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))}_panComplete(){return vf()-(this._panEndTimestamp||0)>50}_scaleStart(t){if(this.trigger("zoomStart",{originalEvent:t})){let n=t.touches[1];n&&n.cancel()}}_scale(t){let s=this._scaleToZoom(this.scroller.movable.scale),c=new js.Z(t.center.x,t.center.y),p=this.viewToLocation(c,s),k=this.locationToLayer(p,s).translate(-c.x,-c.y);this._zoomAround(k,s),this.trigger("zoomEnd",{originalEvent:t})}_scaleToZoom(t){let s=this._layerSize()*t/this.options.minSize,c=Q_.log(s)/Q_.log(2);return Q_.round(c)}_reset(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")}_resetScroller(){let t=this.scroller,n=t.dimensions.x,s=t.dimensions.y,c=this._layerSize(),p=this.extent().nw,S=this.locationToLayer(p).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();let k=this.zoom();t.dimensions.forcedMinScale=S3(2,this.options.minZoom-k),t.dimensions.maxScale=S3(2,this.options.maxZoom-k);let $={min:-S.x,max:c-S.x},me={min:-S.y,max:c-S.y};if(this.options.wraparound&&($.max=20*c,$.min=-$.max),!1===this.options.pannable){let Ve=this.viewSize();$.min=me.min=0,$.max=Ve.width,me.max=Ve.height}n.makeVirtual(),s.makeVirtual(),n.virtualSize($.min,$.max),s.virtualSize(me.min,me.max),this._virtualSize={x:$,y:me}}_renderLayers(){}_layerSize(t){const n=Et(t,this.options.zoom);return this.options.minSize*S3(2,n)}_tap(t){if(!this._panComplete())return;let n=this.eventOffset(t);this.hideTooltip(),this.trigger("click",{originalEvent:t,location:this.viewToLocation(n)})}_doubleTap(t){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:t})){let s=this.zoom()+1,c=this.eventOffset(t),p=this.viewToLocation(c),k=this.locationToLayer(p,s).translate(-c.x,-c.y);this._zoomAround(k,s),this.trigger("zoomEnd",{originalEvent:t})}}_mousewheel(t){let n=as(t)>0?-1:1,s=this.options,c=this.zoom(),p=Be(c+n,s.minZoom,s.maxZoom);if(!1!==s.zoomable&&p!==c&&!this.trigger("zoomStart",{originalEvent:t})){let S=this.eventOffset(t),k=this.viewToLocation(S),me=this.locationToLayer(k,p).translate(-S.x,-S.y);this._zoomAround(me,p),this.trigger("zoomEnd",{originalEvent:t})}}_toDocumentCoordinates(t){const n=po(this.element);return{left:Ke(t.x+n.left),top:Ke(t.y+n.top)}}}ni(_C,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],icons:{type:"font",svgIcons:{}},zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Lb(_C,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const C3="Arial, Helvetica, sans-serif",W6="11px "+C3,LS="12px "+C3,yC="16px "+C3,bC="transparent",CC=()=>({icon:{border:{width:1}},label:{font:LS,padding:3},line:{length:10,width:2},visible:!0}),sw=()=>({labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}),aw=g=>Object.assign({visible:!0,labels:{font:W6},overlay:g.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:bC},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:bC,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},pyramid:sw(),horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:CC(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}},Xe.reduce((g,t)=>(g[t]={color:an,trendline:{},markers:{visible:!1},width:1,dashType:"longDash"},g),{})),AC=(g={})=>({axisDefaults:{labels:{font:LS},notes:CC(),title:{font:yC,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:aw(g),title:{font:yC},subtitle:{font:LS},legend:{labels:{font:LS}}});_(13710),_(77579);var hw=_(61135),RC=(_(39841),_(23601));_(18505);const Rw=g=>({x:{location:g.pageX},y:{location:g.pageY}});function Nw(g,t){for(let n=0;n<g.length;n++)if(t[g[n]])return!0;return!1}const NC=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}];class Lw{constructor(t,n){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),n&&this.bind(n)}tap(t){this.trigger("tap",t)}press(t){this.trigger("press",t)}panstart(t){delete this.previous,this.previous=this.trigger("start",t)}panmove(t){this.previous=this.trigger("move",t)}panend(t){this.trigger("end",t),delete this.previous}pinchstart(t){this.trigger("gesturestart",t)}pinchmove(t){this.trigger("gesturechange",t)}pinchend(t){this.trigger("gestureend",t)}trigger(t,n){const s=((g,t)=>{const n=g.pointers,s=n[0],c=s.pageX,p=s.pageY;let S=0;if(n.length>1){const k=n[0],$=n[1];S=Math.sqrt(Math.pow(k.pageX-$.pageX,2)+Math.pow(k.pageY-$.pageY,2))}return{distance:S,event:g.srcEvent,preventDefault:function(){g.preventDefault()},target:g.target,touches:n.map(Rw),type:g.type,x:{delta:t?c-t.x.location:0,initialDelta:g.deltaX,location:c,startLocation:c-g.deltaX},y:{delta:t?p-t.y.location:0,initialDelta:g.deltaY,location:p,startLocation:p-g.deltaY}}})(n,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](s),s}bind(t={}){this.unbind(),this.eventHandlers=t;for(let n=0;n<NC.length;n++){const s=NC[n],c=Object.keys(s);if(Nw(c,t))for(let p=0;p<c.length;p++){const S=s[c[p]];this.hammerInstance.on(S,this[S])}}}unbind(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}}destroy(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers}toggleDrag(t){this.toggle("pan",t)}toggleZoom(t){this.toggle("pinch",t)}toggle(t,n){this.hammerInstance&&this.hammerInstance.get(t).set({enable:n})}}const Uw=He.prototype.options.labels.dateFormats,LC={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(Aa.prototype.options.labels.dateFormats,LC),Object.assign(Uw,LC),Tl.register(class zw{static create(t,n){if(typeof window<"u"){const s=window.Hammer;if(!s){if((0,y.X6Q)())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}const c=new s(t,{recognizers:[[s.Tap],[s.Pan],[s.Pinch],[s.Press,{time:0}]]});return new Lw(c,n)}}});let xs=(()=>{class g{constructor(n){this.ngZone=n,this.store={},this.source=new hw.X({}),this.initSource()}initSource(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe((0,RC.e)(16.666666666666668))}push(n){this.store=n,this.next()}notify(n){this.set(n.key,n.value),this.next()}set(n,s){let c=this.store;const p=n.split(".");let S=p.shift();for(;p.length>0;)c=c[S]=c[S]||{},S=p.shift();c[S]=s}next(){this.ngZone.runOutsideAngular(()=>{this.source.next(this.store)})}}return g.\u0275fac=function(n){return new(n||g)(y.LFG(y.R0b))},g.\u0275prov=y.Yz7({token:g,factory:g.\u0275fac}),g})();const US=g=>`${g.fontWeight} ${g.fontSize} ${g.fontFamily}`,jC=g=>window.getComputedStyle(g).backgroundColor;let GS=(()=>{class g extends xs{constructor(n){super(n),this.loaded=!1}loadTheme(){this.loaded||!(0,ln.X_)()||(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())}readTheme(){this.createElement();const n=this.queryColor("primary")!==this.queryColor("primary-contrast");try{n&&(this.push(AC()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return n}readDefaultTheme(){this.push(Object.assign({},AC(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]}))}createElement(){const n=this.element=document.createElement("div");n.style.display="none",n.innerHTML=`\n    <div class="k-var--primary"></div>\n    <div class="k-var--primary-contrast"></div>\n    <div class="k-var--base"></div>\n    <div class="k-var--background"></div>\n\n    <div class="k-var--normal-background"></div>\n    <div class="k-var--normal-text-color"></div>\n    <div class="k-var--hover-background"></div>\n    <div class="k-var--hover-text-color"></div>\n    <div class="k-var--selected-background"></div>\n    <div class="k-var--selected-text-color"></div>\n    <div class="k-var--chart-error-bars-background"></div>\n    <div class="k-var--chart-notes-background"></div>\n    <div class="k-var--chart-notes-border"></div>\n    <div class="k-var--chart-notes-lines"></div>\n    <div class="k-var--chart-crosshair-background"></div>\n\n    <div class="k-var--chart-inactive"></div>\n    <div class="k-var--chart-major-lines"></div>\n    <div class="k-var--chart-minor-lines"></div>\n    <div class="k-var--chart-area-opacity"></div>\n    <div class="k-var--chart-area-inactive-opacity"></div>\n    <div class="k-var--chart-line-inactive-opacity"></div>\n\n    <div class="k-widget k-chart">\n        <div class="k-var--chart-font"></div>\n        <div class="k-var--chart-title-font"></div>\n        <div class="k-var--chart-pane-title-font"></div>\n        <div class="k-var--chart-label-font"></div>\n    </div>\n\n    <div class="k-var--series-unset"></div>\n    <div class="k-var--series">\n      ${(()=>{let g='\n      <div class="k-var--series-a"></div>\n      <div class="k-var--series-b"></div>\n      <div class="k-var--series-c"></div>\n      <div class="k-var--series-d"></div>\n      <div class="k-var--series-e"></div>\n      <div class="k-var--series-f"></div>\n  ';for(let t=0;t<30;t++)g+=`\n      <div class="k-var--series-${t+1}"></div>`;return g})()}\n    </div>\n`,document.body.appendChild(n)}destroyElement(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}setStyle(n,s){this.set(n,s)}setColors(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color"),this.mapColor("subtitle.color","normal-text-color");const n=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(n)||(this.setStyle("seriesDefaults.area.opacity",n),this.setStyle("seriesDefaults.radarArea.opacity",n),this.setStyle("seriesDefaults.verticalArea.opacity",n),this.setStyle("seriesDefaults.labels.opacity",n)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setInactiveOpacity(n,s){const c=parseFloat(this.queryStyle(s).opacity);!isNaN(c)&&c<1&&n.forEach(p=>this.setStyle(`seriesDefaults.${p}.highlight.inactiveOpacity`,c))}setFonts(){const n=US(this.queryStyle("chart-font")),s=US(this.queryStyle("chart-title-font")),c=US(this.queryStyle("chart-pane-title-font")),p=US(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",p),this.setStyle("axisDefaults.notes.label.font",n),this.setStyle("axisDefaults.title.font",n),this.setStyle("legend.labels.font",n),this.setStyle("seriesDefaults.labels.font",p),this.setStyle("seriesDefaults.notes.label.font",n),this.setStyle("title.font",s),this.setStyle("subtitle.font",c),this.setStyle("paneDefaults.title.font",c)}setSeriesColors(){const n=this.element,s=[].slice.call(n.querySelectorAll(".k-var--series div")),c=jC(n.querySelector(".k-var--series-unset")),p=s.reduce((S,k)=>{const $=(g=>{const t=g.match(/series-([a-z])$/);if(null!==t)return(g=>g.toLowerCase().charCodeAt(0)-"a".charCodeAt(0))(t[1]);const n=g.split("--series-")[1];return parseInt(n,10)-1})(k.className),me=jC(k);return me!==c&&(S[$]=me),S},[]);this.setStyle("seriesColors",p)}mapColor(n,s){this.setStyle(n,this.queryColor(s))}queryColor(n){return this.queryStyle(n).backgroundColor}queryStyle(n){const s=this.element.querySelector(`.k-var--${n}`);return window.getComputedStyle(s)}}return g.\u0275fac=function(n){return new(n||g)(y.LFG(y.R0b))},g.\u0275prov=y.Yz7({token:g,factory:g.\u0275fac}),g})();new y.OlP("configuration prefix");let Kb=(()=>{class g{}return g.\u0275fac=function(n){return new(n||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({providers:[GS],imports:[[G.ez,Se.Zj,ln.uv]]}),g})(),TD=(()=>{class g{}return g.\u0275fac=function(n){return new(n||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[[Kb,G.ez,Se.Zj,ln.uv],Kb]}),g})(),MD=(()=>{class g{}return g.\u0275fac=function(n){return new(n||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[[Kb,G.ez,Se.Zj,ln.uv],Kb]}),g})(),kD=(()=>{class g{}return g.\u0275fac=function(n){return new(n||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[Kb,MD,TD]}),g})();var OD=_(70370),AD=_(73494);let RD=(()=>{var g;class t{}return(g=t).\u0275fac=function(s){return new(s||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[G.ez,Y.zE6,ee.Fq,se.cy,he.nf,Se.Zj,Q.UU,te.xu,oe.rw,q.q2,we.PQ,ae.o0,Q.z8,pe.u3,Ee.r3,ke.zt,q.g9,Ye.RG,ct,vt,kD,OD.j5,AD.q7,te.Pb]}),t})();var PD=_(18146),ND=_(36802);let LD=(()=>{var g;class t{}return(g=t).\u0275fac=function(s){return new(s||g)},g.\u0275mod=y.oAB({type:g}),g.\u0275inj=y.cJS({imports:[ND.N]}),t})()},18146:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>T});var e=_(36895),o=_(94650);let T=(()=>{var A;class G{}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({providers:[e.uU]}),G})()},22570:(fn,ve,_)=>{"use strict";_.d(ve,{r:()=>T});var e=_(88783),o=_(94650);let T=(()=>{var A;class G{}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({providers:[e.$]}),G})()},88783:(fn,ve,_)=>{"use strict";_.d(ve,{$:()=>G});var e=_(94650),o=_(9967),T=_(94954),A=_(75745);let G=(()=>{var F;class N{constructor(P,y,j){this._authService=P,this._ngxPermissionsService=y,this._userService=j,this.isHasPermission=!1}hasPermission(P){this.isHasPermission=!1;for(let y=0;y<P.length;y++)if(this._ngxPermissionsService.getPermissions()[P[y]]){this.isHasPermission=!0;break}return this.isHasPermission}hasPermissionByUser(P,y){if(this._authService.userId===P)return this.hasPermission(y);const Y=this._userService.userPermissions$.getValue()?.permissions.find(ee=>ee.active&&ee.forUserId===P);if(Y)for(let ee=0;ee<Y.permissions.length;ee++)if(Y.permissions.some(se=>y.includes(se)))return!0;return!1}}return(F=N).\u0275fac=function(P){return new(P||F)(e.LFG(o.e8),e.LFG(T.YI),e.LFG(A.KD))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac}),N})()},66875:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>G});var e=_(94650);let o=(()=>{var F;class N{constructor(){this.date=[{logo:"/assets/icons/menu-calendar/logo/constitution_day_sidebar.svg",feather:"/assets/icons/menu-calendar/leaves/constitution_day_sidebar.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/constitution_day_sidebar.svg",start:new Date(2024,5,27),end:new Date(2024,5,28,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u043a\u043e\u043d\u0441\u0442\u0438\u0442\u0443\u0446\u0456\u0457 ",tooltip:"\u0414\u0435\u043d\u044c \u043a\u043e\u043d\u0441\u0442\u0438\u0442\u0443\u0446\u0456\u0457"},{logo:"/assets/icons/menu-calendar/logo/28-07-statehood-day.svg",feather:"/assets/icons/menu-calendar/leaves/28-07-statehood-day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/28-07-statehood-day.svg",start:new Date(2024,6,15),end:new Date(2024,6,19,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0457 \u0414\u0435\u0440\u0436\u0430\u0432\u043d\u043e\u0441\u0442\u0456",tooltip:"\u0414\u0435\u043d\u044c \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0457 \u0414\u0435\u0440\u0436\u0430\u0432\u043d\u043e\u0441\u0442\u0456 - \u0434\u0435\u0440\u0436\u0430\u0432\u043d\u0435 \u0441\u0432\u044f\u0442\u043e, \u0449\u043e \u0432\u0456\u0434\u0437\u043d\u0430\u0447\u0430\u0454\u0442\u044c\u0441\u044f \u0449\u043e\u0440\u043e\u043a\u0443 \u0432 \u0423\u043a\u0440\u0430\u0457\u043d\u0456 15 \u043b\u0438\u043f\u043d\u044f, \u0443 \u0414\u0435\u043d\u044c \u0445\u0440\u0435\u0449\u0435\u043d\u043d\u044f \u041a\u0438\u0457\u0432\u0441\u044c\u043a\u043e\u0457 \u0420\u0443\u0441\u0456 - \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/independence_day.svg",feather:"/assets/icons/menu-calendar/leaves/independence_day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/independence_day.svg",start:new Date(2024,7,20),end:new Date(2024,7,23,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0434\u0435\u0440\u0436\u0430\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u043f\u043e\u0440\u0430",tooltip:"23 \u0441\u0435\u0440\u043f\u043d\u044f - \u0414\u0435\u043d\u044c \u0414\u0435\u0440\u0436\u0430\u0432\u043d\u043e\u0433\u043e \u041f\u0440\u0430\u043f\u043e\u0440\u0430 \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/independence_day.svg",feather:"/assets/icons/menu-calendar/leaves/independence_day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/independence_day.svg",start:new Date(2024,7,24),end:new Date(2024,7,26,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456",tooltip:"33-\u044f \u0440\u0456\u0447\u043d\u0438\u0446\u044f \u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456. \u0414\u0435\u043d\u044c \u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456 \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/memory_day_of_UA_Defenders.svg",feather:"/assets/icons/menu-calendar/leaves/memory_day_of_UA_Defenders.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/memory_day_of_UA_Defenders.svg",start:new Date(2024,7,28),end:new Date(2024,7,29,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u043f\u0430\u043c\u02bc\u044f\u0442\u0456 \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u043a\u0456\u0432 \u0423\u043a\u0440\u0430\u0457\u043d\u0438",tooltip:"\u0414\u0435\u043d\u044c \u043f\u0430\u043c'\u044f\u0442\u0456 \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u043a\u0456\u0432 \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/knowledge_day.svg",feather:"/assets/icons/menu-calendar/leaves/01-09-knowledge-day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/knowledge_day.svg",start:new Date(2024,8,1),end:new Date(2024,8,3,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0417\u043d\u0430\u043d\u044c",tooltip:"\u0414\u0435\u043d\u044c \u0417\u043d\u0430\u043d\u044c"},{logo:"/assets/icons/menu-calendar/logo/teachers-day.svg",feather:"/assets/icons/menu-calendar/leaves/04-10-teachers-day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/teachers-day.svg",start:new Date(2024,9,4),end:new Date(2024,9,7,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0432\u0447\u0438\u0442\u0435\u043b\u044f",tooltip:"\u0414\u0435\u043d\u044c \u0432\u0447\u0438\u0442\u0435\u043b\u044f"},{logo:"/assets/icons/menu-calendar/logo/freedom_day.svg",feather:"/assets/icons/menu-calendar/leaves/14-10-defenders-of-ukraine-day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/defenders of-ukraine-day.svg",start:new Date(2024,9,14),end:new Date(2024,9,14,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u043a\u0456\u0432 \u0456 \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u0446\u044c \u0423\u043a\u0440\u0430\u0457\u043d\u0438",tooltip:"\u0414\u0435\u043d\u044c \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u043a\u0456\u0432 \u0456 \u0437\u0430\u0445\u0438\u0441\u043d\u0438\u0446\u044c \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/freedom_day.svg",feather:"/assets/icons/menu-calendar/leaves/independence_day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/freedom_day.svg",start:new Date(2024,10,21),end:new Date(2024,10,21,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0413\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u0442\u0430 \u0421\u0432\u043e\u0431\u043e\u0434\u0438",tooltip:"\u0414\u0435\u043d\u044c \u0413\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u0442\u0430 \u0421\u0432\u043e\u0431\u043e\u0434\u0438"},{logo:"/assets/icons/menu-calendar/logo/holodomor_victims_day.svg",feather:"/assets/icons/menu-calendar/leaves/memory_day_of_UA_Defenders.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/holodomor_victims_day.svg",start:new Date(2024,10,23),end:new Date(2024,10,23,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u043f\u0430\u043c'\u044f\u0442\u0456 \u0436\u0435\u0440\u0442\u0432 \u0433\u043e\u043b\u043e\u0434\u043e\u043c\u043e\u0440y",tooltip:"\u0414\u0435\u043d\u044c \u043f\u0430\u043c'\u044f\u0442\u0456 \u0436\u0435\u0440\u0442\u0432 \u0433\u043e\u043b\u043e\u0434\u043e\u043c\u043e\u0440y 1932-1933 \u0440\u043e\u043a\u0456\u0432 \u0442\u0430 \u043c\u0430\u0441\u043e\u0432\u0438\u0445 \u0448\u0442\u0443\u0447\u043d\u0438\u0445 \u0433\u043e\u043b\u043e\u0434\u0456\u0432 1921-1923 \u0456 1946-1947 \u0440\u043e\u043a\u0456\u0432."},{logo:"/assets/icons/menu-calendar/logo/armed_forces_of_Ukraine.svg",feather:"/assets/icons/menu-calendar/leaves/independence_day.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/armed_forces_of_Ukraine.svg",start:new Date(2024,11,6),end:new Date(2024,11,6,23,59,59),season:!1,name:"\u0414\u0435\u043d\u044c \u0417\u0431\u0440\u043e\u0439\u043d\u0438\u0445 \u0421\u0438\u043b \u0423\u043a\u0440\u0430\u0457\u043d\u0438",tooltip:"\u0414\u0435\u043d\u044c \u0417\u0431\u0440\u043e\u0439\u043d\u0438\u0445 \u0421\u0438\u043b \u0423\u043a\u0440\u0430\u0457\u043d\u0438"},{logo:"/assets/icons/menu-calendar/logo/christmas.svg",feather:"/assets/icons/menu-calendar/leaves/christmas-sidebar.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/christmas.svg",start:new Date(2024,11,20),end:new Date(2024,11,31,23,59,59),season:!1,name:"\u0420\u0456\u0437\u0434\u0432\u043e/NY",tooltip:"\u0429\u0430\u0441\u043b\u0438\u0432\u043e\u0433\u043e \u0420\u0456\u0437\u0434\u0432\u0430 \u0442\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u043e\u043a\u0443!"},{logo:"/assets/icons/menu-calendar/logo/logo-winter.svg",feather:"/assets/icons/menu-calendar/leaves/leaves_menu.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/winter.svg",start:new Date(2024,0,1),end:new Date(2024,1,29,23,59,59),season:!0,name:"\u0417\u0438\u043c\u0430 \u04471",tooltip:""},{logo:"/assets/icons/menu-calendar/logo/logo-spring-2024.svg",feather:"/assets/icons/menu-calendar/leaves/leaves_menu.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/menu-spring-frame.svg",start:new Date(2024,2,1),end:new Date(2024,4,31,23,59,59),season:!0,name:"\u0412\u0435\u0441\u043d\u0430",tooltip:""},{logo:"/assets/icons/menu-calendar/logo/summer-logo.svg",feather:"/assets/icons/menu-calendar/leaves/leaves-summer-sun.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/menu-summer.svg",start:new Date(2024,5,1),end:new Date(2024,7,31,23,59,59),season:!0,name:"\u041b\u0456\u0442\u043e",tooltip:""},{logo:"/assets/icons/menu-calendar/logo/autumn.svg",feather:"/assets/icons/menu-calendar/leaves/leaves_menu.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/autumn.svg",start:new Date(2024,8,1),end:new Date(2024,10,30,23,59,59),season:!0,name:"\u041e\u0441\u0456\u043d\u044c",tooltip:""},{logo:"/assets/icons/menu-calendar/logo/logo-winter.svg",feather:"/assets/icons/menu-calendar/leaves/leaves_menu.svg",menuBar:"/assets/icons/menu-calendar/menu-bar/winter.svg",start:new Date(2024,11,1),end:new Date(2024,11,31,23,59,59),season:!0,name:"\u0417\u0438\u043c\u0430 \u04472",tooltip:""}]}}return(F=N).\u0275fac=function(P){return new(P||F)},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),N})();var A=_(75745);let G=(()=>{var F;class N{constructor(P,y){this._logoByDateService=P,this._dateTransformService=y,this.today=new Date,this.data=this._logoByDateService.date}transform(P){const y=this.data.filter(Y=>Y.start.getTime()<=this.today.getTime()&&Y.end.getTime()>=this.today.getTime());let j;return j=2===y?.length?y.find(Y=>!Y.season)[P]:y[0]?.[P],j}}return(F=N).\u0275fac=function(P){return new(P||F)(e.Y36(o,16),e.Y36(A._3,16))},F.\u0275pipe=e.Yjl({name:"calendarLogo",type:F,pure:!0}),N})()},16925:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>A});var e=_(92340),o=_(94650),T=_(9116);let A=(()=>{var G;class F{constructor(R){this._router=R}get authUrl(){return e.N.authUrl}get apiUrl(){return e.N.apiUrl}get maintenanceUrl(){return e.N.maintenanceUrl}get chatUrl(){return e.N.chatUrl}changeType(R){const P=this._router.createUrlTree([],{queryParams:{type:R},queryParamsHandling:"merge",preserveFragment:!0});this._router.navigateByUrl(P)}}return(G=F).\u0275fac=function(R){return new(R||G)(o.LFG(T.F0))},G.\u0275prov=o.Yz7({token:G,factory:G.\u0275fac}),F})()},31468:(fn,ve,_)=>{"use strict";_.d(ve,{f:()=>G});var e=_(80529),o=_(90318),T=_(16925),A=_(84979);class G{constructor(N,R=o.UW.Api){this.defaultHeaders=P=>P instanceof FormData?new e.WM:this.getApiHeaders(),this.body=P=>P instanceof FormData?P:JSON.stringify(P),this.aliasHeaders=(P,y)=>P?y.append("Alias",P):y,this._getHttpClient=()=>A.k.getInjector().get(e.eN),this._getGlobalService=()=>A.k.getInjector().get(T.U),this.globalService=this._getGlobalService(),this._cleanOrigin=this._getOrigin(R),this._cleanPath=N?N.trimSymbol("/"):""}get http(){return this._http??(this._http=this._getHttpClient())}get apiOrigin(){return this._cleanOrigin}apiHref(){return`${this.apiBaseHref()}/${this._cleanPath}`}apiBaseHref(){return`${this._cleanOrigin}/api/v1`}getApiHeaders(){return new e.WM({"Content-Type":"application/json",Accept:"application/json"})}_getOrigin(N){switch(N){case o.UW.Auth:return this.globalService.authUrl;case o.UW.Api:return this.globalService.apiUrl;case o.UW.Maintenance:return this.globalService.maintenanceUrl;default:return N.trimSymbol("/","right")}}}},86005:(fn,ve,_)=>{"use strict";_.d(ve,{v:()=>y});var e=_(16036),o=_(80529),T=_(54004),A=_(28746),G=_(77579),F=_(31468),N=_(9967),R=_(84979),P=_(92340);class y extends F.f{constructor(Y,ee,se,he){super(ee,he),this._type=Y,this._alias=se,this.requestFinished$=new G.x,this.instanceOf=(Se,te)=>Se?new te(Se):null,this._getAuthService=()=>R.k.getInjector().get(N.e8)}read(Y,ee){return this.httpGet(`${this.apiHref()}/${Y}`,ee)}all(Y){return this.httpGetAll(this.apiHref(),Y)}create(Y,ee=null,se=null){return this.httpPost(this.apiHref(),Y,ee,se)}update(Y,ee,se){return this.httpPut(`${this.apiHref()}/${Y}`,ee,se)}delete(Y,ee){return this.httpDelete(`${this.apiHref()}/${Y}`,ee)}httpGet(Y,ee){const se=this.getHeaders(ee?.asUserId,ee?.asUserSchoolId);return this.http.get(Y,{headers:this.aliasHeaders(ee?.alias??this._alias,se),params:new o.LE({fromObject:ee?.query})}).pipe((0,T.U)(he=>this.instanceOf(he,ee?.factory||this._type)),(0,A.x)(()=>this.requestFinished$.next()))}httpGetBlob(Y,ee){const se=this.getHeaders(ee?.asUserId,ee?.asUserSchoolId);return this.http.get(Y,{responseType:"blob",headers:this.aliasHeaders(ee?.alias??this._alias,se),params:new o.LE({fromObject:ee?.query})}).pipe((0,T.U)(he=>new Blob([he],{type:he.type})))}httpGetAll(Y,ee){const se=this.getHeaders(ee?.asUserId,ee?.asUserSchoolId);return this.http.get(Y,{headers:this.aliasHeaders(ee?.alias??this._alias+"-all",se),params:new o.LE({fromObject:ee?.query})}).pipe((0,T.U)(he=>new e.Rf(he,ee?.factory||this._type)),(0,A.x)(()=>this.requestFinished$.next()))}httpPut(Y,ee,se){const he=this.getHeaders(se?.asUserId,se?.asUserSchoolId,this.defaultHeaders(ee));return this.http.put(Y,this.body(ee),{headers:he}).pipe((0,A.x)(()=>this.requestFinished$.next()))}httpDelete(Y,ee,se){const he=this.getHeaders(ee?.asUserId,ee?.asUserSchoolId);return ee?this.http.delete(Y,{headers:he,params:new o.LE({fromObject:ee?.query}),body:se||{}}).pipe((0,A.x)(()=>this.requestFinished$.next())):this.http.delete(Y,{headers:he,body:se||{}}).pipe((0,A.x)(()=>this.requestFinished$.next()))}httpPost(Y,ee,se=null,he=null){const Se=this.getHeaders(he,se,this.defaultHeaders(ee));return this.http.post(Y,this.body(ee),{headers:Se}).pipe((0,A.x)(()=>this.requestFinished$.next()))}httpPostBlob(Y,ee,se){const he=this.getHeaders(se?.asUserId,se?.asUserSchoolId);return this.http.post(Y,this.body(ee),{responseType:"blob",headers:this.aliasHeaders(se?.alias??this._alias,he),params:new o.LE({fromObject:se?.query})}).pipe((0,T.U)(Se=>new Blob([Se],{type:Se.type})))}normalizeParams(Y){const ee={};return Object.keys(Y).forEach(se=>{ee[se]=Y[se]}),ee}getHeaders(Y,ee,se){let he=se??this.getApiHeaders();const Se=this._getAuthService();if((Se.userId||Y)&&(he=he.set("X-NIT-REQUESTED-USER-ID",Y||Se.userId)),ee||0===ee)he=he.set("X-NIT-REQUESTED-SCHOOL-ID",ee.toString());else{const te=Se.getUserSchoolId();he=he.set("X-NIT-REQUESTED-SCHOOL-ID",te.toString())}return he=he.set("X-NIT-CLIENT","web"),he=he.set("X-NIT-CLIENT-VERSION",P.N.version),he}}},75745:(fn,ve,_)=>{"use strict";_.d(ve,{bi:()=>R,H1:()=>ee,oq:()=>j,c1:()=>he,DM:()=>te,zU:()=>Ee,F0:()=>Ye,eu:()=>ut,Yi:()=>Ue,VZ:()=>Ft,tZ:()=>st,j8:()=>ln,Ku:()=>$e,Nv:()=>Oe,Oq:()=>It,nN:()=>Tt,_u:()=>vl,vk:()=>Nn,NF:()=>wn,sp:()=>sn,nR:()=>Ya,_3:()=>Bt,MP:()=>Mn,ic:()=>Si,pj:()=>Ni,f5:()=>qn,QC:()=>Vn,qF:()=>en,k6:()=>ot,NQ:()=>Tc,Jn:()=>yl,CH:()=>In,Wf:()=>rn,Wu:()=>bn,uf:()=>Qt,B7:()=>uo,fh:()=>Cr,C0:()=>No,s5:()=>zr,oT:()=>Jn,R:()=>lo,Lk:()=>rr,NR:()=>Bl,T3:()=>to,MW:()=>Or,NJ:()=>Hi,CO:()=>sa,i4:()=>ft,H$:()=>aa,ym:()=>ar,Fm:()=>bt,$5:()=>Gc,DZ:()=>Oi,lr:()=>Xt,Y8:()=>Qn,pE:()=>Ci,fL:()=>$s,te:()=>Lo,UT:()=>yr,Qc:()=>Vo,cf:()=>Wr,_L:()=>fe,dL:()=>Mt,MV:()=>Oo,iv:()=>es,rM:()=>ea,l5:()=>la,sm:()=>Br,CP:()=>Il,Pr:()=>Cs,Q5:()=>Tl,KC:()=>ne,EW:()=>jl,So:()=>qt,sR:()=>Ie,oD:()=>ii,es:()=>Ki,r$:()=>Po,B6:()=>Uo,qj:()=>no,NN:()=>Tr,KA:()=>Oa,iO:()=>Fo,_F:()=>za,AR:()=>zl,au:()=>pa,o$:()=>$r,zE:()=>Jo,xK:()=>Yl,Si:()=>tl,ZI:()=>hl,AH:()=>Wl,dg:()=>_e,eP:()=>Xl,I4:()=>gl,ik:()=>nl,KD:()=>fc,nn:()=>xl,PA:()=>sc,cm:()=>Aa,po:()=>Ol,ZR:()=>He,SK:()=>$l});var e={};_.r(e),_.d(e,{Decoder:()=>cr,Encoder:()=>Nr,PacketType:()=>ko,protocol:()=>vs});var o=_(86005),T=_(87492),A=_(95471),G=_(90318),F=_(54004),N=_(94650);let R=(()=>{var v;class D extends o.v{constructor(){super(T.mX,"/academic-years","academic-years")}getActive(L,Me){return this.httpGet(`${this.apiHref()}/active`,{alias:"academic-year-active",asUserId:L,asUserSchoolId:Me})}getByClassId(L,Me,tn){const oi=new A.H(0,1);return oi.pushFilters([{field:"classIds",operator:G.v8.In,value:L}]),this.all({query:oi.query,asUserId:Me,asUserSchoolId:tn}).pipe((0,F.U)(hs=>hs.data.length?hs.data[0]:null))}getCurrentSemester(L){return(new Date).getFullYear()===L.yearStart?L.firstSemester:L.secondSemester}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var P=_(92331);class y{constructor(D={}){Object.assign(this,D),this.grading=D.grading?new P.Ly(D.grading):null}}let j=(()=>{var v;class D extends o.v{constructor(){super(y,"/achievements","achievements")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Y=_(98503);let ee=(()=>{var v;class D extends o.v{constructor(){super(Y.f9,"/achievement-marks","achievement-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var se=_(17503);let he=(()=>{var v;class D extends o.v{constructor(){super(se.j,"/achievement-wishes","achievement-wishes")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class Se{constructor(D={}){Object.assign(this,D)}}let te=(()=>{var v;class D extends o.v{constructor(){super(Se,"/address","address")}getRegions(L){return this.http.get(`${this.apiHref()}/regions?name=${L}`,{headers:this.aliasHeaders("regions",this.getApiHeaders())})}getCities(L,Me){return this.http.get(`${this.apiHref()}/cities?regionId=${L}&name=${Me}`,{headers:this.aliasHeaders("cities",this.getApiHeaders())})}getStreets(L,Me,tn){return this.http.get(`${this.apiHref()}/streets?regionId=${L}&cityId=${Me}&name=${tn}`,{headers:this.aliasHeaders("streets",this.getApiHeaders())})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class oe{constructor(D={}){Object.assign(this,D)}}let Ee=(()=>{var v;class D extends o.v{constructor(){super(oe,"aikom/sync","aikom-sync")}getNextUser(L){return this.httpGet(`${this.apiHref()}/${L}/users`)}resolveSyncCase(L,Me,tn){return this.httpPut(`${this.apiHref()}/${L}/users/${Me}`,tn)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var ke=_(16036);let Ye=(()=>{var v;class D extends o.v{constructor(){super(ke.PL,"aikom/universities","aikom-universities")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class ct{constructor(D={}){Object.assign(this,D)}}let ut=(()=>{var v;class D extends o.v{constructor(){super(ct,"/archives","archives")}downloadArchive(L){return this.httpGetBlob(L,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Ct=_(89839);let Ue=(()=>{var v;class D extends o.v{constructor(){super(Ct.HU,"/briefing-journals","briefing-journals")}getStudentsOfJournal(L){return this.httpGet(`${this.apiHref()}/${L}/users`)}readBriefing(L){return this.httpGet(`${this.apiHref()}/listen`,L)}updateBriefing(L,Me){return this.httpPut(`${this.apiHref()}/${L}/listen`,null,Me)}updateDate(L,Me){return this.httpPut(`${this.apiHref()}/${L}/user-checks`,Me)}uploadBriefingFile(L){return this.httpPost(`${this.apiHref()}/attachments/temporary`,L)}downloadBriefingFile(L){return this.httpGetBlob(L,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var vt=_(61135);let ln=(()=>{var v;class D extends o.v{constructor(){super(ke.wT,"/classes","classes"),this.selectedClass$=new vt.X(null)}getSortedClasses(L){return this.all(L).pipe((0,F.U)(Me=>this._sortClasses(Me)))}createClass(L){return this.httpPost(this.apiHref(),L)}assignUserToClass(L,Me){return this.httpPost(`${this.apiHref()}/${L}/users`,Me)}deleteUserFromClass(L,Me){return this.httpDelete(`${this.apiHref()}/${L}/users/${Me}`)}transferToGroup(L,Me,tn){return this.httpPut(`${this.apiHref()}/${L}/groups/${Me}`,tn)}removeFromGroup(L,Me,tn){return this.httpPut(`${this.apiHref()}/${L}/groups/${Me}/delete-users`,tn)}_sortClasses(L){return L.data.sort((Me,tn)=>Me.number===tn.number?this._getLetterCode(Me.letter)>this._getLetterCode(tn.letter)?1:-1:+Me.number>+tn.number?1:-1),L}_getLetterCode(L){let Me=L.charCodeAt(0);switch(Me){case 1168:Me=1043.5;break;case 1028:Me=1045.5;break;case 1030:Me=1048.25;break;case 1031:Me=1048.75}return Me}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Je=_(31260);let Ft=(()=>{var v;class D extends o.v{constructor(){super(ke._o,"/groups","class-group")}updateClassGroup(L,Me){return this.httpPut(`${this.apiBaseHref()}/classes/${L}/groups/${Me.id}`,Me)}createClassGroup(L,Me){return this.httpPost(`${this.apiBaseHref()}/classes/${L}/groups`,Me)}deleteClassGroup(L,Me){return this.httpDelete(`${this.apiBaseHref()}/classes/${L}/groups/${Me}`)}getGroupsPairs(){return this.httpGet(`${this.apiHref()}/pairs`,{factory:Je.qV})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),st=(()=>{var v;class D extends o.v{constructor(){super(ke.Cb,"/class-materials","class-materials")}getAllByClassId(L,Me,tn,oi){return this.httpGetAll(`${this.apiHref()}/classes/${L}`,{alias:"class-materials",query:{scheduleId:Me},asUserId:tn,asUserSchoolId:oi})}getAllAttachments(L){return this.httpGetAll(`${this.apiHref()}/attachments`,{alias:"attachments-all",query:L})}uploadAttachment(L,Me){return this.httpPut(`${this.apiHref()}/${L}/upload`,Me)}deleteAttachment(L,Me){return this.httpDelete(`${this.apiHref()}/${L}/attachment/${Me}`)}deleteGroupAttachment(L,Me,tn){return this.httpDelete(`${this.apiHref()}/${L}/attachment/${Me}/group/${tn}`)}assignAttachment(L,Me){return this.httpPut(`${this.apiHref()}/${L}/attach`,Me)}getSecureImage(L,Me){return this.httpGetBlob(L,{asUserId:Me})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Ze=_(70706);let $e=(()=>{var v;class D extends o.v{constructor(){super(Ze.wn,"/class-teachers-changelog","/class-teachers-changelog")}getClassTeachersChangelog(L){const Me=new A.H(0,999);return Me.pushFilters([{field:"classId",operator:G.v8.Eq,value:L}]),this.httpGet(this.apiHref(),{alias:"class-teachers-changelog",query:Me.query})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Oe=(()=>{var v;class D extends o.v{constructor(){super(ke.tX,"/columbia-university-courses","columbia-university-courses")}sendNavigationInfo(){return this.httpPost(`${this.apiHref()}/views`,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class Nt{constructor(D={}){Object.assign(this,D),this.steps=D.steps?D.steps.map(W=>new Ot(W)):[]}}class xt{constructor(D={}){Object.assign(this,D)}}class Ot{constructor(D={}){Object.assign(this,D)}}class Kt{constructor(D={}){Object.assign(this,D),this.relationsFromNit=D?.relationsFromNit?D.relationsFromNit.map(W=>new $t(W)):[],this.addressFromNit=D?.addressFromNit?new We(D.addressFromNit):null}}class $t{constructor(D={}){Object.assign(this,D),this.workPlace=D?.workPlace?new rt(D.workPlace):null}}class rt{constructor(D={}){Object.assign(this,D)}}class We{constructor(D={}){Object.assign(this,D)}}let It=(()=>{var v;class D extends o.v{constructor(){super(Kt,"/comparisons/comparison-user-entries","comparisons/comparison-user-entries")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Tt=(()=>{var v;class D extends o.v{constructor(){super(Nt,"/comparisons","comparisons")}sendDecision(L,Me){return this.httpPost(`${this.apiHref()}/comparison-users/${L}?isApproved=${Me}`,{})}sendDataForStep(L,Me){return this.httpPost(`${this.apiHref()}/${L}/step`,Me)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),wn=(()=>{var v;class D extends o.v{constructor(){super(ke.T0,"/courses","courses"),this.course=new vt.X(null)}getCourse(){return this.course}updatePermissions(L,Me){return this.httpPost(`${this.apiHref()}/${L}/permissions`,Me)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Nn=(()=>{var v;class D extends o.v{constructor(){super(ke.Ne,"/course-lessons","course-lessons")}getLastTestResult(L,Me){return this.httpGet(`${this.apiHref()}/${L}/last-test-result`,{query:{blockId:Me}})}completeTest(L,Me){return this.httpPost(`${this.apiHref()}/${L}/complete-test`,Me)}uploadFile(L){return this.httpPost(`${this.apiHref()}/image`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var an=_(13299);let sn=(()=>{var v;class D extends o.v{constructor(){super(ke.Os,"/dashboard","dashboard")}getMarks(L,Me){return this.httpGetAll(`${this.apiHref()}/${L}/marks`,{alias:"dashboard-marks",factory:ke.OI,asUserId:L,asUserSchoolId:Me})}getJournal(L){return this.httpGetAll(`${this.apiHref()}/${L}/journals`,{alias:"dashboard-journal"})}getMyClass(L){return this.httpGet(`${this.apiHref()}/my-class`,{alias:"dashboard-my-class",factory:ke.wT,asUserId:L})}userDiary(L,Me,tn,oi){return this.httpGetAll(`${this.apiHref()}/${oi?"teacher-diary":"diary"}`,{alias:"user-diary",query:tn?{date:tn.toDateString()}:{},factory:an.Eb,asUserId:L,asUserSchoolId:Me})}getProgress(L,Me,tn){return this._getChart("progress","dashboard-progress",L,Me,tn)}getClassProgress(L,Me){return this._getChart("class-progress","dashboard-class-marks",L,null,Me)}getVisiting(L,Me,tn){return this._getChart("visiting","dashboard-visiting",L,Me,tn)}getClassVisitors(L,Me){return this._getChart("class-visiting","dashboard-class-visiting",L,null,Me)}_getChart(L,Me,tn,oi,Vi){return this.httpGet(`${this.apiHref()}/${tn}/${L}`,{alias:Me,query:Vi,factory:ke.ed,asUserId:tn,asUserSchoolId:oi})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var _n=_(8016),Ln=_(44578);let Mn=(()=>{var v;class D extends o.v{constructor(){super(_n.ZA,"/decisions","decisions")}getUserVisitingTotal(L,Me,tn){return this.httpGetAll(`${this.apiHref()}/${L}/total-visiting`,{asUserId:Me,asUserSchoolId:tn,factory:Ln.tx})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class pi{constructor(D={}){Object.assign(this,D)}}let qn=(()=>{var v;class D extends o.v{constructor(){super(pi,"/diagnostic-works","diagnostic-works")}getDiagnosticUsers(L,Me,tn){let oi={alias:"diagnostic-users"};return Me&&(oi={alias:"diagnostic-users",asUserId:Me,asUserSchoolId:tn}),this.httpGetAll(`${this.apiHref()}/${L}/users`,oi)}getDiagnosticColumns(L,Me="",tn,oi=1){let Vi={alias:"diagnostic-pages"};return Me&&(Vi={alias:"diagnostic-pages",asUserId:Me,asUserSchoolId:tn}),this.httpGet(`${this.apiHref()}/${L}/pages?page=${oi}`,Vi)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class ki{constructor(D={}){this.domainId=null,Object.assign(this,D)}}let Si=(()=>{var v;class D extends o.v{constructor(){super(ki,"/diagnostic-work-columns","diagnostic-work-columns")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Ni=(()=>{var v;class D extends o.v{constructor(){super(Y.qL,"/diagnostic-work-marks","diagnostic-work-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var pn=_(69039);let Vn=(()=>{var v;class D extends o.v{constructor(){super(pn.V,"/discource-journals/work-content","discource-journals/work-content")}createDiscourceContent(L,Me){return this.httpPost(`${this.apiHref()}/${L}`,Me)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),ot=(()=>{var v;class D extends o.v{constructor(){super(Ct.Tf,"/discource-journals","discource-journals")}getDiscourceJournals(L){return this.httpGet(this.apiHref(),{...L,factory:Ct.DG})}getDiscourceSubjects(L){return this.httpGet(`${this.apiHref()}/subjects`,L)}editWorkContent(L,Me){return this.httpPut(`${this.apiHref()}/${L}/work-content/${Me.id}`,Me)}deleteWorkContent(L,Me){return this.httpDelete(`${this.apiHref()}/${L}/work-content/${Me}`)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),en=(()=>{var v;class D extends o.v{constructor(){super(ke.vc,"/discourse-journal-marks","discourse-journal-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var lt=_(23166);let In=(()=>{var v;class D extends o.v{constructor(){super(lt.pm,"/education-forms","education-forms")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),rn=(()=>{var v;class D extends o.v{constructor(){super(ke.aL,"/training-plans","training-plans"),this.trainingPlanState={trainingPlanNextDate:null,classData:null,classGroup:null},this._trainingPlanSubject=new vt.X(this.trainingPlanState),this.trainingPlanState$=this._trainingPlanSubject.asObservable()}updateTrainingPlanNextDateState(L,Me){this.trainingPlanState[Me]=L,this._trainingPlanSubject.next(this.trainingPlanState)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Qt=(()=>{var v;class D extends o.v{constructor(){super(ke.wT,"/extended-classes","extended-classes")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var yi=_(39775),Li=_.n(yi),An=_(77579),Ht=_(24351),Pn=_(39646),Sn=_(4128),Fn=_(88996),Cn=_(60515),Un=_(39300),fi=_(63900),bi=_(28746),Zn=_(31931);const mn=Object.create(null);mn.open="0",mn.close="1",mn.ping="2",mn.pong="3",mn.message="4",mn.upgrade="5",mn.noop="6";const ze=Object.create(null);Object.keys(mn).forEach(v=>{ze[mn[v]]=v});const wt={type:"error",data:"parser error"},ht="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),U="function"==typeof ArrayBuffer,gt=v=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(v):v&&v.buffer instanceof ArrayBuffer,Lt=({type:v,data:D},W,L)=>ht&&D instanceof Blob?W?L(D):kt(D,L):U&&(D instanceof ArrayBuffer||gt(D))?W?L(D):kt(new Blob([D]),L):L(mn[v]+(D||"")),kt=(v,D)=>{const W=new FileReader;return W.onload=function(){const L=W.result.split(",")[1];D("b"+(L||""))},W.readAsDataURL(v)};function vn(v){return v instanceof Uint8Array?v:v instanceof ArrayBuffer?new Uint8Array(v):new Uint8Array(v.buffer,v.byteOffset,v.byteLength)}let jn;const De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let v=0;v<De.length;v++)ie[De.charCodeAt(v)]=v;const Ut="function"==typeof ArrayBuffer,xn=(v,D)=>{if("string"!=typeof v)return{type:"message",data:Gn(v,D)};const W=v.charAt(0);return"b"===W?{type:"message",data:hn(v.substring(1),D)}:ze[W]?v.length>1?{type:ze[W],data:v.substring(1)}:{type:ze[W]}:wt},hn=(v,D)=>{if(Ut){const W=(v=>{let L,tn,oi,Vi,hs,D=.75*v.length,W=v.length,Me=0;"="===v[v.length-1]&&(D--,"="===v[v.length-2]&&D--);const Eo=new ArrayBuffer(D),jo=new Uint8Array(Eo);for(L=0;L<W;L+=4)tn=ie[v.charCodeAt(L)],oi=ie[v.charCodeAt(L+1)],Vi=ie[v.charCodeAt(L+2)],hs=ie[v.charCodeAt(L+3)],jo[Me++]=tn<<2|oi>>4,jo[Me++]=(15&oi)<<4|Vi>>2,jo[Me++]=(3&Vi)<<6|63&hs;return Eo})(v);return Gn(W,D)}return{base64:!0,data:v}},Gn=(v,D)=>"blob"===D?v instanceof Blob?v:new Blob([v]):v instanceof ArrayBuffer?v:v.buffer,ri=String.fromCharCode(30);let Di;function Yi(v){return v.reduce((D,W)=>D+W.length,0)}function ji(v,D){if(v[0].length===D)return v.shift();const W=new Uint8Array(D);let L=0;for(let Me=0;Me<D;Me++)W[Me]=v[0][L++],L===v[0].length&&(v.shift(),L=0);return v.length&&L<v[0].length&&(v[0]=v[0].slice(L)),W}function Es(v){if(v)return function ss(v){for(var D in Es.prototype)v[D]=Es.prototype[D];return v}(v)}Es.prototype.on=Es.prototype.addEventListener=function(v,D){return this._callbacks=this._callbacks||{},(this._callbacks["$"+v]=this._callbacks["$"+v]||[]).push(D),this},Es.prototype.once=function(v,D){function W(){this.off(v,W),D.apply(this,arguments)}return W.fn=D,this.on(v,W),this},Es.prototype.off=Es.prototype.removeListener=Es.prototype.removeAllListeners=Es.prototype.removeEventListener=function(v,D){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var W=this._callbacks["$"+v];if(!W)return this;if(1==arguments.length)return delete this._callbacks["$"+v],this;for(var L,Me=0;Me<W.length;Me++)if((L=W[Me])===D||L.fn===D){W.splice(Me,1);break}return 0===W.length&&delete this._callbacks["$"+v],this},Es.prototype.emitReserved=Es.prototype.emit=function(v){this._callbacks=this._callbacks||{};for(var D=new Array(arguments.length-1),W=this._callbacks["$"+v],L=1;L<arguments.length;L++)D[L-1]=arguments[L];if(W){L=0;for(var Me=(W=W.slice(0)).length;L<Me;++L)W[L].apply(this,D)}return this},Es.prototype.listeners=function(v){return this._callbacks=this._callbacks||{},this._callbacks["$"+v]||[]},Es.prototype.hasListeners=function(v){return!!this.listeners(v).length};const zi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function as(v,...D){return D.reduce((W,L)=>(v.hasOwnProperty(L)&&(W[L]=v[L]),W),{})}const ds=zi.setTimeout,Xi=zi.clearTimeout;function us(v,D){D.useNativeTimers?(v.setTimeoutFn=ds.bind(zi),v.clearTimeoutFn=Xi.bind(zi)):(v.setTimeoutFn=zi.setTimeout.bind(zi),v.clearTimeoutFn=zi.clearTimeout.bind(zi))}const ps=1.33;function _s(v){return"string"==typeof v?function ei(v){let D=0,W=0;for(let L=0,Me=v.length;L<Me;L++)D=v.charCodeAt(L),D<128?W+=1:D<2048?W+=2:D<55296||D>=57344?W+=3:(L++,W+=4);return W}(v):Math.ceil((v.byteLength||v.size)*ps)}class As extends Error{constructor(D,W,L){super(D),this.description=W,this.context=L,this.type="TransportError"}}class un extends Es{constructor(D){super(),this.writable=!1,us(this,D),this.opts=D,this.query=D.query,this.socket=D.socket}onError(D,W,L){return super.emitReserved("error",new As(D,W,L)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(D){"open"===this.readyState&&this.write(D)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(D){const W=xn(D,this.socket.binaryType);this.onPacket(W)}onPacket(D){super.emitReserved("packet",D)}onClose(D){this.readyState="closed",super.emitReserved("close",D)}pause(D){}createUri(D,W={}){return D+"://"+this._hostname()+this._port()+this.opts.path+this._query(W)}_hostname(){const D=this.opts.hostname;return-1===D.indexOf(":")?D:"["+D+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(D){const W=function Fs(v){let D="";for(let W in v)v.hasOwnProperty(W)&&(D.length&&(D+="&"),D+=encodeURIComponent(W)+"="+encodeURIComponent(v[W]));return D}(D);return W.length?"?"+W:""}}const ai="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Le=64,Pt={};let xe,Be=0,Jt=0;function Ke(v){let D="";do{D=ai[v%Le]+D,v=Math.floor(v/Le)}while(v>0);return D}function Et(){const v=Ke(+new Date);return v!==xe?(Be=0,xe=v):v+"."+Ke(Be++)}for(;Jt<Le;Jt++)Pt[ai[Jt]]=Jt;let Dn=!1;try{Dn=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vi=Dn;function ni(v){const D=v.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!D||vi))return new XMLHttpRequest}catch{}if(!D)try{return new(zi[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch{}}function ys(){}const Mo=null!=new ni({xdomain:!1}).responseType;let Ps=(()=>{class v extends Es{constructor(W,L){super(),us(this,L),this.opts=L,this.method=L.method||"GET",this.uri=W,this.data=void 0!==L.data?L.data:null,this.create()}create(){var W;const L=as(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");L.xdomain=!!this.opts.xd;const Me=this.xhr=new ni(L);try{Me.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){Me.setDisableHeaderCheck&&Me.setDisableHeaderCheck(!0);for(let tn in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(tn)&&Me.setRequestHeader(tn,this.opts.extraHeaders[tn])}}catch{}if("POST"===this.method)try{Me.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Me.setRequestHeader("Accept","*/*")}catch{}null===(W=this.opts.cookieJar)||void 0===W||W.addCookies(Me),"withCredentials"in Me&&(Me.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Me.timeout=this.opts.requestTimeout),Me.onreadystatechange=()=>{var tn;3===Me.readyState&&(null===(tn=this.opts.cookieJar)||void 0===tn||tn.parseCookies(Me)),4===Me.readyState&&(200===Me.status||1223===Me.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof Me.status?Me.status:0)},0))},Me.send(this.data)}catch(tn){return void this.setTimeoutFn(()=>{this.onError(tn)},0)}typeof document<"u"&&(this.index=v.requestsCount++,v.requests[this.index]=this)}onError(W){this.emitReserved("error",W,this.xhr),this.cleanup(!0)}cleanup(W){if(!(typeof this.xhr>"u"||null===this.xhr)){if(this.xhr.onreadystatechange=ys,W)try{this.xhr.abort()}catch{}typeof document<"u"&&delete v.requests[this.index],this.xhr=null}}onLoad(){const W=this.xhr.responseText;null!==W&&(this.emitReserved("data",W),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return v.requestsCount=0,v.requests={},v})();function Wt(){for(let v in Ps.requests)Ps.requests.hasOwnProperty(v)&&Ps.requests[v].abort()}typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",Wt):"function"==typeof addEventListener&&addEventListener("onpagehide"in zi?"pagehide":"unload",Wt,!1));const Bn="function"==typeof Promise&&"function"==typeof Promise.resolve?D=>Promise.resolve().then(D):(D,W)=>W(D,0),ti=zi.WebSocket||zi.MozWebSocket,gn=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),on={websocket:class z extends un{constructor(D){super(D),this.supportsBinary=!D.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const D=this.uri(),W=this.opts.protocols,L=gn?{}:as(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(L.headers=this.opts.extraHeaders);try{this.ws=gn?new ti(D,W,L):W?new ti(D,W):new ti(D)}catch(Me){return this.emitReserved("error",Me)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=D=>this.onClose({description:"websocket connection closed",context:D}),this.ws.onmessage=D=>this.onData(D.data),this.ws.onerror=D=>this.onError("websocket error",D)}write(D){this.writable=!1;for(let W=0;W<D.length;W++){const Me=W===D.length-1;Lt(D[W],this.supportsBinary,tn=>{try{this.ws.send(tn)}catch{}Me&&Bn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const D=this.opts.secure?"wss":"ws",W=this.query||{};return this.opts.timestampRequests&&(W[this.opts.timestampParam]=Et()),this.supportsBinary||(W.b64=1),this.createUri(D,W)}check(){return!!ti}},webtransport:class Ce extends un{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(D=>{this.onError("webtransport error",D)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(D=>{const W=function gs(v,D){Di||(Di=new TextDecoder);const W=[];let L=0,Me=-1,tn=!1;return new TransformStream({transform(oi,Vi){for(W.push(oi);;){if(0===L){if(Yi(W)<1)break;const hs=ji(W,1);tn=128==(128&hs[0]),Me=127&hs[0],L=Me<126?3:126===Me?1:2}else if(1===L){if(Yi(W)<2)break;const hs=ji(W,2);Me=new DataView(hs.buffer,hs.byteOffset,hs.length).getUint16(0),L=3}else if(2===L){if(Yi(W)<8)break;const hs=ji(W,8),Eo=new DataView(hs.buffer,hs.byteOffset,hs.length),jo=Eo.getUint32(0);if(jo>Math.pow(2,21)-1){Vi.enqueue(wt);break}Me=jo*Math.pow(2,32)+Eo.getUint32(4),L=3}else{if(Yi(W)<Me)break;const hs=ji(W,Me);Vi.enqueue(xn(tn?hs:Di.decode(hs),D)),L=0}if(0===Me||Me>v){Vi.enqueue(wt);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),L=D.readable.pipeThrough(W).getReader(),Me=function Pi(){return new TransformStream({transform(v,D){!function St(v,D){ht&&v.data instanceof Blob?v.data.arrayBuffer().then(vn).then(D):U&&(v.data instanceof ArrayBuffer||gt(v.data))?D(vn(v.data)):Lt(v,!1,W=>{jn||(jn=new TextEncoder),D(jn.encode(W))})}(v,W=>{const L=W.length;let Me;if(L<126)Me=new Uint8Array(1),new DataView(Me.buffer).setUint8(0,L);else if(L<65536){Me=new Uint8Array(3);const tn=new DataView(Me.buffer);tn.setUint8(0,126),tn.setUint16(1,L)}else{Me=new Uint8Array(9);const tn=new DataView(Me.buffer);tn.setUint8(0,127),tn.setBigUint64(1,BigInt(L))}v.data&&"string"!=typeof v.data&&(Me[0]|=128),D.enqueue(Me),D.enqueue(W)})}})}();Me.readable.pipeTo(D.writable),this.writer=Me.writable.getWriter();const tn=()=>{L.read().then(({done:Vi,value:hs})=>{Vi||(this.onPacket(hs),tn())}).catch(Vi=>{})};tn();const oi={type:"open"};this.query.sid&&(oi.data=`{"sid":"${this.query.sid}"}`),this.writer.write(oi).then(()=>this.onOpen())})}))}write(D){this.writable=!1;for(let W=0;W<D.length;W++){const Me=W===D.length-1;this.writer.write(D[W]).then(()=>{Me&&Bn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var D;null===(D=this.transport)||void 0===D||D.close()}},polling:class bo extends un{constructor(D){if(super(D),this.polling=!1,typeof location<"u"){const L="https:"===location.protocol;let Me=location.port;Me||(Me=L?"443":"80"),this.xd=typeof location<"u"&&D.hostname!==location.hostname||Me!==D.port}this.supportsBinary=Mo&&!(D&&D.forceBase64),this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(D){this.readyState="pausing";const W=()=>{this.readyState="paused",D()};if(this.polling||!this.writable){let L=0;this.polling&&(L++,this.once("pollComplete",function(){--L||W()})),this.writable||(L++,this.once("drain",function(){--L||W()}))}else W()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(D){((v,D)=>{const W=v.split(ri),L=[];for(let Me=0;Me<W.length;Me++){const tn=xn(W[Me],D);if(L.push(tn),"error"===tn.type)break}return L})(D,this.socket.binaryType).forEach(L=>{if("opening"===this.readyState&&"open"===L.type&&this.onOpen(),"close"===L.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(L)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const D=()=>{this.write([{type:"close"}])};"open"===this.readyState?D():this.once("open",D)}write(D){this.writable=!1,((v,D)=>{const W=v.length,L=new Array(W);let Me=0;v.forEach((tn,oi)=>{Lt(tn,!1,Vi=>{L[oi]=Vi,++Me===W&&D(L.join(ri))})})})(D,W=>{this.doWrite(W,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const D=this.opts.secure?"https":"http",W=this.query||{};return!1!==this.opts.timestampRequests&&(W[this.opts.timestampParam]=Et()),!this.supportsBinary&&!W.sid&&(W.b64=1),this.createUri(D,W)}request(D={}){return Object.assign(D,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ps(this.uri(),D)}doWrite(D,W){const L=this.request({method:"POST",data:D});L.on("success",W),L.on("error",(Me,tn)=>{this.onError("xhr post error",Me,tn)})}doPoll(){const D=this.request();D.on("data",this.onData.bind(this)),D.on("error",(W,L)=>{this.onError("xhr poll error",W,L)}),this.pollXhr=D}}},Hn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Mi=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fi(v){if(v.length>2e3)throw"URI too long";const D=v,W=v.indexOf("["),L=v.indexOf("]");-1!=W&&-1!=L&&(v=v.substring(0,W)+v.substring(W,L).replace(/:/g,";")+v.substring(L,v.length));let Me=Hn.exec(v||""),tn={},oi=14;for(;oi--;)tn[Mi[oi]]=Me[oi]||"";return-1!=W&&-1!=L&&(tn.source=D,tn.host=tn.host.substring(1,tn.host.length-1).replace(/;/g,":"),tn.authority=tn.authority.replace("[","").replace("]","").replace(/;/g,":"),tn.ipv6uri=!0),tn.pathNames=function os(v,D){const L=D.replace(/\/{2,9}/g,"/").split("/");return("/"==D.slice(0,1)||0===D.length)&&L.splice(0,1),"/"==D.slice(-1)&&L.splice(L.length-1,1),L}(0,tn.path),tn.queryKey=function dn(v,D){const W={};return D.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(L,Me,tn){Me&&(W[Me]=tn)}),W}(0,tn.query),tn}let wi=(()=>{class v extends Es{constructor(W,L={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],W&&"object"==typeof W&&(L=W,W=null),W?(W=Fi(W),L.hostname=W.host,L.secure="https"===W.protocol||"wss"===W.protocol,L.port=W.port,W.query&&(L.query=W.query)):L.host&&(L.hostname=Fi(L.host).host),us(this,L),this.secure=null!=L.secure?L.secure:typeof location<"u"&&"https:"===location.protocol,L.hostname&&!L.port&&(L.port=this.secure?"443":"80"),this.hostname=L.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=L.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=L.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},L),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function po(v){let D={},W=v.split("&");for(let L=0,Me=W.length;L<Me;L++){let tn=W[L].split("=");D[decodeURIComponent(tn[0])]=decodeURIComponent(tn[1])}return D}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(W){const L=Object.assign({},this.opts.query);L.EIO=4,L.transport=W,this.id&&(L.sid=this.id);const Me=Object.assign({},this.opts,{query:L,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[W]);return new on[W](Me)}open(){let W;if(this.opts.rememberUpgrade&&v.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))W="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);W=this.transports[0]}this.readyState="opening";try{W=this.createTransport(W)}catch{return this.transports.shift(),void this.open()}W.open(),this.setTransport(W)}setTransport(W){this.transport&&this.transport.removeAllListeners(),this.transport=W,W.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",L=>this.onClose("transport close",L))}probe(W){let L=this.createTransport(W),Me=!1;v.priorWebsocketSuccess=!1;const tn=()=>{Me||(L.send([{type:"ping",data:"probe"}]),L.once("packet",Hr=>{if(!Me)if("pong"===Hr.type&&"probe"===Hr.data){if(this.upgrading=!0,this.emitReserved("upgrading",L),!L)return;v.priorWebsocketSuccess="websocket"===L.name,this.transport.pause(()=>{Me||"closed"!==this.readyState&&(gr(),this.setTransport(L),L.send([{type:"upgrade"}]),this.emitReserved("upgrade",L),L=null,this.upgrading=!1,this.flush())})}else{const Yo=new Error("probe error");Yo.transport=L.name,this.emitReserved("upgradeError",Yo)}}))};function oi(){Me||(Me=!0,gr(),L.close(),L=null)}const Vi=Hr=>{const Yo=new Error("probe error: "+Hr);Yo.transport=L.name,oi(),this.emitReserved("upgradeError",Yo)};function hs(){Vi("transport closed")}function Eo(){Vi("socket closed")}function jo(Hr){L&&Hr.name!==L.name&&oi()}const gr=()=>{L.removeListener("open",tn),L.removeListener("error",Vi),L.removeListener("close",hs),this.off("close",Eo),this.off("upgrading",jo)};L.once("open",tn),L.once("error",Vi),L.once("close",hs),this.once("close",Eo),this.once("upgrading",jo),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==W?this.setTimeoutFn(()=>{Me||L.open()},200):L.open()}onOpen(){if(this.readyState="open",v.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let W=0;const L=this.upgrades.length;for(;W<L;W++)this.probe(this.upgrades[W])}}onPacket(W){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",W),this.emitReserved("heartbeat"),this.resetPingTimeout(),W.type){case"open":this.onHandshake(JSON.parse(W.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const L=new Error("server error");L.code=W.data,this.onError(L);break;case"message":this.emitReserved("data",W.data),this.emitReserved("message",W.data)}}onHandshake(W){this.emitReserved("handshake",W),this.id=W.sid,this.transport.query.sid=W.sid,this.upgrades=this.filterUpgrades(W.upgrades),this.pingInterval=W.pingInterval,this.pingTimeout=W.pingTimeout,this.maxPayload=W.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const W=this.getWritablePackets();this.transport.send(W),this.prevBufferLen=W.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let L=1;for(let Me=0;Me<this.writeBuffer.length;Me++){const tn=this.writeBuffer[Me].data;if(tn&&(L+=_s(tn)),Me>0&&L>this.maxPayload)return this.writeBuffer.slice(0,Me);L+=2}return this.writeBuffer}write(W,L,Me){return this.sendPacket("message",W,L,Me),this}send(W,L,Me){return this.sendPacket("message",W,L,Me),this}sendPacket(W,L,Me,tn){if("function"==typeof L&&(tn=L,L=void 0),"function"==typeof Me&&(tn=Me,Me=null),"closing"===this.readyState||"closed"===this.readyState)return;(Me=Me||{}).compress=!1!==Me.compress;const oi={type:W,data:L,options:Me};this.emitReserved("packetCreate",oi),this.writeBuffer.push(oi),tn&&this.once("flush",tn),this.flush()}close(){const W=()=>{this.onClose("forced close"),this.transport.close()},L=()=>{this.off("upgrade",L),this.off("upgradeError",L),W()},Me=()=>{this.once("upgrade",L),this.once("upgradeError",L)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Me():W()}):this.upgrading?Me():W()),this}onError(W){v.priorWebsocketSuccess=!1,this.emitReserved("error",W),this.onClose("transport error",W)}onClose(W,L){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",W,L),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(W){const L=[];let Me=0;const tn=W.length;for(;Me<tn;Me++)~this.transports.indexOf(W[Me])&&L.push(W[Me]);return L}}return v.protocol=4,v})();const Wi="function"==typeof ArrayBuffer,Ks=v=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(v):v.buffer instanceof ArrayBuffer,So=Object.prototype.toString,wo="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===So.call(Blob),da="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===So.call(File);function ia(v){return Wi&&(v instanceof ArrayBuffer||Ks(v))||wo&&v instanceof Blob||da&&v instanceof File}function jr(v,D){if(!v||"object"!=typeof v)return!1;if(Array.isArray(v)){for(let W=0,L=v.length;W<L;W++)if(jr(v[W]))return!0;return!1}if(ia(v))return!0;if(v.toJSON&&"function"==typeof v.toJSON&&1===arguments.length)return jr(v.toJSON(),!0);for(const W in v)if(Object.prototype.hasOwnProperty.call(v,W)&&jr(v[W]))return!0;return!1}function Rr(v){const D=[],L=v;return L.data=Qs(v.data,D),L.attachments=D.length,{packet:L,buffers:D}}function Qs(v,D){if(!v)return v;if(ia(v)){const W={_placeholder:!0,num:D.length};return D.push(v),W}if(Array.isArray(v)){const W=new Array(v.length);for(let L=0;L<v.length;L++)W[L]=Qs(v[L],D);return W}if("object"==typeof v&&!(v instanceof Date)){const W={};for(const L in v)Object.prototype.hasOwnProperty.call(v,L)&&(W[L]=Qs(v[L],D));return W}return v}function Hs(v,D){return v.data=Pr(v.data,D),delete v.attachments,v}function Pr(v,D){if(!v)return v;if(v&&!0===v._placeholder){if("number"==typeof v.num&&v.num>=0&&v.num<D.length)return D[v.num];throw new Error("illegal attachments")}if(Array.isArray(v))for(let W=0;W<v.length;W++)v[W]=Pr(v[W],D);else if("object"==typeof v)for(const W in v)Object.prototype.hasOwnProperty.call(v,W)&&(v[W]=Pr(v[W],D));return v}const kr=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],vs=5;var ko=(()=>{return(v=ko||(ko={}))[v.CONNECT=0]="CONNECT",v[v.DISCONNECT=1]="DISCONNECT",v[v.EVENT=2]="EVENT",v[v.ACK=3]="ACK",v[v.CONNECT_ERROR=4]="CONNECT_ERROR",v[v.BINARY_EVENT=5]="BINARY_EVENT",v[v.BINARY_ACK=6]="BINARY_ACK",ko;var v})();class Nr{constructor(D){this.replacer=D}encode(D){return D.type!==ko.EVENT&&D.type!==ko.ACK||!jr(D)?[this.encodeAsString(D)]:this.encodeAsBinary({type:D.type===ko.EVENT?ko.BINARY_EVENT:ko.BINARY_ACK,nsp:D.nsp,data:D.data,id:D.id})}encodeAsString(D){let W=""+D.type;return(D.type===ko.BINARY_EVENT||D.type===ko.BINARY_ACK)&&(W+=D.attachments+"-"),D.nsp&&"/"!==D.nsp&&(W+=D.nsp+","),null!=D.id&&(W+=D.id),null!=D.data&&(W+=JSON.stringify(D.data,this.replacer)),W}encodeAsBinary(D){const W=Rr(D),L=this.encodeAsString(W.packet),Me=W.buffers;return Me.unshift(L),Me}}function so(v){return"[object Object]"===Object.prototype.toString.call(v)}class cr extends Es{constructor(D){super(),this.reviver=D}add(D){let W;if("string"==typeof D){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");W=this.decodeString(D);const L=W.type===ko.BINARY_EVENT;L||W.type===ko.BINARY_ACK?(W.type=L?ko.EVENT:ko.ACK,this.reconstructor=new fo(W),0===W.attachments&&super.emitReserved("decoded",W)):super.emitReserved("decoded",W)}else{if(!ia(D)&&!D.base64)throw new Error("Unknown type: "+D);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");W=this.reconstructor.takeBinaryData(D),W&&(this.reconstructor=null,super.emitReserved("decoded",W))}}decodeString(D){let W=0;const L={type:Number(D.charAt(0))};if(void 0===ko[L.type])throw new Error("unknown packet type "+L.type);if(L.type===ko.BINARY_EVENT||L.type===ko.BINARY_ACK){const tn=W+1;for(;"-"!==D.charAt(++W)&&W!=D.length;);const oi=D.substring(tn,W);if(oi!=Number(oi)||"-"!==D.charAt(W))throw new Error("Illegal attachments");L.attachments=Number(oi)}if("/"===D.charAt(W+1)){const tn=W+1;for(;++W&&","!==D.charAt(W)&&W!==D.length;);L.nsp=D.substring(tn,W)}else L.nsp="/";const Me=D.charAt(W+1);if(""!==Me&&Number(Me)==Me){const tn=W+1;for(;++W;){const oi=D.charAt(W);if(null==oi||Number(oi)!=oi){--W;break}if(W===D.length)break}L.id=Number(D.substring(tn,W+1))}if(D.charAt(++W)){const tn=this.tryParse(D.substr(W));if(!cr.isPayloadValid(L.type,tn))throw new Error("invalid payload");L.data=tn}return L}tryParse(D){try{return JSON.parse(D,this.reviver)}catch{return!1}}static isPayloadValid(D,W){switch(D){case ko.CONNECT:return so(W);case ko.DISCONNECT:return void 0===W;case ko.CONNECT_ERROR:return"string"==typeof W||so(W);case ko.EVENT:case ko.BINARY_EVENT:return Array.isArray(W)&&("number"==typeof W[0]||"string"==typeof W[0]&&-1===kr.indexOf(W[0]));case ko.ACK:case ko.BINARY_ACK:return Array.isArray(W)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class fo{constructor(D){this.packet=D,this.buffers=[],this.reconPack=D}takeBinaryData(D){if(this.buffers.push(D),this.buffers.length===this.reconPack.attachments){const W=Hs(this.reconPack,this.buffers);return this.finishedReconstruction(),W}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function js(v,D,W){return v.on(D,W),function(){v.off(D,W)}}const fr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ws extends Es{constructor(D,W,L){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=D,this.nsp=W,L&&L.auth&&(this.auth=L.auth),this._opts=Object.assign({},L),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const D=this.io;this.subs=[js(D,"open",this.onopen.bind(this)),js(D,"packet",this.onpacket.bind(this)),js(D,"error",this.onerror.bind(this)),js(D,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...D){return D.unshift("message"),this.emit.apply(this,D),this}emit(D,...W){if(fr.hasOwnProperty(D))throw new Error('"'+D.toString()+'" is a reserved event name');if(W.unshift(D),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(W),this;const L={type:ko.EVENT,data:W,options:{}};if(L.options.compress=!1!==this.flags.compress,"function"==typeof W[W.length-1]){const oi=this.ids++,Vi=W.pop();this._registerAckCallback(oi,Vi),L.id=oi}return this.flags.volatile&&(!(this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable)||!this.connected)||(this.connected?(this.notifyOutgoingListeners(L),this.packet(L)):this.sendBuffer.push(L)),this.flags={},this}_registerAckCallback(D,W){var L;const Me=null!==(L=this.flags.timeout)&&void 0!==L?L:this._opts.ackTimeout;if(void 0===Me)return void(this.acks[D]=W);const tn=this.io.setTimeoutFn(()=>{delete this.acks[D];for(let oi=0;oi<this.sendBuffer.length;oi++)this.sendBuffer[oi].id===D&&this.sendBuffer.splice(oi,1);W.call(this,new Error("operation has timed out"))},Me);this.acks[D]=(...oi)=>{this.io.clearTimeoutFn(tn),W.apply(this,[null,...oi])}}emitWithAck(D,...W){const L=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((Me,tn)=>{W.push((oi,Vi)=>L?oi?tn(oi):Me(Vi):Me(oi)),this.emit(D,...W)})}_addToQueue(D){let W;"function"==typeof D[D.length-1]&&(W=D.pop());const L={id:this._queueSeq++,tryCount:0,pending:!1,args:D,flags:Object.assign({fromQueue:!0},this.flags)};D.push((Me,...tn)=>L!==this._queue[0]?void 0:(null!==Me?L.tryCount>this._opts.retries&&(this._queue.shift(),W&&W(Me)):(this._queue.shift(),W&&W(null,...tn)),L.pending=!1,this._drainQueue())),this._queue.push(L),this._drainQueue()}_drainQueue(D=!1){if(!this.connected||0===this._queue.length)return;const W=this._queue[0];W.pending&&!D||(W.pending=!0,W.tryCount++,this.flags=W.flags,this.emit.apply(this,W.args))}packet(D){D.nsp=this.nsp,this.io._packet(D)}onopen(){"function"==typeof this.auth?this.auth(D=>{this._sendConnectPacket(D)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(D){this.packet({type:ko.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},D):D})}onerror(D){this.connected||this.emitReserved("connect_error",D)}onclose(D,W){this.connected=!1,delete this.id,this.emitReserved("disconnect",D,W)}onpacket(D){if(D.nsp===this.nsp)switch(D.type){case ko.CONNECT:D.data&&D.data.sid?this.onconnect(D.data.sid,D.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ko.EVENT:case ko.BINARY_EVENT:this.onevent(D);break;case ko.ACK:case ko.BINARY_ACK:this.onack(D);break;case ko.DISCONNECT:this.ondisconnect();break;case ko.CONNECT_ERROR:this.destroy();const L=new Error(D.data.message);L.data=D.data.data,this.emitReserved("connect_error",L)}}onevent(D){const W=D.data||[];null!=D.id&&W.push(this.ack(D.id)),this.connected?this.emitEvent(W):this.receiveBuffer.push(Object.freeze(W))}emitEvent(D){if(this._anyListeners&&this._anyListeners.length){const W=this._anyListeners.slice();for(const L of W)L.apply(this,D)}super.emit.apply(this,D),this._pid&&D.length&&"string"==typeof D[D.length-1]&&(this._lastOffset=D[D.length-1])}ack(D){const W=this;let L=!1;return function(...Me){L||(L=!0,W.packet({type:ko.ACK,id:D,data:Me}))}}onack(D){const W=this.acks[D.id];"function"==typeof W&&(W.apply(this,D.data),delete this.acks[D.id])}onconnect(D,W){this.id=D,this.recovered=W&&this._pid===W,this._pid=W,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(D=>this.emitEvent(D)),this.receiveBuffer=[],this.sendBuffer.forEach(D=>{this.notifyOutgoingListeners(D),this.packet(D)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(D=>D()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ko.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(D){return this.flags.compress=D,this}get volatile(){return this.flags.volatile=!0,this}timeout(D){return this.flags.timeout=D,this}onAny(D){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(D),this}prependAny(D){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(D),this}offAny(D){if(!this._anyListeners)return this;if(D){const W=this._anyListeners;for(let L=0;L<W.length;L++)if(D===W[L])return W.splice(L,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(D){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(D),this}prependAnyOutgoing(D){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(D),this}offAnyOutgoing(D){if(!this._anyOutgoingListeners)return this;if(D){const W=this._anyOutgoingListeners;for(let L=0;L<W.length;L++)if(D===W[L])return W.splice(L,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(D){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const W=this._anyOutgoingListeners.slice();for(const L of W)L.apply(this,D.data)}}}function Lr(v){this.ms=(v=v||{}).min||100,this.max=v.max||1e4,this.factor=v.factor||2,this.jitter=v.jitter>0&&v.jitter<=1?v.jitter:0,this.attempts=0}Lr.prototype.duration=function(){var v=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var D=Math.random(),W=Math.floor(D*this.jitter*v);v=1&Math.floor(10*D)?v+W:v-W}return 0|Math.min(v,this.max)},Lr.prototype.reset=function(){this.attempts=0},Lr.prototype.setMin=function(v){this.ms=v},Lr.prototype.setMax=function(v){this.max=v},Lr.prototype.setJitter=function(v){this.jitter=v};class ur extends Es{constructor(D,W){var L;super(),this.nsps={},this.subs=[],D&&"object"==typeof D&&(W=D,D=void 0),(W=W||{}).path=W.path||"/socket.io",this.opts=W,us(this,W),this.reconnection(!1!==W.reconnection),this.reconnectionAttempts(W.reconnectionAttempts||1/0),this.reconnectionDelay(W.reconnectionDelay||1e3),this.reconnectionDelayMax(W.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(L=W.randomizationFactor)&&void 0!==L?L:.5),this.backoff=new Lr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==W.timeout?2e4:W.timeout),this._readyState="closed",this.uri=D;const Me=W.parser||e;this.encoder=new Me.Encoder,this.decoder=new Me.Decoder,this._autoConnect=!1!==W.autoConnect,this._autoConnect&&this.open()}reconnection(D){return arguments.length?(this._reconnection=!!D,this):this._reconnection}reconnectionAttempts(D){return void 0===D?this._reconnectionAttempts:(this._reconnectionAttempts=D,this)}reconnectionDelay(D){var W;return void 0===D?this._reconnectionDelay:(this._reconnectionDelay=D,null===(W=this.backoff)||void 0===W||W.setMin(D),this)}randomizationFactor(D){var W;return void 0===D?this._randomizationFactor:(this._randomizationFactor=D,null===(W=this.backoff)||void 0===W||W.setJitter(D),this)}reconnectionDelayMax(D){var W;return void 0===D?this._reconnectionDelayMax:(this._reconnectionDelayMax=D,null===(W=this.backoff)||void 0===W||W.setMax(D),this)}timeout(D){return arguments.length?(this._timeout=D,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(D){if(~this._readyState.indexOf("open"))return this;this.engine=new wi(this.uri,this.opts);const W=this.engine,L=this;this._readyState="opening",this.skipReconnect=!1;const Me=js(W,"open",function(){L.onopen(),D&&D()}),tn=Vi=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Vi),D?D(Vi):this.maybeReconnectOnOpen()},oi=js(W,"error",tn);if(!1!==this._timeout){const hs=this.setTimeoutFn(()=>{Me(),tn(new Error("timeout")),W.close()},this._timeout);this.opts.autoUnref&&hs.unref(),this.subs.push(()=>{this.clearTimeoutFn(hs)})}return this.subs.push(Me),this.subs.push(oi),this}connect(D){return this.open(D)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const D=this.engine;this.subs.push(js(D,"ping",this.onping.bind(this)),js(D,"data",this.ondata.bind(this)),js(D,"error",this.onerror.bind(this)),js(D,"close",this.onclose.bind(this)),js(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(D){try{this.decoder.add(D)}catch(W){this.onclose("parse error",W)}}ondecoded(D){Bn(()=>{this.emitReserved("packet",D)},this.setTimeoutFn)}onerror(D){this.emitReserved("error",D)}socket(D,W){let L=this.nsps[D];return L?this._autoConnect&&!L.active&&L.connect():(L=new Ws(this,D,W),this.nsps[D]=L),L}_destroy(D){const W=Object.keys(this.nsps);for(const L of W)if(this.nsps[L].active)return;this._close()}_packet(D){const W=this.encoder.encode(D);for(let L=0;L<W.length;L++)this.engine.write(W[L],D.options)}cleanup(){this.subs.forEach(D=>D()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(D,W){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",D,W),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const D=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const W=this.backoff.duration();this._reconnecting=!0;const L=this.setTimeoutFn(()=>{D.skipReconnect||(this.emitReserved("reconnect_attempt",D.backoff.attempts),!D.skipReconnect&&D.open(Me=>{Me?(D._reconnecting=!1,D.reconnect(),this.emitReserved("reconnect_error",Me)):D.onreconnect()}))},W);this.opts.autoUnref&&L.unref(),this.subs.push(()=>{this.clearTimeoutFn(L)})}}onreconnect(){const D=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",D)}}const Fr={};function Ko(v,D){"object"==typeof v&&(D=v,v=void 0);const W=function _i(v,D="",W){let L=v;W=W||typeof location<"u"&&location,null==v&&(v=W.protocol+"//"+W.host),"string"==typeof v&&("/"===v.charAt(0)&&(v="/"===v.charAt(1)?W.protocol+v:W.host+v),/^(https?|wss?):\/\//.test(v)||(v=typeof W<"u"?W.protocol+"//"+v:"https://"+v),L=Fi(v)),L.port||(/^(http|ws)$/.test(L.protocol)?L.port="80":/^(http|ws)s$/.test(L.protocol)&&(L.port="443")),L.path=L.path||"/";const tn=-1!==L.host.indexOf(":")?"["+L.host+"]":L.host;return L.id=L.protocol+"://"+tn+":"+L.port+D,L.href=L.protocol+"://"+tn+(W&&W.port===L.port?"":":"+L.port),L}(v,(D=D||{}).path||"/socket.io"),L=W.source,Me=W.id;let hs;return D.forceNew||D["force new connection"]||!1===D.multiplex||Fr[Me]&&W.path in Fr[Me].nsps?hs=new ur(L,D):(Fr[Me]||(Fr[Me]=new ur(L,D)),hs=Fr[Me]),W.query&&!D.query&&(D.query=W.queryKey),hs.socket(W.path,D)}Object.assign(Ko,{Manager:ur,Socket:Ws,io:Ko,connect:Ko});var ms=_(99624),Ho=_(30295),vo=_.n(Ho),oa=_(92340),Ka=_(16925),Gr=_(70895),Xr=_(9116);let uo=(()=>{var v;class D{constructor(L,Me,tn,oi){this._global=L,this._oauth=Me,this._router=tn,this._toastr=oi,this.calls$=new vt.X([]),this.ringCalls$=new vt.X([]),this.activeCall$=new vt.X(null),this._feathers=(0,Zn.feathers)(),this._feathersRest=(0,Zn.feathers)(),this._hubResults$=new An.x,this._socket=Ko(oa.N.chatUrl,{transports:["websocket"]}),this._rest=vo()(oa.N.chatUrl),this._feathers.configure((0,ms.socketio)(this._socket)).configure(Li()({jwtStrategy:"oidc",locationKey:"feathers-jwt",platform:"web"})).use("rooms",(0,ms.socketio)(this._socket).service("rooms"),{methods:["find","get","create","patch","remove","leave"]}).use("media",(0,ms.socketio)(this._socket).service("media"),{methods:["find","get","create","patch","remove","decline"]}),this._feathersRest.configure(this._rest.fetch).configure(Li()({jwtStrategy:"oidc",locationKey:"feathers-jwt",platform:"web"})),this._feathers.authentication.handleSocket(this._socket),this._checkToken().subscribe(Vi=>{this._refreshToken(Vi).subscribe(()=>{this._feathers.authenticate({strategy:"oidc",accessToken:this._oauth.getAccessToken(),platform:"web"}).then(()=>{this._connectToMethods()})})})}listen(L){return this._requestWrapper().pipe((0,Ht.b)(()=>this._hubResults$.asObservable()),(0,Un.h)(Me=>Me.method===L))}remove(L,Me,tn){return this._requestWrapper().pipe((0,fi.w)(()=>this._feathers.service(L).remove(Me,tn)))}removeChannel(L,Me){return this._requestWrapper().pipe((0,fi.w)(()=>this._feathers.service(L).removeChannel(Me)))}find(L,Me){return this._requestWrapper().pipe((0,Ht.b)(()=>this._feathers.service(L).find({query:Me})),(0,F.U)(tn=>({method:L,data:tn})))}create(L,Me){return this._requestWrapper().pipe((0,fi.w)(()=>this._feathers.service(L).create(Me)))}patch(L,Me,tn,oi){return this._requestWrapper().pipe((0,fi.w)(()=>this._feathers.service(L).patch(Me,tn,oi)))}get(L,Me,tn){return this._requestWrapper().pipe((0,Ht.b)(()=>this._feathers.service(L).get(Me,{query:tn})),(0,F.U)(oi=>({method:L,data:oi})))}leave(L,Me){return this._requestWrapper().pipe((0,fi.w)(()=>this._feathers.service(L).leave(Me)),(0,F.U)(tn=>({serviceName:L,data:tn})))}decline(L,Me){return this._requestWrapper().pipe((0,Ht.b)(()=>this._feathers.service(L).decline(Me)),(0,F.U)(tn=>({serviceName:L,data:tn})))}_refreshTime(){return this._oauth.getAccessTokenExpiration()-(new Date).getTime()-3e4}_connectToMethods(){Object.values(G.Ht).forEach(L=>{const[Me,tn]=L.split(" ");this._feathers.service(Me).on(tn,oi=>{this._hubResults$.next({method:L,data:oi})})})}_logOut(){return(0,Pn.of)(!1).pipe((0,bi.x)(()=>this._router.navigate(["login"])),(0,bi.x)(()=>localStorage.clear()),(0,bi.x)(()=>sessionStorage.clear()))}_checkToken(){return(0,Sn.D)({tokenTimeValid:(0,Pn.of)(this._refreshTime()>0),hasRefreshToken:(0,Pn.of)(!!this._oauth.getRefreshToken())})}_refreshToken(L){return L.tokenTimeValid?(0,Pn.of)(!0):L.hasRefreshToken?(0,Fn.D)(this._oauth.refreshToken()).pipe((0,fi.w)(Me=>(0,Pn.of)(this._feathers.authenticate({strategy:"oidc",accessToken:Me.access_token,platform:"web"})))):void this._logOut()}_requestWrapper(){return this._checkToken().pipe((0,fi.w)(L=>navigator.onLine?this._refreshToken(L):(this._toastr.warning("\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0437'\u0454\u0434\u043d\u0430\u043d\u043d\u044f \u0437 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u043e\u043c"),(0,Pn.of)(Cn.E))))}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Ka.U),N.LFG(Gr.Ct),N.LFG(Xr.F0),N.LFG(Gc))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),No=(()=>{var v;class D extends o.v{constructor(){super(y,"/general-achievements","general-achievements")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Cr=(()=>{var v;class D extends o.v{constructor(){super(Y.f9,"/general-achievement-marks","general-achievement-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class Er{constructor(D={}){this.sawCard=!1,Object.assign(this,D)}}let zr=(()=>{var v;class D extends o.v{constructor(){super(Er,"/postcard","postcard")}postGreeting(L){return this.httpPost(this.apiHref(),{isSubmit:L})}getGreeting(){return this.httpGet(`${this.apiHref()}/by-user`)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var or=_(29357);let rr=(()=>{var v;class D extends o.v{constructor(){super(or.AH,"/homeworks","homeworks")}getHomework(L){return this.httpGet(`${this.apiHref()}/${L}`)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),lo=(()=>{var v;class D extends o.v{constructor(){super(or.W1,"/homework-implementations","homework-implementations")}addHomework(L){return this.httpPost(this.apiHref(),L)}getHomeworkResults(L){return this.httpGet(this.apiHref(),{query:L})}checkHomework(L,Me){return this.httpPut(`${this.apiHref()}/${L}/check`,Me)}getStudentHomework(L,Me,tn){return this.httpGet(`${this.apiHref()}/${L}`,{factory:or.W1,asUserId:Me,asUserSchoolId:tn})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var nr=_(57458),mt=_(32220);class dt{constructor(D={}){Object.assign(this,D),this.journalDays=D.journalDays?D.journalDays.map(W=>new nr.kE(W)):[],this.subjects=D.subjects.length?D.subjects.map(W=>new mt.tD(W)):[]}}var Ys=_(9885),co=_(72525);let Hi=(()=>{var v;class D extends o.v{constructor(){super(ke.t3,"/journals","journal")}getJournalEntity(L){return this.httpGet(`${this.apiHref()}/${L}`,{factory:Ys.Il})}getJournalPage(L,Me){return this.httpGet(`${this.apiHref()}/${L}/pages`,{alias:"journal",query:Me})}getClasses(L,Me=!1){return this.httpGetAll(`${this.apiHref()}/classes?scheduleId=${L}&myClassesOnly=${Me}`,{alias:"journal-classes",factory:Ze.Jm})}getNushClasses(L,Me){return this.httpGetAll(`${this.apiHref()}/classes?nushOnly=true${Me?"&myClassesWithReplaceOnly="+Me:""}${L?"&scheduleId="+L:""}`,{alias:"journal-classes"})}getChildJournal(L,Me,tn,oi){const hs={alias:"student-journal-marks",factory:dt,asUserId:oi?.asUserId,asUserSchoolId:tn,query:{userId:L,from:Me.from,to:Me.to}};return this.httpGet(`${this.apiHref()}/child-marks`,hs)}getJournalTeachers(L,Me={}){const tn=`${this.apiHref()}/teachers?includeInactive=${L}`;return this.httpGetAll(tn,{factory:co.J,query:Me})}getJournalTeacher(L){const Me=`${this.apiHref()}/teachers/${L}`;return this.httpGet(Me,{factory:co.J})}getStudentsOfJournal(L){return this.httpGetAll(`${this.apiHref()}/${L}/users`,{alias:"journal-users",factory:ke.$R})}replaceTeacherOrVacancy(L,Me){return this.httpPut(`${this.apiHref()}/${L}/change-teachers`,Me)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),to=(()=>{var v;class D extends o.v{constructor(){super(ke.kE,"/journal-days","journal-days")}getAverageScore(L){return this.httpGet(`${this.apiHref()}/${L}/average`)}getJournalDaysFromFirstThematic(L){return this.httpGet(`${this.apiHref()}/${L}/from-first-thematic`)}getCustomColumnsForAverageScore(L,Me,tn){return this.httpGet(`${this.apiHref()}/${L}/custom-columns?from=${Me}&to=${tn}`)}moveJournalDay(L,Me){return this.httpPut(`${this.apiHref()}/${L}/move`,{isRight:Me})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var mo=_(95187);let Or=(()=>{var v;class D extends o.v{constructor(){super(mo.M,"/journal-remarks","journal-remarks")}updateViewNotification(L){return this.httpPut(`${this.apiHref()}/teacher/notification-seen`,L)}updateTeacherStatus(L,Me){return this.httpPut(`${this.apiHref()}/${L}/teacher`,{done:Me})}updateAdminStatus(L,Me){return this.httpPut(`${this.apiHref()}/${L}/admin`,{adminStatus:Me})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),sa=(()=>{var v;class D extends o.v{constructor(){super(ke.XZ,"/journal-snapshots","journal-snapshots")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),aa=(()=>{var v;class D extends o.v{constructor(){super(ke.vc,"/marks","marks")}addAverageRating(L){return this.httpPost(`${this.apiHref()}/average`,{marks:L})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Xa=_(47063);let ar=(()=>{var v;class D extends o.v{constructor(){super(Xa.Pj,"/marks-changelog","marks-changelog")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class qr{constructor(D={}){Object.assign(this,D)}}let bt=(()=>{var v;class D extends o.v{constructor(){super(qr,"/mobile/versions","mobile/versions")}getMobileVersions(){return this.http.get(`${this.apiBaseHref()}/mobile/versions`)}updateWarning(L){return this.httpPut(this.apiHref(),L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Mt=(()=>{var v;class D extends o.v{constructor(){super(ke.o6,"/profile/notifications","notifications")}updateStatus(L){return this.httpPut(`${this.apiHref()}/${L}/read`,null)}readAll(){return this.httpPut(`${this.apiHref()}/readall`,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Xt=(()=>{var v;class D extends o.v{constructor(){super(ke.ie,"/nush-certificates","nush-certificates")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var yn=_(93428);let Qn=(()=>{var v;class D extends o.v{constructor(){super(yn.NX,"/nush-decisions","nush-decisions")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Ci=(()=>{var v;class D extends o.v{constructor(){super(ke.AD,"/rules","nush-rules")}getDropdownRules(L,Me,tn){const oi=new A.H(0,999);oi.pushFilters([{field:"classId",operator:G.v8.Eq,value:L}]);let Vi={alias:"dropdown-rules",query:oi.query};return tn&&(Vi={alias:"dropdown-rules",query:oi.query,asUserId:tn,asUserSchoolId:Me}),this.httpGet(`${this.apiHref()}/dropdown`,Vi)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class $i{constructor(D={}){Object.assign(this,D),this.olympiadsForChildren=D.olympiadsForChildren?D.olympiadsForChildren.map(W=>new Us(W)):[]}}class Us{constructor(D={}){Object.assign(this,D)}}let $s=(()=>{var v;class D extends o.v{constructor(){super($i,"/olympiads","olympiads"),this.olympiadData=new vt.X(null)}getStatus(L){return this.http.get(`${this.apiOrigin}/api/olympiads/check-unpaid-available-olympiads/${L}`)}getStatusChild(){return this.httpGet(`${this.apiHref()}/check-accessible-olympiads-child`)}getAccessibleOlympiads(L,Me){return this.http.get(`${this.apiOrigin}/api/olympiads/check-accessible-olympiads-all`,{headers:this.getHeaders(L,Me)}).pipe((0,F.U)(tn=>tn.map(oi=>new $i(oi))))}getOlympiadPaymentInfo(L,Me,tn){return this.http.post(`${this.apiOrigin}/api/payment/liqpay`,tn,{headers:this.getHeaders(L,Me)})}validateOlympiadPayment(L,Me,tn){return this.httpPost(`${this.apiOrigin}/api/payment/validate`,tn,Me,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var mr=_(76346);let Lo=(()=>{var v;class D extends o.v{constructor(){super(mr.F6,"/payments","payments")}cancelPayment(L){return this.httpPut(`${this.apiHref()}/${L}/cancel`,null)}remindPayment(L){return this.httpPost(`${this.apiHref()}/${L}/remind`,null)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),yr=(()=>{var v;class D extends o.v{constructor(){super(ke.M1,"/payment-settings","payment-settings")}updateStatus(L,Me){return this.httpPut(`${this.apiHref()}/${L}/status`,Me)}confirmSetting(L){return this.httpGet(`${this.apiHref()}/${L}/confirmation`)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Yr=_(88607);let Vo=(()=>{var v;class D extends o.v{constructor(){super(Yr.Sw,"/practice-journals","practice-journal")}getJournal(L){return this.httpGet(this.apiHref(),L)}getTeachersPracticeJournal(L){return this.httpGet(`${this.apiHref()}/teacher-journals`,{query:{scheduleId:L}})}getStudentsOfJournal(L){return this.httpGetAll(`${this.apiHref()}/${L}/users`,{alias:"practice-journal-students",factory:Yr.$R})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Wr=(()=>{var v;class D extends o.v{constructor(){super(ke.vc,"/practice-journal-marks","practice-journal-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Oo=(()=>{var v;class D extends o.v{constructor(){super(mt.ms,"/relations","relations")}removeRelations(L){return this.httpDelete(this.apiHref(),{},L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Ta=_(95069);let ea=(()=>{var v;class D extends o.v{constructor(){super(Ta.yG,"/reports","reports")}getReportFile(L){return this.http.get(L,{headers:this.getApiHeaders(),responseType:"blob"})}requestJournalReport(L,Me){return this.httpPost(`${this.apiHref()}/journal/${Me}`,L)}requestJournalVisitingReport(L,Me){return this.httpPost(`${this.apiHref()}/journal/visiting/${Me}`,L)}requestMarksChangelogReport(L,Me){return this.httpPost(`${this.apiHref()}/marks-changelog/${Me}`,L)}requestCompleteReport(L,Me){return this.httpPost(`${this.apiHref()}/complete-report/${Me}`,L)}requestDiscourseReport(L,Me){return this.httpPost(`${this.apiHref()}/discourse-journal/${Me}`,L)}requestBriefingReport(L,Me){return this.httpPost(`${this.apiHref()}/briefing-journal/${Me}`,L)}requestStudentsGeneralInfoReport(L,Me){return this.httpPost(`${this.apiHref()}/user-general-info/${Me}`,L)}requestMovementReport(L,Me){return this.httpPost(`${this.apiHref()}/movement-table/${Me}`,L)}requestFinalMarksReport(L,Me,tn){return this.httpPost(`${this.apiHref()}/final-marks/${Me}`,L,tn?.schoolId,tn?.id)}requestGeneralFinalMarksReport(L,Me){return this.httpPost(`${this.apiHref()}/general-final-marks/${Me}`,L)}requestJournalRemarkReport(L,Me){return this.httpPost(`${this.apiHref()}/journal-remarks/${Me}`,L)}requestPracticeReport(L,Me){return this.httpPost(`${this.apiHref()}/practice-journal/${Me}`,L)}requestUsersReport(L,Me){return this.httpPost(`${this.apiHref()}/users/${Me}`,L)}gradeBookLoggingReport(L,Me){return this.httpPost(`${this.apiHref()}/grade-book-logging/${Me}`,L)}commonReport(L,Me){return this.httpPost(`${this.apiHref()}/common-report/${Me}`,L)}requestAchievement(L,Me,tn){return this.httpPost(`${this.apiHref()}/achievement-report/${Me}`,L,tn?.schoolId,tn?.id)}requestSafeguardReport(L,Me){return this.httpPost(`${this.apiHref()}/safeguard-report/${Me}`,L)}educationFormReport(L,Me){return this.httpPost(`${this.apiHref()}/education-form-report/${Me}`,L)}socialGroupReport(L,Me){return this.httpPost(`${this.apiHref()}/social-group/${Me}`,L)}downloadAllReports(L){return this.httpPostBlob(`${this.apiHref()}/zip`,L)}signedReport(L,Me){return this.httpPost(`${this.apiHref()}/${L}/sign`,Me)}journalMarksReport(L,Me){return this.httpPost(`${this.apiHref()}/child-marks/${Me}`,L)}healthCardReport(L,Me){return this.httpPost(`${this.apiHref()}/health-card/${Me}`,L)}paymentReport(L,Me){return this.httpPost(`${this.apiHref()}/payment/${Me}`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),la=(()=>{var v;class D extends o.v{constructor(){super(Ta.yG,"/identity-reports","identity-reports")}requestReport(L){return this.httpPost(`${this.apiHref()}/comparison`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Br=(()=>{var v;class D extends o.v{constructor(){super(ke.cf,"/requests","requests"),this.newRequests$=new vt.X([])}approve(L){return this.httpPut(`${this.apiHref()}/${L}/approve`,null)}reject(L,Me){return this.httpPut(`${this.apiHref()}/${L}/reject`,Me)}getSecureImage(L){return this.httpGetBlob(L,{})}sendBatchGradesAndReason(L){return this.httpPost(`${this.apiHref()}/batch`,L)}getPaymentData(L){return this.httpGet(`${this.apiHref()}/${L}/url`,null)}updateRequestsList(L){const Me=this.newRequests$.value.filter(tn=>tn.id!==L);this.newRequests$.next(Me)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Il=(()=>{var v;class D extends o.v{constructor(){super(ke.JB,"/safeguard-courses","safeguard-courses")}sendPass(){return this.httpPost(`${this.apiHref()}/views`,{})}getPass(){return this.httpGet(`${this.apiHref()}/views`,{})}generatedCertificate(){return this.httpPost(`${this.apiHref()}/certificates `,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var br=_(95577),wl=_(57359),Ur=_(54482);const ha=(v,D)=>(v.push(D),v);let Tl=(()=>{var v;class D extends o.v{constructor(){super(ke.Hr,"/scheduled-lessons","scheduled-lesson")}revertScheduledLesson(L){return this.http.delete(`${this.apiHref()}/${L}/revert`,{headers:this.aliasHeaders("scheduled-lesson",this.getHeaders()),body:this.body(L)})}createScheduledLessons(L){return(0,Fn.D)(L).pipe((0,br.z)(Me=>this.createScheduleLesson(Me)),function ir(){return(0,Ur.e)((v,D)=>{(function er(v,D){return(0,Ur.e)((0,wl.U)(v,D,arguments.length>=2,!1,!0))})(ha,[])(v).subscribe(D)})}())}createScheduleLesson(L){return this.http.post(this.apiHref(),L,{headers:this.getHeaders()})}publishSchedule(L){return this.http.post(`${this.apiHref()}/publish`,L,{headers:this.getHeaders()})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),jl=(()=>{var v;class D extends o.v{constructor(){super(ke.W2,"/school","school")}getCurrentSchool(L,Me){return this.httpGet(this.apiHref(),{alias:"current-school",factory:ke.W2,asUserId:L,asUserSchoolId:Number(Me)})}updateCurrentSchool(L){return this.httpPut(this.apiHref(),L)}updateImage(L){return this.httpPut(`${this.apiHref()}/image`,L)}removeImage(){return this.httpDelete(`${this.apiHref()}/image`)}getSchoolStatus(L,Me){return this.httpGet(`${this.apiHref()}/status`,{asUserId:L,asUserSchoolId:Me})}closeYear(){return this.httpPost(`${this.apiHref()}/close-year`,{})}removeSchool(L){return this.httpDelete(this.apiHref(),{},L)}connectToAikom(L){return this.httpPost(`${this.apiHref()}/connect-aikom`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class qa{constructor(D={}){Object.assign(this,D),this.start=D.start?new Date(D.start):null,this.startDay=this.start?this.start.getDay():null,this.end=D.end?new Date(D.end):null,this.endDay=this.end?this.end.getDay():null,this.notificationTime=D.notificationTime?new Date(D.notificationTime):null,this.notificationList=D.notificationList?new Ml(D.notificationList):null,this.notificationListCount=D.notificationListCount?new ca(D.notificationListCount):null,this.detailedNotificationList=D.detailedNotificationList?new Ma(D.detailedNotificationList):null}}class Ml{constructor(D={}){Object.assign(this,D)}}class ca{constructor(D={}){Object.assign(this,D)}}class Ma{constructor(D={}){Object.assign(this,D),this.classTeacherIds=D?.classTeacherIds?D.classTeacherIds.map(W=>new Ir(W)):null,this.userClassIds=D?.userClassIds?D.userClassIds.map(W=>new Ir(W)):null,this.subjectTeacherIds=D?.subjectTeacherIds?D.subjectTeacherIds.map(W=>new Ir(W)):null,this.parentClassIds=D?.parentClassIds?D.parentClassIds.map(W=>new Ir(W)):null}}class Ir{constructor(D={}){Object.assign(this,D)}}let ne=(()=>{var v;class D extends o.v{constructor(){super(qa,"/events","events")}getEventInfo(L){return this.httpGet(`${this.apiHref()}/${L}`)}checkSchoolEventNotification(L){return this.httpPost(`${this.apiBaseHref()}/fcm-notifications`,{token:L})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),qt=(()=>{var v;class D extends o.v{constructor(){super(ke.ND,"/settings","settings")}getSettings(L,Me){return this.httpGet(this.apiHref(),{alias:"school-settings",asUserId:L,asUserSchoolId:Me})}updateSettings(L){return this.httpPut(this.apiHref(),L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class V{constructor(D={}){Object.assign(this,D),this.decision=D.decision?new _n.ZA(D.decision):null}}let Ie=(()=>{var v;class D extends o.v{constructor(){super(V,"/score-cards","score-cards")}getScoreCards(L,Me,tn){return this.httpGet(this.apiHref(),{query:this.normalizeParams(L),asUserId:Me,asUserSchoolId:tn})}checkScoreCards(){return this.httpGetAll(`${this.apiHref()}/check`)}updateScoreCards(L){return this.httpPut(this.apiHref(),L)}updateScoreAccept(L,Me,tn){return this.httpPut(`${this.apiHref()}/accept`,L,{asUserId:Me,asUserSchoolId:tn})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var qe=_(80529),Zt=_(31468),Rn=_(28295);let ii=(()=>{var v;class D extends Zt.f{constructor(){super("/search"),this._strType=String}regeons(){return this.http.get(`${this.apiHref()}/regions`,{headers:this.aliasHeaders("search-regions",this.getApiHeaders())}).pipe((0,F.U)(L=>this._dataMapper(L)))}cities(L){const Me=new qe.LE({fromObject:{region:L}});return this.http.get(`${this.apiHref()}/cities`,{headers:this.aliasHeaders("search-cities",this.getApiHeaders()),params:Me}).pipe((0,F.U)(tn=>this._dataMapper(tn)))}schools(L,Me){const tn=new qe.LE({fromObject:{region:L,city:Me}});return this.http.get(`${this.apiHref()}/schools`,{headers:this.aliasHeaders("search-shools",this.getApiHeaders()),params:tn}).pipe((0,F.U)(oi=>new ke.Rf(oi,ke.Bt)))}getSubjects(L){const Me=new qe.LE({fromObject:{schoolId:L}});return this.http.get(`${this.apiHref()}/subjects`,{headers:this.aliasHeaders("search-subjects",this.getApiHeaders()),params:Me}).pipe((0,F.U)(tn=>new ke.Rf(tn,Rn.x)))}_dataMapper(L){const Me=new ke.Rf(L,this._strType);return Me.data=Me.data.map(tn=>tn.toString()),Me}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class $n{constructor(D={}){Object.assign(this,D),this.user=D.user?new Ii(D.user):null,this.socialGroups=D.socialGroups?.length>0?D.socialGroups.map(W=>new ro(W)):[]}}class Ii{constructor(D={}){Object.assign(this,D)}}class ro{constructor(D={}){Object.assign(this,D),this.from=D.from?new Date(D.from):null,this.to=D.to?new Date(D.to):null}}class rs{constructor(D={}){Object.assign(this,D)}}let Ki=(()=>{var v;class D extends o.v{constructor(){super($n,"/social-groups","social-groups")}getStatistic(L){return this.httpGetAll(`${this.apiHref()}/statistics`,{...L,factory:rs})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Ss=_(15523);class Ls{constructor(D={}){Object.assign(this,D),this.leaveDetails=D.leaveDetails?new Ss.bV(D.leaveDetails):void 0,this.birthDay=D.birthDay?new Date(D.birthDay):void 0,this.birthDay=this.birthDay?.getFullYear()<1900?new Date(new Date(this.birthDay).setFullYear(1900)):this.birthDay,this.address=D.address?new mt.yO(D.address):void 0,this.relations=D.relations.length?D.relations.map(W=>new Ms(W)):[]}}class Ms{constructor(D={}){Object.assign(this,D),this.address=D.address?new mt.yO(D.address):void 0,this.workPlace=D.workPlace?new ao(D.workPlace):void 0,this.birthDay=D.birthDay?new Date(D.birthDay):void 0,this.birthDay=this.birthDay?.getFullYear()<1900?new Date(new Date(this.birthDay).setFullYear(1900)):this.birthDay,this.fullName=this._getFullName([D.lastName,D.firstName,D.middleName])}_getFullName(D){const W=[];return D.forEach(L=>{L&&W.push(L)}),W.join(" ")}}class ao{constructor(D={}){Object.assign(this,D),this.workPlaceAddress=[this.institutionName,this.address,this.phone].filter(Boolean).join(", ")}}let Po=(()=>{var v;class D extends o.v{constructor(){super(Ls,"/student-general-info","student-general-info")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class zs{constructor(D={}){Object.assign(this,D),this.firstSemester=D?.firstSemester?new yo(D.firstSemester):null,this.secondSemester=D?.secondSemester?new yo(D.secondSemester):null,this.year=D?.year?new yo(D.year):null}}class yo{constructor(D={}){Object.assign(this,D)}}let Uo=(()=>{var v;class D extends o.v{constructor(){super(zs,"/movement-table","movement-table")}getClassMovement(L){return this.httpGet(`${this.apiHref()}/${L}`)}updateStudentMovement(L){return this.httpPut(this.apiHref(),L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class Xs{constructor(D={}){Object.assign(this,D)}}let Fo=(()=>{var v;class D extends o.v{constructor(){super(Xs,"/students-observations","students-observations")}getObservationColumns(L,Me=null,tn=null){const oi={query:L,alias:"observation-pages",asUserId:Me,asUserSchoolId:tn};return this.httpGet(`${this.apiHref()}/pages`,oi)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),no=(()=>{var v;class D extends o.v{constructor(){super(ki,"/students-observation-columns","students-observation-columns")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Tr=(()=>{var v;class D extends o.v{constructor(){super(Y.lp,"/students-observation-marks","students-observation-marks")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Oa=(()=>{var v;class D extends o.v{constructor(){super(ki,"/students-observation-rows","students-observation-rows")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),za=(()=>{var v;class D extends o.v{constructor(){super(Rn.x,"/subjects","subjects")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),pa=(()=>{var v;class D extends o.v{constructor(L){super(mt.di,"/support","support"),this._oauthService=L}createSchool(L){return this.httpPost(`${this.apiHref()}/schools`,L)}confirmSupportPassword(L){return this.httpPost(`${this.apiHref()}/users/check-support-password`,L)}updatePassword(L){return this.httpPut(`${this.apiHref()}/users/update-password`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Gr.Ct))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),zl=(()=>{var v;class D extends o.v{constructor(){super(ke.di,"/support/users","support")}deleteUser(L,Me){return this.httpDelete(`${this.apiHref()}/${L}`,{asUserId:Me})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Sr=_(25006);let $r=(()=>{var v;class D extends o.v{constructor(){super(Sr.tJ,"/system/schools","system/schools")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var el=_(13038);let Jo=(()=>{var v;class D extends o.v{constructor(){super(el.Zk,"/replacements","replacements")}getTeacherSchedule(L){return this.httpGetAll(`${this.apiHref()}/teacher-schedule`,L)}getTeachersForReplace(L){return this.httpGetAll(`${this.apiHref()}/teachers`,L)}createReplaceRecord(L){return this.httpPost(this.apiHref(),{data:L})}getReplacementRecords(L){return this.httpGet(this.apiHref(),L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Yl=(()=>{var v;class D extends o.v{constructor(){super(ke.tG,"/teacher-workloads","teacher-workloads")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class Uc{constructor(D={}){Object.assign(this,D)}}let tl=(()=>{var v;class D extends o.v{constructor(){super(Uc,"/training-plans/import","training-plans/import")}getTemplate(){return this.httpGetBlob(this.apiHref(),{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),hl=(()=>{var v;class D extends o.v{constructor(){super(Ss.FE,"/transfers","transfers")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Wl=(()=>{var v;class D extends o.v{constructor(){super(Ss.nJ,"/transfers/users","transfers/users")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Xl=(()=>{var v;class D extends o.v{constructor(){super(xt,"/identity-attachments","identity-attachments")}uploadFiles(L){return this.httpPost(`${this.apiHref()}/temporary`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),gl=(()=>{var v;class D extends o.v{constructor(){super(ke.Cb,"/attachments","attachments")}uploadHomeworkTeacher(L){return this.httpPost(`${this.apiHref()}/temporary`,L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var kl=_(42476);class ta{constructor(D={}){Object.assign(this,D),this.permissions=D.permissions?D.permissions.map(W=>new _l(W)):void 0}}class _l{constructor(D={}){Object.assign(this,D),this.startDate=D.startDate?new Date(D.startDate):void 0,this.endDate=D.endDate?new Date(D.endDate):void 0}}var Ja=_(9967);let fc=(()=>{var v;class D extends o.v{constructor(L){super(ke.NZ,"/users/","users"),this._authService=L,this.currentUser$=new vt.X(null),this.currentSchoolInfo$=new vt.X(null),this.userPermissions$=new vt.X(null),this.isChild$=new vt.X(!1),this.isClassTeacher$=new vt.X(null)}getClassTeacherClassIds(){return this.userPermissions$.getValue().permissions.find(L=>L.schoolId===this._authService.getUserSchoolId()&&!L.isChild)?.classIds||[]}getRelations(L,Me){return this.httpGetAll(`${this.apiHref()}/${L}/relations/${Me}`,{alias:"profile-relations",asUserId:L})}updateImage(L,Me){return this.httpPut(`${this.apiHref()}/${L}/image`,Me)}removeImage(L){return this.httpDelete(`${this.apiHref()}/${L}/image`,{asUserId:L})}createChildrenWithParents(L){return this.httpPost(`${this.apiHref()}/children-with-parents`,L)}createAdminOrTeacher(L){return this.httpPost(`${this.apiHref()}/worker`,L)}changeRole(L,Me){return this.httpPut(`${this.apiHref()}/change-role`,{userId:L,userRole:Me})}addParentsToChildren(L){return this.httpPost(`${this.apiHref()}/add-parents-to-children`,L)}getFinalRating(L,Me,tn){return this.httpGet(`${this.apiHref()}/${L}/final-rating`,{asUserId:Me,asUserSchoolId:tn,factory:kl.p})}getUserVisitingTotal(L,Me,tn,oi){return this.httpGetAll(`${this.apiHref()}/${Me}/total-visiting`,{query:this.normalizeParams(L),asUserId:tn,asUserSchoolId:oi,factory:Ln.tx})}getDecision(L,Me,tn){return this.httpGet(`${this.apiHref()}/${L}/decision`,{asUserId:Me,asUserSchoolId:tn,factory:ke.ZA})}getNushDecision(L,Me,tn){return this.httpGet(`${this.apiHref()}/${L}/nush-decision`,{asUserId:Me,asUserSchoolId:tn,factory:ke.ZA})}getPermissions(L,Me=!1){return this.httpGet(`${this.apiHref()}/${L}/permissions?asDeleted=${Me}`,{factory:ta})}getMyPermissions(){return this.httpGet(`${this.apiHref()}/my-permissions`,{factory:ta})}getSchoolInfo(L,Me,tn,oi){const Vi={factory:ke.EM,asUserId:tn?this._authService.userId:L,asUserSchoolId:Me};return oi&&(Vi.query={schoolId:`${oi}`}),this.httpGet(`${this.apiHref()}/${L}/school-info`,Vi)}deleteFromSchool(L){return this.httpDelete(`${this.apiHref()}/${L}/deactivate`)}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Ja.e8))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),nl=(()=>{var v;class D extends o.v{constructor(){super(FormData,"/users/import","users/import")}getTemplateUsers(L){return this.httpGetBlob(`${this.apiHref()}/templates/${L}`,{})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var Sa=_(43428);let xl=(()=>{var v;class D extends o.v{constructor(){super(Sa.r,"/vacancies","vacancies")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var ql=_(26394);let sc=(()=>{var v;class D extends o.v{constructor(){super(ql.V,"/day-offs","day-offs"),this.vacationsState=null,this._vacationsSubject=new vt.X(this.vacationsState),this.vacationsState$=this._vacationsSubject.asObservable()}updateVacationsState(L){this.vacationsState=L,this._vacationsSubject.next(this.vacationsState)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Aa=(()=>{var v;class D extends o.v{constructor(){super(ke.kE,"/visiting","visiting")}getVisiting(L){return this.httpGet(this.apiHref(),{query:L})}addVisiting(L){return this.httpPost(this.apiHref(),L)}updateVisiting(L){return this.httpPut(this.apiHref(),L)}deleteVisiting(L){return this.httpDelete(this.apiHref(),{query:this.normalizeParams(L)})}getVisitingTotal(L,Me,tn){return this.httpGetAll(`${this.apiHref()}/total`,{query:this.normalizeParams(L),asUserId:Me,asUserSchoolId:tn,factory:Ln.tx})}getVisitingDay(L,Me,tn,oi){return this.httpGet(`${this.apiHref()}/day`,{query:{userId:L,classId:Me,scheduleId:tn,date:oi}})}getVisitingUsers(L,Me){return this.httpGetAll(`${this.apiHref()}/users`,{query:{classId:L,scheduleId:Me},factory:ke.$R})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class al{constructor(D={}){Object.assign(this,D)}}var Va=_(18505);let Ol=(()=>{var v;class D extends o.v{constructor(){super(al,"/warning","warning"),this.hasWarning=new vt.X(!1)}getWarning(){return this.http.get(`${this.apiBaseHref()}/warning`).pipe((0,Va.b)(L=>this.hasWarning.next(L.isActive)))}updateWarning(L){return this.httpPut(this.apiHref(),L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac}),D})();class Ca{constructor(D={}){Object.assign(this,D),this.date=D?.date?new Date(D.date):null}}let $l=(()=>{var v;class D extends o.v{constructor(){super(Ca,"/work-content","work-content")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),vl=(()=>{var v;class D extends o.v{constructor(){super(Yr.a2,"/competences","competences")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();class ja{constructor(D={}){Object.assign(this,D)}}let Tc=(()=>{var v;class D extends o.v{constructor(){super(ja,"/dpa-subjects","dpa-subjects")}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var ua=_(65910);let Gc=(()=>{var v;class D{constructor(L){this._notification=L,this.DELAY=5e3,this._defaultSuccess="\u0417\u043c\u0456\u043d\u0438 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043e!",this._defaultError="\u0412\u0438\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430!",this._defaultWarning="\u0417\u0430\u043f\u043e\u0432\u043d\u0456\u0442\u044c \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0456 \u043f\u043e\u043b\u044f!",this._defaultInfo="\u0417\u043c\u0456\u043d\u0438 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043e!"}success(L){this._notification.show(this._notificationSettings(L??this._defaultSuccess,"success"))}error(L){this._notification.show(this._notificationSettings(L??this._defaultError,"error"))}warning(L){this._notification.show(this._notificationSettings(L??this._defaultWarning,"warning"))}info(L){this._notification.show(this._notificationSettings(L??this._defaultInfo,"info"))}_notificationSettings(L,Me){return{content:L,animation:{type:"fade",duration:400},position:{horizontal:"right",vertical:"top"},type:{style:Me,icon:!0},hideAfter:this.DELAY}}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(ua.gq))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Bl=(()=>{var v;class D{constructor(){this.isInProgress$=new An.x,this.isLoadInProgress$=new vt.X(null)}startProgress(){this.isInProgress$.next(!0)}stopProgress(){this.isInProgress$.next(!1)}startGetProgress(L){this.isLoadInProgress$.next({inProgress:!0,event:L})}stopGetProgress(L){this.isLoadInProgress$.next({inProgress:!1,event:L})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Ya=(()=>{var v;class D{constructor(L){this._windowRef=L,this._window=L.nativeWindow}logPageView(L){this._pingHome({event:"content-view",pageName:L})}logEvent(L,Me,tn,oi){this._pingHome({event:L,category:Me,action:tn,label:oi})}logCustomDimensionTest(L){this._pingHome({event:"custom-dimension",value:L})}_pingHome(L){L&&this._window.dataLayer.push(L)}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(He))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),yl=(()=>{var v;class D{constructor(){this.EMPTY={},this.dynamicComponentState=null,this.dynamicComponentStateSubject=new vt.X(this.dynamicComponentState),this.dynamicComponentState$=this.dynamicComponentStateSubject.asObservable()}updateDynamicComponentState(L){this.dynamicComponentState=L,this.dynamicComponentStateSubject.next(this.dynamicComponentState)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),ft=(()=>{var v;class D{constructor(){this.isLocationChanged$=new vt.X("not-changed"),this.isApprovedRoute$=new vt.X(null)}updateState(L){this.isLocationChanged$.next(L)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),fe=(()=>{var v;class D{constructor(L){this.router=L,this.previousUrl$=new vt.X(null),this._currentUrl=this.router.url,this.router.events.pipe((0,Un.h)(Me=>Me instanceof Xr.m2)).subscribe(Me=>{this.previousUrl$.next(this._currentUrl),this._currentUrl=Me.urlAfterRedirects})}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Xr.F0))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),He=(()=>{var v;class D{get nativeWindow(){return function ge(){return window}()}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Bt=(()=>{var v;class D{setDateFormat(L=new Date){const Me=6e4*L?.getTimezoneOffset();return new Date(new Date(L).setHours(0,0,0,0)-Me)}getTimeZoneOffset(L){return new Date(L).setHours(L.getHours()+(new Date).getTimezoneOffset()/60)}transformDate(L){const Me=new Date(L),tn=Me?.getTimezoneOffset()/60;return Me.setHours(Me.getHours()-tn),Me.toISOString()}transformDateNoString(L){const Me=new Date(L),tn=Me?.getTimezoneOffset()/60;return Me.setHours(Me.getHours()+tn),Me}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),bn=(()=>{var v;class D{constructor(L,Me,tn){this._authService=L,this._schoolService=Me,this._userService=tn,this.endsOfSchoolYear=!0}checkSchoolStatus(L,Me){return this._userService.currentUser$.subscribe(tn=>{if(tn){let oi="";if(this._authService.getUserSchoolId()||(oi=L||tn.relations?.find(Vi=>this._authService.getUserSchoolId(Vi.id))?.id),this._authService.getUserSchoolId()||oi){const Vi=this._authService.getUserSchoolId()?this._schoolService.getSchoolStatus():this._schoolService.getSchoolStatus(oi,Me);Me&&Vi.subscribe(hs=>{this.endsOfSchoolYear=hs.active})}}}),this.endsOfSchoolYear}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Ja.e8),N.LFG(jl),N.LFG(fc))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Jn=(()=>{var v;class D{generateGUID(){return(this._chunk()+"-"+this._chunk()+"-4"+this._chunk().substr(0,3)+"-"+this._chunk()+"-"+this._chunk()).toLowerCase()}generatePassword(){const L=Math.round(10*Math.random());return this._chunk()+"abcdefjhkgld"[L]+"#?!@$%^&*_-"[L]+this._chunk()+"ABCDEFGKLMNOPRS"[L]+this._chunk()}_chunk(){return(65536*(1+Math.random())|0).toString(16).substring(1)}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();var ci=_(29015);let Oi=(()=>{var v;class D{constructor(){this.isOpenedStatuses={}}openPopover(L,Me,tn,oi,Vi=!0){this.dynamicComponentDirective=Me,this.clearPopoverSubscriptions();const{form:hs,additionalValues:Eo,rowId:jo,colId:gr,rate:Hr,hasComment:Yo,grading:wa,cellRef:oc}=L;this.isOpenedStatuses[`_${jo}|${gr}`]=!0,this.popoverRef=this.dynamicComponentDirective.viewContainerRef.createComponent(ci.C),this.popoverRef.instance.form=hs,this.popoverRef.instance.rowId=jo,this.popoverRef.instance.colId=gr,this.popoverRef.instance.isCommentAllowed=Yo,this.popoverRef.instance.isAbsenseAllowed=Vi,this.popoverRef.instance.additionalValues=Eo,this.popoverRef.instance.rate=Hr,this.popoverRef.instance.grading=wa,this.popoverRef.instance.cellRef=oc,Yo&&(this.addEditRateCommentModal=tn,this.deleteRateCommentModal=oi,this._subscribeToAddEditComment(this.popoverRef),this._subscribeToDeleteComment(this.popoverRef)),this._subscribeToHidePopover(this.popoverRef)}clearPopoverSubscriptions(){this.dynamicComponentDirective?.viewContainerRef.clear(),this._clearOpenedStatuses(),this.addEditCommentSubscription?.unsubscribe(),this.deleteCommentSubscription?.unsubscribe(),this.addEditCommentSubscription?.unsubscribe(),this.hidePopoverSubscription?.unsubscribe()}_subscribeToAddEditComment(L){this.addEditCommentSubscription=L.instance.commentAddEditEmitted.subscribe(({data:Me,rowId:tn,colId:oi})=>{this.addEditRateCommentModal.open(Me,oi,tn),this.clearPopoverSubscriptions()})}_subscribeToDeleteComment(L){this.deleteCommentSubscription=L.instance.deleteCommentEmitted.subscribe(({data:Me,rowId:tn,colId:oi})=>{this.deleteRateCommentModal.open(Me,oi,tn),this.clearPopoverSubscriptions()})}_subscribeToHidePopover(L){this.hidePopoverSubscription=L.instance.hidePopover.subscribe(()=>{this.clearPopoverSubscriptions()})}_clearOpenedStatuses(){Object.keys(this.isOpenedStatuses).forEach(L=>{this.isOpenedStatuses[L]=!1})}}return(v=D).\u0275fac=function(L){return new(L||v)},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac}),D})(),es=(()=>{var v;class D{constructor(L,Me){this._vacanciesService=L,this._journalService=Me}getReplacementName(L){return L?this._journalService.getJournalTeacher(L).pipe((0,fi.w)(Me=>Me?(0,Pn.of)(Me.shortName):this._vacanciesService.read(L).pipe((0,fi.w)(tn=>(0,Pn.of)(tn?.shortName))))):(0,Pn.of)("")}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(xl),N.LFG(Hi))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),Cs=(()=>{var v;class D{constructor(L){this._academicYearsService=L}getScheduleName(L){return L&&"undefined"!==L&&"general"!==L?this._academicYearsService.read(L).pipe((0,fi.w)(Me=>(0,Pn.of)(Me.name))):(0,Pn.of)("")}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(R))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})(),_e=(()=>{var v;class D{constructor(L,Me){this._journalService=L,this._educationFormsService=Me,this._query=new A.H(0,999)}combineResults(L,Me){return this._query.clear(),this._query.pushFilters([{field:"classId",operator:G.v8.Eq,value:Me}]),(0,Sn.D)([this._journalService.getStudentsOfJournal(L),this._educationFormsService.all({query:this._query.query})])}updateDate(L){return L[0]?.data.map(Me=>{const tn=L[1].data.find(oi=>oi.userId===Me.userId);Me.educationType=tn?tn.type:0}),L[0].data}}return(v=D).\u0275fac=function(L){return new(L||v)(N.LFG(Hi),N.LFG(In))},v.\u0275prov=N.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),D})();_(38151)},38151:(fn,ve,_)=>{"use strict";_.d(ve,{O:()=>G});var e=_(63900),o=_(39646),T=_(94650),A=_(75745);let G=(()=>{var F;class N{constructor(P){this._courseService=P}getCourseName(P){return this._courseService.read(P).pipe((0,e.w)(y=>{if(y)return this._courseService.course.next(y),(0,o.of)(y.title)}))}}return(F=N).\u0275fac=function(P){return new(P||F)(T.LFG(A.NF))},F.\u0275prov=T.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),N})()},98845:(fn,ve,_)=>{"use strict";_.d(ve,{Y:()=>G});var e=_(94650),o=_(88783);function T(F,N){1&F&&(e.ynx(0),e._UZ(1,"nit-no-data",3),e.BQk()),2&F&&(e.xp6(1),e.Q6J("hasData",!1)("text","\u0412\u0456\u0434\u0431\u0443\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u043e\u043a\u0443. \u0423\u0441\u0456 \u0434\u0430\u043d\u0456 \u0431\u0443\u0434\u0435 <br> \u0437\u0430\u0430\u0440\u0445\u0456\u0432\u043e\u0432\u0430\u043d\u043e \u0442\u0430 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043e. \u0412\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438\u0441\u044c \u0434\u043e \u0440\u043e\u0431\u043e\u0442\u0438 \u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u044e <br> \u043d\u0435\u0437\u0430\u0431\u0430\u0440\u043e\u043c!"))}function A(F,N){1&F&&e._UZ(0,"nit-no-data",3),2&F&&e.Q6J("hasData",!1)("text","\u0412\u0456\u0434\u0431\u0443\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u043e\u043a\u0443. \u0423\u0441\u0456 \u0434\u0430\u043d\u0456 \u0431\u0443\u0434\u0435 <br> \u0437\u0430\u0430\u0440\u0445\u0456\u0432\u043e\u0432\u0430\u043d\u043e \u0442\u0430 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043e. \u0412\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438\u0441\u044c \u0434\u043e \u0440\u043e\u0431\u043e\u0442\u0438 \u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u044e <br>\u043d\u0435\u0437\u0430\u0431\u0430\u0440\u043e\u043c!")}let G=(()=>{var F;class N{constructor(P){this._permissionService=P,this.isAdmin=!1,this.isAdmin=this._permissionService.hasPermission(["update:school"])}}return(F=N).\u0275fac=function(P){return new(P||F)(e.Y36(o.$))},F.\u0275cmp=e.Xpm({type:F,selectors:[["nit-end-school-year"]],decls:4,vars:2,consts:[[1,"empty"],[4,"ngIf","ngIfElse"],["isNotAdmin",""],[3,"hasData","text"]],template:function(P,y){if(1&P&&(e.TgZ(0,"div",0),e.YNc(1,T,2,2,"ng-container",1),e.YNc(2,A,1,2,"ng-template",null,2,e.W1O),e.qZA()),2&P){const j=e.MAs(3);e.xp6(1),e.Q6J("ngIf",y.isAdmin)("ngIfElse",j)}}}),N})()},66111:(fn,ve,_)=>{"use strict";_.d(ve,{f:()=>F});var e=_(36895),o=_(98845),T=_(14972),A=_(94650),G=_(48693);let F=(()=>{var N;class R{}return(N=R).\u0275fac=function(y){return new(y||N)},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({imports:[e.ez,T.dF]}),R})();A.B6R(o.Y,[e.O5,G.d],[])},12273:(fn,ve,_)=>{"use strict";_.d(ve,{V:()=>T});var e=_(36895),o=_(94650);let T=(()=>{var A;class G{}return(A=G).\u0275fac=function(N){return new(N||A)},A.\u0275mod=o.oAB({type:A}),A.\u0275inj=o.cJS({imports:[e.ez]}),G})()},95029:(fn,ve,_)=>{"use strict";_.d(ve,{k:()=>A});var e=_(36895),o=_(64483),T=_(94650);let A=(()=>{var G;class F{}return(G=F).\u0275fac=function(R){return new(R||G)},G.\u0275mod=T.oAB({type:G}),G.\u0275inj=T.cJS({imports:[e.ez,o.ej]}),F})()},47145:(fn,ve,_)=>{"use strict";_.d(ve,{FH:()=>N,IR:()=>F,Jp:()=>T,a$:()=>y,gR:()=>G,mZ:()=>A,pK:()=>R,qU:()=>j,rk:()=>P});var e=_(16036),o=_(90318);const T=(Y,ee,se,he=!1)=>Y.map(Se=>{const{lessons:te,studyDays:oe}=ee;let q;q=se.filter(he?ae=>(ae.versions.draft?.teacherId||ae.versions.saved?.teacherId)===Se.id:ae=>ae.journalTeacherId===Se.id);const we=oe.map(ae=>{let Q;Q=q.filter(he?ke=>ke.dayOfWeek===ae:ke=>new Date(ke.date).getDay()===ae);const pe={dayIndex:ae,lessons:[]};let Ee=[];return te.forEach(ke=>{Ee=Q.filter(he?Ye=>ke.number===Ye.lessonNumber:Ye=>ke.number===Ye.lesson),pe.lessons.push(Ee)}),pe});return{...Se,days:we}}),A=(Y,ee,se)=>Y.map(he=>{if(F(he)){const Se=he.subjects.find(oe=>oe.schoolId===se)?.subjects,te=ee.filter(oe=>he.id===oe.teacherId&&Se?.some(q=>q.name===oe.subject));return{...he,weeklyWorkLoadLimit:te}}return he}),G=(Y,ee)=>Y.map(se=>{let he=0,Se=0;return se.days.forEach(te=>{te.lessons.forEach(oe=>{let q,we;ee?q=oe.find(ae=>ae.versions.draft&&Object.keys(ae.versions.draft).length):we=oe.find(ae=>Object.keys(ae).length),void 0!==q&&he++,void 0!==we&&Se++})}),{...se,load:{plannedLoad:he,existingLoad:Se}}}),F=Y=>"code"in Y;function N(Y){return Y.flatMap(ee=>ee.lessonTimeslots)}function R(Y){const ee=[];return Y.forEach(he=>{he.lessons.forEach(Se=>{if(Se instanceof e.kE)return!1;ee.push(Se)})}),!ee.flatMap(he=>he.classroom?[he.classroom]:[]).some(he=>he.length>15)}const P=(Y,ee)=>{if(Array.isArray(Y)){const Se=Y.reduce((we,ae)=>we<ae.firstSemester.from?we:ae.firstSemester.from,Y[0].firstSemester.from),te=Y.reduce((we,ae)=>we>ae.secondSemester.to?we:ae.secondSemester.to,Y[0].secondSemester.to);return{from:new Date(new Date(Se).setHours(0,0,0,0)),to:new Date(new Date(te).setHours(0,0,0,0))}}const he=ee===o.Cs.First?"firstSemester":"secondSemester";return{from:new Date(new Date(Y[he].from).setHours(0,0,0,0)),to:new Date(new Date(Y[he].to).setHours(0,0,0,0))}};function y(Y,ee,se,he,Se){const te=se.at(Y),oe=te?.get("groups")?.value,q=oe?.length,we=oe?.some(Q=>Q.chosen);let ae;return q&&we&&(ae=oe.find(Q=>Q.chosen).id),ee.some(Q=>{const pe=Q.versions.draft&&"subject"in Q.versions.draft?Q.versions.draft:Q.versions.saved;return pe.subject===he&&pe?.classId===te?.value.id&&(!q||we&&pe?.classGroupId===ae)&&(!Se||pe.teacherId!==Se)})}function j(Y){return Y.sort((ee,se)=>ee.isActive===se.isActive?ee.shortName.localeCompare(se.shortName):ee.isActive?-1:1)}},13564:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>N});var G,e=_(97582),o=_(94766),T=_(94650),A=_(24006);let N=((G=class{constructor(P){this.ngControl=P,this.controlName="",this.value=!1,this.isVerbalControl=!1,this.disabled=!1,this.touched=!1,this.onChange=y=>{this._value=y},this.onTouched=()=>{},P.valueAccessor=this}get isChecked(){return this.model===this.value}ngOnInit(){this.ngControl.control?.valueChanges.subscribe(P=>{this.model!==P&&(this.form.get("rating").setValue(null,{emitEvent:!1}),this.writeValue(P))})}change(){this.model=this.isChecked?null:this.value,this.onChange(this.model)}writeValue(P){this.model=P}registerOnChange(P){this.onChange=P}registerOnTouched(P){this.onTouched=P}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(P){this.disabled=P}}).\u0275fac=function(P){return new(P||G)(T.Y36(A.a5,2))},G.\u0275cmp=T.Xpm({type:G,selectors:[["nit-mark-item"]],inputs:{controlName:"controlName",value:"value",form:"form",isVerbalControl:"isVerbalControl"},standalone:!0,features:[T.jDz],ngContentSelectors:["*"],decls:5,vars:7,consts:[[1,"small-block"],[1,"checkbox-horizontal"],["type","checkbox",3,"name","checked","disabled","change"]],template:function(P,y){1&P&&(T.F$t(),T.TgZ(0,"label",0)(1,"div",1)(2,"input",2),T.NdJ("change",function(){return y.change()}),T.qZA(),T.TgZ(3,"span"),T.Hsn(4),T.qZA()()()),2&P&&(T.ekj("disabled",y.disabled)("verbal-formed",y.isVerbalControl),T.xp6(2),T.Q6J("name",y.controlName)("checked",y.isChecked)("disabled",y.disabled))},styles:[".small-block[_ngcontent-%COMP%]{cursor:pointer;display:block;min-width:110px;padding:10px 10px 10px 34px;background:var(--white);box-shadow:0 4px 15px #7f89a733;border-radius:6px;margin-top:5px;position:relative}.small-block.disabled[_ngcontent-%COMP%]{cursor:default}.small-block.disabled[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{cursor:default;opacity:.6}.small-block.verbal-formed[_ngcontent-%COMP%]{height:34px;padding-top:6px}.small-block[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{cursor:pointer}.small-block[_ngcontent-%COMP%]   .checkbox-horizontal[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0}.small-block[_ngcontent-%COMP%]   .checkbox-horizontal[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{background:var(--primary-300);border-color:var(--primary-300)}.small-block[_ngcontent-%COMP%]   .checkbox-horizontal[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:after{opacity:1}.small-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:14px;display:inherit}.small-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{content:\"\";background:#FFFFFF;border:1px solid var(--additional-grey-300);border-radius:4px;width:16px;height:16px;position:absolute;left:8px;top:8px;transition:.4s}.small-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:url(\"data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.50293 7.56282C5.02688 8.03887 4.25444 8.03887 3.77862 7.56282L1.10704 4.89123C0.630987 4.41541 0.630987 3.64298 1.10704 3.16716C1.58286 2.69111 2.35529 2.69111 2.83134 3.16716L4.42308 4.75867C4.54324 4.8786 4.7383 4.8786 4.8587 4.75867L9.16866 0.448705C9.64448 -0.0273455 10.4169 -0.0273455 10.893 0.448705C11.1216 0.677311 11.25 0.987479 11.25 1.31074C11.25 1.63401 11.1216 1.94418 10.893 2.17278L5.50293 7.56282Z' fill='white'/%3E%3C/svg%3E%0A\");position:absolute;left:10px;top:10px;transition:.4s;opacity:0}"]}),G);N=(0,e.gn)([(0,o.c)()],N)},29015:(fn,ve,_)=>{"use strict";_.d(ve,{C:()=>Ye});var he,e=_(97582),o=_(94650),T=_(13564),A=_(64483),G=_(36895),F=_(54968),N=_(54482),R=_(25403),P=_(38421),y=_(25032),Y=_(82805),ee=_(94766),se=_(24006);const Se=["nusPopover"];function te(ct,ut){if(1&ct&&(o.ynx(0),o._uU(1),o.BQk()),2&ct){const Ct=o.oxw().$implicit;o.xp6(1),o.hij(" ",Ct.name," ")}}function oe(ct,ut){1&ct&&(o.TgZ(0,"span",9),o._uU(1,"H"),o.qZA())}function q(ct,ut){1&ct&&o._UZ(0,"img",10)}function we(ct,ut){if(1&ct&&(o.ynx(0),o.TgZ(1,"nit-mark-item",6),o.YNc(2,te,2,1,"ng-container",3),o.YNc(3,oe,2,0,"span",7),o.YNc(4,q,1,0,"img",8),o.qZA(),o.BQk()),2&ct){const Ct=ut.$implicit,Ue=o.oxw(2).$implicit,vt=o.oxw();o.xp6(1),o.Q6J("form",vt.form)("formControlName",null==Ue?null:Ue.key)("controlName",null==Ue?null:Ue.key)("isVerbalControl","isVerbalFormed"===(null==Ue?null:Ue.key))("value",Ct.value),o.xp6(1),o.Q6J("ngIf","absense"!==(null==Ue?null:Ue.key)&&"isVerbalFormed"!==(null==Ue?null:Ue.key)),o.xp6(1),o.Q6J("ngIf","absense"===(null==Ue?null:Ue.key)),o.xp6(1),o.Q6J("ngIf","isVerbalFormed"===(null==Ue?null:Ue.key))}}function ae(ct,ut){if(1&ct&&(o.ynx(0,5),o.YNc(1,we,5,8,"ng-container",2),o.BQk()),2&ct){const Ct=o.oxw().$implicit,Ue=o.oxw();o.Q6J("formGroup",Ue.form),o.xp6(1),o.Q6J("ngForOf",null==Ct.value?null:Ct.value.controls)}}function Q(ct,ut){if(1&ct&&(o.ynx(0),o.YNc(1,ae,2,2,"ng-container",4),o.BQk()),2&ct){const Ct=ut.$implicit,Ue=o.oxw();o.xp6(1),o.Q6J("ngIf",Ue.grading[null==Ct||null==Ct.value?null:Ct.value.type]||"absense"===(null==Ct?null:Ct.key)&&Ue.isAbsenseAllowed)}}function pe(ct,ut){if(1&ct){const Ct=o.EpF();o.TgZ(0,"div",12),o.NdJ("click",function(){o.CHM(Ct);const vt=o.oxw(2);return o.KtG(vt.addComment())}),o.TgZ(1,"span"),o._uU(2,"\u0414\u043e\u0434\u0430\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440"),o.qZA()()}}function Ee(ct,ut){if(1&ct){const Ct=o.EpF();o.ynx(0),o.TgZ(1,"div",12),o.NdJ("click",function(){o.CHM(Ct);const vt=o.oxw(2);return o.KtG(vt.editComment())}),o.TgZ(2,"span"),o._uU(3,"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440"),o.qZA()(),o.TgZ(4,"div",13),o.NdJ("click",function(){o.CHM(Ct);const vt=o.oxw(2);return o.KtG(vt.removeComment())}),o.TgZ(5,"span"),o._uU(6,"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440"),o.qZA()(),o.BQk()}}function ke(ct,ut){if(1&ct&&(o.ynx(0),o.YNc(1,pe,3,0,"div",11),o.YNc(2,Ee,7,0,"ng-container",3),o.BQk()),2&ct){const Ct=o.oxw();let Ue,vt;o.xp6(1),o.Q6J("ngIf",!(null!=Ct.form&&null!=(Ue=Ct.form.get("description"))&&Ue.value)),o.xp6(1),o.Q6J("ngIf",null==Ct.form||null==(vt=Ct.form.get("description"))?null:vt.value)}}let Ye=((he=class{constructor(){this.commentAddEditEmitted=new o.vpe,this.deleteCommentEmitted=new o.vpe,this.hidePopover=new o.vpe,this.isAbsenseAllowed=!1,this.isCommentAllowed=!1,this.configControls={isVerbalFormed:{type:"isVerbalGradingActive",controls:[{name:"\u0421\u0444\u043e\u0440\u043c\u043e\u0432\u0430\u043d\u043e",value:!0}]},customDigitalRating:{type:"isDigitalGradingActive",controls:[{name:"\u0437\u0432.",value:0},{name:"\u043d/\u0430",value:1},{name:"\u0437\u0430\u0440\u0430\u0445.",value:2},{name:"\u0432\u0438\u0432\u0447.",value:3},{name:"\u043d/\u043e",value:4},{name:"\u043d\u0435 \u0437\u0430\u0440\u0430\u0445.",value:5}]},absense:{type:"absense",controls:[{name:"H",value:0}]},leveledAssessmentType:{type:"isLeveledGradingActive",controls:[{name:"\u041f",value:0},{name:"\u0421",value:1},{name:"\u0414",value:2},{name:"\u0412",value:3}]}},this._elementRef=(0,o.f3M)(o.SBq),this._renderer=(0,o.f3M)(o.Qsj)}ngOnInit(){(0,F.R)(document,"click").pipe(function j(ct){return(0,N.e)((ut,Ct)=>{let Ue=!1;const vt=(0,R.x)(Ct,()=>{vt?.unsubscribe(),Ue=!0},y.Z);(0,P.Xf)(ct).subscribe(vt),ut.subscribe((0,R.x)(Ct,ln=>Ue&&Ct.next(ln)))})}((0,Y.H)(500)),(0,ee.t)(this)).subscribe(ut=>{const Ct=!this.container.nativeElement.contains(ut.target),Ue=this.cellRef.nativeElement.contains(ut.target);Ct&&!Ue&&this.hidePopover.emit()})}ngAfterViewInit(){const ut=this._elementRef.nativeElement.childNodes[0].offsetWidth,Ct=this._elementRef.nativeElement.childNodes[0].offsetHeight,Ue=this.cellRef.nativeElement.getBoundingClientRect(),vt=Ue.right+ut+51>=window.innerWidth,Je=Ue.bottom+Ct>=window.innerHeight,Ft=!vt||Ue.left-ut-51<0?Ue.right+51+"px":Ue.left-ut-51+"px",st=Je?Ue.top-Ct+30+"px":Ue.bottom-34+"px";this._renderer.setStyle(this._elementRef.nativeElement,"position","fixed"),this._renderer.setStyle(this._elementRef.nativeElement,"top",st),this._renderer.setStyle(this._elementRef.nativeElement,"left",Ft),this._renderer.setStyle(this._elementRef.nativeElement,"z-index","100")}addComment(){this.commentAddEditEmitted.emit({data:{title:"\u0414\u043e\u0434\u0430\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440",rate:this.rate,additionalValues:this.additionalValues},rowId:this.rowId,colId:this.colId,grading:this.grading}),this.hidePopover.emit()}editComment(){this.commentAddEditEmitted.emit({data:{title:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440",rate:this.rate,additionalValues:this.additionalValues},rowId:this.rowId,colId:this.colId,grading:this.grading}),this.hidePopover.emit()}removeComment(){this.deleteCommentEmitted.emit({data:{rate:this.rate,configControls:this.configControls},rowId:this.rowId,colId:this.colId}),this.hidePopover.emit()}}).\u0275fac=function(ut){return new(ut||he)},he.\u0275cmp=o.Xpm({type:he,selectors:[["nit-nus-popover"]],viewQuery:function(ut,Ct){if(1&ut&&o.Gf(Se,5),2&ut){let Ue;o.iGM(Ue=o.CRH())&&(Ct.container=Ue.first)}},outputs:{commentAddEditEmitted:"commentAddEditEmitted",deleteCommentEmitted:"deleteCommentEmitted",hidePopover:"hidePopover"},standalone:!0,features:[o.jDz],decls:5,vars:4,consts:[[1,"container-checkbox"],["nusPopover",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"form","formControlName","controlName","isVerbalControl","value"],["class","absent",4,"ngIf"],["src","/assets/icons/green-tick.svg","alt","Green tick",4,"ngIf"],[1,"absent"],["src","/assets/icons/green-tick.svg","alt","Green tick"],["class","large-block simple-text add-comment",3,"click",4,"ngIf"],[1,"large-block","simple-text","add-comment",3,"click"],[1,"large-block","simple-text","delete-comment",3,"click"]],template:function(ut,Ct){1&ut&&(o.TgZ(0,"div",0,1),o.YNc(2,Q,2,1,"ng-container",2),o.ALo(3,"keyvalue"),o.YNc(4,ke,3,2,"ng-container",3),o.qZA()),2&ut&&(o.xp6(2),o.Q6J("ngForOf",o.lcZ(3,2,Ct.configControls)),o.xp6(2),o.Q6J("ngIf",Ct.isCommentAllowed))},dependencies:[T.U,A.ej,se.JJ,se.JL,se.sg,se.u,G.ez,G.sg,G.O5,G.Nd],styles:[".container-checkbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:225px;justify-content:space-between;box-shadow:none}.container-checkbox.right-end[_ngcontent-%COMP%]{justify-content:space-between}.container-checkbox[_ngcontent-%COMP%]   .absent[_ngcontent-%COMP%]{color:var(--statistics-02);font-weight:700}.container-checkbox[_ngcontent-%COMP%]   .large-block[_ngcontent-%COMP%], .container-checkbox[_ngcontent-%COMP%]   .special-block[_ngcontent-%COMP%]{cursor:pointer;max-width:166px;width:100%;min-width:166px;padding:10px;background:var(--white);box-shadow:0 4px 15px #7f89a733;border-radius:6px;margin-top:5px;font-weight:500;font-size:12px;line-height:14px}.container-checkbox[_ngcontent-%COMP%]   .special-block[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:8px}.container-checkbox[_ngcontent-%COMP%]   .simple-text[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:34px}.container-checkbox[_ngcontent-%COMP%]   .add-comment[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%]   .add-comment[_ngcontent-%COMP%]:before{position:absolute;top:8px;left:10px;content:\"\";width:16px;height:16px;background-repeat:no-repeat;background-position:center;background-image:url(\"data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M13.0003 9.47949V9.88574C13.0003 9.99407 12.957 10.097 12.8812 10.1728L10.1728 12.8812C10.097 12.957 9.99408 13.0003 9.88574 13.0003H9.47949V9.88574C9.47949 9.66366 9.66366 9.47949 9.88574 9.47949H13.0003Z' fill='%233947D8'/%3E%3Cpath d='M11.5104 2.70801H7.44792V3.92676C7.44792 4.44946 7.02271 4.87467 6.5 4.87467C5.97729 4.87467 5.55208 4.44946 5.55208 3.92676V2.70801H1.48958C0.66625 2.70801 0 3.37426 0 4.19759V11.5101C0 12.3334 0.66625 12.9997 1.48958 12.9997H8.9375V9.88508C8.9375 9.36237 9.36271 8.93716 9.88542 8.93716H13V4.19759C13 3.37426 12.3338 2.70801 11.5104 2.70801ZM7.58333 10.5622H2.57292C2.34867 10.5622 2.16667 10.3802 2.16667 10.1559C2.16667 9.93166 2.34867 9.74966 2.57292 9.74966H7.58333C7.80758 9.74966 7.98958 9.93166 7.98958 10.1559C7.98958 10.3802 7.80758 10.5622 7.58333 10.5622ZM10.4271 8.3955H2.57292C2.34867 8.3955 2.16667 8.2135 2.16667 7.98925C2.16667 7.765 2.34867 7.583 2.57292 7.583H10.4271C10.6513 7.583 10.8333 7.765 10.8333 7.98925C10.8333 8.2135 10.6513 8.3955 10.4271 8.3955ZM10.4271 6.22883H2.57292C2.34867 6.22883 2.16667 6.04683 2.16667 5.82259C2.16667 5.59834 2.34867 5.41634 2.57292 5.41634H10.4271C10.6513 5.41634 10.8333 5.59834 10.8333 5.82259C10.8333 6.04683 10.6513 6.22883 10.4271 6.22883Z' fill='%233947D8'/%3E%3Cpath d='M6.5 4.33301C6.27575 4.33301 6.09375 4.15101 6.09375 3.92676V1.89551C6.09375 1.67126 6.27575 1.48926 6.5 1.48926C6.72425 1.48926 6.90625 1.67126 6.90625 1.89551V3.92676C6.90625 4.15101 6.72425 4.33301 6.5 4.33301Z' fill='%233947D8'/%3E%3Cpath d='M6.50032 2.16667C5.90287 2.16667 5.41699 1.68079 5.41699 1.08333C5.41699 0.485875 5.90287 0 6.50032 0C7.09778 0 7.58365 0.485875 7.58365 1.08333C7.58365 1.68079 7.09778 2.16667 6.50032 2.16667Z' fill='%233947D8'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='13' height='13' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A\")}.container-checkbox[_ngcontent-%COMP%]   .delete-comment[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%]   .delete-comment[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--support-danger-200)}.container-checkbox[_ngcontent-%COMP%]   .delete-comment[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:\"\";width:13px;height:13px;background-repeat:no-repeat;background-position:center;background-image:url(delete.5dd02f02b269f24d.svg)}.container-checkbox[_ngcontent-%COMP%]   .edit-mark[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%]   .edit-mark[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:\"\";width:13px;height:13px;background-repeat:no-repeat;background-position:center}.container-checkbox[_ngcontent-%COMP%]   .adding-mark[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%]   .adding-mark[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex}.container-checkbox[_ngcontent-%COMP%]   .adding-mark[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:12px;line-height:14px}.container-checkbox[_ngcontent-%COMP%]   .adding-mark[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:\"\";width:13px;height:13px;border-radius:50%;background-repeat:no-repeat;background-position:center}.container-checkbox[_ngcontent-%COMP%]   .delete-mark[_ngcontent-%COMP%]{position:relative;cursor:pointer}.container-checkbox[_ngcontent-%COMP%]   .delete-mark[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;color:var(--support-danger-300)}.container-checkbox[_ngcontent-%COMP%]   .delete-mark[_ngcontent-%COMP%]:before{position:absolute;top:8px;left:10px;content:\"\";width:15px;height:15px;background-repeat:no-repeat;background-position:center}"]}),he);Ye=(0,e.gn)([(0,ee.c)({checkProperties:!0})],Ye)},92340:(fn,ve,_)=>{"use strict";_.d(ve,{N:()=>e});const e={production:!0,authUrl:"https://is.nit.school",apiUrl:"https://api.nit.school",chatUrl:"https://chat-api.nit.school",url:"https://app.nit.school",maintenanceUrl:"https://status.nit.school",version:"v1.6.4.15",firebase:{apiKey:"AIzaSyA1FFM6bHLowQ7uVGInmqK5bQDEH4n38xE",authDomain:"nit-prod.firebaseapp.com",projectId:"nit-prod",storageBucket:"nit-prod.appspot.com",messagingSenderId:"1018501214624",appId:"1:1018501214624:web:58fc7884fcd3f17964f4c5",measurementId:"G-0B94RXDWJW",vapidKey:"BGPS3S8wbUWwfHFScTzdAm7C3yaLgbVfSTd-aSmujM5OByvjtXBXakvYBYKUXUe5UUIG-SSbt_0q_Wwo0U6iOMw"},idGov:{disable:!1,url:"https://id.gov.ua/sign-widget/v20220527/",urlCheck:"https://id.gov.ua/verify-widget/v20220527/"}}},98159:(fn,ve,_)=>{"use strict";var e=_(11481),o=_(84979),T=_(94650),F=(_(76483),_(10586),_(80529)),N=_(28746),R=_(75745);let P=(()=>{var ft;class fe{constructor(He){this._pending=He}intercept(He,Bt){return"POST"===He.method||"PUT"===He.method?this._nextHandleProgress(He,Bt):"GET"===He.method?this._httpGetHandleProgress(He,Bt):Bt.handle(He)}_nextHandleProgress(He,Bt){return this._pending.startProgress(),Bt.handle(He).pipe((0,N.x)(()=>this._pending.stopProgress()))}_httpGetHandleProgress(He,Bt){return this._pending.startGetProgress(He.headers.get("alias")),Bt.handle(He).pipe((0,N.x)(()=>this._pending.stopGetProgress(He.headers.get("alias"))))}}return(ft=fe).\u0275fac=function(He){return new(He||ft)(T.LFG(R.NR))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),fe})();var y=_(62843),j=_(88996),Y=_(39646),ee=_(16036),se=_(70262),he=_(39300),Se=_(95698),te=_(63900),oe=_(91005),q=_(70895),we=_(9116);const Q=[{provide:F.TP,useClass:P,multi:!0},{provide:F.TP,useClass:(()=>{var ft;class fe{constructor(He,Bt,bn){this._toastr=He,this.oauthService=Bt,this._router=bn,this._refreshTokenInProgress=!1,this._isForbiddenNotification=!1}intercept(He,Bt){return Bt.handle(He).pipe((0,se.K)(bn=>{switch(bn.status){case 400:return this._handle400Response(bn);case 401:return this._handle401Response(He,Bt);case 403:return this._handle403Response(bn);case 422:return this._handle422Response(bn);case 503:return this._handle503Response(bn);default:return this._handleUnknownResponse(bn)}}))}_handle400Response(He){return He.error&&"invalid_username_or_password"===He.error.error_description&&this._toastr.error("\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 email \u0430\u0431\u043e \u043f\u0430\u0440\u043e\u043b\u044c"),(0,y._)(He)}_handle401Response(He,Bt){return this._refreshTokenInProgress?this.oauthService.events.pipe((0,he.h)(bn=>"token_received"===bn.type),(0,Se.q)(1),(0,te.w)(()=>Bt.handle(this._addAuthenticationToken(He)))):(this._refreshTokenInProgress=!0,(0,j.D)(this.oauthService.refreshToken()).pipe((0,te.w)(()=>(0,j.D)(this.oauthService.loadUserProfile())),(0,te.w)(()=>Bt.handle(this._addAuthenticationToken(He))),(0,se.K)(bn=>this._logOut(bn)),(0,N.x)(()=>this._refreshTokenInProgress=!1)))}_handle403Response(He){return this._isForbiddenNotification||(this._isForbiddenNotification=!0,(0,Y.of)(this._toastr.error("\u0423 \u0432\u0430\u0441 \u043d\u0435\u043c\u0430\u0454 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438")).pipe((0,oe.g)(this._toastr.DELAY)).subscribe({next:()=>this._isForbiddenNotification=!1})),(0,j.D)(this._router.navigate(["/"])).pipe((0,te.w)(()=>(0,y._)(He)))}_handle422Response(He){const Bt=new ee._J(He.error);return Bt.general&&Bt.general.forEach(bn=>{this._toastr.error(bn)}),(0,y._)(He)}_handle503Response(He){return this._toastr.error("\u041f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u044c\u0441\u044f \u0442\u0435\u0445.\u0440\u043e\u0431\u043e\u0442\u0438"),(0,j.D)(this._router.navigate(["/"])).pipe((0,te.w)(()=>(0,y._)(He)))}_handleUnknownResponse(He){return this._toastr.error("\u0421\u0442\u0430\u043b\u0430\u0441\u044f \u043d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430."),(0,y._)(He)}_addAuthenticationToken(He){return He.clone({setHeaders:{Authorization:`Bearer ${this.oauthService.getAccessToken()}`}})}_logOut(He){return(0,Y.of)(He).pipe((0,N.x)(()=>this._router.navigate(["/login"])),(0,N.x)(()=>localStorage.clear()),(0,N.x)(()=>sessionStorage.clear()),(0,te.w)(()=>(0,y._)(He)))}}return(ft=fe).\u0275fac=function(He){return new(He||ft)(T.LFG(R.$5),T.LFG(q.Ct),T.LFG(we.F0))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),fe})(),multi:!0}];var pe=_(22570),Ee=_(16925),ke=_(9967);const Ye=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"",loadChildren:()=>Promise.all([_.e(5389),_.e(8377)]).then(_.bind(_,78377)).then(ft=>ft.PublicModule)},{path:"",loadChildren:()=>Promise.all([_.e(5389),_.e(1315)]).then(_.bind(_,1315)).then(ft=>ft.PrivateModule),data:{name:"Private"}},{path:"**",redirectTo:"404"}];let ct=(()=>{var ft;class fe{}return(ft=fe).\u0275fac=function(He){return new(He||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:[ke.a1],imports:[we.Bz.forRoot(Ye,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"}),we.Bz]}),fe})();var ut=_(92340),Ct=_(17445),Ue=_(54004),vt=_(36895),ln=_(49770),Je=_(54968),Ft=_(97272),st=_(77579),Ze=_(69751),$e=_(25032);const Oe=new Ze.y($e.Z);var xt=_(56451),Ot=_(94033),Kt=_(30576),$t=_(38421),rt=_(54482);const yt={connector:()=>new st.x};function it(ft,fe=yt){const{connector:ge}=fe;return(0,rt.e)((He,Bt)=>{const bn=ge();(0,$t.Xf)(ft(function We(ft){return new Ze.y(fe=>ft.subscribe(fe))}(bn))).subscribe(Bt),Bt.add(He.subscribe(bn))})}var wn=_(18505);const Nn="Service workers are disabled or not supported by this browser";class sn{constructor(fe){if(this.serviceWorker=fe,fe){const He=(0,Je.R)(fe,"controllerchange").pipe((0,Ue.U)(()=>fe.controller)),Bt=(0,ln.P)(()=>(0,Y.of)(fe.controller)),bn=(0,Ft.z)(Bt,He);this.worker=bn.pipe((0,he.h)(Cs=>!!Cs)),this.registration=this.worker.pipe((0,te.w)(()=>fe.getRegistration()));const es=(0,Je.R)(fe,"message").pipe((0,Ue.U)(Cs=>Cs.data)).pipe((0,he.h)(Cs=>Cs&&Cs.type)).pipe(function Tt(ft){return ft?fe=>it(ft)(fe):fe=>function It(ft,fe){const ge=(0,Kt.m)(ft)?ft:()=>ft;return(0,Kt.m)(fe)?it(fe,{connector:ge}):He=>new Ot.c(He,ge)}(new st.x)(fe)}());es.connect(),this.events=es}else this.worker=this.events=this.registration=function an(ft){return(0,ln.P)(()=>(0,y._)(new Error(ft)))}(Nn)}postMessage(fe,ge){return this.worker.pipe((0,Se.q)(1),(0,wn.b)(He=>{He.postMessage({action:fe,...ge})})).toPromise().then(()=>{})}postMessageWithOperation(fe,ge,He){const Bt=this.waitForOperationCompleted(He),bn=this.postMessage(fe,ge);return Promise.all([bn,Bt]).then(([,Jn])=>Jn)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(fe){let ge;return ge="string"==typeof fe?He=>He.type===fe:He=>fe.includes(He.type),this.events.pipe((0,he.h)(ge))}nextEventOfType(fe){return this.eventsOfType(fe).pipe((0,Se.q)(1))}waitForOperationCompleted(fe){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,he.h)(ge=>ge.nonce===fe),(0,Se.q)(1),(0,Ue.U)(ge=>{if(void 0!==ge.result)return ge.result;throw new Error(ge.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let _n=(()=>{class ft{get isEnabled(){return this.sw.isEnabled}constructor(ge){if(this.sw=ge,this.pushManager=null,this.subscriptionChanges=new st.x,!ge.isEnabled)return this.messages=Oe,this.notificationClicks=Oe,void(this.subscription=Oe);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ue.U)(Bt=>Bt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ue.U)(Bt=>Bt.data)),this.pushManager=this.sw.registration.pipe((0,Ue.U)(Bt=>Bt.pushManager));const He=this.pushManager.pipe((0,te.w)(Bt=>Bt.getSubscription()));this.subscription=(0,xt.T)(He,this.subscriptionChanges)}requestSubscription(ge){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Nn));const He={userVisibleOnly:!0};let Bt=this.decodeBase64(ge.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),bn=new Uint8Array(new ArrayBuffer(Bt.length));for(let Jn=0;Jn<Bt.length;Jn++)bn[Jn]=Bt.charCodeAt(Jn);return He.applicationServerKey=bn,this.pushManager.pipe((0,te.w)(Jn=>Jn.subscribe(He)),(0,Se.q)(1)).toPromise().then(Jn=>(this.subscriptionChanges.next(Jn),Jn))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Se.q)(1),(0,te.w)(He=>{if(null===He)throw new Error("Not subscribed to push notifications.");return He.unsubscribe().then(Bt=>{if(!Bt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Nn))}decodeBase64(ge){return atob(ge)}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(sn))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),Ln=(()=>{class ft{get isEnabled(){return this.sw.isEnabled}constructor(ge){if(this.sw=ge,!ge.isEnabled)return this.versionUpdates=Oe,this.available=Oe,this.activated=Oe,void(this.unrecoverable=Oe);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,he.h)(He=>"VERSION_READY"===He.type),(0,Ue.U)(He=>({type:"UPDATE_AVAILABLE",current:He.currentVersion,available:He.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Nn));const ge=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:ge},ge)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Nn));const ge=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:ge},ge)}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(sn))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Mn{}const pi=new T.OlP("NGSW_REGISTER_SCRIPT");function Yn(ft,fe,ge,He){return()=>{if(!(0,vt.NF)(He)||!("serviceWorker"in navigator)||!1===ge.enabled)return;let Bt;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof ge.registrationStrategy)Bt=ge.registrationStrategy();else{const[Jn,...ci]=(ge.registrationStrategy||"registerWhenStable:30000").split(":");switch(Jn){case"registerImmediately":Bt=(0,Y.of)(null);break;case"registerWithDelay":Bt=gi(+ci[0]||0);break;case"registerWhenStable":Bt=ci[0]?(0,xt.T)(qn(ft),gi(+ci[0])):qn(ft);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${ge.registrationStrategy}`)}}ft.get(T.R0b).runOutsideAngular(()=>Bt.pipe((0,Se.q)(1)).subscribe(()=>navigator.serviceWorker.register(fe,{scope:ge.scope}).catch(Jn=>console.error("Service worker registration failed with:",Jn))))}}function gi(ft){return(0,Y.of)(null).pipe((0,oe.g)(ft))}function qn(ft){return ft.get(T.z2F).isStable.pipe((0,he.h)(ge=>ge))}function ki(ft,fe){return new sn((0,vt.NF)(fe)&&!1!==ft.enabled?navigator.serviceWorker:void 0)}let Si=(()=>{class ft{static register(ge,He={}){return{ngModule:ft,providers:[{provide:pi,useValue:ge},{provide:Mn,useValue:He},{provide:sn,useFactory:ki,deps:[Mn,T.Lbi]},{provide:T.ip1,useFactory:Yn,deps:[T.zs3,pi,Mn,T.Lbi],multi:!0}]}}}return ft.\u0275fac=function(ge){return new(ge||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:[_n,Ln]}),ft})();var Ni=_(27287);const pn=["modal"];let Vn=(()=>{var ft;class fe{open(){this.modal.open()}reloadPage(){document.location.reload()}}return(ft=fe).\u0275fac=function(He){return new(He||ft)},ft.\u0275cmp=T.Xpm({type:ft,selectors:[["nit-update-version-modal"]],viewQuery:function(He,Bt){if(1&He&&T.Gf(pn,5),2&He){let bn;T.iGM(bn=T.CRH())&&(Bt.modal=bn.first)}},decls:9,vars:3,consts:[["id","update-version","isPopup","true",3,"width","title","titleSize"],["modal",""],[1,"description"],[1,"action-box"],[1,"cancel"],[1,"reload",3,"click"]],template:function(He,Bt){1&He&&(T.TgZ(0,"nit-modal",0,1)(2,"div",2),T._uU(3," \u0412\u0430\u0448\u0430 \u0432\u0435\u0440\u0441\u0456\u044f \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u0443 \u0437\u0430\u0441\u0442\u0430\u0440\u0456\u043b\u0430. \u0414\u043b\u044f \u043a\u043e\u0440\u0435\u043a\u0442\u043d\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u0443 \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e \u0437\u0431\u0435\u0440\u0456\u0433\u0448\u0438 \u0437\u043c\u0456\u043d\u0438. "),T.qZA(),T.TgZ(4,"div",3)(5,"button",4),T._uU(6,"\u041d\u0430\u0433\u0430\u0434\u0430\u0442\u0438 \u043f\u0456\u0437\u043d\u0456\u0448\u0435"),T.qZA(),T.TgZ(7,"button",5),T.NdJ("click",function(){return Bt.reloadPage()}),T._uU(8,"\u041f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443"),T.qZA()()()),2&He&&T.Q6J("width",628)("title","\u0417\u0432\u0435\u0440\u043d\u0456\u0442\u044c \u0443\u0432\u0430\u0433\u0443!")("titleSize","small")},dependencies:[Ni.z],styles:["#update-version[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-top:4px;font-size:16px;line-height:24px;color:var(--additional-grey-300);text-align:center}#update-version[_ngcontent-%COMP%]   .action-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;margin-top:20px}#update-version[_ngcontent-%COMP%]   .action-box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:16px;border:none;cursor:pointer}#update-version[_ngcontent-%COMP%]   .action-box[_ngcontent-%COMP%]   .reload[_ngcontent-%COMP%]{width:50%;background:var(--primary-300);color:var(--white);text-decoration:underline;font-weight:700;height:50px;box-shadow:0 2px 9px #001d1026;border-radius:6px;line-height:18px}#update-version[_ngcontent-%COMP%]   .action-box[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{padding:0 12px;height:22px;background:transparent;text-decoration-line:underline;color:var(--support-danger-300);margin-left:10%}"]}),fe})();const ot=["updateVersionModal"];let en=(()=>{var ft;class fe{constructor(He){this._swUpdate=He,this.environment=ut.N,(0,Ct.F)(36e5).subscribe(()=>{this._swUpdate.checkForUpdate()}),He.versionUpdates.pipe((0,he.h)(bn=>"VERSION_READY"===bn.type),(0,Ue.U)(bn=>({type:"UPDATE_AVAILABLE",current:bn.currentVersion,available:bn.latestVersion}))).subscribe(()=>{this._swUpdate.activateUpdate().then(()=>{setTimeout(()=>this.updateVersionModal?.open(),0)})})}}return(ft=fe).\u0275fac=function(He){return new(He||ft)(T.Y36(Ln))},ft.\u0275cmp=T.Xpm({type:ft,selectors:[["nit-root"]],viewQuery:function(He,Bt){if(1&He&&T.Gf(ot,5),2&He){let bn;T.iGM(bn=T.CRH())&&(Bt.updateVersionModal=bn.first)}},decls:7,vars:1,consts:[["target","_blank","href","https://play.google.com/store/apps/details?id=com.lionwood.nitwrap"],[1,"relative","shadow-black/5","shadow-none","rounded-none",2,"max-width","135px"],["id","version"],["updateVersionModal",""]],template:function(He,Bt){1&He&&(T._UZ(0,"router-outlet"),T.TgZ(1,"a",0),T._UZ(2,"div",1),T.qZA(),T.TgZ(3,"span",2),T._uU(4),T.qZA(),T._UZ(5,"nit-update-version-modal",null,3)),2&He&&(T.xp6(4),T.Oqu(Bt.environment.version))},dependencies:[we.lC,Vn],encapsulation:2}),fe})();var lt=_(64483),In=_(24006),rn=_(37340);function yi(ft){return new T.vHH(3e3,!1)}function ji(){return typeof window<"u"&&typeof window.document<"u"}function gs(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(ft){switch(ft.length){case 0:return new rn.ZN;case 1:return ft[0];default:return new rn.ZE(ft)}}function Es(ft,fe,ge,He,Bt=new Map,bn=new Map){const Jn=[],ci=[];let Oi=-1,es=null;if(He.forEach(Cs=>{const _e=Cs.get("offset"),Ne=_e==Oi,v=Ne&&es||new Map;Cs.forEach((D,W)=>{let L=W,Me=D;if("offset"!==W)switch(L=fe.normalizePropertyName(L,Jn),Me){case rn.k1:Me=Bt.get(W);break;case rn.l3:Me=bn.get(W);break;default:Me=fe.normalizeStyleValue(W,L,Me,Jn)}v.set(L,Me)}),Ne||ci.push(v),es=v,Oi=_e}),Jn.length)throw function ie(ft){return new T.vHH(3502,!1)}();return ci}function ss(ft,fe,ge,He){switch(fe){case"start":ft.onStart(()=>He(ge&&zi(ge,"start",ft)));break;case"done":ft.onDone(()=>He(ge&&zi(ge,"done",ft)));break;case"destroy":ft.onDestroy(()=>He(ge&&zi(ge,"destroy",ft)))}}function zi(ft,fe,ge){const bn=as(ft.element,ft.triggerName,ft.fromState,ft.toState,fe||ft.phaseName,ge.totalTime??ft.totalTime,!!ge.disabled),Jn=ft._data;return null!=Jn&&(bn._data=Jn),bn}function as(ft,fe,ge,He,Bt="",bn=0,Jn){return{element:ft,triggerName:fe,fromState:ge,toState:He,phaseName:Bt,totalTime:bn,disabled:!!Jn}}function ds(ft,fe,ge){let He=ft.get(fe);return He||ft.set(fe,He=ge),He}function Xi(ft){const fe=ft.indexOf(":");return[ft.substring(1,fe),ft.slice(fe+1)]}let us=(ft,fe)=>!1,ps=(ft,fe,ge)=>[],_s=null;function ei(ft){const fe=ft.parentNode||ft.host;return fe===_s?null:fe}(gs()||typeof Element<"u")&&(ji()?(_s=(()=>document.documentElement)(),us=(ft,fe)=>{for(;fe;){if(fe===ft)return!0;fe=ei(fe)}return!1}):us=(ft,fe)=>ft.contains(fe),ps=(ft,fe,ge)=>{if(ge)return Array.from(ft.querySelectorAll(fe));const He=ft.querySelector(fe);return He?[He]:[]});let As=null,un=!1;const Be=us,Jt=ps;let Ke=(()=>{class ft{validateStyleProperty(ge){return function ai(ft){As||(As=function Pt(){return typeof document<"u"?document.body:null}()||{},un=!!As.style&&"WebkitAppearance"in As.style);let fe=!0;return As.style&&!function po(ft){return"ebkit"==ft.substring(1,6)}(ft)&&(fe=ft in As.style,!fe&&un&&(fe="Webkit"+ft.charAt(0).toUpperCase()+ft.slice(1)in As.style)),fe}(ge)}matchesElement(ge,He){return!1}containsElement(ge,He){return Be(ge,He)}getParentElement(ge){return ei(ge)}query(ge,He,Bt){return Jt(ge,He,Bt)}computeStyle(ge,He,Bt){return Bt||""}animate(ge,He,Bt,bn,Jn,ci=[],Oi){return new rn.ZN(Bt,bn)}}return ft.\u0275fac=function(ge){return new(ge||ft)},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),Qe=(()=>{class ft{}return ft.NOOP=new Ke,ft})();const Et=1e3,ni="ng-enter",qi="ng-leave",ys="ng-trigger",Mo=".ng-trigger",bo="ng-animating",Ps=".ng-animating";function Wt(ft){if("number"==typeof ft)return ft;const fe=ft.match(/^(-?[\.\d]+)(m?s)/);return!fe||fe.length<2?0:Bn(parseFloat(fe[1]),fe[2])}function Bn(ft,fe){return"s"===fe?ft*Et:ft}function ti(ft,fe,ge){return ft.hasOwnProperty("duration")?ft:function Ui(ft,fe,ge){let Bt,bn=0,Jn="";if("string"==typeof ft){const ci=ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ci)return fe.push(yi()),{duration:0,delay:0,easing:""};Bt=Bn(parseFloat(ci[1]),ci[2]);const Oi=ci[3];null!=Oi&&(bn=Bn(parseFloat(Oi),ci[4]));const es=ci[5];es&&(Jn=es)}else Bt=ft;if(!ge){let ci=!1,Oi=fe.length;Bt<0&&(fe.push(function Li(){return new T.vHH(3100,!1)}()),ci=!0),bn<0&&(fe.push(function An(){return new T.vHH(3101,!1)}()),ci=!0),ci&&fe.splice(Oi,0,yi())}return{duration:Bt,delay:bn,easing:Jn}}(ft,fe,ge)}function Pe(ft,fe={}){return Object.keys(ft).forEach(ge=>{fe[ge]=ft[ge]}),fe}function gn(ft){const fe=new Map;return Object.keys(ft).forEach(ge=>{fe.set(ge,ft[ge])}),fe}function on(ft,fe=new Map,ge){if(ge)for(let[He,Bt]of ge)fe.set(He,Bt);for(let[He,Bt]of ft)fe.set(He,Bt);return fe}function Hn(ft,fe,ge){return ge?fe+":"+ge+";":""}function Mi(ft){let fe="";for(let ge=0;ge<ft.style.length;ge++){const He=ft.style.item(ge);fe+=Hn(0,He,ft.style.getPropertyValue(He))}for(const ge in ft.style)ft.style.hasOwnProperty(ge)&&!ge.startsWith("_")&&(fe+=Hn(0,da(ge),ft.style[ge]));ft.setAttribute("style",fe)}function Fi(ft,fe,ge){ft.style&&(fe.forEach((He,Bt)=>{const bn=wo(Bt);ge&&!ge.has(Bt)&&ge.set(Bt,ft.style[bn]),ft.style[bn]=He}),gs()&&Mi(ft))}function os(ft,fe){ft.style&&(fe.forEach((ge,He)=>{const Bt=wo(He);ft.style[Bt]=""}),gs()&&Mi(ft))}function dn(ft){return Array.isArray(ft)?1==ft.length?ft[0]:(0,rn.vP)(ft):ft}const Gt=new RegExp("{{\\s*(.+?)\\s*}}","g");function _i(ft){let fe=[];if("string"==typeof ft){let ge;for(;ge=Gt.exec(ft);)fe.push(ge[1]);Gt.lastIndex=0}return fe}function Wi(ft,fe,ge){const He=ft.toString(),Bt=He.replace(Gt,(bn,Jn)=>{let ci=fe[Jn];return null==ci&&(ge.push(function Pn(ft){return new T.vHH(3003,!1)}()),ci=""),ci.toString()});return Bt==He?ft:Bt}function Ks(ft){const fe=[];let ge=ft.next();for(;!ge.done;)fe.push(ge.value),ge=ft.next();return fe}const So=/-+([a-z0-9])/g;function wo(ft){return ft.replace(So,(...fe)=>fe[1].toUpperCase())}function da(ft){return ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rr(ft,fe,ge){switch(fe.type){case 7:return ft.visitTrigger(fe,ge);case 0:return ft.visitState(fe,ge);case 1:return ft.visitTransition(fe,ge);case 2:return ft.visitSequence(fe,ge);case 3:return ft.visitGroup(fe,ge);case 4:return ft.visitAnimate(fe,ge);case 5:return ft.visitKeyframes(fe,ge);case 6:return ft.visitStyle(fe,ge);case 8:return ft.visitReference(fe,ge);case 9:return ft.visitAnimateChild(fe,ge);case 10:return ft.visitAnimateRef(fe,ge);case 11:return ft.visitQuery(fe,ge);case 12:return ft.visitStagger(fe,ge);default:throw function Sn(ft){return new T.vHH(3004,!1)}()}}function Qs(ft,fe){return window.getComputedStyle(ft)[fe]}const cr="*";function fo(ft,fe){const ge=[];return"string"==typeof ft?ft.split(/\s*,\s*/).forEach(He=>function js(ft,fe,ge){if(":"==ft[0]){const Oi=function fr(ft,fe){switch(ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ge,He)=>parseFloat(He)>parseFloat(ge);case":decrement":return(ge,He)=>parseFloat(He)<parseFloat(ge);default:return fe.push(function vn(ft){return new T.vHH(3016,!1)}()),"* => *"}}(ft,ge);if("function"==typeof Oi)return void fe.push(Oi);ft=Oi}const He=ft.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==He||He.length<4)return ge.push(function kt(ft){return new T.vHH(3015,!1)}()),fe;const Bt=He[1],bn=He[2],Jn=He[3];fe.push(ur(Bt,Jn));"<"==bn[0]&&!(Bt==cr&&Jn==cr)&&fe.push(ur(Jn,Bt))}(He,ge,fe)):ge.push(ft),ge}const Ws=new Set(["true","1"]),Lr=new Set(["false","0"]);function ur(ft,fe){const ge=Ws.has(ft)||Lr.has(ft),He=Ws.has(fe)||Lr.has(fe);return(Bt,bn)=>{let Jn=ft==cr||ft==Bt,ci=fe==cr||fe==bn;return!Jn&&ge&&"boolean"==typeof Bt&&(Jn=Bt?Ws.has(ft):Lr.has(ft)),!ci&&He&&"boolean"==typeof bn&&(ci=bn?Ws.has(fe):Lr.has(fe)),Jn&&ci}}const Ko=new RegExp("s*:selfs*,?","g");function ms(ft,fe,ge,He){return new vo(ft).build(fe,ge,He)}class vo{constructor(fe){this._driver=fe}build(fe,ge,He){const Bt=new Gr(ge);return this._resetContextStyleTimingState(Bt),Rr(this,dn(fe),Bt)}_resetContextStyleTimingState(fe){fe.currentQuerySelector="",fe.collectedStyles=new Map,fe.collectedStyles.set("",new Map),fe.currentTime=0}visitTrigger(fe,ge){let He=ge.queryCount=0,Bt=ge.depCount=0;const bn=[],Jn=[];return"@"==fe.name.charAt(0)&&ge.errors.push(function Cn(){return new T.vHH(3006,!1)}()),fe.definitions.forEach(ci=>{if(this._resetContextStyleTimingState(ge),0==ci.type){const Oi=ci,es=Oi.name;es.toString().split(/\s*,\s*/).forEach(Cs=>{Oi.name=Cs,bn.push(this.visitState(Oi,ge))}),Oi.name=es}else if(1==ci.type){const Oi=this.visitTransition(ci,ge);He+=Oi.queryCount,Bt+=Oi.depCount,Jn.push(Oi)}else ge.errors.push(function Un(){return new T.vHH(3007,!1)}())}),{type:7,name:fe.name,states:bn,transitions:Jn,queryCount:He,depCount:Bt,options:null}}visitState(fe,ge){const He=this.visitStyle(fe.styles,ge),Bt=fe.options&&fe.options.params||null;if(He.containsDynamicStyles){const bn=new Set,Jn=Bt||{};He.styles.forEach(ci=>{ci instanceof Map&&ci.forEach(Oi=>{_i(Oi).forEach(es=>{Jn.hasOwnProperty(es)||bn.add(es)})})}),bn.size&&(Ks(bn.values()),ge.errors.push(function fi(ft,fe){return new T.vHH(3008,!1)}()))}return{type:0,name:fe.name,style:He,options:Bt?{params:Bt}:null}}visitTransition(fe,ge){ge.queryCount=0,ge.depCount=0;const He=Rr(this,dn(fe.animation),ge);return{type:1,matchers:fo(fe.expr,ge.errors),animation:He,queryCount:ge.queryCount,depCount:ge.depCount,options:No(fe.options)}}visitSequence(fe,ge){return{type:2,steps:fe.steps.map(He=>Rr(this,He,ge)),options:No(fe.options)}}visitGroup(fe,ge){const He=ge.currentTime;let Bt=0;const bn=fe.steps.map(Jn=>{ge.currentTime=He;const ci=Rr(this,Jn,ge);return Bt=Math.max(Bt,ge.currentTime),ci});return ge.currentTime=Bt,{type:3,steps:bn,options:No(fe.options)}}visitAnimate(fe,ge){const He=function uo(ft,fe){if(ft.hasOwnProperty("duration"))return ft;if("number"==typeof ft)return Cr(ti(ft,fe).duration,0,"");const ge=ft;if(ge.split(/\s+/).some(bn=>"{"==bn.charAt(0)&&"{"==bn.charAt(1))){const bn=Cr(0,0,"");return bn.dynamic=!0,bn.strValue=ge,bn}const Bt=ti(ge,fe);return Cr(Bt.duration,Bt.delay,Bt.easing)}(fe.timings,ge.errors);ge.currentAnimateTimings=He;let Bt,bn=fe.styles?fe.styles:(0,rn.oB)({});if(5==bn.type)Bt=this.visitKeyframes(bn,ge);else{let Jn=fe.styles,ci=!1;if(!Jn){ci=!0;const es={};He.easing&&(es.easing=He.easing),Jn=(0,rn.oB)(es)}ge.currentTime+=He.duration+He.delay;const Oi=this.visitStyle(Jn,ge);Oi.isEmptyStep=ci,Bt=Oi}return ge.currentAnimateTimings=null,{type:4,timings:He,style:Bt,options:null}}visitStyle(fe,ge){const He=this._makeStyleAst(fe,ge);return this._validateStyleAst(He,ge),He}_makeStyleAst(fe,ge){const He=[],Bt=Array.isArray(fe.styles)?fe.styles:[fe.styles];for(let ci of Bt)"string"==typeof ci?ci===rn.l3?He.push(ci):ge.errors.push(new T.vHH(3002,!1)):He.push(gn(ci));let bn=!1,Jn=null;return He.forEach(ci=>{if(ci instanceof Map&&(ci.has("easing")&&(Jn=ci.get("easing"),ci.delete("easing")),!bn))for(let Oi of ci.values())if(Oi.toString().indexOf("{{")>=0){bn=!0;break}}),{type:6,styles:He,easing:Jn,offset:fe.offset,containsDynamicStyles:bn,options:null}}_validateStyleAst(fe,ge){const He=ge.currentAnimateTimings;let Bt=ge.currentTime,bn=ge.currentTime;He&&bn>0&&(bn-=He.duration+He.delay),fe.styles.forEach(Jn=>{"string"!=typeof Jn&&Jn.forEach((ci,Oi)=>{const es=ge.collectedStyles.get(ge.currentQuerySelector),Cs=es.get(Oi);let _e=!0;Cs&&(bn!=Bt&&bn>=Cs.startTime&&Bt<=Cs.endTime&&(ge.errors.push(function mn(ft,fe,ge,He,Bt){return new T.vHH(3010,!1)}()),_e=!1),bn=Cs.startTime),_e&&es.set(Oi,{startTime:bn,endTime:Bt}),ge.options&&function wi(ft,fe,ge){const He=fe.params||{},Bt=_i(ft);Bt.length&&Bt.forEach(bn=>{He.hasOwnProperty(bn)||ge.push(function Ht(ft){return new T.vHH(3001,!1)}())})}(ci,ge.options,ge.errors)})})}visitKeyframes(fe,ge){const He={type:5,styles:[],options:null};if(!ge.currentAnimateTimings)return ge.errors.push(function ze(){return new T.vHH(3011,!1)}()),He;let bn=0;const Jn=[];let ci=!1,Oi=!1,es=0;const Cs=fe.steps.map(Me=>{const tn=this._makeStyleAst(Me,ge);let oi=null!=tn.offset?tn.offset:function Xr(ft){if("string"==typeof ft)return null;let fe=null;if(Array.isArray(ft))ft.forEach(ge=>{if(ge instanceof Map&&ge.has("offset")){const He=ge;fe=parseFloat(He.get("offset")),He.delete("offset")}});else if(ft instanceof Map&&ft.has("offset")){const ge=ft;fe=parseFloat(ge.get("offset")),ge.delete("offset")}return fe}(tn.styles),Vi=0;return null!=oi&&(bn++,Vi=tn.offset=oi),Oi=Oi||Vi<0||Vi>1,ci=ci||Vi<es,es=Vi,Jn.push(Vi),tn});Oi&&ge.errors.push(function wt(){return new T.vHH(3012,!1)}()),ci&&ge.errors.push(function ht(){return new T.vHH(3200,!1)}());const _e=fe.steps.length;let Ne=0;bn>0&&bn<_e?ge.errors.push(function U(){return new T.vHH(3202,!1)}()):0==bn&&(Ne=1/(_e-1));const v=_e-1,D=ge.currentTime,W=ge.currentAnimateTimings,L=W.duration;return Cs.forEach((Me,tn)=>{const oi=Ne>0?tn==v?1:Ne*tn:Jn[tn],Vi=oi*L;ge.currentTime=D+W.delay+Vi,W.duration=Vi,this._validateStyleAst(Me,ge),Me.offset=oi,He.styles.push(Me)}),He}visitReference(fe,ge){return{type:8,animation:Rr(this,dn(fe.animation),ge),options:No(fe.options)}}visitAnimateChild(fe,ge){return ge.depCount++,{type:9,options:No(fe.options)}}visitAnimateRef(fe,ge){return{type:10,animation:this.visitReference(fe.animation,ge),options:No(fe.options)}}visitQuery(fe,ge){const He=ge.currentQuerySelector,Bt=fe.options||{};ge.queryCount++,ge.currentQuery=fe;const[bn,Jn]=function oa(ft){const fe=!!ft.split(/\s*,\s*/).find(ge=>":self"==ge);return fe&&(ft=ft.replace(Ko,"")),ft=ft.replace(/@\*/g,Mo).replace(/@\w+/g,ge=>Mo+"-"+ge.slice(1)).replace(/:animating/g,Ps),[ft,fe]}(fe.selector);ge.currentQuerySelector=He.length?He+" "+bn:bn,ds(ge.collectedStyles,ge.currentQuerySelector,new Map);const ci=Rr(this,dn(fe.animation),ge);return ge.currentQuery=null,ge.currentQuerySelector=He,{type:11,selector:bn,limit:Bt.limit||0,optional:!!Bt.optional,includeSelf:Jn,animation:ci,originalSelector:fe.selector,options:No(fe.options)}}visitStagger(fe,ge){ge.currentQuery||ge.errors.push(function gt(){return new T.vHH(3013,!1)}());const He="full"===fe.timings?{duration:0,delay:0,easing:"full"}:ti(fe.timings,ge.errors,!0);return{type:12,animation:Rr(this,dn(fe.animation),ge),timings:He,options:null}}}class Gr{constructor(fe){this.errors=fe,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function No(ft){return ft?(ft=Pe(ft)).params&&(ft.params=function Ka(ft){return ft?Pe(ft):null}(ft.params)):ft={},ft}function Cr(ft,fe,ge){return{duration:ft,delay:fe,easing:ge}}function Er(ft,fe,ge,He,Bt,bn,Jn=null,ci=!1){return{type:1,element:ft,keyframes:fe,preStyleProps:ge,postStyleProps:He,duration:Bt,delay:bn,totalTime:Bt+bn,easing:Jn,subTimeline:ci}}class zr{constructor(){this._map=new Map}get(fe){return this._map.get(fe)||[]}append(fe,ge){let He=this._map.get(fe);He||this._map.set(fe,He=[]),He.push(...ge)}has(fe){return this._map.has(fe)}clear(){this._map.clear()}}const lo=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function dt(ft,fe,ge,He,Bt,bn=new Map,Jn=new Map,ci,Oi,es=[]){return(new et).buildKeyframes(ft,fe,ge,He,Bt,bn,Jn,ci,Oi,es)}class et{buildKeyframes(fe,ge,He,Bt,bn,Jn,ci,Oi,es,Cs=[]){es=es||new zr;const _e=new Gi(fe,ge,es,Bt,bn,Cs,[]);_e.options=Oi;const Ne=Oi.delay?Wt(Oi.delay):0;_e.currentTimeline.delayNextStep(Ne),_e.currentTimeline.setStyles([Jn],null,_e.errors,Oi),Rr(this,He,_e);const v=_e.timelines.filter(D=>D.containsAnimation());if(v.length&&ci.size){let D;for(let W=v.length-1;W>=0;W--){const L=v[W];if(L.element===ge){D=L;break}}D&&!D.allowOnlyTimelineStyles()&&D.setStyles([ci],null,_e.errors,Oi)}return v.length?v.map(D=>D.buildKeyframes()):[Er(ge,[],[],[],0,Ne,"",!1)]}visitTrigger(fe,ge){}visitState(fe,ge){}visitTransition(fe,ge){}visitAnimateChild(fe,ge){const He=ge.subInstructions.get(ge.element);if(He){const Bt=ge.createSubContext(fe.options),bn=ge.currentTimeline.currentTime,Jn=this._visitSubInstructions(He,Bt,Bt.options);bn!=Jn&&ge.transformIntoNewTimeline(Jn)}ge.previousNode=fe}visitAnimateRef(fe,ge){const He=ge.createSubContext(fe.options);He.transformIntoNewTimeline(),this._applyAnimationRefDelays([fe.options,fe.animation.options],ge,He),this.visitReference(fe.animation,He),ge.transformIntoNewTimeline(He.currentTimeline.currentTime),ge.previousNode=fe}_applyAnimationRefDelays(fe,ge,He){for(const Bt of fe){const bn=Bt?.delay;if(bn){const Jn="number"==typeof bn?bn:Wt(Wi(bn,Bt?.params??{},ge.errors));He.delayNextStep(Jn)}}}_visitSubInstructions(fe,ge,He){let bn=ge.currentTimeline.currentTime;const Jn=null!=He.duration?Wt(He.duration):null,ci=null!=He.delay?Wt(He.delay):null;return 0!==Jn&&fe.forEach(Oi=>{const es=ge.appendInstructionToTimeline(Oi,Jn,ci);bn=Math.max(bn,es.duration+es.delay)}),bn}visitReference(fe,ge){ge.updateOptions(fe.options,!0),Rr(this,fe.animation,ge),ge.previousNode=fe}visitSequence(fe,ge){const He=ge.subContextCount;let Bt=ge;const bn=fe.options;if(bn&&(bn.params||bn.delay)&&(Bt=ge.createSubContext(bn),Bt.transformIntoNewTimeline(),null!=bn.delay)){6==Bt.previousNode.type&&(Bt.currentTimeline.snapshotCurrentStyles(),Bt.previousNode=Tn);const Jn=Wt(bn.delay);Bt.delayNextStep(Jn)}fe.steps.length&&(fe.steps.forEach(Jn=>Rr(this,Jn,Bt)),Bt.currentTimeline.applyStylesToKeyframe(),Bt.subContextCount>He&&Bt.transformIntoNewTimeline()),ge.previousNode=fe}visitGroup(fe,ge){const He=[];let Bt=ge.currentTimeline.currentTime;const bn=fe.options&&fe.options.delay?Wt(fe.options.delay):0;fe.steps.forEach(Jn=>{const ci=ge.createSubContext(fe.options);bn&&ci.delayNextStep(bn),Rr(this,Jn,ci),Bt=Math.max(Bt,ci.currentTimeline.currentTime),He.push(ci.currentTimeline)}),He.forEach(Jn=>ge.currentTimeline.mergeTimelineCollectedStyles(Jn)),ge.transformIntoNewTimeline(Bt),ge.previousNode=fe}_visitTiming(fe,ge){if(fe.dynamic){const He=fe.strValue;return ti(ge.params?Wi(He,ge.params,ge.errors):He,ge.errors)}return{duration:fe.duration,delay:fe.delay,easing:fe.easing}}visitAnimate(fe,ge){const He=ge.currentAnimateTimings=this._visitTiming(fe.timings,ge),Bt=ge.currentTimeline;He.delay&&(ge.incrementTime(He.delay),Bt.snapshotCurrentStyles());const bn=fe.style;5==bn.type?this.visitKeyframes(bn,ge):(ge.incrementTime(He.duration),this.visitStyle(bn,ge),Bt.applyStylesToKeyframe()),ge.currentAnimateTimings=null,ge.previousNode=fe}visitStyle(fe,ge){const He=ge.currentTimeline,Bt=ge.currentAnimateTimings;!Bt&&He.hasCurrentStyleProperties()&&He.forwardFrame();const bn=Bt&&Bt.easing||fe.easing;fe.isEmptyStep?He.applyEmptyStep(bn):He.setStyles(fe.styles,bn,ge.errors,ge.options),ge.previousNode=fe}visitKeyframes(fe,ge){const He=ge.currentAnimateTimings,Bt=ge.currentTimeline.duration,bn=He.duration,ci=ge.createSubContext().currentTimeline;ci.easing=He.easing,fe.styles.forEach(Oi=>{ci.forwardTime((Oi.offset||0)*bn),ci.setStyles(Oi.styles,Oi.easing,ge.errors,ge.options),ci.applyStylesToKeyframe()}),ge.currentTimeline.mergeTimelineCollectedStyles(ci),ge.transformIntoNewTimeline(Bt+bn),ge.previousNode=fe}visitQuery(fe,ge){const He=ge.currentTimeline.currentTime,Bt=fe.options||{},bn=Bt.delay?Wt(Bt.delay):0;bn&&(6===ge.previousNode.type||0==He&&ge.currentTimeline.hasCurrentStyleProperties())&&(ge.currentTimeline.snapshotCurrentStyles(),ge.previousNode=Tn);let Jn=He;const ci=ge.invokeQuery(fe.selector,fe.originalSelector,fe.limit,fe.includeSelf,!!Bt.optional,ge.errors);ge.currentQueryTotal=ci.length;let Oi=null;ci.forEach((es,Cs)=>{ge.currentQueryIndex=Cs;const _e=ge.createSubContext(fe.options,es);bn&&_e.delayNextStep(bn),es===ge.element&&(Oi=_e.currentTimeline),Rr(this,fe.animation,_e),_e.currentTimeline.applyStylesToKeyframe(),Jn=Math.max(Jn,_e.currentTimeline.currentTime)}),ge.currentQueryIndex=0,ge.currentQueryTotal=0,ge.transformIntoNewTimeline(Jn),Oi&&(ge.currentTimeline.mergeTimelineCollectedStyles(Oi),ge.currentTimeline.snapshotCurrentStyles()),ge.previousNode=fe}visitStagger(fe,ge){const He=ge.parentContext,Bt=ge.currentTimeline,bn=fe.timings,Jn=Math.abs(bn.duration),ci=Jn*(ge.currentQueryTotal-1);let Oi=Jn*ge.currentQueryIndex;switch(bn.duration<0?"reverse":bn.easing){case"reverse":Oi=ci-Oi;break;case"full":Oi=He.currentStaggerTime}const Cs=ge.currentTimeline;Oi&&Cs.delayNextStep(Oi);const _e=Cs.currentTime;Rr(this,fe.animation,ge),ge.previousNode=fe,He.currentStaggerTime=Bt.currentTime-_e+(Bt.startTime-He.currentTimeline.startTime)}}const Tn={};class Gi{constructor(fe,ge,He,Bt,bn,Jn,ci,Oi){this._driver=fe,this.element=ge,this.subInstructions=He,this._enterClassName=Bt,this._leaveClassName=bn,this.errors=Jn,this.timelines=ci,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oi||new Ys(this._driver,ge,0),ci.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(fe,ge){if(!fe)return;const He=fe;let Bt=this.options;null!=He.duration&&(Bt.duration=Wt(He.duration)),null!=He.delay&&(Bt.delay=Wt(He.delay));const bn=He.params;if(bn){let Jn=Bt.params;Jn||(Jn=this.options.params={}),Object.keys(bn).forEach(ci=>{(!ge||!Jn.hasOwnProperty(ci))&&(Jn[ci]=Wi(bn[ci],Jn,this.errors))})}}_copyOptions(){const fe={};if(this.options){const ge=this.options.params;if(ge){const He=fe.params={};Object.keys(ge).forEach(Bt=>{He[Bt]=ge[Bt]})}}return fe}createSubContext(fe=null,ge,He){const Bt=ge||this.element,bn=new Gi(this._driver,Bt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Bt,He||0));return bn.previousNode=this.previousNode,bn.currentAnimateTimings=this.currentAnimateTimings,bn.options=this._copyOptions(),bn.updateOptions(fe),bn.currentQueryIndex=this.currentQueryIndex,bn.currentQueryTotal=this.currentQueryTotal,bn.parentContext=this,this.subContextCount++,bn}transformIntoNewTimeline(fe){return this.previousNode=Tn,this.currentTimeline=this.currentTimeline.fork(this.element,fe),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(fe,ge,He){const Bt={duration:ge??fe.duration,delay:this.currentTimeline.currentTime+(He??0)+fe.delay,easing:""},bn=new co(this._driver,fe.element,fe.keyframes,fe.preStyleProps,fe.postStyleProps,Bt,fe.stretchStartingKeyframe);return this.timelines.push(bn),Bt}incrementTime(fe){this.currentTimeline.forwardTime(this.currentTimeline.duration+fe)}delayNextStep(fe){fe>0&&this.currentTimeline.delayNextStep(fe)}invokeQuery(fe,ge,He,Bt,bn,Jn){let ci=[];if(Bt&&ci.push(this.element),fe.length>0){fe=(fe=fe.replace(lo,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let es=this._driver.query(this.element,fe,1!=He);0!==He&&(es=He<0?es.slice(es.length+He,es.length):es.slice(0,He)),ci.push(...es)}return!bn&&0==ci.length&&Jn.push(function Lt(ft){return new T.vHH(3014,!1)}()),ci}}class Ys{constructor(fe,ge,He,Bt){this._driver=fe,this.element=ge,this.startTime=He,this._elementTimelineStylesLookup=Bt,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ge),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ge,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(fe){const ge=1===this._keyframes.size&&this._pendingStyles.size;this.duration||ge?(this.forwardTime(this.currentTime+fe),ge&&this.snapshotCurrentStyles()):this.startTime+=fe}fork(fe,ge){return this.applyStylesToKeyframe(),new Ys(this._driver,fe,ge||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(fe){this.applyStylesToKeyframe(),this.duration=fe,this._loadKeyframe()}_updateStyle(fe,ge){this._localTimelineStyles.set(fe,ge),this._globalTimelineStyles.set(fe,ge),this._styleSummary.set(fe,{time:this.currentTime,value:ge})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(fe){fe&&this._previousKeyframe.set("easing",fe);for(let[ge,He]of this._globalTimelineStyles)this._backFill.set(ge,He||rn.l3),this._currentKeyframe.set(ge,rn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(fe,ge,He,Bt){ge&&this._previousKeyframe.set("easing",ge);const bn=Bt&&Bt.params||{},Jn=function to(ft,fe){const ge=new Map;let He;return ft.forEach(Bt=>{if("*"===Bt){He=He||fe.keys();for(let bn of He)ge.set(bn,rn.l3)}else on(Bt,ge)}),ge}(fe,this._globalTimelineStyles);for(let[ci,Oi]of Jn){const es=Wi(Oi,bn,He);this._pendingStyles.set(ci,es),this._localTimelineStyles.has(ci)||this._backFill.set(ci,this._globalTimelineStyles.get(ci)??rn.l3),this._updateStyle(ci,es)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((fe,ge)=>{this._currentKeyframe.set(ge,fe)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((fe,ge)=>{this._currentKeyframe.has(ge)||this._currentKeyframe.set(ge,fe)}))}snapshotCurrentStyles(){for(let[fe,ge]of this._localTimelineStyles)this._pendingStyles.set(fe,ge),this._updateStyle(fe,ge)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const fe=[];for(let ge in this._currentKeyframe)fe.push(ge);return fe}mergeTimelineCollectedStyles(fe){fe._styleSummary.forEach((ge,He)=>{const Bt=this._styleSummary.get(He);(!Bt||ge.time>Bt.time)&&this._updateStyle(He,ge.value)})}buildKeyframes(){this.applyStylesToKeyframe();const fe=new Set,ge=new Set,He=1===this._keyframes.size&&0===this.duration;let Bt=[];this._keyframes.forEach((ci,Oi)=>{const es=on(ci,new Map,this._backFill);es.forEach((Cs,_e)=>{Cs===rn.k1?fe.add(_e):Cs===rn.l3&&ge.add(_e)}),He||es.set("offset",Oi/this.duration),Bt.push(es)});const bn=fe.size?Ks(fe.values()):[],Jn=ge.size?Ks(ge.values()):[];if(He){const ci=Bt[0],Oi=new Map(ci);ci.set("offset",0),Oi.set("offset",1),Bt=[ci,Oi]}return Er(this.element,Bt,bn,Jn,this.duration,this.startTime,this.easing,!1)}}class co extends Ys{constructor(fe,ge,He,Bt,bn,Jn,ci=!1){super(fe,ge,Jn.delay),this.keyframes=He,this.preStyleProps=Bt,this.postStyleProps=bn,this._stretchStartingKeyframe=ci,this.timings={duration:Jn.duration,delay:Jn.delay,easing:Jn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let fe=this.keyframes,{delay:ge,duration:He,easing:Bt}=this.timings;if(this._stretchStartingKeyframe&&ge){const bn=[],Jn=He+ge,ci=ge/Jn,Oi=on(fe[0]);Oi.set("offset",0),bn.push(Oi);const es=on(fe[0]);es.set("offset",Hi(ci)),bn.push(es);const Cs=fe.length-1;for(let _e=1;_e<=Cs;_e++){let Ne=on(fe[_e]);const v=Ne.get("offset");Ne.set("offset",Hi((ge+v*He)/Jn)),bn.push(Ne)}He=Jn,ge=0,Bt="",fe=bn}return Er(this.element,fe,this.preStyleProps,this.postStyleProps,He,ge,Bt,!0)}}function Hi(ft,fe=3){const ge=Math.pow(10,fe-1);return Math.round(ft*ge)/ge}class Or{}const aa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Xa extends Or{normalizePropertyName(fe,ge){return wo(fe)}normalizeStyleValue(fe,ge,He,Bt){let bn="";const Jn=He.toString().trim();if(aa.has(ge)&&0!==He&&"0"!==He)if("number"==typeof He)bn="px";else{const ci=He.match(/^[+-]?[\d\.]+([a-z]*)$/);ci&&0==ci[1].length&&Bt.push(function Fn(ft,fe){return new T.vHH(3005,!1)}())}return Jn+bn}}function ar(ft,fe,ge,He,Bt,bn,Jn,ci,Oi,es,Cs,_e,Ne){return{type:0,element:ft,triggerName:fe,isRemovalTransition:Bt,fromState:ge,fromStyles:bn,toState:He,toStyles:Jn,timelines:ci,queriedElements:Oi,preStyleProps:es,postStyleProps:Cs,totalTime:_e,errors:Ne}}const qr={};class bt{constructor(fe,ge,He){this._triggerName=fe,this.ast=ge,this._stateStyles=He}match(fe,ge,He,Bt){return function Xt(ft,fe,ge,He,Bt){return ft.some(bn=>bn(fe,ge,He,Bt))}(this.ast.matchers,fe,ge,He,Bt)}buildStyles(fe,ge,He){let Bt=this._stateStyles.get("*");return void 0!==fe&&(Bt=this._stateStyles.get(fe?.toString())||Bt),Bt?Bt.buildStyles(ge,He):new Map}build(fe,ge,He,Bt,bn,Jn,ci,Oi,es,Cs){const _e=[],Ne=this.ast.options&&this.ast.options.params||qr,D=this.buildStyles(He,ci&&ci.params||qr,_e),W=Oi&&Oi.params||qr,L=this.buildStyles(Bt,W,_e),Me=new Set,tn=new Map,oi=new Map,Vi="void"===Bt,hs={params:yn(W,Ne),delay:this.ast.options?.delay},Eo=Cs?[]:dt(fe,ge,this.ast.animation,bn,Jn,D,L,hs,es,_e);let jo=0;if(Eo.forEach(Hr=>{jo=Math.max(Hr.duration+Hr.delay,jo)}),_e.length)return ar(ge,this._triggerName,He,Bt,Vi,D,L,[],[],tn,oi,jo,_e);Eo.forEach(Hr=>{const Yo=Hr.element,wa=ds(tn,Yo,new Set);Hr.preStyleProps.forEach(Al=>wa.add(Al));const oc=ds(oi,Yo,new Set);Hr.postStyleProps.forEach(Al=>oc.add(Al)),Yo!==ge&&Me.add(Yo)});const gr=Ks(Me.values());return ar(ge,this._triggerName,He,Bt,Vi,D,L,Eo,gr,tn,oi,jo)}}function yn(ft,fe){const ge=Pe(fe);for(const He in ft)ft.hasOwnProperty(He)&&null!=ft[He]&&(ge[He]=ft[He]);return ge}class Qn{constructor(fe,ge,He){this.styles=fe,this.defaultParams=ge,this.normalizer=He}buildStyles(fe,ge){const He=new Map,Bt=Pe(this.defaultParams);return Object.keys(fe).forEach(bn=>{const Jn=fe[bn];null!==Jn&&(Bt[bn]=Jn)}),this.styles.styles.forEach(bn=>{"string"!=typeof bn&&bn.forEach((Jn,ci)=>{Jn&&(Jn=Wi(Jn,Bt,ge));const Oi=this.normalizer.normalizePropertyName(ci,ge);Jn=this.normalizer.normalizeStyleValue(ci,Oi,Jn,ge),He.set(ci,Jn)})}),He}}class $i{constructor(fe,ge,He){this.name=fe,this.ast=ge,this._normalizer=He,this.transitionFactories=[],this.states=new Map,ge.states.forEach(Bt=>{this.states.set(Bt.name,new Qn(Bt.style,Bt.options&&Bt.options.params||{},He))}),Is(this.states,"true","1"),Is(this.states,"false","0"),ge.transitions.forEach(Bt=>{this.transitionFactories.push(new bt(fe,Bt,this.states))}),this.fallbackTransition=function Us(ft,fe,ge){return new bt(ft,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Jn,ci)=>!0],options:null,queryCount:0,depCount:0},fe)}(fe,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(fe,ge,He,Bt){return this.transitionFactories.find(Jn=>Jn.match(fe,ge,He,Bt))||null}matchStyles(fe,ge,He){return this.fallbackTransition.buildStyles(fe,ge,He)}}function Is(ft,fe,ge){ft.has(fe)?ft.has(ge)||ft.set(ge,ft.get(fe)):ft.has(ge)&&ft.set(fe,ft.get(ge))}const Ns=new zr;class Js{constructor(fe,ge,He){this.bodyNode=fe,this._driver=ge,this._normalizer=He,this._animations=new Map,this._playersById=new Map,this.players=[]}register(fe,ge){const He=[],Bt=[],bn=ms(this._driver,ge,He,Bt);if(He.length)throw function je(ft){return new T.vHH(3503,!1)}();this._animations.set(fe,bn)}_buildPlayer(fe,ge,He){const Bt=fe.element,bn=Es(0,this._normalizer,0,fe.keyframes,ge,He);return this._driver.animate(Bt,bn,fe.duration,fe.delay,fe.easing,[],!0)}create(fe,ge,He={}){const Bt=[],bn=this._animations.get(fe);let Jn;const ci=new Map;if(bn?(Jn=dt(this._driver,ge,bn,ni,qi,new Map,new Map,He,Ns,Bt),Jn.forEach(Cs=>{const _e=ds(ci,Cs.element,new Map);Cs.postStyleProps.forEach(Ne=>_e.set(Ne,null))})):(Bt.push(function pt(){return new T.vHH(3300,!1)}()),Jn=[]),Bt.length)throw function Ut(ft){return new T.vHH(3504,!1)}();ci.forEach((Cs,_e)=>{Cs.forEach((Ne,v)=>{Cs.set(v,this._driver.computeStyle(_e,v,rn.l3))})});const es=bs(Jn.map(Cs=>{const _e=ci.get(Cs.element);return this._buildPlayer(Cs,new Map,_e)}));return this._playersById.set(fe,es),es.onDestroy(()=>this.destroy(fe)),this.players.push(es),es}destroy(fe){const ge=this._getPlayer(fe);ge.destroy(),this._playersById.delete(fe);const He=this.players.indexOf(ge);He>=0&&this.players.splice(He,1)}_getPlayer(fe){const ge=this._playersById.get(fe);if(!ge)throw function xn(ft){return new T.vHH(3301,!1)}();return ge}listen(fe,ge,He,Bt){const bn=as(ge,"","","");return ss(this._getPlayer(fe),He,bn,Bt),()=>{}}command(fe,ge,He,Bt){if("register"==He)return void this.register(fe,Bt[0]);if("create"==He)return void this.create(fe,ge,Bt[0]||{});const bn=this._getPlayer(fe);switch(He){case"play":bn.play();break;case"pause":bn.pause();break;case"reset":bn.reset();break;case"restart":bn.restart();break;case"finish":bn.finish();break;case"init":bn.init();break;case"setPosition":bn.setPosition(parseFloat(Bt[0]));break;case"destroy":this.destroy(fe)}}}const $s="ng-animate-queued",Lo="ng-animate-disabled",Wr=[],Oo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ta={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ea="__ng_removed";class la{get params(){return this.options.params}constructor(fe,ge=""){this.namespaceId=ge;const He=fe&&fe.hasOwnProperty("value");if(this.value=function ha(ft){return ft??null}(He?fe.value:fe),He){const bn=Pe(fe);delete bn.value,this.options=bn}else this.options={};this.options.params||(this.options.params={})}absorbOptions(fe){const ge=fe.params;if(ge){const He=this.options.params;Object.keys(ge).forEach(Bt=>{null==He[Bt]&&(He[Bt]=ge[Bt])})}}}const Br="void",Il=new la(Br);class br{constructor(fe,ge,He){this.id=fe,this.hostElement=ge,this._engine=He,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+fe,ca(ge,this._hostClassName)}listen(fe,ge,He,Bt){if(!this._triggers.has(ge))throw function hn(ft,fe){return new T.vHH(3302,!1)}();if(null==He||0==He.length)throw function Gn(ft){return new T.vHH(3303,!1)}();if(!function Tl(ft){return"start"==ft||"done"==ft}(He))throw function ri(ft,fe){return new T.vHH(3400,!1)}();const bn=ds(this._elementListeners,fe,[]),Jn={name:ge,phase:He,callback:Bt};bn.push(Jn);const ci=ds(this._engine.statesByElement,fe,new Map);return ci.has(ge)||(ca(fe,ys),ca(fe,ys+"-"+ge),ci.set(ge,Il)),()=>{this._engine.afterFlush(()=>{const Oi=bn.indexOf(Jn);Oi>=0&&bn.splice(Oi,1),this._triggers.has(ge)||ci.delete(ge)})}}register(fe,ge){return!this._triggers.has(fe)&&(this._triggers.set(fe,ge),!0)}_getTrigger(fe){const ge=this._triggers.get(fe);if(!ge)throw function mi(ft){return new T.vHH(3401,!1)}();return ge}trigger(fe,ge,He,Bt=!0){const bn=this._getTrigger(ge),Jn=new Ur(this.id,ge,fe);let ci=this._engine.statesByElement.get(fe);ci||(ca(fe,ys),ca(fe,ys+"-"+ge),this._engine.statesByElement.set(fe,ci=new Map));let Oi=ci.get(ge);const es=new la(He,this.id);if(!(He&&He.hasOwnProperty("value"))&&Oi&&es.absorbOptions(Oi.options),ci.set(ge,es),Oi||(Oi=Il),es.value!==Br&&Oi.value===es.value){if(!function V(ft,fe){const ge=Object.keys(ft),He=Object.keys(fe);if(ge.length!=He.length)return!1;for(let Bt=0;Bt<ge.length;Bt++){const bn=ge[Bt];if(!fe.hasOwnProperty(bn)||ft[bn]!==fe[bn])return!1}return!0}(Oi.params,es.params)){const W=[],L=bn.matchStyles(Oi.value,Oi.params,W),Me=bn.matchStyles(es.value,es.params,W);W.length?this._engine.reportError(W):this._engine.afterFlush(()=>{os(fe,L),Fi(fe,Me)})}return}const Ne=ds(this._engine.playersByElement,fe,[]);Ne.forEach(W=>{W.namespaceId==this.id&&W.triggerName==ge&&W.queued&&W.destroy()});let v=bn.matchTransition(Oi.value,es.value,fe,es.params),D=!1;if(!v){if(!Bt)return;v=bn.fallbackTransition,D=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:fe,triggerName:ge,transition:v,fromState:Oi,toState:es,player:Jn,isFallbackTransition:D}),D||(ca(fe,$s),Jn.onStart(()=>{Ma(fe,$s)})),Jn.onDone(()=>{let W=this.players.indexOf(Jn);W>=0&&this.players.splice(W,1);const L=this._engine.playersByElement.get(fe);if(L){let Me=L.indexOf(Jn);Me>=0&&L.splice(Me,1)}}),this.players.push(Jn),Ne.push(Jn),Jn}deregister(fe){this._triggers.delete(fe),this._engine.statesByElement.forEach(ge=>ge.delete(fe)),this._elementListeners.forEach((ge,He)=>{this._elementListeners.set(He,ge.filter(Bt=>Bt.name!=fe))})}clearElementCache(fe){this._engine.statesByElement.delete(fe),this._elementListeners.delete(fe);const ge=this._engine.playersByElement.get(fe);ge&&(ge.forEach(He=>He.destroy()),this._engine.playersByElement.delete(fe))}_signalRemovalForInnerTriggers(fe,ge){const He=this._engine.driver.query(fe,Mo,!0);He.forEach(Bt=>{if(Bt[ea])return;const bn=this._engine.fetchNamespacesByElement(Bt);bn.size?bn.forEach(Jn=>Jn.triggerLeaveAnimation(Bt,ge,!1,!0)):this.clearElementCache(Bt)}),this._engine.afterFlushAnimationsDone(()=>He.forEach(Bt=>this.clearElementCache(Bt)))}triggerLeaveAnimation(fe,ge,He,Bt){const bn=this._engine.statesByElement.get(fe),Jn=new Map;if(bn){const ci=[];if(bn.forEach((Oi,es)=>{if(Jn.set(es,Oi.value),this._triggers.has(es)){const Cs=this.trigger(fe,es,Br,Bt);Cs&&ci.push(Cs)}}),ci.length)return this._engine.markElementAsRemoved(this.id,fe,!0,ge,Jn),He&&bs(ci).onDone(()=>this._engine.processLeaveNode(fe)),!0}return!1}prepareLeaveAnimationListeners(fe){const ge=this._elementListeners.get(fe),He=this._engine.statesByElement.get(fe);if(ge&&He){const Bt=new Set;ge.forEach(bn=>{const Jn=bn.name;if(Bt.has(Jn))return;Bt.add(Jn);const Oi=this._triggers.get(Jn).fallbackTransition,es=He.get(Jn)||Il,Cs=new la(Br),_e=new Ur(this.id,Jn,fe);this._engine.totalQueuedPlayers++,this._queue.push({element:fe,triggerName:Jn,transition:Oi,fromState:es,toState:Cs,player:_e,isFallbackTransition:!0})})}}removeNode(fe,ge){const He=this._engine;if(fe.childElementCount&&this._signalRemovalForInnerTriggers(fe,ge),this.triggerLeaveAnimation(fe,ge,!0))return;let Bt=!1;if(He.totalAnimations){const bn=He.players.length?He.playersByQueriedElement.get(fe):[];if(bn&&bn.length)Bt=!0;else{let Jn=fe;for(;Jn=Jn.parentNode;)if(He.statesByElement.get(Jn)){Bt=!0;break}}}if(this.prepareLeaveAnimationListeners(fe),Bt)He.markElementAsRemoved(this.id,fe,!1,ge);else{const bn=fe[ea];(!bn||bn===Oo)&&(He.afterFlush(()=>this.clearElementCache(fe)),He.destroyInnerAnimations(fe),He._onRemovalComplete(fe,ge))}}insertNode(fe,ge){ca(fe,this._hostClassName)}drainQueuedTransitions(fe){const ge=[];return this._queue.forEach(He=>{const Bt=He.player;if(Bt.destroyed)return;const bn=He.element,Jn=this._elementListeners.get(bn);Jn&&Jn.forEach(ci=>{if(ci.name==He.triggerName){const Oi=as(bn,He.triggerName,He.fromState.value,He.toState.value);Oi._data=fe,ss(He.player,ci.phase,Oi,ci.callback)}}),Bt.markedForDestroy?this._engine.afterFlush(()=>{Bt.destroy()}):ge.push(He)}),this._queue=[],ge.sort((He,Bt)=>{const bn=He.transition.ast.depCount,Jn=Bt.transition.ast.depCount;return 0==bn||0==Jn?bn-Jn:this._engine.driver.containsElement(He.element,Bt.element)?1:-1})}destroy(fe){this.players.forEach(ge=>ge.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,fe)}elementContainsData(fe){let ge=!1;return this._elementListeners.has(fe)&&(ge=!0),ge=!!this._queue.find(He=>He.element===fe)||ge,ge}}class wl{_onRemovalComplete(fe,ge){this.onRemovalComplete(fe,ge)}constructor(fe,ge,He){this.bodyNode=fe,this.driver=ge,this._normalizer=He,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=(Bt,bn)=>{}}get queuedPlayers(){const fe=[];return this._namespaceList.forEach(ge=>{ge.players.forEach(He=>{He.queued&&fe.push(He)})}),fe}createNamespace(fe,ge){const He=new br(fe,ge,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ge)?this._balanceNamespaceList(He,ge):(this.newHostElements.set(ge,He),this.collectEnterElement(ge)),this._namespaceLookup[fe]=He}_balanceNamespaceList(fe,ge){const He=this._namespaceList,Bt=this.namespacesByHostElement;if(He.length-1>=0){let Jn=!1,ci=this.driver.getParentElement(ge);for(;ci;){const Oi=Bt.get(ci);if(Oi){const es=He.indexOf(Oi);He.splice(es+1,0,fe),Jn=!0;break}ci=this.driver.getParentElement(ci)}Jn||He.unshift(fe)}else He.push(fe);return Bt.set(ge,fe),fe}register(fe,ge){let He=this._namespaceLookup[fe];return He||(He=this.createNamespace(fe,ge)),He}registerTrigger(fe,ge,He){let Bt=this._namespaceLookup[fe];Bt&&Bt.register(ge,He)&&this.totalAnimations++}destroy(fe,ge){if(!fe)return;const He=this._fetchNamespace(fe);this.afterFlush(()=>{this.namespacesByHostElement.delete(He.hostElement),delete this._namespaceLookup[fe];const Bt=this._namespaceList.indexOf(He);Bt>=0&&this._namespaceList.splice(Bt,1)}),this.afterFlushAnimationsDone(()=>He.destroy(ge))}_fetchNamespace(fe){return this._namespaceLookup[fe]}fetchNamespacesByElement(fe){const ge=new Set,He=this.statesByElement.get(fe);if(He)for(let Bt of He.values())if(Bt.namespaceId){const bn=this._fetchNamespace(Bt.namespaceId);bn&&ge.add(bn)}return ge}trigger(fe,ge,He,Bt){if(ir(ge)){const bn=this._fetchNamespace(fe);if(bn)return bn.trigger(ge,He,Bt),!0}return!1}insertNode(fe,ge,He,Bt){if(!ir(ge))return;const bn=ge[ea];if(bn&&bn.setForRemoval){bn.setForRemoval=!1,bn.setForMove=!0;const Jn=this.collectedLeaveElements.indexOf(ge);Jn>=0&&this.collectedLeaveElements.splice(Jn,1)}if(fe){const Jn=this._fetchNamespace(fe);Jn&&Jn.insertNode(ge,He)}Bt&&this.collectEnterElement(ge)}collectEnterElement(fe){this.collectedEnterElements.push(fe)}markElementAsDisabled(fe,ge){ge?this.disabledNodes.has(fe)||(this.disabledNodes.add(fe),ca(fe,Lo)):this.disabledNodes.has(fe)&&(this.disabledNodes.delete(fe),Ma(fe,Lo))}removeNode(fe,ge,He,Bt){if(ir(ge)){const bn=fe?this._fetchNamespace(fe):null;if(bn?bn.removeNode(ge,Bt):this.markElementAsRemoved(fe,ge,!1,Bt),He){const Jn=this.namespacesByHostElement.get(ge);Jn&&Jn.id!==fe&&Jn.removeNode(ge,Bt)}}else this._onRemovalComplete(ge,Bt)}markElementAsRemoved(fe,ge,He,Bt,bn){this.collectedLeaveElements.push(ge),ge[ea]={namespaceId:fe,setForRemoval:Bt,hasAnimation:He,removedBeforeQueried:!1,previousTriggersValues:bn}}listen(fe,ge,He,Bt,bn){return ir(ge)?this._fetchNamespace(fe).listen(ge,He,Bt,bn):()=>{}}_buildInstruction(fe,ge,He,Bt,bn){return fe.transition.build(this.driver,fe.element,fe.fromState.value,fe.toState.value,He,Bt,fe.fromState.options,fe.toState.options,ge,bn)}destroyInnerAnimations(fe){let ge=this.driver.query(fe,Mo,!0);ge.forEach(He=>this.destroyActiveAnimationsForElement(He)),0!=this.playersByQueriedElement.size&&(ge=this.driver.query(fe,Ps,!0),ge.forEach(He=>this.finishActiveQueriedAnimationOnElement(He)))}destroyActiveAnimationsForElement(fe){const ge=this.playersByElement.get(fe);ge&&ge.forEach(He=>{He.queued?He.markedForDestroy=!0:He.destroy()})}finishActiveQueriedAnimationOnElement(fe){const ge=this.playersByQueriedElement.get(fe);ge&&ge.forEach(He=>He.finish())}whenRenderingDone(){return new Promise(fe=>{if(this.players.length)return bs(this.players).onDone(()=>fe());fe()})}processLeaveNode(fe){const ge=fe[ea];if(ge&&ge.setForRemoval){if(fe[ea]=Oo,ge.namespaceId){this.destroyInnerAnimations(fe);const He=this._fetchNamespace(ge.namespaceId);He&&He.clearElementCache(fe)}this._onRemovalComplete(fe,ge.setForRemoval)}fe.classList?.contains(Lo)&&this.markElementAsDisabled(fe,!1),this.driver.query(fe,".ng-animate-disabled",!0).forEach(He=>{this.markElementAsDisabled(He,!1)})}flush(fe=-1){let ge=[];if(this.newHostElements.size&&(this.newHostElements.forEach((He,Bt)=>this._balanceNamespaceList(He,Bt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let He=0;He<this.collectedEnterElements.length;He++)ca(this.collectedEnterElements[He],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const He=[];try{ge=this._flushAnimations(He,fe)}finally{for(let Bt=0;Bt<He.length;Bt++)He[Bt]()}}else for(let He=0;He<this.collectedLeaveElements.length;He++)this.processLeaveNode(this.collectedLeaveElements[He]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(He=>He()),this._flushFns=[],this._whenQuietFns.length){const He=this._whenQuietFns;this._whenQuietFns=[],ge.length?bs(ge).onDone(()=>{He.forEach(Bt=>Bt())}):He.forEach(Bt=>Bt())}}reportError(fe){throw function ui(ft){return new T.vHH(3402,!1)}()}_flushAnimations(fe,ge){const He=new zr,Bt=[],bn=new Map,Jn=[],ci=new Map,Oi=new Map,es=new Map,Cs=new Set;this.disabledNodes.forEach(Co=>{Cs.add(Co);const Ao=this.driver.query(Co,".ng-animate-queued",!0);for(let Wo=0;Wo<Ao.length;Wo++)Cs.add(Ao[Wo])});const _e=this.bodyNode,Ne=Array.from(this.statesByElement.keys()),v=Ml(Ne,this.collectedEnterElements),D=new Map;let W=0;v.forEach((Co,Ao)=>{const Wo=ni+W++;D.set(Ao,Wo),Co.forEach(tr=>ca(tr,Wo))});const L=[],Me=new Set,tn=new Set;for(let Co=0;Co<this.collectedLeaveElements.length;Co++){const Ao=this.collectedLeaveElements[Co],Wo=Ao[ea];Wo&&Wo.setForRemoval&&(L.push(Ao),Me.add(Ao),Wo.hasAnimation?this.driver.query(Ao,".ng-star-inserted",!0).forEach(tr=>Me.add(tr)):tn.add(Ao))}const oi=new Map,Vi=Ml(Ne,Array.from(Me));Vi.forEach((Co,Ao)=>{const Wo=qi+W++;oi.set(Ao,Wo),Co.forEach(tr=>ca(tr,Wo))}),fe.push(()=>{v.forEach((Co,Ao)=>{const Wo=D.get(Ao);Co.forEach(tr=>Ma(tr,Wo))}),Vi.forEach((Co,Ao)=>{const Wo=oi.get(Ao);Co.forEach(tr=>Ma(tr,Wo))}),L.forEach(Co=>{this.processLeaveNode(Co)})});const hs=[],Eo=[];for(let Co=this._namespaceList.length-1;Co>=0;Co--)this._namespaceList[Co].drainQueuedTransitions(ge).forEach(Wo=>{const tr=Wo.player,Ra=Wo.element;if(hs.push(tr),this.collectedEnterElements.length){const va=Ra[ea];if(va&&va.setForMove){if(va.previousTriggersValues&&va.previousTriggersValues.has(Wo.triggerName)){const Mr=va.previousTriggersValues.get(Wo.triggerName),Ba=this.statesByElement.get(Wo.element);if(Ba&&Ba.has(Wo.triggerName)){const Mc=Ba.get(Wo.triggerName);Mc.value=Mr,Ba.set(Wo.triggerName,Mc)}}return void tr.destroy()}}const pl=!_e||!this.driver.containsElement(_e,Ra),sl=oi.get(Ra),Dl=D.get(Ra),ra=this._buildInstruction(Wo,He,Dl,sl,pl);if(ra.errors&&ra.errors.length)return void Eo.push(ra);if(pl)return tr.onStart(()=>os(Ra,ra.fromStyles)),tr.onDestroy(()=>Fi(Ra,ra.toStyles)),void Bt.push(tr);if(Wo.isFallbackTransition)return tr.onStart(()=>os(Ra,ra.fromStyles)),tr.onDestroy(()=>Fi(Ra,ra.toStyles)),void Bt.push(tr);const mc=[];ra.timelines.forEach(va=>{va.stretchStartingKeyframe=!0,this.disabledNodes.has(va.element)||mc.push(va)}),ra.timelines=mc,He.append(Ra,ra.timelines),Jn.push({instruction:ra,player:tr,element:Ra}),ra.queriedElements.forEach(va=>ds(ci,va,[]).push(tr)),ra.preStyleProps.forEach((va,Mr)=>{if(va.size){let Ba=Oi.get(Mr);Ba||Oi.set(Mr,Ba=new Set),va.forEach((Mc,gc)=>Ba.add(gc))}}),ra.postStyleProps.forEach((va,Mr)=>{let Ba=es.get(Mr);Ba||es.set(Mr,Ba=new Set),va.forEach((Mc,gc)=>Ba.add(gc))})});if(Eo.length){const Co=[];Eo.forEach(Ao=>{Co.push(function Di(ft,fe){return new T.vHH(3505,!1)}())}),hs.forEach(Ao=>Ao.destroy()),this.reportError(Co)}const jo=new Map,gr=new Map;Jn.forEach(Co=>{const Ao=Co.element;He.has(Ao)&&(gr.set(Ao,Ao),this._beforeAnimationBuild(Co.player.namespaceId,Co.instruction,jo))}),Bt.forEach(Co=>{const Ao=Co.element;this._getPreviousPlayers(Ao,!1,Co.namespaceId,Co.triggerName,null).forEach(tr=>{ds(jo,Ao,[]).push(tr),tr.destroy()})});const Hr=L.filter(Co=>re(Co,Oi,es)),Yo=new Map;qa(Yo,this.driver,tn,es,rn.l3).forEach(Co=>{re(Co,Oi,es)&&Hr.push(Co)});const oc=new Map;v.forEach((Co,Ao)=>{qa(oc,this.driver,new Set(Co),Oi,rn.k1)}),Hr.forEach(Co=>{const Ao=Yo.get(Co),Wo=oc.get(Co);Yo.set(Co,new Map([...Array.from(Ao?.entries()??[]),...Array.from(Wo?.entries()??[])]))});const Al=[],ll=[],Zl={};Jn.forEach(Co=>{const{element:Ao,player:Wo,instruction:tr}=Co;if(He.has(Ao)){if(Cs.has(Ao))return Wo.onDestroy(()=>Fi(Ao,tr.toStyles)),Wo.disabled=!0,Wo.overrideTotalTime(tr.totalTime),void Bt.push(Wo);let Ra=Zl;if(gr.size>1){let sl=Ao;const Dl=[];for(;sl=sl.parentNode;){const ra=gr.get(sl);if(ra){Ra=ra;break}Dl.push(sl)}Dl.forEach(ra=>gr.set(ra,Ra))}const pl=this._buildAnimation(Wo.namespaceId,tr,jo,bn,oc,Yo);if(Wo.setRealPlayer(pl),Ra===Zl)Al.push(Wo);else{const sl=this.playersByElement.get(Ra);sl&&sl.length&&(Wo.parentPlayer=bs(sl)),Bt.push(Wo)}}else os(Ao,tr.fromStyles),Wo.onDestroy(()=>Fi(Ao,tr.toStyles)),ll.push(Wo),Cs.has(Ao)&&Bt.push(Wo)}),ll.forEach(Co=>{const Ao=bn.get(Co.element);if(Ao&&Ao.length){const Wo=bs(Ao);Co.setRealPlayer(Wo)}}),Bt.forEach(Co=>{Co.parentPlayer?Co.syncPlayerEvents(Co.parentPlayer):Co.destroy()});for(let Co=0;Co<L.length;Co++){const Ao=L[Co],Wo=Ao[ea];if(Ma(Ao,qi),Wo&&Wo.hasAnimation)continue;let tr=[];if(ci.size){let pl=ci.get(Ao);pl&&pl.length&&tr.push(...pl);let sl=this.driver.query(Ao,Ps,!0);for(let Dl=0;Dl<sl.length;Dl++){let ra=ci.get(sl[Dl]);ra&&ra.length&&tr.push(...ra)}}const Ra=tr.filter(pl=>!pl.destroyed);Ra.length?Ir(this,Ao,Ra):this.processLeaveNode(Ao)}return L.length=0,Al.forEach(Co=>{this.players.push(Co),Co.onDone(()=>{Co.destroy();const Ao=this.players.indexOf(Co);this.players.splice(Ao,1)}),Co.play()}),Al}elementContainsData(fe,ge){let He=!1;const Bt=ge[ea];return Bt&&Bt.setForRemoval&&(He=!0),this.playersByElement.has(ge)&&(He=!0),this.playersByQueriedElement.has(ge)&&(He=!0),this.statesByElement.has(ge)&&(He=!0),this._fetchNamespace(fe).elementContainsData(ge)||He}afterFlush(fe){this._flushFns.push(fe)}afterFlushAnimationsDone(fe){this._whenQuietFns.push(fe)}_getPreviousPlayers(fe,ge,He,Bt,bn){let Jn=[];if(ge){const ci=this.playersByQueriedElement.get(fe);ci&&(Jn=ci)}else{const ci=this.playersByElement.get(fe);if(ci){const Oi=!bn||bn==Br;ci.forEach(es=>{es.queued||!Oi&&es.triggerName!=Bt||Jn.push(es)})}}return(He||Bt)&&(Jn=Jn.filter(ci=>!(He&&He!=ci.namespaceId||Bt&&Bt!=ci.triggerName))),Jn}_beforeAnimationBuild(fe,ge,He){const bn=ge.element,Jn=ge.isRemovalTransition?void 0:fe,ci=ge.isRemovalTransition?void 0:ge.triggerName;for(const Oi of ge.timelines){const es=Oi.element,Cs=es!==bn,_e=ds(He,es,[]);this._getPreviousPlayers(es,Cs,Jn,ci,ge.toState).forEach(v=>{const D=v.getRealPlayer();D.beforeDestroy&&D.beforeDestroy(),v.destroy(),_e.push(v)})}os(bn,ge.fromStyles)}_buildAnimation(fe,ge,He,Bt,bn,Jn){const ci=ge.triggerName,Oi=ge.element,es=[],Cs=new Set,_e=new Set,Ne=ge.timelines.map(D=>{const W=D.element;Cs.add(W);const L=W[ea];if(L&&L.removedBeforeQueried)return new rn.ZN(D.duration,D.delay);const Me=W!==Oi,tn=function ne(ft){const fe=[];return qt(ft,fe),fe}((He.get(W)||Wr).map(jo=>jo.getRealPlayer())).filter(jo=>!!jo.element&&jo.element===W),oi=bn.get(W),Vi=Jn.get(W),hs=Es(0,this._normalizer,0,D.keyframes,oi,Vi),Eo=this._buildPlayer(D,hs,tn);if(D.subTimeline&&Bt&&_e.add(W),Me){const jo=new Ur(fe,ci,W);jo.setRealPlayer(Eo),es.push(jo)}return Eo});es.forEach(D=>{ds(this.playersByQueriedElement,D.element,[]).push(D),D.onDone(()=>function er(ft,fe,ge){let He=ft.get(fe);if(He){if(He.length){const Bt=He.indexOf(ge);He.splice(Bt,1)}0==He.length&&ft.delete(fe)}return He}(this.playersByQueriedElement,D.element,D))}),Cs.forEach(D=>ca(D,bo));const v=bs(Ne);return v.onDestroy(()=>{Cs.forEach(D=>Ma(D,bo)),Fi(Oi,ge.toStyles)}),_e.forEach(D=>{ds(Bt,D,[]).push(v)}),v}_buildPlayer(fe,ge,He){return ge.length>0?this.driver.animate(fe.element,ge,fe.duration,fe.delay,fe.easing,He):new rn.ZN(fe.duration,fe.delay)}}class Ur{constructor(fe,ge,He){this.namespaceId=fe,this.triggerName=ge,this.element=He,this._player=new rn.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(fe){this._containsRealPlayer||(this._player=fe,this._queuedCallbacks.forEach((ge,He)=>{ge.forEach(Bt=>ss(fe,He,void 0,Bt))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(fe.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(fe){this.totalTime=fe}syncPlayerEvents(fe){const ge=this._player;ge.triggerCallback&&fe.onStart(()=>ge.triggerCallback("start")),fe.onDone(()=>this.finish()),fe.onDestroy(()=>this.destroy())}_queueEvent(fe,ge){ds(this._queuedCallbacks,fe,[]).push(ge)}onDone(fe){this.queued&&this._queueEvent("done",fe),this._player.onDone(fe)}onStart(fe){this.queued&&this._queueEvent("start",fe),this._player.onStart(fe)}onDestroy(fe){this.queued&&this._queueEvent("destroy",fe),this._player.onDestroy(fe)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(fe){this.queued||this._player.setPosition(fe)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(fe){const ge=this._player;ge.triggerCallback&&ge.triggerCallback(fe)}}function ir(ft){return ft&&1===ft.nodeType}function jl(ft,fe){const ge=ft.style.display;return ft.style.display=fe??"none",ge}function qa(ft,fe,ge,He,Bt){const bn=[];ge.forEach(Oi=>bn.push(jl(Oi)));const Jn=[];He.forEach((Oi,es)=>{const Cs=new Map;Oi.forEach(_e=>{const Ne=fe.computeStyle(es,_e,Bt);Cs.set(_e,Ne),(!Ne||0==Ne.length)&&(es[ea]=Ta,Jn.push(es))}),ft.set(es,Cs)});let ci=0;return ge.forEach(Oi=>jl(Oi,bn[ci++])),Jn}function Ml(ft,fe){const ge=new Map;if(ft.forEach(ci=>ge.set(ci,[])),0==fe.length)return ge;const He=1,Bt=new Set(fe),bn=new Map;function Jn(ci){if(!ci)return He;let Oi=bn.get(ci);if(Oi)return Oi;const es=ci.parentNode;return Oi=ge.has(es)?es:Bt.has(es)?He:Jn(es),bn.set(ci,Oi),Oi}return fe.forEach(ci=>{const Oi=Jn(ci);Oi!==He&&ge.get(Oi).push(ci)}),ge}function ca(ft,fe){ft.classList?.add(fe)}function Ma(ft,fe){ft.classList?.remove(fe)}function Ir(ft,fe,ge){bs(ge).onDone(()=>ft.processLeaveNode(fe))}function qt(ft,fe){for(let ge=0;ge<ft.length;ge++){const He=ft[ge];He instanceof rn.ZE?qt(He.players,fe):fe.push(He)}}function re(ft,fe,ge){const He=ge.get(ft);if(!He)return!1;let Bt=fe.get(ft);return Bt?He.forEach(bn=>Bt.add(bn)):fe.set(ft,He),ge.delete(ft),!0}class Ie{constructor(fe,ge,He){this.bodyNode=fe,this._driver=ge,this._normalizer=He,this._triggerCache={},this.onRemovalComplete=(Bt,bn)=>{},this._transitionEngine=new wl(fe,ge,He),this._timelineEngine=new Js(fe,ge,He),this._transitionEngine.onRemovalComplete=(Bt,bn)=>this.onRemovalComplete(Bt,bn)}registerTrigger(fe,ge,He,Bt,bn){const Jn=fe+"-"+Bt;let ci=this._triggerCache[Jn];if(!ci){const Oi=[],es=[],Cs=ms(this._driver,bn,Oi,es);if(Oi.length)throw function De(ft,fe){return new T.vHH(3404,!1)}();ci=function Ci(ft,fe,ge){return new $i(ft,fe,ge)}(Bt,Cs,this._normalizer),this._triggerCache[Jn]=ci}this._transitionEngine.registerTrigger(ge,Bt,ci)}register(fe,ge){this._transitionEngine.register(fe,ge)}destroy(fe,ge){this._transitionEngine.destroy(fe,ge)}onInsert(fe,ge,He,Bt){this._transitionEngine.insertNode(fe,ge,He,Bt)}onRemove(fe,ge,He,Bt){this._transitionEngine.removeNode(fe,ge,Bt||!1,He)}disableAnimations(fe,ge){this._transitionEngine.markElementAsDisabled(fe,ge)}process(fe,ge,He,Bt){if("@"==He.charAt(0)){const[bn,Jn]=Xi(He);this._timelineEngine.command(bn,ge,Jn,Bt)}else this._transitionEngine.trigger(fe,ge,He,Bt)}listen(fe,ge,He,Bt,bn){if("@"==He.charAt(0)){const[Jn,ci]=Xi(He);return this._timelineEngine.listen(Jn,ge,ci,bn)}return this._transitionEngine.listen(fe,ge,He,Bt,bn)}flush(fe=-1){this._transitionEngine.flush(fe)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Zt=(()=>{class ft{constructor(ge,He,Bt){this._element=ge,this._startStyles=He,this._endStyles=Bt,this._state=0;let bn=ft.initialStylesByElement.get(ge);bn||ft.initialStylesByElement.set(ge,bn=new Map),this._initialStyles=bn}start(){this._state<1&&(this._startStyles&&Fi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fi(this._element,this._initialStyles),this._endStyles&&(Fi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ft.initialStylesByElement.delete(this._element),this._startStyles&&(os(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(os(this._element,this._endStyles),this._endStyles=null),Fi(this._element,this._initialStyles),this._state=3)}}return ft.initialStylesByElement=new WeakMap,ft})();function Rn(ft){let fe=null;return ft.forEach((ge,He)=>{(function ii(ft){return"display"===ft||"position"===ft})(He)&&(fe=fe||new Map,fe.set(He,ge))}),fe}class $n{constructor(fe,ge,He,Bt){this.element=fe,this.keyframes=ge,this.options=He,this._specialStyles=Bt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=He.duration,this._delay=He.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fe=>fe()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const fe=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,fe,this.options),this._finalKeyframe=fe.length?fe[fe.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(fe){const ge=[];return fe.forEach(He=>{ge.push(Object.fromEntries(He))}),ge}_triggerWebAnimation(fe,ge,He){return fe.animate(this._convertKeyframesToObject(ge),He)}onStart(fe){this._originalOnStartFns.push(fe),this._onStartFns.push(fe)}onDone(fe){this._originalOnDoneFns.push(fe),this._onDoneFns.push(fe)}onDestroy(fe){this._onDestroyFns.push(fe)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(fe=>fe()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(fe=>fe()),this._onDestroyFns=[])}setPosition(fe){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=fe*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const fe=new Map;this.hasStarted()&&this._finalKeyframe.forEach((He,Bt)=>{"offset"!==Bt&&fe.set(Bt,this._finished?He:Qs(this.element,Bt))}),this.currentSnapshot=fe}triggerCallback(fe){const ge="start"===fe?this._onStartFns:this._onDoneFns;ge.forEach(He=>He()),ge.length=0}}class Ii{validateStyleProperty(fe){return!0}validateAnimatableStyleProperty(fe){return!0}matchesElement(fe,ge){return!1}containsElement(fe,ge){return Be(fe,ge)}getParentElement(fe){return ei(fe)}query(fe,ge,He){return Jt(fe,ge,He)}computeStyle(fe,ge,He){return window.getComputedStyle(fe)[ge]}animate(fe,ge,He,Bt,bn,Jn=[]){const Oi={duration:He,delay:Bt,fill:0==Bt?"both":"forwards"};bn&&(Oi.easing=bn);const es=new Map,Cs=Jn.filter(v=>v instanceof $n);(function ia(ft,fe){return 0===ft||0===fe})(He,Bt)&&Cs.forEach(v=>{v.currentSnapshot.forEach((D,W)=>es.set(W,D))});let _e=function z(ft){return ft.length?ft[0]instanceof Map?ft:ft.map(fe=>gn(fe)):[]}(ge).map(v=>on(v));_e=function jr(ft,fe,ge){if(ge.size&&fe.length){let He=fe[0],Bt=[];if(ge.forEach((bn,Jn)=>{He.has(Jn)||Bt.push(Jn),He.set(Jn,bn)}),Bt.length)for(let bn=1;bn<fe.length;bn++){let Jn=fe[bn];Bt.forEach(ci=>Jn.set(ci,Qs(ft,ci)))}}return fe}(fe,_e,es);const Ne=function qe(ft,fe){let ge=null,He=null;return Array.isArray(fe)&&fe.length?(ge=Rn(fe[0]),fe.length>1&&(He=Rn(fe[fe.length-1]))):fe instanceof Map&&(ge=Rn(fe)),ge||He?new Zt(ft,ge,He):null}(fe,_e);return new $n(fe,_e,Oi,Ne)}}let ro=(()=>{class ft extends rn._j{constructor(ge,He){super(),this._nextAnimationId=0,this._renderer=ge.createRenderer(He.body,{id:"0",encapsulation:T.ifc.None,styles:[],data:{animation:[]}})}build(ge){const He=this._nextAnimationId.toString();this._nextAnimationId++;const Bt=Array.isArray(ge)?(0,rn.vP)(ge):ge;return Ss(this._renderer,null,He,"register",[Bt]),new rs(He,this._renderer)}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(T.FYo),T.LFG(vt.K0))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class rs extends rn.LC{constructor(fe,ge){super(),this._id=fe,this._renderer=ge}create(fe,ge){return new Ki(this._id,fe,ge||{},this._renderer)}}class Ki{constructor(fe,ge,He,Bt){this.id=fe,this.element=ge,this._renderer=Bt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",He)}_listen(fe,ge){return this._renderer.listen(this.element,`@@${this.id}:${fe}`,ge)}_command(fe,...ge){return Ss(this._renderer,this.element,this.id,fe,ge)}onDone(fe){this._listen("done",fe)}onStart(fe){this._listen("start",fe)}onDestroy(fe){this._listen("destroy",fe)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(fe){this._command("setPosition",fe)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ss(ft,fe,ge,He,Bt){return ft.setProperty(fe,`@@${ge}:${He}`,Bt)}const Ls="@.disabled";let Ms=(()=>{class ft{constructor(ge,He,Bt){this.delegate=ge,this.engine=He,this._zone=Bt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),He.onRemovalComplete=(bn,Jn)=>{const ci=Jn?.parentNode(bn);ci&&Jn.removeChild(ci,bn)}}createRenderer(ge,He){const bn=this.delegate.createRenderer(ge,He);if(!(ge&&He&&He.data&&He.data.animation)){let Cs=this._rendererCache.get(bn);return Cs||(Cs=new ao("",bn,this.engine,()=>this._rendererCache.delete(bn)),this._rendererCache.set(bn,Cs)),Cs}const Jn=He.id,ci=He.id+"-"+this._currentId;this._currentId++,this.engine.register(ci,ge);const Oi=Cs=>{Array.isArray(Cs)?Cs.forEach(Oi):this.engine.registerTrigger(Jn,ci,ge,Cs.name,Cs)};return He.data.animation.forEach(Oi),new Po(this,ci,bn,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(ge,He,Bt){ge>=0&&ge<this._microtaskId?this._zone.run(()=>He(Bt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(bn=>{const[Jn,ci]=bn;Jn(ci)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([He,Bt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(T.FYo),T.LFG(Ie),T.LFG(T.R0b))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class ao{constructor(fe,ge,He,Bt){this.namespaceId=fe,this.delegate=ge,this.engine=He,this._onDestroy=Bt,this.destroyNode=this.delegate.destroyNode?bn=>ge.destroyNode(bn):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(fe,ge){return this.delegate.createElement(fe,ge)}createComment(fe){return this.delegate.createComment(fe)}createText(fe){return this.delegate.createText(fe)}appendChild(fe,ge){this.delegate.appendChild(fe,ge),this.engine.onInsert(this.namespaceId,ge,fe,!1)}insertBefore(fe,ge,He,Bt=!0){this.delegate.insertBefore(fe,ge,He),this.engine.onInsert(this.namespaceId,ge,fe,Bt)}removeChild(fe,ge,He){this.engine.onRemove(this.namespaceId,ge,this.delegate,He)}selectRootElement(fe,ge){return this.delegate.selectRootElement(fe,ge)}parentNode(fe){return this.delegate.parentNode(fe)}nextSibling(fe){return this.delegate.nextSibling(fe)}setAttribute(fe,ge,He,Bt){this.delegate.setAttribute(fe,ge,He,Bt)}removeAttribute(fe,ge,He){this.delegate.removeAttribute(fe,ge,He)}addClass(fe,ge){this.delegate.addClass(fe,ge)}removeClass(fe,ge){this.delegate.removeClass(fe,ge)}setStyle(fe,ge,He,Bt){this.delegate.setStyle(fe,ge,He,Bt)}removeStyle(fe,ge,He){this.delegate.removeStyle(fe,ge,He)}setProperty(fe,ge,He){"@"==ge.charAt(0)&&ge==Ls?this.disableAnimations(fe,!!He):this.delegate.setProperty(fe,ge,He)}setValue(fe,ge){this.delegate.setValue(fe,ge)}listen(fe,ge,He){return this.delegate.listen(fe,ge,He)}disableAnimations(fe,ge){this.engine.disableAnimations(fe,ge)}}class Po extends ao{constructor(fe,ge,He,Bt,bn){super(ge,He,Bt,bn),this.factory=fe,this.namespaceId=ge}setProperty(fe,ge,He){"@"==ge.charAt(0)?"."==ge.charAt(1)&&ge==Ls?this.disableAnimations(fe,He=void 0===He||!!He):this.engine.process(this.namespaceId,fe,ge.slice(1),He):this.delegate.setProperty(fe,ge,He)}listen(fe,ge,He){if("@"==ge.charAt(0)){const Bt=function zs(ft){switch(ft){case"body":return document.body;case"document":return document;case"window":return window;default:return ft}}(fe);let bn=ge.slice(1),Jn="";return"@"!=bn.charAt(0)&&([bn,Jn]=function yo(ft){const fe=ft.indexOf(".");return[ft.substring(0,fe),ft.slice(fe+1)]}(bn)),this.engine.listen(this.namespaceId,Bt,bn,Jn,ci=>{this.factory.scheduleListenerCallback(ci._data||-1,He,ci)})}return this.delegate.listen(fe,ge,He)}}const Fo=[{provide:rn._j,useClass:ro},{provide:Or,useFactory:function Xs(){return new Xa}},{provide:Ie,useClass:(()=>{class ft extends Ie{constructor(ge,He,Bt,bn){super(ge.body,He,Bt)}ngOnDestroy(){this.flush()}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(vt.K0),T.LFG(Qe),T.LFG(Or),T.LFG(T.z2F))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac}),ft})()},{provide:T.FYo,useFactory:function lr(ft,fe,ge){return new Ms(ft,fe,ge)},deps:[e.se,Ie,T.R0b]}],no=[{provide:Qe,useFactory:()=>new Ii},{provide:T.QbO,useValue:"BrowserAnimations"},...Fo],Tr=[{provide:Qe,useClass:Ke},{provide:T.QbO,useValue:"NoopAnimations"},...Fo];let Oa=(()=>{class ft{static withConfig(ge){return{ngModule:ft,providers:ge.disableAnimations?Tr:no}}}return ft.\u0275fac=function(ge){return new(ge||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:no,imports:[e.b2]}),ft})();var Sr=_(14972),$r=_(43745);_(43496);const Jo=void 0,Uc=["uk",[["\u0434\u043f","\u043f\u043f"],Jo,Jo],Jo,[["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"],["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"]],Jo,[["\u0441","\u043b","\u0431","\u043a","\u0442","\u0447","\u043b","\u0441","\u0432","\u0436","\u043b","\u0433"],["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442.","\u0433\u0440\u0443\u0434."],["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]],[["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],["\u0441\u0456\u0447","\u043b\u044e\u0442","\u0431\u0435\u0440","\u043a\u0432\u0456","\u0442\u0440\u0430","\u0447\u0435\u0440","\u043b\u0438\u043f","\u0441\u0435\u0440","\u0432\u0435\u0440","\u0436\u043e\u0432","\u043b\u0438\u0441","\u0433\u0440\u0443"],["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]],[["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],["\u0434\u043e \u043d. \u0435.","\u043d. \u0435."],["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"]],1,[6,0],["dd.MM.yy","d MMM y '\u0440'.","d MMMM y '\u0440'.","EEEE, d MMMM y '\u0440'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Jo,"{1} '\u043e' {0}",Jo],[",","\xa0",";","%","+","-","\u0415","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"UAH","\u20b4","\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f",{AUD:[Jo,"$"],BRL:[Jo,"R$"],BYN:[Jo,"\u0440."],CAD:[Jo,"$"],CNY:[Jo,"\xa5"],EUR:[Jo,"\u20ac"],GBP:[Jo,"\xa3"],HKD:[Jo,"$"],ILS:[Jo,"\u20aa"],INR:[Jo,"\u20b9"],KRW:[Jo,"\u20a9"],MXN:[Jo,"$"],NZD:[Jo,"$"],PHP:[Jo,"\u20b1"],RUR:[Jo,"\u0440."],TWD:[Jo,"$"],UAH:["\u20b4"],UAK:["\u043a\u0440\u0431."],USD:[Jo,"$"],VND:[Jo,"\u20ab"],XCD:[Jo,"$"]},"ltr",function Yl(ft){const ge=Math.floor(Math.abs(ft)),He=ft.toString().replace(/^[^.]*\.?/,"").length;return 0===He&&ge%10==1&&ge%100!=11?1:0===He&&ge%10===Math.floor(ge%10)&&ge%10>=2&&ge%10<=4&&!(ge%100>=12&&ge%100<=14)?3:0===He&&ge%10==0||0===He&&ge%10===Math.floor(ge%10)&&ge%10>=5&&ge%10<=9||0===He&&ge%100===Math.floor(ge%100)&&ge%100>=11&&ge%100<=14?4:5}];var tl=_(55386);let hl=(()=>{var ft;class fe extends e.hm{constructor(){super(...arguments),this.overrides={swipe:{direction:tl.DIRECTION_ALL}}}}return(ft=fe).\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft.\u0275fac=function(){let ge;return function(Bt){return(ge||(ge=T.n5z(ft)))(Bt||ft)}}(),ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:[{provide:e.ok,useClass:ft}],imports:[vt.ez,e.t6]}),fe})();var Wl=_(71441),Xl=_(94954),gl=_(15861),kl=_(35684);const _l=new T.OlP("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),Ja=new T.OlP("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:ft}=(0,T.f3M)(vt.K0);if(!ft)throw new Error("Window is not available");return ft}}),nl=new T.OlP("ngx-data-layer",{providedIn:"root",factory:()=>function fc(ft){return ft?ft.dataLayer=ft.dataLayer||[]:null}((0,T.f3M)(Ja))}),xl=new T.OlP("ngx-gtag-fn",{providedIn:"root",factory:()=>function Sa(ft,fe){return ft?ft.gtag=ft.gtag||function(){fe.push(arguments)}:null}((0,T.f3M)(Ja),(0,T.f3M)(nl))});let ql=(()=>{class ft{constructor(ge,He,Bt){this.settings=ge,this._document=He,this._gtag=Bt}get document(){return this._document}throw(ge){(this.settings.enableTracing||(0,T.X6Q)())&&console&&console.error&&console.error(ge)}toKeyValue(ge){return ge.size>0?Array.from(ge).reduce((He,[Bt,bn])=>Object.defineProperty(He,Bt,{value:bn,enumerable:!0}),{}):void 0}gtag(...ge){try{this._gtag(...ge.filter(He=>void 0!==He))}catch(He){this.throw(He)}}event(ge,He,Bt,bn,Jn,ci){try{const Oi=new Map;He&&Oi.set("event_category",He),Bt&&Oi.set("event_label",Bt),bn&&Oi.set("value",bn),void 0!==Jn&&Oi.set("interaction",Jn),ci&&Object.entries(ci).map(([Cs,_e])=>Oi.set(Cs,_e));const es=this.toKeyValue(Oi);es?this.gtag("event",ge,es):this.gtag("event",ge)}catch(Oi){this.throw(Oi)}}pageView(ge,He,Bt,bn){try{const Jn=new Map([["page_path",ge]]);He&&Jn.set("page_title",He),(Bt||this.document)&&Jn.set("page_location",Bt||this.document.location.href),bn&&Object.entries(bn).map(([ci,Oi])=>Jn.set(ci,Oi)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(Jn))}catch(Jn){this.throw(Jn)}}appView(ge,He,Bt,bn,Jn){try{const ci=new Map([["screen_name",ge],["app_name",He]]);Bt&&ci.set("app_id",Bt),bn&&ci.set("app_version",bn),Jn&&ci.set("app_installer_id",Jn),this.gtag("event","screen_view",this.toKeyValue(ci))}catch(ci){this.throw(ci)}}set(...ge){try{this._gtag("set",...ge)}catch(He){this.throw(He)}}exception(ge,He){try{const Bt=new Map;ge&&Bt.set("description",ge),He&&Bt.set("fatal",He),this.toKeyValue(Bt)?this.gtag("event","exception",this.toKeyValue(Bt)):this.gtag("event","exception")}catch(Bt){this.throw(Bt)}}}return ft.\u0275fac=function(ge){return new(ge||ft)(T.LFG(_l),T.LFG(vt.K0),T.LFG(xl))},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const Va={provide:T.ip1,multi:!0,useFactory:function Ol(ft,fe,ge){return(0,gl.Z)(function*(){if(!ft.trackingCode)return void((0,T.X6Q)()||console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule."));if(!fe)return void((0,T.X6Q)()||console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface."));ge||(0,T.X6Q)()||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),ft.uri=ft.uri||`https://www.googletagmanager.com/gtag/js?id=${ft.trackingCode}`,ft.initCommands=ft?.initCommands??[],ft.initCommands.find(bn=>"config"===bn.command)||ft.initCommands.unshift({command:"config",values:[ft.trackingCode]}),ft.initCommands.find(bn=>"js"===bn.command)||ft.initCommands.unshift({command:"js",values:[new Date]});for(const bn of ft.initCommands)fe(bn.command,...bn.values);const He=ge.createElement("script");He.async=!0,He.src=ft.uri,ft.nonce&&He.setAttribute("nonce",ft.nonce),ge.getElementsByTagName("head")[0].appendChild(He)})},deps:[_l,xl,vt.K0]},Ca=new T.OlP("ngx-google-analytics-routing-settings",{factory:()=>({})}),$l={provide:T.tb,multi:!0,useFactory:function vl(ft,fe){return function(){var ge=(0,gl.Z)(function*(He){const Bt=He.injector.get(we.F0),{include:bn=[],exclude:Jn=[]}=ft??{},ci=ja(bn),Oi=ja(Jn),es=Bt.events.pipe((0,he.h)(Cs=>Cs instanceof we.m2),(0,kl.T)(1),(0,he.h)(Cs=>!(ci.length>0)||ci.some(_e=>_e.test(Cs.urlAfterRedirects))),(0,he.h)(Cs=>!(Oi.length>0&&Oi.some(_e=>_e.test(Cs.urlAfterRedirects))))).subscribe(Cs=>fe.pageView(Cs.urlAfterRedirects,void 0));He.onDestroy(()=>es.unsubscribe())});return function(He){return ge.apply(this,arguments)}}()},deps:[Ca,ql]};function ja(ft){return ft.map(fe=>fe instanceof RegExp?fe:new RegExp(`^${fe.replace("*",".*")}$`,"i"))}let il=(()=>{class ft{static forRoot(ge,He=[],Bt,bn,Jn){return{ngModule:ft,providers:[{provide:_l,useValue:{trackingCode:ge,initCommands:He,uri:Bt,enableTracing:bn,nonce:Jn}},Va]}}}return ft.\u0275fac=function(ge){return new(ge||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({}),ft})(),Tc=(()=>{class ft{static forRoot(ge){return{ngModule:ft,providers:[{provide:Ca,useValue:ge??{}}]}}}return ft.\u0275fac=function(ge){return new(ge||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:[$l],imports:[vt.ez,il]}),ft})();var ua=_(39102),Gc=_(1157);let Bl=(()=>{var ft;class fe{}return(ft=fe).\u0275fac=function(He){return new(He||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[vt.ez,Gc.z]}),fe})();function Ya(ft){return{resourceServer:{allowedUrls:[ft.apiUrl,ft.maintenanceUrl],sendAccessToken:!0}}}(0,Wl.Wf)("uk",Wl.is),(0,vt.qS)(Uc);let yl=(()=>{var ft;class fe{}return(ft=fe).\u0275fac=function(He){return new(He||ft)},ft.\u0275mod=T.oAB({type:ft,bootstrap:[en]}),ft.\u0275inj=T.cJS({providers:[ke.e8,Ee.U,Q,{provide:q.bd,useFactory:Ya,deps:[Ee.U]},{provide:q.Hy,useValue:localStorage},{provide:T.soG,useValue:"uk-UA"},{provide:ua.f8,useValue:"tinymce/tinymce.min.js"}],imports:[pe.r,e.b2,Oa,ct,lt.YZ,F.JF,In.UX,lt.ej,q.zr.forRoot(),Xl.VI.forRoot(),Sr.wI,$r.xu,hl,il.forRoot("G-BG32K1WQ4Q"),Tc,Si.register("ngsw-worker.js",{enabled:!(0,T.X6Q)(),registrationStrategy:"registerWhenStable:30000"}),Bl]}),fe})();ut.N.production&&(0,T.G48)(),e.q6().bootstrapModule(yl).then(ft=>{o.k.setInjector(ft.injector)}).catch(ft=>console.error(ft))},43496:(fn,ve,_)=>{(0,_(87160).a_)({name:"uk",identity:{language:"uk"},territory:"UA",numbers:{symbols:{decimal:",",group:"\xa0",list:";",percentSign:"%",plusSign:"+",minusSign:"-",approximatelySign:"~",exponential:"\u0415",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["n\xa0$"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-few":"n $","unitPattern-count-many":"n $","unitPattern-count-other":"n $"},accounting:{patterns:["n\xa0$"],groupSize:[3]},currencies:{ADP:{displayName:"\u0430\u043d\u0434\u043e\u0440\u0440\u0441\u044c\u043a\u0430 \u043f\u0435\u0441\u0435\u0442\u0430","displayName-count-one":"\u0430\u043d\u0434\u043e\u0440\u0440\u0441\u044c\u043a\u0430 \u043f\u0435\u0441\u0435\u0442\u0430","displayName-count-few":"\u0430\u043d\u0434\u043e\u0440\u0440\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u0435\u0442\u0438","displayName-count-many":"\u0430\u043d\u0434\u043e\u0440\u0440\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u0435\u0442","displayName-count-other":"\u0430\u043d\u0434\u043e\u0440\u0440\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u0435\u0442",symbol:"ADP"},AED:{displayName:"\u0434\u0438\u0440\u0445\u0430\u043c \u041e\u0410\u0415","displayName-count-one":"\u0434\u0438\u0440\u0445\u0430\u043c \u041e\u0410\u0415","displayName-count-few":"\u0434\u0438\u0440\u0445\u0430\u043c\u0438 \u041e\u0410\u0415","displayName-count-many":"\u0434\u0438\u0440\u0445\u0430\u043c\u0456\u0432 \u041e\u0410\u0415","displayName-count-other":"\u0434\u0438\u0440\u0445\u0430\u043c\u0430 \u041e\u0410\u0415",symbol:"AED"},AFA:{displayName:"\u0430\u0444\u0433\u0430\u043d\u0456 (1927\u20132002)",symbol:"AFA"},AFN:{displayName:"\u0430\u0444\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0430\u0444\u0433\u0430\u043d\u0456","displayName-count-one":"\u0430\u0444\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0430\u0444\u0433\u0430\u043d\u0456","displayName-count-few":"\u0430\u0444\u0433\u0430\u043d\u0441\u044c\u043a\u0456 \u0430\u0444\u0433\u0430\u043d\u0456","displayName-count-many":"\u0430\u0444\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0430\u0444\u0433\u0430\u043d\u0456","displayName-count-other":"\u0430\u0444\u0433\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0430\u0444\u0433\u0430\u043d\u0456",symbol:"AFN","symbol-alt-narrow":"\u060b"},ALK:{displayName:"ALK",symbol:"ALK"},ALL:{displayName:"\u0430\u043b\u0431\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u043a","displayName-count-one":"\u0430\u043b\u0431\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u043a","displayName-count-few":"\u0430\u043b\u0431\u0430\u043d\u0441\u044c\u043a\u0456 \u043b\u0435\u043a\u0438","displayName-count-many":"\u0430\u043b\u0431\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043b\u0435\u043a\u0456\u0432","displayName-count-other":"\u0430\u043b\u0431\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0435\u043a\u0430",symbol:"ALL"},AMD:{displayName:"\u0432\u0456\u0440\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0440\u0430\u043c","displayName-count-one":"\u0432\u0456\u0440\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0440\u0430\u043c","displayName-count-few":"\u0432\u0456\u0440\u043c\u0435\u043d\u0441\u044c\u043a\u0456 \u0434\u0440\u0430\u043c\u0438","displayName-count-many":"\u0432\u0456\u0440\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u0440\u0430\u043c\u0456\u0432","displayName-count-other":"\u0432\u0456\u0440\u043c\u0435\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0440\u0430\u043c\u0430",symbol:"AMD","symbol-alt-narrow":"\u058f"},ANG:{displayName:"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0430\u043d\u0442\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u043b\u044c\u0434\u0435\u043d","displayName-count-one":"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0430\u043d\u0442\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u043b\u044c\u0434\u0435\u043d","displayName-count-few":"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0456 \u0430\u043d\u0442\u0438\u043b\u044c\u0441\u044c\u043a\u0456 \u0433\u0443\u043b\u044c\u0434\u0435\u043d\u0438","displayName-count-many":"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u0430\u043d\u0442\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0433\u0443\u043b\u044c\u0434\u0435\u043d\u0456\u0432","displayName-count-other":"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u0430\u043d\u0442\u0438\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0433\u0443\u043b\u044c\u0434\u0435\u043d\u0430",symbol:"ANG"},AOA:{displayName:"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430","displayName-count-one":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430","displayName-count-few":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u043d\u0437\u0438","displayName-count-many":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u043d\u0437","displayName-count-other":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u043a\u0432\u0430\u043d\u0437\u0438",symbol:"AOA","symbol-alt-narrow":"Kz"},AOK:{displayName:"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 (1977\u20131990)","displayName-count-one":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 (1977\u20131990)","displayName-count-few":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u043d\u0437\u0438 (1977\u20131990)","displayName-count-many":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u043d\u0437 (1977\u20131990)","displayName-count-other":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u043a\u0432\u0430\u043d\u0437\u0438 (1977\u20131990)",symbol:"AOK"},AON:{displayName:"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043d\u043e\u0432\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 (1990\u20132000)","displayName-count-one":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043d\u043e\u0432\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 (1990\u20132000)","displayName-count-few":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u043d\u043e\u0432\u0456 \u043a\u0432\u0430\u043d\u0437\u0438 (1990\u20132000)","displayName-count-many":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043d\u043e\u0432\u0438\u0445 \u043a\u0432\u0430\u043d\u0437 (1990\u20132000)","displayName-count-other":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u043d\u043e\u0432\u043e\u0457 \u043a\u0432\u0430\u043d\u0437\u0438 (1990\u20132000)",symbol:"AON"},AOR:{displayName:"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 \u0440\u0435\u0430\u0434\u0436\u0430\u0441\u0442\u0430\u0434\u043e (1995\u20131999)","displayName-count-one":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u043d\u0437\u0430 \u0440\u0435\u0430\u0434\u0436\u0430\u0441\u0442\u0430\u0434\u043e (1995\u20131999)","displayName-count-few":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u043d\u0437\u0438 \u0440\u0435\u0430\u0434\u0436\u0430\u0441\u0442\u0430\u0434\u043e (1995\u20131999)","displayName-count-many":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u043d\u0437 \u0440\u0435\u0430\u0434\u0436\u0430\u0441\u0442\u0430\u0434\u043e (1995\u20131999)","displayName-count-other":"\u0430\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u043a\u0432\u0430\u043d\u0437\u0438 \u0440\u0435\u0430\u0434\u0436\u0430\u0441\u0442\u0430\u0434\u043e (1995\u20131999)",symbol:"AOR"},ARA:{displayName:"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u0430\u0432\u0441\u0442\u0440\u0430\u043b","displayName-count-one":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u0430\u0432\u0441\u0442\u0440\u0430\u043b","displayName-count-few":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0456 \u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0438","displayName-count-many":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0432","displayName-count-other":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0430",symbol:"ARA"},ARL:{displayName:"ARL",symbol:"ARL"},ARM:{displayName:"ARM",symbol:"ARM"},ARP:{displayName:"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e (1983\u20131985)",symbol:"ARP"},ARS:{displayName:"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u0430\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"ARS","symbol-alt-narrow":"$"},ATS:{displayName:"\u0430\u0432\u0441\u0442\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433",symbol:"ATS"},AUD:{displayName:"\u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0430\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"AUD","symbol-alt-narrow":"$"},AWG:{displayName:"\u0430\u0440\u0443\u0431\u0441\u044c\u043a\u0438\u0439 \u0444\u043b\u043e\u0440\u0438\u043d","displayName-count-one":"\u0430\u0440\u0443\u0431\u0441\u044c\u043a\u0438\u0439 \u0444\u043b\u043e\u0440\u0438\u043d","displayName-count-few":"\u0430\u0440\u0443\u0431\u0441\u044c\u043a\u0456 \u0444\u043b\u043e\u0440\u0438\u043d\u0438","displayName-count-many":"\u0430\u0440\u0443\u0431\u0441\u044c\u043a\u0438\u0445 \u0444\u043b\u043e\u0440\u0438\u043d\u0456\u0432","displayName-count-other":"\u0430\u0440\u0443\u0431\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u043b\u043e\u0440\u0438\u043d\u0430",symbol:"AWG"},AZM:{displayName:"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (1993\u20132006)","displayName-count-one":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (1993\u20132006)","displayName-count-few":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0456 \u043c\u0430\u043d\u0430\u0442\u0438 (1993\u20132006)","displayName-count-many":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043c\u0430\u043d\u0430\u0442\u0456\u0432 (1993\u20132006)","displayName-count-other":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043c\u0430\u043d\u0430\u0442\u0430 (1993\u20132006)",symbol:"AZM"},AZN:{displayName:"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442","displayName-count-one":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442","displayName-count-few":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0456 \u043c\u0430\u043d\u0430\u0442\u0438","displayName-count-many":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043c\u0430\u043d\u0430\u0442\u0456\u0432","displayName-count-other":"\u0430\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043c\u0430\u043d\u0430\u0442\u0430",symbol:"AZN","symbol-alt-narrow":"\u20bc"},BAD:{displayName:"\u0434\u0438\u043d\u0430\u0440 (\u0411\u043e\u0441\u043d\u0456\u044f \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430)",symbol:"BAD"},BAM:{displayName:"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0430 \u043c\u0430\u0440\u043a\u0430 \u0411\u043e\u0441\u043d\u0456\u0457 \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0438","displayName-count-one":"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0430 \u043c\u0430\u0440\u043a\u0430 \u0411\u043e\u0441\u043d\u0456\u0457 \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0438","displayName-count-few":"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0456 \u043c\u0430\u0440\u043a\u0438 \u0411\u043e\u0441\u043d\u0456\u0457 \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0438","displayName-count-many":"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0445 \u043c\u0430\u0440\u043e\u043a \u0411\u043e\u0441\u043d\u0456\u0457 \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0438","displayName-count-other":"\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u043e\u0457 \u043c\u0430\u0440\u043a\u0438 \u0411\u043e\u0441\u043d\u0456\u0457 \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0438",symbol:"BAM","symbol-alt-narrow":"KM"},BAN:{displayName:"BAN",symbol:"BAN"},BBD:{displayName:"\u0431\u0430\u0440\u0431\u0430\u0434\u043e\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0431\u0430\u0440\u0431\u0430\u0434\u043e\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0431\u0430\u0440\u0431\u0430\u0434\u043e\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0431\u0430\u0440\u0431\u0430\u0434\u043e\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0430\u0440\u0431\u0430\u0434\u043e\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"BBD","symbol-alt-narrow":"$"},BDT:{displayName:"\u0431\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0441\u044c\u043a\u0430 \u0442\u0430\u043a\u0430","displayName-count-one":"\u0431\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0441\u044c\u043a\u0430 \u0442\u0430\u043a\u0430","displayName-count-few":"\u0431\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0441\u044c\u043a\u0456 \u0442\u0430\u043a\u0438","displayName-count-many":"\u0431\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0441\u044c\u043a\u0438\u0445 \u0442\u0430\u043a","displayName-count-other":"\u0431\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0441\u044c\u043a\u043e\u0457 \u0442\u0430\u043a\u0438",symbol:"BDT","symbol-alt-narrow":"\u09f3"},BEC:{displayName:"\u0431\u0435\u043b\u044c\u0433\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a (\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0439)",symbol:"BEC"},BEF:{displayName:"\u0431\u0435\u043b\u044c\u0433\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"BEF"},BEL:{displayName:"\u0431\u0435\u043b\u044c\u0433\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a (\u0444\u0456\u043d\u0430\u043d\u0441\u043e\u0432\u0438\u0439)",symbol:"BEL"},BGL:{displayName:"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0442\u0432\u0435\u0440\u0434\u0438\u0439 \u043b\u0435\u0432",symbol:"BGL"},BGM:{displayName:"BGM",symbol:"BGM"},BGN:{displayName:"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0432","displayName-count-one":"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0432","displayName-count-few":"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u0456 \u043b\u0435\u0432\u0438","displayName-count-many":"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u0438\u0445 \u043b\u0435\u0432\u0456\u0432","displayName-count-other":"\u0431\u043e\u043b\u0433\u0430\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0435\u0432\u0430",symbol:"BGN"},BGO:{displayName:"BGO",symbol:"BGO"},BHD:{displayName:"\u0431\u0430\u0445\u0440\u0435\u0439\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0431\u0430\u0445\u0440\u0435\u0439\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0431\u0430\u0445\u0440\u0435\u0439\u043d\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0431\u0430\u0445\u0440\u0435\u0439\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0430\u0445\u0440\u0435\u0439\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"BHD"},BIF:{displayName:"\u0431\u0443\u0440\u0443\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0431\u0443\u0440\u0443\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0431\u0443\u0440\u0443\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0431\u0443\u0440\u0443\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0431\u0443\u0440\u0443\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"BIF"},BMD:{displayName:"\u0431\u0435\u0440\u043c\u0443\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0431\u0435\u0440\u043c\u0443\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0431\u0435\u0440\u043c\u0443\u0434\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0431\u0435\u0440\u043c\u0443\u0434\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0435\u0440\u043c\u0443\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"BMD","symbol-alt-narrow":"$"},BND:{displayName:"\u0431\u0440\u0443\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0431\u0440\u0443\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0431\u0440\u0443\u043d\u0435\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0431\u0440\u0443\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0440\u0443\u043d\u0435\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"BND","symbol-alt-narrow":"$"},BOB:{displayName:"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0456\u0430\u043d\u043e","displayName-count-one":"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0456\u0430\u043d\u043e","displayName-count-few":"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u0431\u043e\u043b\u0456\u0432\u0456\u0430\u043d\u043e","displayName-count-many":"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0431\u043e\u043b\u0456\u0432\u0456\u0430\u043d\u043e","displayName-count-other":"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u043e\u043b\u0456\u0432\u0456\u0430\u043d\u043e",symbol:"BOB","symbol-alt-narrow":"Bs"},BOL:{displayName:"BOL",symbol:"BOL"},BOP:{displayName:"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0435 \u043f\u0435\u0441\u043e",symbol:"BOP"},BOV:{displayName:"\u0431\u043e\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043c\u0432\u0434\u043e\u043b",symbol:"BOV"},BRB:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0435 \u043d\u043e\u0432\u0435 \u043a\u0440\u0443\u0437\u0435\u0439\u0440\u043e (1967\u20131986)",symbol:"BRB"},BRC:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0435 \u043a\u0440\u0443\u0437\u0430\u0434\u043e",symbol:"BRC"},BRE:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0435 \u043a\u0440\u0443\u0437\u0435\u0439\u0440\u043e (1990\u20131993)",symbol:"BRE"},BRL:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0440\u0435\u0430\u043b","displayName-count-one":"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0440\u0435\u0430\u043b","displayName-count-few":"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0456 \u0440\u0435\u0430\u043b\u0438","displayName-count-many":"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0440\u0435\u0430\u043b\u0456\u0432","displayName-count-other":"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0435\u0430\u043b\u0430",symbol:"BRL","symbol-alt-narrow":"R$"},BRN:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0435 \u043d\u043e\u0432\u0435 \u043a\u0440\u0443\u0437\u0430\u0434\u043e",symbol:"BRN"},BRR:{displayName:"\u0431\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u044c\u043a\u0435 \u043a\u0440\u0443\u0437\u0435\u0439\u0440\u043e",symbol:"BRR"},BRZ:{displayName:"BRZ",symbol:"BRZ"},BSD:{displayName:"\u0431\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0431\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0431\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0431\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"BSD","symbol-alt-narrow":"$"},BTN:{displayName:"\u0431\u0443\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043d\u0433\u0443\u043b\u0442\u0440\u0443\u043c","displayName-count-one":"\u0431\u0443\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043d\u0433\u0443\u043b\u0442\u0440\u0443\u043c","displayName-count-few":"\u0431\u0443\u0442\u0430\u043d\u0441\u044c\u043a\u0456 \u043d\u0433\u0443\u043b\u0442\u0440\u0443\u043c\u0438","displayName-count-many":"\u0431\u0443\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043d\u0433\u0443\u043b\u0442\u0440\u0443\u043c\u0456\u0432","displayName-count-other":"\u0431\u0443\u0442\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043d\u0433\u0443\u043b\u0442\u0440\u0443\u043c\u0430",symbol:"BTN"},BUK:{displayName:"\u0431\u0456\u0440\u043c\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u0456\u0430\u0442",symbol:"BUK"},BWP:{displayName:"\u0431\u043e\u0442\u0441\u0432\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0443\u043b\u0430","displayName-count-one":"\u0431\u043e\u0442\u0441\u0432\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0443\u043b\u0430","displayName-count-few":"\u0431\u043e\u0442\u0441\u0432\u0430\u043d\u0441\u044c\u043a\u0456 \u043f\u0443\u043b\u0438","displayName-count-many":"\u0431\u043e\u0442\u0441\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0443\u043b","displayName-count-other":"\u0431\u043e\u0442\u0441\u0432\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u043f\u0443\u043b\u0438",symbol:"BWP","symbol-alt-narrow":"P"},BYB:{displayName:"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (1994\u20131999)","displayName-count-one":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (1994\u20131999)","displayName-count-few":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0456 \u043d\u043e\u0432\u0456 \u0440\u0443\u0431\u043b\u0456 (1994\u20131999)","displayName-count-many":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0445 \u043d\u043e\u0432\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432 (1994\u20131999)","displayName-count-other":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f (1994\u20131999)",symbol:"BYB"},BYN:{displayName:"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-one":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-few":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0456 \u0440\u0443\u0431\u043b\u0456","displayName-count-many":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432","displayName-count-other":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f",symbol:"BYN","symbol-alt-narrow":"\u0440."},BYR:{displayName:"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (2000\u20132016)","displayName-count-one":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (2000\u20132016)","displayName-count-few":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0456 \u0440\u0443\u0431\u043b\u0456 (2000\u20132016)","displayName-count-many":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432 (2000\u20132016)","displayName-count-other":"\u0431\u0456\u043b\u043e\u0440\u0443\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f (2000\u20132016)",symbol:"BYR"},BZD:{displayName:"\u0431\u0435\u043b\u0456\u0437\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0431\u0435\u043b\u0456\u0437\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0431\u0435\u043b\u0456\u0437\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0431\u0435\u043b\u0456\u0437\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0431\u0435\u043b\u0456\u0437\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"BZD","symbol-alt-narrow":"$"},CAD:{displayName:"\u043a\u0430\u043d\u0430\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u043a\u0430\u043d\u0430\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u043a\u0430\u043d\u0430\u0434\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u043a\u0430\u043d\u0430\u0434\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u043a\u0430\u043d\u0430\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"CAD","symbol-alt-narrow":"$"},CDF:{displayName:"\u043a\u043e\u043d\u0433\u043e\u043b\u0435\u0437\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u043a\u043e\u043d\u0433\u043e\u043b\u0435\u0437\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u043a\u043e\u043d\u0433\u043e\u043b\u0435\u0437\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u043a\u043e\u043d\u0433\u043e\u043b\u0435\u0437\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u043a\u043e\u043d\u0433\u043e\u043b\u0435\u0437\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"CDF"},CHE:{displayName:"\u0454\u0432\u0440\u043e WIR",symbol:"CHE"},CHF:{displayName:"\u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"CHF"},CHW:{displayName:"\u0444\u0440\u0430\u043d\u043a WIR",symbol:"CHW"},CLE:{displayName:"CLE",symbol:"CLE"},CLF:{displayName:"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u044e\u043d\u0456\u0434\u0430\u0434\u0435\u0441 \u0434\u0435 \u0444\u043e\u043c\u0435\u043d\u0442\u043e",symbol:"CLF"},CLP:{displayName:"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u0447\u0438\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"CLP","symbol-alt-narrow":"$"},CNH:{displayName:"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u043e\u0444\u0448\u043e\u0440\u043d\u0438\u0439 \u044e\u0430\u043d\u044c","displayName-count-one":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u043e\u0444\u0448\u043e\u0440\u043d\u0438\u0439 \u044e\u0430\u043d\u044c","displayName-count-few":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0456 \u043e\u0444\u0448\u043e\u0440\u043d\u0456 \u044e\u0430\u043d\u0456","displayName-count-many":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0445 \u043e\u0444\u0448\u043e\u0440\u043d\u0438\u0445 \u044e\u0430\u043d\u0456\u0432","displayName-count-other":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u043e\u0444\u0448\u043e\u0440\u043d\u043e\u0433\u043e \u044e\u0430\u043d\u044f",symbol:"CNH"},CNX:{displayName:"CNX",symbol:"CNX"},CNY:{displayName:"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u044e\u0430\u043d\u044c","displayName-count-one":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u044e\u0430\u043d\u044c","displayName-count-few":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0456 \u044e\u0430\u043d\u0456","displayName-count-many":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u0438\u0445 \u044e\u0430\u043d\u0456\u0432","displayName-count-other":"\u043a\u0438\u0442\u0430\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u044e\u0430\u043d\u044f",symbol:"CNY","symbol-alt-narrow":"\xa5"},COP:{displayName:"\u043a\u043e\u043b\u0443\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u043a\u043e\u043b\u0443\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u043a\u043e\u043b\u0443\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u043a\u043e\u043b\u0443\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u043a\u043e\u043b\u0443\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"COP","symbol-alt-narrow":"$"},COU:{displayName:"\u043e\u0434\u0438\u043d\u0438\u0446\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0457 \u0432\u0430\u0440\u0442\u043e\u0441\u0442\u0456",symbol:"COU"},CRC:{displayName:"\u043a\u043e\u0441\u0442\u0430\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043b\u043e\u043d","displayName-count-one":"\u043a\u043e\u0441\u0442\u0430\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043b\u043e\u043d","displayName-count-few":"\u043a\u043e\u0441\u0442\u0430\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u043a\u043e\u043b\u043e\u043d\u0438","displayName-count-many":"\u043a\u043e\u0441\u0442\u0430\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u043e\u043b\u043e\u043d\u0456\u0432","displayName-count-other":"\u043a\u043e\u0441\u0442\u0430\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u043e\u043b\u043e\u043d\u0430",symbol:"CRC","symbol-alt-narrow":"\u20a1"},CSD:{displayName:"\u0441\u0442\u0430\u0440\u0438\u0439 \u0441\u0435\u0440\u0431\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"CSD"},CSK:{displayName:"\u0447\u0435\u0445\u043e\u0441\u043b\u043e\u0432\u0430\u0446\u044c\u043a\u0430 \u0442\u0432\u0435\u0440\u0434\u0430 \u043a\u0440\u043e\u043d\u0430",symbol:"CSK"},CUC:{displayName:"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0456 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"CUC","symbol-alt-narrow":"$"},CUP:{displayName:"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u043a\u0443\u0431\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"CUP","symbol-alt-narrow":"$"},CVE:{displayName:"\u0435\u0441\u043a\u0443\u0434\u043e \u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435","displayName-count-one":"\u0435\u0441\u043a\u0443\u0434\u043e \u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435","displayName-count-few":"\u0435\u0441\u043a\u0443\u0434\u043e \u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435","displayName-count-many":"\u0435\u0441\u043a\u0443\u0434\u043e \u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435","displayName-count-other":"\u0435\u0441\u043a\u0443\u0434\u043e \u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435",symbol:"CVE"},CYP:{displayName:"\u043a\u0456\u043f\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442",symbol:"CYP"},CZK:{displayName:"\u0447\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u0447\u0435\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u0447\u0435\u0441\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0438","displayName-count-many":"\u0447\u0435\u0441\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u0447\u0435\u0441\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"CZK","symbol-alt-narrow":"K\u010d"},DDM:{displayName:"\u043c\u0430\u0440\u043a\u0430 \u041d\u0414\u0420",symbol:"DDM"},DEM:{displayName:"\u043d\u0456\u043c\u0435\u0446\u044c\u043a\u0430 \u043c\u0430\u0440\u043a\u0430",symbol:"DEM"},DJF:{displayName:"\u0434\u0436\u0438\u0431\u0443\u0442\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0434\u0436\u0438\u0431\u0443\u0442\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0434\u0436\u0438\u0431\u0443\u0442\u0456\u0439\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0434\u0436\u0438\u0431\u0443\u0442\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0434\u0436\u0438\u0431\u0443\u0442\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"DJF"},DKK:{displayName:"\u0434\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u0434\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u0434\u0430\u043d\u0441\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0438","displayName-count-many":"\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u0434\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"DKK","symbol-alt-narrow":"kr"},DOP:{displayName:"\u0434\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u0434\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u0434\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u0434\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u0434\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"DOP","symbol-alt-narrow":"$"},DZD:{displayName:"\u0430\u043b\u0436\u0438\u0440\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0430\u043b\u0436\u0438\u0440\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0430\u043b\u0436\u0438\u0440\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0430\u043b\u0436\u0438\u0440\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0430\u043b\u0436\u0438\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"DZD"},ECS:{displayName:"\u0435\u043a\u0432\u0430\u0434\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0441\u0443\u043a\u0440\u0435",symbol:"ECS"},ECV:{displayName:"\u0435\u043a\u0432\u0430\u0434\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u044e\u043d\u0456\u0434\u0430\u0434 \u0434\u0435 \u0432\u0430\u043b\u043e\u0440 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435",symbol:"ECV"},EEK:{displayName:"\u0435\u0441\u0442\u043e\u043d\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u0435\u0441\u0442\u043e\u043d\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u0435\u0441\u0442\u043e\u043d\u0441\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0438","displayName-count-many":"\u0435\u0441\u0442\u043e\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u0435\u0441\u0442\u043e\u043d\u0441\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"EEK"},EGP:{displayName:"\u0454\u0433\u0438\u043f\u0435\u0442\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u0454\u0433\u0438\u043f\u0435\u0442\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u0454\u0433\u0438\u043f\u0435\u0442\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u0454\u0433\u0438\u043f\u0435\u0442\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u0454\u0433\u0438\u043f\u0435\u0442\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"EGP","symbol-alt-narrow":"E\xa3"},ERN:{displayName:"\u0435\u0440\u0438\u0442\u0440\u0435\u0439\u0441\u044c\u043a\u0430 \u043d\u0430\u043a\u0444\u0430","displayName-count-one":"\u0435\u0440\u0438\u0442\u0440\u0435\u0439\u0441\u044c\u043a\u0430 \u043d\u0430\u043a\u0444\u0430","displayName-count-few":"\u0435\u0440\u0438\u0442\u0440\u0435\u0439\u0441\u044c\u043a\u0456 \u043d\u0430\u043a\u0444\u0438","displayName-count-many":"\u0435\u0440\u0438\u0442\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u043d\u0430\u043a\u0444","displayName-count-other":"\u0435\u0440\u0438\u0442\u0440\u0435\u0439\u0441\u044c\u043a\u043e\u0457 \u043d\u0430\u043a\u0444\u0438",symbol:"ERN"},ESA:{displayName:'\u0456\u0441\u043f\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0435\u0441\u0435\u0442\u0430 (\\"\u0410\\" \u0440\u0430\u0445\u0443\u043d\u043e\u043a)',symbol:"ESA"},ESB:{displayName:"\u0456\u0441\u043f\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0435\u0441\u0435\u0442\u0430 (\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0456 \u0440\u0430\u0445\u0443\u043d\u043a\u0438)",symbol:"ESB"},ESP:{displayName:"\u0456\u0441\u043f\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0435\u0441\u0435\u0442\u0430",symbol:"ESP","symbol-alt-narrow":"\u20a7"},ETB:{displayName:"\u0435\u0444\u0456\u043e\u043f\u0441\u044c\u043a\u0438\u0439 \u0431\u0438\u0440","displayName-count-one":"\u0435\u0444\u0456\u043e\u043f\u0441\u044c\u043a\u0438\u0439 \u0431\u0438\u0440","displayName-count-few":"\u0435\u0444\u0456\u043e\u043f\u0441\u044c\u043a\u0456 \u0431\u0438\u0440\u0438","displayName-count-many":"\u0435\u0444\u0456\u043e\u043f\u0441\u044c\u043a\u0438\u0445 \u0431\u0438\u0440\u0456\u0432","displayName-count-other":"\u0435\u0444\u0456\u043e\u043f\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u0438\u0440\u0430",symbol:"ETB"},EUR:{displayName:"\u0454\u0432\u0440\u043e","displayName-count-one":"\u0454\u0432\u0440\u043e","displayName-count-few":"\u0454\u0432\u0440\u043e","displayName-count-many":"\u0454\u0432\u0440\u043e","displayName-count-other":"\u0454\u0432\u0440\u043e",symbol:"EUR","symbol-alt-narrow":"\u20ac"},FIM:{displayName:"\u0444\u0456\u043d\u043b\u044f\u043d\u0434\u0441\u044c\u043a\u0430 \u043c\u0430\u0440\u043a\u0430",symbol:"FIM"},FJD:{displayName:"\u0444\u0456\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0444\u0456\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0444\u0456\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0444\u0456\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0444\u0456\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"FJD","symbol-alt-narrow":"$"},FKP:{displayName:"\u0444\u0443\u043d\u0442 \u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-one":"\u0444\u0443\u043d\u0442 \u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-few":"\u0444\u0443\u043d\u0442\u0438 \u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-many":"\u0444\u0443\u043d\u0442\u0456\u0432 \u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-other":"\u0444\u0443\u043d\u0442\u0430 \u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432",symbol:"FKP","symbol-alt-narrow":"\xa3"},FRF:{displayName:"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"FRF"},GBP:{displayName:"\u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"GBP","symbol-alt-narrow":"\xa3"},GEK:{displayName:"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u0443\u043f\u043e\u043d","displayName-count-one":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u0443\u043f\u043e\u043d","displayName-count-few":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0456 \u043a\u0443\u043f\u043e\u043d\u0438","displayName-count-many":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u0443\u043f\u043e\u043d\u0456\u0432","displayName-count-other":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u0443\u043f\u043e\u043d\u0430",symbol:"GEK"},GEL:{displayName:"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0430\u0440\u0456","displayName-count-one":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0430\u0440\u0456","displayName-count-few":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0456 \u043b\u0430\u0440\u0456","displayName-count-many":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u0438\u0445 \u043b\u0430\u0440\u0456","displayName-count-other":"\u0433\u0440\u0443\u0437\u0438\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0430\u0440\u0456",symbol:"GEL","symbol-alt-narrow":"\u20be"},GHC:{displayName:"\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0441\u0435\u0434\u0456 (1979\u20132007)",symbol:"GHC"},GHS:{displayName:"\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0441\u0435\u0434\u0456","displayName-count-one":"\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0441\u0435\u0434\u0456","displayName-count-few":"\u0433\u0430\u043d\u0441\u044c\u043a\u0456 \u0441\u0435\u0434\u0456","displayName-count-many":"\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0441\u0435\u0434\u0456","displayName-count-other":"\u0433\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0441\u0435\u0434\u0456",symbol:"GHS","symbol-alt-narrow":"GH\u20b5"},GIP:{displayName:"\u0433\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u0433\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u0433\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u0433\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u0433\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"GIP","symbol-alt-narrow":"\xa3"},GMD:{displayName:"\u0433\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u0430\u043b\u0430\u0441\u0456","displayName-count-one":"\u0433\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u0430\u043b\u0430\u0441\u0456","displayName-count-few":"\u0433\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u0430\u043b\u0430\u0441\u0456","displayName-count-many":"\u0433\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u0430\u043b\u0430\u0441\u0456","displayName-count-other":"\u0433\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0430\u043b\u0430\u0441\u0456",symbol:"GMD"},GNF:{displayName:"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"GNF","symbol-alt-narrow":"FG"},GNS:{displayName:"\u0433\u0432\u0456\u043d\u0435\u0439\u0441\u044c\u043a\u0435 \u0441\u0456\u043b\u0456",symbol:"GNS"},GQE:{displayName:"\u0435\u043a\u0432\u0435\u043b\u0435 (\u0415\u043a\u0432\u0430\u0442\u043e\u0440\u0456\u0430\u043b\u044c\u043d\u0430 \u0490\u0432\u0456\u043d\u0435\u044f)",symbol:"GQE"},GRD:{displayName:"\u0433\u0440\u0435\u0446\u044c\u043a\u0430 \u0434\u0440\u0430\u0445\u043c\u0430",symbol:"GRD"},GTQ:{displayName:"\u0433\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u043a\u0435\u0442\u0441\u0430\u043b\u044c","displayName-count-one":"\u0433\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u043a\u0435\u0442\u0441\u0430\u043b\u044c","displayName-count-few":"\u0433\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u044c\u0441\u044c\u043a\u0456 \u043a\u0435\u0442\u0441\u0430\u043b\u0456","displayName-count-many":"\u0433\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043a\u0435\u0442\u0441\u0430\u043b\u0456\u0432","displayName-count-other":"\u0433\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u0435\u0442\u0441\u0430\u043b\u044f",symbol:"GTQ","symbol-alt-narrow":"Q"},GWE:{displayName:"\u0435\u0441\u043a\u0443\u0434\u043e \u043f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u0433\u0432\u0456\u043d\u0435\u0457",symbol:"GWE"},GWP:{displayName:"\u043f\u0435\u0441\u043e \u0413\u0432\u0456\u043d\u0435\u0457-\u0411\u0456\u0441\u0430\u0443",symbol:"GWP"},GYD:{displayName:"\u0433\u0430\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0433\u0430\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0433\u0430\u044f\u043d\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0433\u0430\u044f\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0433\u0430\u044f\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"GYD","symbol-alt-narrow":"$"},HKD:{displayName:"\u0433\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0433\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0433\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0433\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0433\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"HKD","symbol-alt-narrow":"$"},HNL:{displayName:"\u0433\u043e\u043d\u0434\u0443\u0440\u0430\u0441\u044c\u043a\u0430 \u043b\u0435\u043c\u043f\u0456\u0440\u0430","displayName-count-one":"\u0433\u043e\u043d\u0434\u0443\u0440\u0430\u0441\u044c\u043a\u0430 \u043b\u0435\u043c\u043f\u0456\u0440\u0430","displayName-count-few":"\u0433\u043e\u043d\u0434\u0443\u0440\u0430\u0441\u044c\u043a\u0456 \u043b\u0435\u043c\u043f\u0456\u0440\u0438","displayName-count-many":"\u0433\u043e\u043d\u0434\u0443\u0440\u0430\u0441\u044c\u043a\u0438\u0445 \u043b\u0435\u043c\u043f\u0456\u0440","displayName-count-other":"\u0433\u043e\u043d\u0434\u0443\u0440\u0430\u0441\u044c\u043a\u043e\u0457 \u043b\u0435\u043c\u043f\u0456\u0440\u0438",symbol:"HNL","symbol-alt-narrow":"L"},HRD:{displayName:"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"HRD"},HRK:{displayName:"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u0430 \u043a\u0443\u043d\u0430","displayName-count-one":"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u0430 \u043a\u0443\u043d\u0430","displayName-count-few":"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u0456 \u043a\u0443\u043d\u0438","displayName-count-many":"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u0438\u0445 \u043a\u0443\u043d","displayName-count-other":"\u0445\u043e\u0440\u0432\u0430\u0442\u0441\u044c\u043a\u043e\u0457 \u043a\u0443\u043d\u0438",symbol:"HRK","symbol-alt-narrow":"kn"},HTG:{displayName:"\u0433\u0430\u0457\u0442\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u0440\u0434","displayName-count-one":"\u0433\u0430\u0457\u0442\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u0440\u0434","displayName-count-few":"\u0433\u0430\u0457\u0442\u044f\u043d\u0441\u044c\u043a\u0456 \u0433\u0443\u0440\u0434\u0438","displayName-count-many":"\u0433\u0430\u0457\u0442\u044f\u043d\u0441\u044c\u043a\u0438\u0445 \u0433\u0443\u0440\u0434\u0456\u0432","displayName-count-other":"\u0433\u0430\u0457\u0442\u044f\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0433\u0443\u0440\u0434\u0430",symbol:"HTG"},HUF:{displayName:"\u0443\u0433\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u043e\u0440\u0438\u043d\u0442","displayName-count-one":"\u0443\u0433\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u043e\u0440\u0438\u043d\u0442","displayName-count-few":"\u0443\u0433\u043e\u0440\u0441\u044c\u043a\u0456 \u0444\u043e\u0440\u0438\u043d\u0442\u0438","displayName-count-many":"\u0443\u0433\u043e\u0440\u0441\u044c\u043a\u0438\u0445 \u0444\u043e\u0440\u0438\u043d\u0442\u0456\u0432","displayName-count-other":"\u0443\u0433\u043e\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u0438\u043d\u0442\u0430",symbol:"HUF","symbol-alt-narrow":"Ft"},IDR:{displayName:"\u0456\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u0456\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u0456\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u0456\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u0456\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457",symbol:"IDR","symbol-alt-narrow":"Rp"},IEP:{displayName:"\u0456\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442",symbol:"IEP"},ILP:{displayName:"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442",symbol:"ILP"},ILR:{displayName:"ILR",symbol:"ILR"},ILS:{displayName:"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0448\u0435\u043a\u0435\u043b\u044c","displayName-count-one":"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0448\u0435\u043a\u0435\u043b\u044c","displayName-count-few":"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u0456 \u043d\u043e\u0432\u0456 \u0448\u0435\u043a\u0435\u043b\u0456","displayName-count-many":"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u043d\u043e\u0432\u0438\u0445 \u0448\u0435\u043a\u0435\u043b\u0456\u0432","displayName-count-other":"\u0456\u0437\u0440\u0430\u0457\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0448\u0435\u043a\u0435\u043b\u044f",symbol:"ILS","symbol-alt-narrow":"\u20aa"},INR:{displayName:"\u0456\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u0456\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u0456\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u0456\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u0456\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"INR","symbol-alt-narrow":"\u20b9"},IQD:{displayName:"\u0456\u0440\u0430\u043a\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0456\u0440\u0430\u043a\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0456\u0440\u0430\u043a\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0456\u0440\u0430\u043a\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0456\u0440\u0430\u043a\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"IQD"},IRR:{displayName:"\u0456\u0440\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-one":"\u0456\u0440\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-few":"\u0456\u0440\u0430\u043d\u0441\u044c\u043a\u0456 \u0440\u0456\u0430\u043b\u0438","displayName-count-many":"\u0456\u0440\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0430\u043b\u0456\u0432","displayName-count-other":"\u0456\u0440\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0430\u043b\u0430",symbol:"IRR"},ISJ:{displayName:"ISJ",symbol:"ISJ"},ISK:{displayName:"\u0456\u0441\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u0456\u0441\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u0456\u0441\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0456","displayName-count-many":"\u0456\u0441\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u0456\u0441\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"ISK","symbol-alt-narrow":"kr"},ITL:{displayName:"\u0456\u0442\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0430 \u043b\u0456\u0440\u0430",symbol:"ITL"},JMD:{displayName:"\u044f\u043c\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u044f\u043c\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u044f\u043c\u0430\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u044f\u043c\u0430\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u044f\u043c\u0430\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"JMD","symbol-alt-narrow":"$"},JOD:{displayName:"\u0439\u043e\u0440\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0439\u043e\u0440\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0439\u043e\u0440\u0434\u0430\u043d\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0439\u043e\u0440\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0439\u043e\u0440\u0434\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"JOD"},JPY:{displayName:"\u044f\u043f\u043e\u043d\u0441\u044c\u043a\u0430 \u0454\u043d\u0430","displayName-count-one":"\u044f\u043f\u043e\u043d\u0441\u044c\u043a\u0430 \u0454\u043d\u0430","displayName-count-few":"\u044f\u043f\u043e\u043d\u0441\u044c\u043a\u0456 \u0454\u043d\u0438","displayName-count-many":"\u044f\u043f\u043e\u043d\u0441\u044c\u043a\u0438\u0445 \u0454\u043d","displayName-count-other":"\u044f\u043f\u043e\u043d\u0441\u044c\u043a\u043e\u0457 \u0454\u043d\u0438",symbol:"\xa5","symbol-alt-narrow":"\xa5"},KES:{displayName:"\u043a\u0435\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-one":"\u043a\u0435\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-few":"\u043a\u0435\u043d\u0456\u0439\u0441\u044c\u043a\u0456 \u0448\u0438\u043b\u0456\u043d\u0433\u0438","displayName-count-many":"\u043a\u0435\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0448\u0438\u043b\u0456\u043d\u0433\u0456\u0432","displayName-count-other":"\u043a\u0435\u043d\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0448\u0438\u043b\u0456\u043d\u0433\u0430",symbol:"KES"},KGS:{displayName:"\u043a\u0438\u0440\u0433\u0438\u0437\u044c\u043a\u0438\u0439 \u0441\u043e\u043c","displayName-count-one":"\u043a\u0438\u0440\u0433\u0438\u0437\u044c\u043a\u0438\u0439 \u0441\u043e\u043c","displayName-count-few":"\u043a\u0438\u0440\u0433\u0438\u0437\u044c\u043a\u0456 \u0441\u043e\u043c\u0438","displayName-count-many":"\u043a\u0438\u0440\u0433\u0438\u0437\u044c\u043a\u0438\u0445 \u0441\u043e\u043c\u0456\u0432","displayName-count-other":"\u043a\u0438\u0440\u0433\u0438\u0437\u044c\u043a\u043e\u0433\u043e \u0441\u043e\u043c\u0430",symbol:"KGS"},KHR:{displayName:"\u043a\u0430\u043c\u0431\u043e\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0454\u043b\u044c","displayName-count-one":"\u043a\u0430\u043c\u0431\u043e\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0454\u043b\u044c","displayName-count-few":"\u043a\u0430\u043c\u0431\u043e\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0456\u0454\u043b\u0456","displayName-count-many":"\u043a\u0430\u043c\u0431\u043e\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0454\u043b\u0456\u0432","displayName-count-other":"\u043a\u0430\u043c\u0431\u043e\u0434\u0436\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0454\u043b\u044f",symbol:"KHR","symbol-alt-narrow":"\u17db"},KMF:{displayName:"\u043a\u043e\u043c\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u043a\u043e\u043c\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u043a\u043e\u043c\u043e\u0440\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u043a\u043e\u043c\u043e\u0440\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u043a\u043e\u043c\u043e\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"KMF","symbol-alt-narrow":"CF"},KPW:{displayName:"\u043f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0432\u043e\u043d","displayName-count-one":"\u043f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0432\u043e\u043d","displayName-count-few":"\u043f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0456 \u0432\u043e\u043d\u0438","displayName-count-many":"\u043f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u0432\u043e\u043d\u0456\u0432","displayName-count-other":"\u043f\u0456\u0432\u043d\u0456\u0447\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0432\u043e\u043d\u0430",symbol:"KPW","symbol-alt-narrow":"\u20a9"},KRH:{displayName:"KRH",symbol:"KRH"},KRO:{displayName:"KRO",symbol:"KRO"},KRW:{displayName:"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0432\u043e\u043d","displayName-count-one":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0439 \u0432\u043e\u043d","displayName-count-few":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0456 \u0432\u043e\u043d\u0438","displayName-count-many":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u0432\u043e\u043d\u0456\u0432","displayName-count-other":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u043a\u043e\u0440\u0435\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0432\u043e\u043d\u0430",symbol:"KRW","symbol-alt-narrow":"\u20a9"},KWD:{displayName:"\u043a\u0443\u0432\u0435\u0439\u0442\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u043a\u0443\u0432\u0435\u0439\u0442\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u043a\u0443\u0432\u0435\u0439\u0442\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u043a\u0443\u0432\u0435\u0439\u0442\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u043a\u0443\u0432\u0435\u0439\u0442\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"KWD"},KYD:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-one":"\u0434\u043e\u043b\u0430\u0440 \u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-few":"\u0434\u043e\u043b\u0430\u0440\u0438 \u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-many":"\u0434\u043e\u043b\u0430\u0440\u0456\u0432 \u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-other":"\u0434\u043e\u043b\u0430\u0440\u0430 \u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0456\u0432",symbol:"KYD","symbol-alt-narrow":"$"},KZT:{displayName:"\u043a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0442\u0435\u043d\u0433\u0435","displayName-count-one":"\u043a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0442\u0435\u043d\u0433\u0435","displayName-count-few":"\u043a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0456 \u0442\u0435\u043d\u0433\u0435","displayName-count-many":"\u043a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0442\u0435\u043d\u0433\u0435","displayName-count-other":"\u043a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0442\u0435\u043d\u0433\u0435",symbol:"KZT","symbol-alt-narrow":"\u20b8"},LAK:{displayName:"\u043b\u0430\u043e\u0441\u044c\u043a\u0438\u0439 \u043a\u0456\u043f","displayName-count-one":"\u043b\u0430\u043e\u0441\u044c\u043a\u0438\u0439 \u043a\u0456\u043f","displayName-count-few":"\u043b\u0430\u043e\u0441\u044c\u043a\u0456 \u043a\u0456\u043f\u0438","displayName-count-many":"\u043b\u0430\u043e\u0441\u044c\u043a\u0438\u0445 \u043a\u0456\u043f\u0456\u0432","displayName-count-other":"\u043b\u0430\u043e\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u0456\u043f\u0430",symbol:"LAK","symbol-alt-narrow":"\u20ad"},LBP:{displayName:"\u043b\u0456\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u043b\u0456\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u043b\u0456\u0432\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u043b\u0456\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u043b\u0456\u0432\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"LBP","symbol-alt-narrow":"L\xa3"},LKR:{displayName:"\u0448\u0440\u0456-\u043b\u0430\u043d\u043a\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u0448\u0440\u0456-\u043b\u0430\u043d\u043a\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u0448\u0440\u0456-\u043b\u0430\u043d\u043a\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u0448\u0440\u0456-\u043b\u0430\u043d\u043a\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u0448\u0440\u0456-\u043b\u0430\u043d\u043a\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"LKR","symbol-alt-narrow":"Rs"},LRD:{displayName:"\u043b\u0456\u0431\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u043b\u0456\u0431\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u043b\u0456\u0431\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u043b\u0456\u0431\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u043b\u0456\u0431\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"LRD","symbol-alt-narrow":"$"},LSL:{displayName:"\u043b\u0435\u0441\u043e\u0442\u0441\u044c\u043a\u0438\u0439 \u043b\u043e\u0442\u0456","displayName-count-one":"\u043b\u0435\u0441\u043e\u0442\u0441\u044c\u043a\u0438\u0439 \u043b\u043e\u0442\u0456","displayName-count-few":"\u043b\u0435\u0441\u043e\u0442\u0441\u044c\u043a\u0456 \u043b\u043e\u0442\u0456","displayName-count-many":"\u043b\u0435\u0441\u043e\u0442\u0441\u044c\u043a\u0438\u0445 \u043b\u043e\u0442\u0456","displayName-count-other":"\u043b\u0435\u0441\u043e\u0442\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u043e\u0442\u0456",symbol:"LSL"},LTL:{displayName:"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u0438\u0439 \u043b\u0456\u0442","displayName-count-one":"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u0438\u0439 \u043b\u0456\u0442","displayName-count-few":"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u0456 \u043b\u0456\u0442\u0438","displayName-count-many":"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u0438\u0445 \u043b\u0456\u0442\u0456\u0432","displayName-count-other":"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0456\u0442\u0430",symbol:"LTL","symbol-alt-narrow":"Lt"},LTT:{displayName:"\u043b\u0438\u0442\u043e\u0432\u0441\u044c\u043a\u0438\u0439 \u0442\u0430\u043b\u043e\u043d",symbol:"LTT"},LUC:{displayName:"\u043b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0491\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a (\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0439)",symbol:"LUC"},LUF:{displayName:"\u043b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0437\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"LUF"},LUL:{displayName:"\u043b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0491\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a (\u0444\u0456\u043d\u0430\u043d\u0441\u043e\u0432\u0438\u0439)",symbol:"LUL"},LVL:{displayName:"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043b\u0430\u0442","displayName-count-one":"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u043b\u0430\u0442","displayName-count-few":"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u043b\u0430\u0442\u0438","displayName-count-many":"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043b\u0430\u0442\u0456\u0432","displayName-count-other":"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0430\u0442\u0430",symbol:"LVL","symbol-alt-narrow":"Ls"},LVR:{displayName:"\u043b\u0430\u0442\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c",symbol:"LVR"},LYD:{displayName:"\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u043b\u0456\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"LYD"},MAD:{displayName:"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u0440\u0445\u0430\u043c","displayName-count-one":"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u0440\u0445\u0430\u043c","displayName-count-few":"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u0434\u0438\u0440\u0445\u0430\u043c\u0438","displayName-count-many":"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u0440\u0445\u0430\u043c\u0456\u0432","displayName-count-other":"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u0440\u0445\u0430\u043c\u0430",symbol:"MAD"},MAF:{displayName:"\u043c\u0430\u0440\u043e\u043a\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"MAF"},MCF:{displayName:"MCF",symbol:"MCF"},MDC:{displayName:"MDC",symbol:"MDC"},MDL:{displayName:"\u043c\u043e\u043b\u0434\u043e\u0432\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0439","displayName-count-one":"\u043c\u043e\u043b\u0434\u043e\u0432\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0439","displayName-count-few":"\u043c\u043e\u043b\u0434\u043e\u0432\u0441\u044c\u043a\u0456 \u043b\u0435\u0457","displayName-count-many":"\u043c\u043e\u043b\u0434\u043e\u0432\u0441\u044c\u043a\u0438\u0445 \u043b\u0435\u0457\u0432","displayName-count-other":"\u043c\u043e\u043b\u0434\u043e\u0432\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0435\u044f",symbol:"MDL"},MGA:{displayName:"\u043c\u0430\u043b\u0430\u0433\u0430\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0430\u0440\u0456\u0430\u0440\u0456","displayName-count-one":"\u043c\u0430\u043b\u0430\u0433\u0430\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0430\u0440\u0456\u0430\u0440\u0456","displayName-count-few":"\u043c\u0430\u043b\u0430\u0433\u0430\u0441\u0456\u0439\u0441\u044c\u043a\u0456 \u0430\u0440\u0456\u0430\u0440\u0456","displayName-count-many":"\u043c\u0430\u043b\u0430\u0433\u0430\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0430\u0440\u0456\u0430\u0440\u0456","displayName-count-other":"\u043c\u0430\u043b\u0430\u0433\u0430\u0441\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0430\u0440\u0456\u0430\u0440\u0456",symbol:"MGA","symbol-alt-narrow":"Ar"},MGF:{displayName:"\u043c\u0430\u0434\u0430\u0433\u0430\u0441\u043a\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"MGF"},MKD:{displayName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0435\u043d\u0430\u0440","displayName-count-one":"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0435\u043d\u0430\u0440","displayName-count-few":"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u044c\u043a\u0456 \u0434\u0435\u043d\u0430\u0440\u0438","displayName-count-many":"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u0435\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0435\u043d\u0430\u0440\u0430",symbol:"MKD"},MKN:{displayName:"MKN",symbol:"MKN"},MLF:{displayName:"\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"MLF"},MMK:{displayName:"\u043a\u02bc\u044f\u0442 \u041c\u02bc\u044f\u043d\u043c\u0438","displayName-count-one":"\u043a\u02bc\u044f\u0442 \u041c\u02bc\u044f\u043d\u043c\u0438","displayName-count-few":"\u043a\u02bc\u044f\u0442\u0438 \u041c\u02bc\u044f\u043d\u043c\u0438","displayName-count-many":"\u043a\u02bc\u044f\u0442\u0456\u0432 \u041c\u02bc\u044f\u043d\u043c\u0438","displayName-count-other":"\u043a\u02bc\u044f\u0442\u0430 \u041c\u02bc\u044f\u043d\u043c\u0438",symbol:"MMK","symbol-alt-narrow":"K"},MNT:{displayName:"\u043c\u043e\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0442\u0443\u0433\u0440\u0438\u043a","displayName-count-one":"\u043c\u043e\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0442\u0443\u0433\u0440\u0438\u043a","displayName-count-few":"\u043c\u043e\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u0442\u0443\u0433\u0440\u0438\u043a\u0438","displayName-count-many":"\u043c\u043e\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0442\u0443\u0433\u0440\u0438\u043a\u0456\u0432","displayName-count-other":"\u043c\u043e\u043d\u0433\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0442\u0443\u0433\u0440\u0438\u043a\u0430",symbol:"MNT","symbol-alt-narrow":"\u20ae"},MOP:{displayName:"\u043f\u0430\u0442\u0430\u043a\u0430 \u041c\u0430\u043a\u0430\u043e","displayName-count-one":"\u043f\u0430\u0442\u0430\u043a\u0430 \u041c\u0430\u043a\u0430\u043e","displayName-count-few":"\u043f\u0430\u0442\u0430\u043a\u0438 \u041c\u0430\u043a\u0430\u043e","displayName-count-many":"\u043f\u0430\u0442\u0430\u043a \u041c\u0430\u043a\u0430\u043e","displayName-count-other":"\u043f\u0430\u0442\u0430\u043a\u0438 \u041c\u0430\u043a\u0430\u043e",symbol:"MOP"},MRO:{displayName:"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0443\u0433\u0456\u044f (1973\u20132017)","displayName-count-one":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0443\u0433\u0456\u044f (1973\u20132017)","displayName-count-few":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0456 \u0443\u0433\u0456\u0457 (1973\u20132017)","displayName-count-many":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0443\u0433\u0456\u0439 (1973\u20132017)","displayName-count-other":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u0443\u0433\u0456\u0457 (1973\u20132017)",symbol:"MRO"},MRU:{displayName:"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0443\u0433\u0456\u044f","displayName-count-one":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0443\u0433\u0456\u044f","displayName-count-few":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0456 \u0443\u0433\u0456\u0457","displayName-count-many":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0443\u0433\u0456\u0439","displayName-count-other":"\u043c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u0443\u0433\u0456\u0457",symbol:"MRU"},MTL:{displayName:"\u043c\u0430\u043b\u044c\u0442\u0456\u0439\u0441\u044c\u043a\u0430 \u043b\u0456\u0440\u0430",symbol:"MTL"},MTP:{displayName:"\u043c\u0430\u043b\u044c\u0442\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442",symbol:"MTP"},MUR:{displayName:"\u043c\u0430\u0432\u0440\u0438\u043a\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u043c\u0430\u0432\u0440\u0438\u043a\u0456\u0439\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u043c\u0430\u0432\u0440\u0438\u043a\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u043c\u0430\u0432\u0440\u0438\u043a\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u043c\u0430\u0432\u0440\u0438\u043a\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"MUR","symbol-alt-narrow":"Rs"},MVP:{displayName:"MVP",symbol:"MVP"},MVR:{displayName:"\u043c\u0430\u043b\u044c\u0434\u0456\u0432\u0441\u044c\u043a\u0430 \u0440\u0443\u0444\u0456\u044f","displayName-count-one":"\u043c\u0430\u043b\u044c\u0434\u0456\u0432\u0441\u044c\u043a\u0430 \u0440\u0443\u0444\u0456\u044f","displayName-count-few":"\u043c\u0430\u043b\u044c\u0434\u0456\u0432\u0441\u044c\u043a\u0456 \u0440\u0443\u0444\u0456\u0457","displayName-count-many":"\u043c\u0430\u043b\u044c\u0434\u0456\u0432\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0444\u0456\u0439","displayName-count-other":"\u043c\u0430\u043b\u044c\u0434\u0456\u0432\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u0444\u0456\u0457",symbol:"MVR"},MWK:{displayName:"\u043c\u0430\u043b\u0430\u0432\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430","displayName-count-one":"\u043c\u0430\u043b\u0430\u0432\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430","displayName-count-few":"\u043c\u0430\u043b\u0430\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u0447\u0456","displayName-count-many":"\u043c\u0430\u043b\u0430\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u0447","displayName-count-other":"\u043c\u0430\u043b\u0430\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u043a\u0432\u0430\u0447\u0456",symbol:"MWK"},MXN:{displayName:"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"MXN","symbol-alt-narrow":"$"},MXP:{displayName:"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0435 \u0441\u0440\u0456\u0431\u043d\u0435 \u043f\u0435\u0441\u043e (1861\u20131992)",symbol:"MXP"},MXV:{displayName:"\u043c\u0435\u043a\u0441\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u044e\u043d\u0456\u0434\u0430\u0434 \u0434\u0435 \u0456\u043d\u0432\u0435\u0440\u0441\u0456\u043e\u043d",symbol:"MXV"},MYR:{displayName:"\u043c\u0430\u043b\u0430\u0439\u0437\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0438\u043d\u0433\u0456\u0442","displayName-count-one":"\u043c\u0430\u043b\u0430\u0439\u0437\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0438\u043d\u0433\u0456\u0442","displayName-count-few":"\u043c\u0430\u043b\u0430\u0439\u0437\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0438\u043d\u0433\u0456\u0442\u0438","displayName-count-many":"\u043c\u0430\u043b\u0430\u0439\u0437\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0438\u043d\u0433\u0456\u0442\u0456\u0432","displayName-count-other":"\u043c\u0430\u043b\u0430\u0439\u0437\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0438\u043d\u0433\u0456\u0442\u0430",symbol:"MYR","symbol-alt-narrow":"RM"},MZE:{displayName:"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0438\u0439 \u0435\u0441\u043a\u0443\u0434\u043e",symbol:"MZE"},MZM:{displayName:"\u0441\u0442\u0430\u0440\u0438\u0439 \u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0438\u0439 \u043c\u0435\u0442\u0438\u043a\u0430\u043b",symbol:"MZM"},MZN:{displayName:"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0438\u0439 \u043c\u0435\u0442\u0438\u043a\u0430\u043b","displayName-count-one":"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0438\u0439 \u043c\u0435\u0442\u0438\u043a\u0430\u043b","displayName-count-few":"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0456 \u043c\u0435\u0442\u0438\u043a\u0430\u043b\u0438","displayName-count-many":"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u0438\u0445 \u043c\u0435\u0442\u0438\u043a\u0430\u043b\u0456\u0432","displayName-count-other":"\u043c\u043e\u0437\u0430\u043c\u0431\u0456\u0446\u044c\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u0438\u043a\u0430\u043b\u0430",symbol:"MZN"},NAD:{displayName:"\u043d\u0430\u043c\u0456\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u043d\u0430\u043c\u0456\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u043d\u0430\u043c\u0456\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u043d\u0430\u043c\u0456\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u043d\u0430\u043c\u0456\u0431\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"NAD","symbol-alt-narrow":"$"},NGN:{displayName:"\u043d\u0456\u0433\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0430 \u043d\u0430\u0439\u0440\u0430","displayName-count-one":"\u043d\u0456\u0433\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0430 \u043d\u0430\u0439\u0440\u0430","displayName-count-few":"\u043d\u0456\u0433\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0456 \u043d\u0430\u0439\u0440\u0438","displayName-count-many":"\u043d\u0456\u0433\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043d\u0430\u0439\u0440","displayName-count-other":"\u043d\u0456\u0433\u0435\u0440\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u043d\u0430\u0439\u0440\u0438",symbol:"NGN","symbol-alt-narrow":"\u20a6"},NIC:{displayName:"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u043e\u0440\u0434\u043e\u0431\u0430 (1988\u20131991)","displayName-count-one":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u043e\u0440\u0434\u043e\u0431\u0430 (1988\u20131991)","displayName-count-few":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0456 \u043a\u043e\u0440\u0434\u043e\u0431\u0438 (1988\u20131991)","displayName-count-many":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u043e\u0440\u0434\u043e\u0431 (1988\u20131991)","displayName-count-other":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u043a\u043e\u0440\u0434\u043e\u0431\u0438 (1988\u20131991)",symbol:"NIC"},NIO:{displayName:"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u043e\u0440\u0434\u043e\u0431\u0430","displayName-count-one":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0430 \u043a\u043e\u0440\u0434\u043e\u0431\u0430","displayName-count-few":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0456 \u043a\u043e\u0440\u0434\u043e\u0431\u0438","displayName-count-many":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u043e\u0440\u0434\u043e\u0431","displayName-count-other":"\u043d\u0456\u043a\u0430\u0440\u0430\u0433\u0443\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u043a\u043e\u0440\u0434\u043e\u0431\u0438",symbol:"NIO","symbol-alt-narrow":"C$"},NLG:{displayName:"\u043d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u043b\u044c\u0434\u0435\u043d",symbol:"NLG"},NOK:{displayName:"\u043d\u043e\u0440\u0432\u0435\u0437\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u043d\u043e\u0440\u0432\u0435\u0437\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u043d\u043e\u0440\u0432\u0435\u0437\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0438","displayName-count-many":"\u043d\u043e\u0440\u0432\u0435\u0437\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u043d\u043e\u0440\u0432\u0435\u0437\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"NOK","symbol-alt-narrow":"kr"},NPR:{displayName:"\u043d\u0435\u043f\u0430\u043b\u044c\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u043d\u0435\u043f\u0430\u043b\u044c\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u043d\u0435\u043f\u0430\u043b\u044c\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u043d\u0435\u043f\u0430\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u043d\u0435\u043f\u0430\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"NPR","symbol-alt-narrow":"Rs"},NZD:{displayName:"\u043d\u043e\u0432\u043e\u0437\u0435\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u043d\u043e\u0432\u043e\u0437\u0435\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u043d\u043e\u0432\u043e\u0437\u0435\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u043d\u043e\u0432\u043e\u0437\u0435\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u043d\u043e\u0432\u043e\u0437\u0435\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"NZD","symbol-alt-narrow":"$"},OMR:{displayName:"\u043e\u043c\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-one":"\u043e\u043c\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-few":"\u043e\u043c\u0430\u043d\u0441\u044c\u043a\u0456 \u0440\u0456\u0430\u043b\u0438","displayName-count-many":"\u043e\u043c\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0430\u043b\u0456\u0432","displayName-count-other":"\u043e\u043c\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0430\u043b\u0430",symbol:"OMR"},PAB:{displayName:"\u043f\u0430\u043d\u0430\u043c\u0441\u044c\u043a\u0435 \u0431\u0430\u043b\u044c\u0431\u043e\u0430","displayName-count-one":"\u043f\u0430\u043d\u0430\u043c\u0441\u044c\u043a\u0435 \u0431\u0430\u043b\u044c\u0431\u043e\u0430","displayName-count-few":"\u043f\u0430\u043d\u0430\u043c\u0441\u044c\u043a\u0456 \u0431\u0430\u043b\u044c\u0431\u043e\u0430","displayName-count-many":"\u043f\u0430\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0445 \u0431\u0430\u043b\u044c\u0431\u043e\u0430","displayName-count-other":"\u043f\u0430\u043d\u0430\u043c\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u0430\u043b\u044c\u0431\u043e\u0430",symbol:"PAB"},PEI:{displayName:"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0456\u043d\u0442\u0456",symbol:"PEI"},PEN:{displayName:"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0441\u043e\u043b","displayName-count-one":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0441\u043e\u043b","displayName-count-few":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0456 \u043d\u043e\u0432\u0456 \u0441\u043e\u043b\u0438","displayName-count-many":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043d\u043e\u0432\u0438\u0445 \u0441\u043e\u043b\u0456\u0432","displayName-count-other":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u043b\u0430",symbol:"PEN"},PES:{displayName:"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0441\u043e\u043b (1863\u20131965)","displayName-count-one":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0441\u043e\u043b (1863\u20131965)","displayName-count-few":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0456 \u0441\u043e\u043b\u0438 (1863\u20131965)","displayName-count-many":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0441\u043e\u043b\u0456\u0432 (1863\u20131965)","displayName-count-other":"\u043f\u0435\u0440\u0443\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0441\u043e\u043b\u0430 (1863\u20131965)",symbol:"PES"},PGK:{displayName:"\u043a\u0456\u043d\u0430 \u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u043e\u0457 \u0490\u0432\u0456\u043d\u0435\u0457","displayName-count-one":"\u043a\u0456\u043d\u0430 \u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u043e\u0457 \u0490\u0432\u0456\u043d\u0435\u0457","displayName-count-few":"\u043a\u0456\u043d\u0438 \u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u043e\u0457 \u0490\u0432\u0456\u043d\u0435\u0457","displayName-count-many":"\u043a\u0456\u043d \u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u043e\u0457 \u0490\u0432\u0456\u043d\u0435\u0457","displayName-count-other":"\u043a\u0456\u043d\u0438 \u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u043e\u0457 \u0490\u0432\u0456\u043d\u0435\u0457",symbol:"PGK"},PHP:{displayName:"\u0444\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u0444\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u0444\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u0444\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u0444\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"PHP","symbol-alt-narrow":"\u20b1"},PKR:{displayName:"\u043f\u0430\u043a\u0438\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u043f\u0430\u043a\u0438\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u043f\u0430\u043a\u0438\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u043f\u0430\u043a\u0438\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u043f\u0430\u043a\u0438\u0441\u0442\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"PKR","symbol-alt-narrow":"Rs"},PLN:{displayName:"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439","displayName-count-one":"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439","displayName-count-few":"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u0456 \u0437\u043b\u043e\u0442\u0456","displayName-count-many":"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0437\u043b\u043e\u0442\u0438\u0445","displayName-count-other":"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0437\u043b\u043e\u0442\u043e\u0433\u043e",symbol:"PLN","symbol-alt-narrow":"z\u0142"},PLZ:{displayName:"\u043f\u043e\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u0438\u0439 (1950\u20131995)",symbol:"PLZ"},PTE:{displayName:"\u043f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0435\u0441\u043a\u0443\u0434\u043e",symbol:"PTE"},PYG:{displayName:"\u043f\u0430\u0440\u0430\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u0430\u0440\u0430\u043d\u0456","displayName-count-one":"\u043f\u0430\u0440\u0430\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u0430\u0440\u0430\u043d\u0456","displayName-count-few":"\u043f\u0430\u0440\u0430\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0456 \u0433\u0443\u0430\u0440\u0430\u043d\u0456","displayName-count-many":"\u043f\u0430\u0440\u0430\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0445 \u0433\u0443\u0430\u0440\u0430\u043d\u0456","displayName-count-other":"\u043f\u0430\u0440\u0430\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0433\u0443\u0430\u0440\u0430\u043d\u0456",symbol:"PYG","symbol-alt-narrow":"\u20b2"},QAR:{displayName:"\u043a\u0430\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-one":"\u043a\u0430\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-few":"\u043a\u0430\u0442\u0430\u0440\u0441\u044c\u043a\u0456 \u0440\u0456\u0430\u043b\u0438","displayName-count-many":"\u043a\u0430\u0442\u0430\u0440\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0430\u043b\u0456\u0432","displayName-count-other":"\u043a\u0430\u0442\u0430\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0430\u043b\u0430",symbol:"QAR"},RHD:{displayName:"\u0440\u043e\u0434\u0435\u0437\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440",symbol:"RHD"},ROL:{displayName:"\u0441\u0442\u0430\u0440\u0438\u0439 \u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0439",symbol:"ROL"},RON:{displayName:"\u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0439","displayName-count-one":"\u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u0438\u0439 \u043b\u0435\u0439","displayName-count-few":"\u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u0456 \u043b\u0435\u0457","displayName-count-many":"\u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u0438\u0445 \u043b\u0435\u0457\u0432","displayName-count-other":"\u0440\u0443\u043c\u0443\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0435\u044f",symbol:"RON","symbol-alt-narrow":"lei"},RSD:{displayName:"\u0441\u0435\u0440\u0431\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0441\u0435\u0440\u0431\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0441\u0435\u0440\u0431\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0441\u0435\u0440\u0431\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0441\u0435\u0440\u0431\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"RSD"},RUB:{displayName:"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-one":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-few":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u0431\u043b\u0456","displayName-count-many":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432","displayName-count-other":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f",symbol:"RUB","symbol-alt-narrow":"\u20bd"},RUR:{displayName:"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (1991\u20131998)","displayName-count-one":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (RUR)","displayName-count-few":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0456 \u0440\u0443\u0431\u043b\u0456 (RUR)","displayName-count-many":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432 (RUR)","displayName-count-other":"\u0440\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f (RUR)",symbol:"RUR","symbol-alt-narrow":"\u0440."},RWF:{displayName:"\u0440\u0443\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0440\u0443\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0440\u0443\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0440\u0443\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0440\u0443\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"RWF","symbol-alt-narrow":"RF"},SAR:{displayName:"\u0441\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-one":"\u0441\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-few":"\u0441\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u0456 \u0440\u0456\u0430\u043b\u0438","displayName-count-many":"\u0441\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0430\u043b\u0456\u0432","displayName-count-other":"\u0441\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0430\u043b\u0430",symbol:"SAR"},SBD:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u0438\u0445 \u041e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-one":"\u0434\u043e\u043b\u0430\u0440 \u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u0438\u0445 \u041e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-few":"\u0434\u043e\u043b\u0430\u0440\u0438 \u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u0438\u0445 \u041e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-many":"\u0434\u043e\u043b\u0430\u0440\u0456\u0432 \u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u0438\u0445 \u041e\u0441\u0442\u0440\u043e\u0432\u0456\u0432","displayName-count-other":"\u0434\u043e\u043b\u0430\u0440\u0430 \u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u0438\u0445 \u041e\u0441\u0442\u0440\u043e\u0432\u0456\u0432",symbol:"SBD","symbol-alt-narrow":"$"},SCR:{displayName:"\u0441\u0435\u0439\u0448\u0435\u043b\u044c\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-one":"\u0441\u0435\u0439\u0448\u0435\u043b\u044c\u0441\u044c\u043a\u0430 \u0440\u0443\u043f\u0456\u044f","displayName-count-few":"\u0441\u0435\u0439\u0448\u0435\u043b\u044c\u0441\u044c\u043a\u0456 \u0440\u0443\u043f\u0456\u0457","displayName-count-many":"\u0441\u0435\u0439\u0448\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u043f\u0456\u0439","displayName-count-other":"\u0441\u0435\u0439\u0448\u0435\u043b\u044c\u0441\u044c\u043a\u043e\u0457 \u0440\u0443\u043f\u0456\u0457",symbol:"SCR"},SDD:{displayName:"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"SDD"},SDG:{displayName:"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"SDG"},SDP:{displayName:"\u0441\u0442\u0430\u0440\u0438\u0439 \u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442",symbol:"SDP"},SEK:{displayName:"\u0448\u0432\u0435\u0434\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-one":"\u0448\u0432\u0435\u0434\u0441\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430","displayName-count-few":"\u0448\u0432\u0435\u0434\u0441\u044c\u043a\u0456 \u043a\u0440\u043e\u043d\u0438","displayName-count-many":"\u0448\u0432\u0435\u0434\u0441\u044c\u043a\u0438\u0445 \u043a\u0440\u043e\u043d","displayName-count-other":"\u0448\u0432\u0435\u0434\u0441\u044c\u043a\u043e\u0457 \u043a\u0440\u043e\u043d\u0438",symbol:"SEK","symbol-alt-narrow":"kr"},SGD:{displayName:"\u0441\u0456\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0441\u0456\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0441\u0456\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0441\u0456\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0441\u0456\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"SGD","symbol-alt-narrow":"$"},SHP:{displayName:"\u0444\u0443\u043d\u0442 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 \u0421\u0432\u044f\u0442\u043e\u0457 \u0404\u043b\u0435\u043d\u0438","displayName-count-one":"\u0444\u0443\u043d\u0442 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 \u0421\u0432\u044f\u0442\u043e\u0457 \u0404\u043b\u0435\u043d\u0438","displayName-count-few":"\u0444\u0443\u043d\u0442\u0438 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 \u0421\u0432\u044f\u0442\u043e\u0457 \u0404\u043b\u0435\u043d\u0438","displayName-count-many":"\u0444\u0443\u043d\u0442\u0456\u0432 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 \u0421\u0432\u044f\u0442\u043e\u0457 \u0404\u043b\u0435\u043d\u0438","displayName-count-other":"\u0444\u0443\u043d\u0442\u0430 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 \u0421\u0432\u044f\u0442\u043e\u0457 \u0404\u043b\u0435\u043d\u0438",symbol:"SHP","symbol-alt-narrow":"\xa3"},SIT:{displayName:"\u0441\u043b\u043e\u0432\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0442\u043e\u043b\u0430\u0440",symbol:"SIT"},SKK:{displayName:"\u0441\u043b\u043e\u0432\u0430\u0446\u044c\u043a\u0430 \u043a\u0440\u043e\u043d\u0430",symbol:"SKK"},SLE:{displayName:"SLE",symbol:"SLE"},SLL:{displayName:"\u043b\u0435\u043e\u043d\u0435 \u0421\u044c\u0454\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435","displayName-count-one":"\u043b\u0435\u043e\u043d\u0435 \u0421\u044c\u0454\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435","displayName-count-few":"\u043b\u0435\u043e\u043d\u0435 \u0421\u044c\u0454\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435","displayName-count-many":"\u043b\u0435\u043e\u043d\u0435 \u0421\u044c\u0454\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435","displayName-count-other":"\u043b\u0435\u043e\u043d\u0435 \u0421\u044c\u0454\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435",symbol:"SLL"},SOS:{displayName:"\u0441\u043e\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-one":"\u0441\u043e\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-few":"\u0441\u043e\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0456 \u0448\u0438\u043b\u0456\u043d\u0433\u0438","displayName-count-many":"\u0441\u043e\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0448\u0438\u043b\u0456\u043d\u0433\u0456\u0432","displayName-count-other":"\u0441\u043e\u043c\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0448\u0438\u043b\u0456\u043d\u0433\u0430",symbol:"SOS"},SRD:{displayName:"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"SRD","symbol-alt-narrow":"$"},SRG:{displayName:"\u0441\u0443\u0440\u0438\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0433\u0443\u043b\u044c\u0434\u0435\u043d",symbol:"SRG"},SSP:{displayName:"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0441\u0443\u0434\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"SSP","symbol-alt-narrow":"\xa3"},STD:{displayName:"\u0434\u043e\u0431\u0440\u0430 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456 (1977\u20132017)","displayName-count-one":"\u0434\u043e\u0431\u0440\u0430 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456 (1977\u20132017)","displayName-count-few":"\u0434\u043e\u0431\u0440\u0438 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0438\u043d\u0441\u0456\u043f\u0456 (1977\u20132017)","displayName-count-many":"\u0434\u043e\u0431\u0440 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0438\u043d\u0441\u0456\u043f\u0456 (1977\u20132017)","displayName-count-other":"\u0434\u043e\u0431\u0440\u0438 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456 (1977\u20132017)",symbol:"STD"},STN:{displayName:"\u0434\u043e\u0431\u0440\u0430 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456","displayName-count-one":"\u0434\u043e\u0431\u0440\u0430 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456","displayName-count-few":"\u0434\u043e\u0431\u0440\u0438 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0438\u043d\u0441\u0456\u043f\u0456","displayName-count-many":"\u0434\u043e\u0431\u0440 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0438\u043d\u0441\u0456\u043f\u0456","displayName-count-other":"\u0434\u043e\u0431\u0440\u0438 \u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0456 \u041f\u0440\u0456\u043d\u0441\u0456\u043f\u0456",symbol:"STN","symbol-alt-narrow":"Db"},SUR:{displayName:"\u0440\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-one":"\u0440\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c","displayName-count-few":"\u0440\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u0456 \u0440\u0443\u0431\u043b\u0456","displayName-count-many":"\u0440\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0443\u0431\u043b\u0456\u0432","displayName-count-other":"\u0440\u0430\u0434\u044f\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0443\u0431\u043b\u044f",symbol:"SUR"},SVC:{displayName:"\u0441\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043b\u043e\u043d",symbol:"SVC"},SYP:{displayName:"\u0441\u0438\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-one":"\u0441\u0438\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0444\u0443\u043d\u0442","displayName-count-few":"\u0441\u0438\u0440\u0456\u0439\u0441\u044c\u043a\u0456 \u0444\u0443\u043d\u0442\u0438","displayName-count-many":"\u0441\u0438\u0440\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0444\u0443\u043d\u0442\u0456\u0432","displayName-count-other":"\u0441\u0438\u0440\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430",symbol:"SYP","symbol-alt-narrow":"\xa3"},SZL:{displayName:"\u0441\u0432\u0430\u0437\u0456\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u043b\u0456\u043b\u0430\u043d\u0433\u0435\u043d\u0456","displayName-count-one":"\u0441\u0432\u0430\u0437\u0456\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u043b\u0456\u043b\u0430\u043d\u0433\u0435\u043d\u0456","displayName-count-few":"\u0441\u0432\u0430\u0437\u0456\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0456 \u043b\u0456\u043b\u0430\u043d\u0433\u0435\u043d\u0456","displayName-count-many":"\u0441\u0432\u0430\u0437\u0456\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u043b\u0456\u043b\u0430\u043d\u0433\u0435\u043d\u0456","displayName-count-other":"\u0441\u0432\u0430\u0437\u0456\u043b\u0435\u043d\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u043b\u0456\u043b\u0430\u043d\u0433\u0435\u043d\u0456",symbol:"SZL"},THB:{displayName:"\u0442\u0430\u0457\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0431\u0430\u0442","displayName-count-one":"\u0442\u0430\u0457\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0439 \u0431\u0430\u0442","displayName-count-few":"\u0442\u0430\u0457\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0456 \u0431\u0430\u0442\u0438","displayName-count-many":"\u0442\u0430\u0457\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0438\u0445 \u0431\u0430\u0442\u0456\u0432","displayName-count-other":"\u0442\u0430\u0457\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u0430\u0442\u0430",symbol:"THB","symbol-alt-narrow":"\u0e3f"},TJR:{displayName:"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c",symbol:"TJR"},TJS:{displayName:"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u0438\u0439 \u0441\u043e\u043c\u043e\u043d\u0456","displayName-count-one":"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u0438\u0439 \u0441\u043e\u043c\u043e\u043d\u0456","displayName-count-few":"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u0456 \u0441\u043e\u043c\u043e\u043d\u0456","displayName-count-many":"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u0438\u0445 \u0441\u043e\u043c\u043e\u043d\u0456","displayName-count-other":"\u0442\u0430\u0434\u0436\u0438\u0446\u044c\u043a\u043e\u0433\u043e \u0441\u043e\u043c\u043e\u043d\u0456",symbol:"TJS"},TMM:{displayName:"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (1993\u20132009)","displayName-count-one":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (1993\u20132009)","displayName-count-few":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0456 \u043c\u0430\u043d\u0430\u0442\u0438 (1993\u20132009)","displayName-count-many":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0445 \u043c\u0430\u043d\u0430\u0442\u0456\u0432 (1993\u20132009)","displayName-count-other":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043c\u0430\u043d\u0430\u0442\u0430 (1993\u20132009)",symbol:"TMM"},TMT:{displayName:"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442","displayName-count-one":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442","displayName-count-few":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0456 \u043c\u0430\u043d\u0430\u0442\u0438","displayName-count-many":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0445 \u043c\u0430\u043d\u0430\u0442\u0456\u0432","displayName-count-other":"\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043c\u0430\u043d\u0430\u0442\u0430",symbol:"TMT"},TND:{displayName:"\u0442\u0443\u043d\u0456\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-one":"\u0442\u0443\u043d\u0456\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440","displayName-count-few":"\u0442\u0443\u043d\u0456\u0441\u044c\u043a\u0456 \u0434\u0438\u043d\u0430\u0440\u0438","displayName-count-many":"\u0442\u0443\u043d\u0456\u0441\u044c\u043a\u0438\u0445 \u0434\u0438\u043d\u0430\u0440\u0456\u0432","displayName-count-other":"\u0442\u0443\u043d\u0456\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u0438\u043d\u0430\u0440\u0430",symbol:"TND"},TOP:{displayName:"\u0442\u043e\u043d\u0433\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0430\u0430\u043d\u0433\u0430","displayName-count-one":"\u0442\u043e\u043d\u0433\u0430\u043d\u0441\u044c\u043a\u0430 \u043f\u0430\u0430\u043d\u0433\u0430","displayName-count-few":"\u0442\u043e\u043d\u0433\u0430\u043d\u0441\u044c\u043a\u0456 \u043f\u0430\u0430\u043d\u0433\u0438","displayName-count-many":"\u0442\u043e\u043d\u0433\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043f\u0430\u0430\u043d\u0433","displayName-count-other":"\u0442\u043e\u043d\u0433\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u043f\u0430\u0430\u043d\u0433\u0438",symbol:"TOP","symbol-alt-narrow":"T$"},TPE:{displayName:"\u0442\u0456\u043c\u043e\u0440\u0441\u044c\u043a\u0438\u0439 \u0435\u0441\u043a\u0443\u0434\u043e",symbol:"TPE"},TRL:{displayName:"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0430 \u043b\u0456\u0440\u0430 (1922\u20132005)","displayName-count-one":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0430 \u043b\u0456\u0440\u0430 (1922\u20132005)","displayName-count-few":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0456 \u043b\u0456\u0440\u0438 (1922\u20132005)","displayName-count-many":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0438\u0445 \u043b\u0456\u0440 (1922\u20132005)","displayName-count-other":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u043e\u0457 \u043b\u0456\u0440\u0438 (1922\u20132005)",symbol:"TRL"},TRY:{displayName:"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0430 \u043b\u0456\u0440\u0430","displayName-count-one":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0430 \u043b\u0456\u0440\u0430","displayName-count-few":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0456 \u043b\u0456\u0440\u0438","displayName-count-many":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u0438\u0445 \u043b\u0456\u0440","displayName-count-other":"\u0442\u0443\u0440\u0435\u0446\u044c\u043a\u043e\u0457 \u043b\u0456\u0440\u0438",symbol:"TRY","symbol-alt-narrow":"\u20ba","symbol-alt-variant":"TL"},TTD:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434\u0443 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e","displayName-count-one":"\u0434\u043e\u043b\u0430\u0440 \u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434\u0443 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e","displayName-count-few":"\u0434\u043e\u043b\u0430\u0440\u0438 \u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434\u0443 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e","displayName-count-many":"\u0434\u043e\u043b\u0430\u0440\u0456\u0432 \u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434\u0443 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e","displayName-count-other":"\u0434\u043e\u043b\u0430\u0440\u0430 \u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434\u0443 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e",symbol:"TTD","symbol-alt-narrow":"$"},TWD:{displayName:"\u043d\u043e\u0432\u0438\u0439 \u0442\u0430\u0439\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u043d\u043e\u0432\u0438\u0439 \u0442\u0430\u0439\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u043d\u043e\u0432\u0456 \u0442\u0430\u0439\u0432\u0430\u043d\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u043d\u043e\u0432\u0438\u0445 \u0442\u0430\u0439\u0432\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u043d\u043e\u0432\u043e\u0433\u043e \u0442\u0430\u0439\u0432\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"TWD","symbol-alt-narrow":"$"},TZS:{displayName:"\u0442\u0430\u043d\u0437\u0430\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-one":"\u0442\u0430\u043d\u0437\u0430\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-few":"\u0442\u0430\u043d\u0437\u0430\u043d\u0456\u0439\u0441\u044c\u043a\u0456 \u0448\u0438\u043b\u0456\u043d\u0433\u0438","displayName-count-many":"\u0442\u0430\u043d\u0437\u0430\u043d\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0448\u0438\u043b\u0456\u043d\u0433\u0456\u0432","displayName-count-other":"\u0442\u0430\u043d\u0437\u0430\u043d\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0448\u0438\u043b\u0456\u043d\u0433\u0430",symbol:"TZS"},UAH:{displayName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f","displayName-count-one":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u0433\u0440\u0438\u0432\u043d\u044f","displayName-count-few":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0456 \u0433\u0440\u0438\u0432\u043d\u0456","displayName-count-many":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0445 \u0433\u0440\u0438\u0432\u0435\u043d\u044c","displayName-count-other":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0457 \u0433\u0440\u0438\u0432\u043d\u0456",symbol:"\u20b4","symbol-alt-narrow":"\u20b4","symbol-alt-variant":"\u0433\u0440\u043d"},UAK:{displayName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u0430\u0440\u0431\u043e\u0432\u0430\u043d\u0435\u0446\u044c","displayName-count-one":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0439 \u043a\u0430\u0440\u0431\u043e\u0432\u0430\u043d\u0435\u0446\u044c","displayName-count-few":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0456 \u043a\u0430\u0440\u0431\u043e\u0432\u0430\u043d\u0446\u0456","displayName-count-many":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u0430\u0440\u0431\u043e\u0432\u0430\u043d\u0446\u0456\u0432","displayName-count-other":"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043a\u0430\u0440\u0431\u043e\u0432\u0430\u043d\u0446\u044f",symbol:"\u043a\u0440\u0431."},UGS:{displayName:"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433 (1966\u20131987)",symbol:"UGS"},UGX:{displayName:"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-one":"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0448\u0438\u043b\u0456\u043d\u0433","displayName-count-few":"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0456 \u0448\u0438\u043b\u0456\u043d\u0433\u0438","displayName-count-many":"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0448\u0438\u043b\u0456\u043d\u0433\u0456\u0432","displayName-count-other":"\u0443\u0433\u0430\u043d\u0434\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0448\u0438\u043b\u0456\u043d\u0433\u0430",symbol:"UGX"},USD:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u0421\u0428\u0410","displayName-count-one":"\u0434\u043e\u043b\u0430\u0440 \u0421\u0428\u0410","displayName-count-few":"\u0434\u043e\u043b\u0430\u0440\u0438 \u0421\u0428\u0410","displayName-count-many":"\u0434\u043e\u043b\u0430\u0440\u0456\u0432 \u0421\u0428\u0410","displayName-count-other":"\u0434\u043e\u043b\u0430\u0440\u0430 \u0421\u0428\u0410",symbol:"USD","symbol-alt-narrow":"$"},USN:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u0421\u0428\u0410 (\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0434\u043d\u044f)",symbol:"USN"},USS:{displayName:"\u0434\u043e\u043b\u0430\u0440 \u0421\u0428\u0410 (\u0446\u044c\u043e\u0433\u043e \u0434\u043d\u044f)",symbol:"USS"},UYI:{displayName:"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e \u0432 \u0456\u043d\u0434\u0435\u043a\u0441\u043e\u0432\u0430\u043d\u0438\u0445 \u043e\u0434\u0438\u043d\u0438\u0446\u044f\u0445",symbol:"UYI"},UYP:{displayName:"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0435 \u043f\u0435\u0441\u043e (1975\u20131993)",symbol:"UYP"},UYU:{displayName:"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-one":"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0439 \u043f\u0435\u0441\u043e","displayName-count-few":"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0456 \u043f\u0435\u0441\u043e","displayName-count-many":"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u0438\u0445 \u043f\u0435\u0441\u043e","displayName-count-other":"\u0443\u0440\u0443\u0433\u0432\u0430\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0441\u043e",symbol:"UYU","symbol-alt-narrow":"$"},UYW:{displayName:"UYW",symbol:"UYW"},UZS:{displayName:"\u0443\u0437\u0431\u0435\u0446\u044c\u043a\u0438\u0439 \u0441\u0443\u043c","displayName-count-one":"\u0443\u0437\u0431\u0435\u0446\u044c\u043a\u0438\u0439 \u0441\u0443\u043c","displayName-count-few":"\u0443\u0437\u0431\u0435\u0446\u044c\u043a\u0456 \u0441\u0443\u043c\u0438","displayName-count-many":"\u0443\u0437\u0431\u0435\u0446\u044c\u043a\u0438\u0445 \u0441\u0443\u043c\u0456\u0432","displayName-count-other":"\u0443\u0437\u0431\u0435\u0446\u044c\u043a\u043e\u0433\u043e \u0441\u0443\u043c\u0430",symbol:"UZS"},VEB:{displayName:"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0430\u0440 (1871\u20132008)",symbol:"VEB"},VED:{displayName:"VED",symbol:"VED"},VEF:{displayName:"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0430\u0440 (2008\u20132018)","displayName-count-one":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0430\u0440 (2008\u20132018)","displayName-count-few":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0456 \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0438 (2008\u20132018)","displayName-count-many":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0456\u0432 (2008\u20132018)","displayName-count-other":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0430 (2008\u20132018)",symbol:"VEF","symbol-alt-narrow":"Bs"},VES:{displayName:"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0430\u0440","displayName-count-one":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0439 \u0431\u043e\u043b\u0456\u0432\u0430\u0440","displayName-count-few":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0456 \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0438","displayName-count-many":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u0438\u0445 \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0456\u0432","displayName-count-other":"\u0432\u0435\u043d\u0435\u0441\u0443\u0435\u043b\u044c\u0441\u044c\u043a\u043e\u0433\u043e \u0431\u043e\u043b\u0456\u0432\u0430\u0440\u0430",symbol:"VES"},VND:{displayName:"\u0432\u02bc\u0454\u0442\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043d\u0433","displayName-count-one":"\u0432\u02bc\u0454\u0442\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043d\u0433","displayName-count-few":"\u0432\u02bc\u0454\u0442\u043d\u0430\u043c\u0441\u044c\u043a\u0456 \u0434\u043e\u043d\u0433\u0438","displayName-count-many":"\u0432\u02bc\u0454\u0442\u043d\u0430\u043c\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043d\u0433\u0456\u0432","displayName-count-other":"\u0432\u02bc\u0454\u0442\u043d\u0430\u043c\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043d\u0433\u0430",symbol:"VND","symbol-alt-narrow":"\u20ab"},VNN:{displayName:"VNN",symbol:"VNN"},VUV:{displayName:"\u0432\u0430\u043d\u0443\u0430\u0442\u0441\u044c\u043a\u0438\u0439 \u0432\u0430\u0442\u0443","displayName-count-one":"\u0432\u0430\u043d\u0443\u0430\u0442\u0441\u044c\u043a\u0438\u0439 \u0432\u0430\u0442\u0443","displayName-count-few":"\u0432\u0430\u043d\u0443\u0430\u0442\u0441\u044c\u043a\u0456 \u0432\u0430\u0442\u0443","displayName-count-many":"\u0432\u0430\u043d\u0443\u0430\u0442\u0441\u044c\u043a\u0438\u0445 \u0432\u0430\u0442\u0443","displayName-count-other":"\u0432\u0430\u043d\u0443\u0430\u0442\u0441\u044c\u043a\u043e\u0433\u043e \u0432\u0430\u0442\u0443",symbol:"VUV"},WST:{displayName:"\u0441\u0430\u043c\u043e\u0430\u043d\u0441\u044c\u043a\u0430 \u0442\u0430\u043b\u0430","displayName-count-one":"\u0441\u0430\u043c\u043e\u0430\u043d\u0441\u044c\u043a\u0430 \u0442\u0430\u043b\u0430","displayName-count-few":"\u0441\u0430\u043c\u043e\u0430\u043d\u0441\u044c\u043a\u0456 \u0442\u0430\u043b\u0438","displayName-count-many":"\u0441\u0430\u043c\u043e\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0442\u0430\u043b","displayName-count-other":"\u0441\u0430\u043c\u043e\u0430\u043d\u0441\u044c\u043a\u043e\u0457 \u0442\u0430\u043b\u0438",symbol:"WST"},XAF:{displayName:"\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"FCFA"},XAG:{displayName:"\u0441\u0440\u0456\u0431\u043b\u043e",symbol:"XAG"},XAU:{displayName:"\u0437\u043e\u043b\u043e\u0442\u043e",symbol:"XAU"},XBA:{displayName:"\u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u0430 \u0441\u043a\u043b\u0430\u0434\u0435\u043d\u0430 \u0432\u0430\u043b\u044e\u0442\u043d\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f",symbol:"XBA"},XBB:{displayName:"\u043e\u0434\u0438\u043d\u0438\u0446\u044f \u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u0444\u043e\u043d\u0434\u0443",symbol:"XBB"},XBC:{displayName:"\u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u0430 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u043d\u043a\u043e\u0432\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f XBC",symbol:"XBC"},XBD:{displayName:"\u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u0430 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u043d\u043a\u043e\u0432\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f XBD",symbol:"XBD"},XCD:{displayName:"\u0441\u0445\u0456\u0434\u043d\u043e\u043a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0441\u0445\u0456\u0434\u043d\u043e\u043a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-few":"\u0441\u0445\u0456\u0434\u043d\u043e\u043a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0441\u0445\u0456\u0434\u043d\u043e\u043a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0441\u0445\u0456\u0434\u043d\u043e\u043a\u0430\u0440\u0438\u0431\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430",symbol:"XCD","symbol-alt-narrow":"$"},XDR:{displayName:"\u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456 \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u043f\u043e\u0437\u0438\u0447\u0435\u043d\u043d\u044f",symbol:"XDR"},XEU:{displayName:"\u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u0430 \u0432\u0430\u043b\u044e\u0442\u043d\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f",symbol:"XEU"},XFO:{displayName:"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0439 \u0437\u043e\u043b\u043e\u0442\u0438\u0439 \u0444\u0440\u0430\u043d\u043a",symbol:"XFO"},XFU:{displayName:"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a UIC",symbol:"XFU"},XOF:{displayName:"\u0437\u0430\u0445\u0456\u0434\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0437\u0430\u0445\u0456\u0434\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0437\u0430\u0445\u0456\u0434\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0437\u0430\u0445\u0456\u0434\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0437\u0430\u0445\u0456\u0434\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"F\u202fCFA"},XPD:{displayName:"\u043f\u0430\u043b\u0430\u0434\u0456\u0439",symbol:"XPD"},XPF:{displayName:"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0439 \u0442\u0438\u0445\u043e\u043e\u043a\u0435\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-one":"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0439 \u0442\u0438\u0445\u043e\u043e\u043a\u0435\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a","displayName-count-few":"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0456 \u0442\u0438\u0445\u043e\u043e\u043a\u0435\u0430\u043d\u0441\u044c\u043a\u0456 \u0444\u0440\u0430\u043d\u043a\u0438","displayName-count-many":"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0438\u0445 \u0442\u0438\u0445\u043e\u043e\u043a\u0435\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0444\u0440\u0430\u043d\u043a\u0456\u0432","displayName-count-other":"\u0444\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u043e\u0433\u043e \u0442\u0438\u0445\u043e\u043e\u043a\u0435\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430",symbol:"CFPF"},XPT:{displayName:"\u043f\u043b\u0430\u0442\u0438\u043d\u0430",symbol:"XPT"},XRE:{displayName:"\u0444\u043e\u043d\u0434\u0438 RINET",symbol:"XRE"},XSU:{displayName:"XSU",symbol:"XSU"},XTS:{displayName:"\u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0432\u0430\u043b\u044e\u0442\u0438",symbol:"XTS"},XUA:{displayName:"XUA",symbol:"XUA"},XXX:{displayName:"\u043d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u0433\u0440\u043e\u0448\u043e\u0432\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f","displayName-count-one":"\u043d\u0435\u0432\u0456\u0434\u043e\u043c\u0430 \u0433\u0440\u043e\u0448\u043e\u0432\u0430 \u043e\u0434\u0438\u043d\u0438\u0446\u044f","displayName-count-few":"\u043d\u0435\u0432\u0456\u0434\u043e\u043c\u0456 \u0433\u0440\u043e\u0448\u043e\u0432\u0456 \u043e\u0434\u0438\u043d\u0438\u0446\u0456","displayName-count-many":"\u043d\u0435\u0432\u0456\u0434\u043e\u043c\u0438\u0445 \u0433\u0440\u043e\u0448\u043e\u0432\u0438\u0445 \u043e\u0434\u0438\u043d\u0438\u0446\u044c","displayName-count-other":"\u043d\u0435\u0432\u0456\u0434\u043e\u043c\u043e\u0457 \u0433\u0440\u043e\u0448\u043e\u0432\u043e\u0457 \u043e\u0434\u0438\u043d\u0438\u0446\u0456",symbol:"\xa4"},YDD:{displayName:"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"YDD"},YER:{displayName:"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-one":"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0456\u0430\u043b","displayName-count-few":"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u0456 \u0440\u0456\u0430\u043b\u0438","displayName-count-many":"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0456\u0430\u043b\u0456\u0432","displayName-count-other":"\u0454\u043c\u0435\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0456\u0430\u043b\u0430",symbol:"YER"},YUD:{displayName:"\u044e\u0433\u043e\u0441\u043b\u0430\u0432\u0441\u044c\u043a\u0438\u0439 \u0442\u0432\u0435\u0440\u0434\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"YUD"},YUM:{displayName:"\u044e\u0433\u043e\u0441\u043b\u0430\u0432\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"YUM"},YUN:{displayName:"\u044e\u0433\u043e\u0441\u043b\u0430\u0432\u0441\u044c\u043a\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u0434\u0438\u043d\u0430\u0440",symbol:"YUN"},YUR:{displayName:"YUR",symbol:"YUR"},ZAL:{displayName:"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0444\u0456\u043d\u0430\u043d\u0441\u043e\u0432\u0438\u0439 \u0440\u0430\u043d\u0434",symbol:"ZAL"},ZAR:{displayName:"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0430\u043d\u0434","displayName-count-one":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0439 \u0440\u0430\u043d\u0434","displayName-count-few":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0456 \u0440\u0430\u043d\u0434\u0438","displayName-count-many":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u0440\u0430\u043d\u0434\u0456\u0432","displayName-count-other":"\u043f\u0456\u0432\u0434\u0435\u043d\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u0440\u0430\u043d\u0434\u0430",symbol:"ZAR","symbol-alt-narrow":"R"},ZMK:{displayName:"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430 (1968\u20132012)","displayName-count-one":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430 (1968\u20132012)","displayName-count-few":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u0447\u0456 (1968\u20132012)","displayName-count-many":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u0447 (1968\u20132012)","displayName-count-other":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u0447\u0456 (1968\u20132012)",symbol:"ZMK"},ZMW:{displayName:"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430","displayName-count-one":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0430 \u043a\u0432\u0430\u0447\u0430","displayName-count-few":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0456 \u043a\u0432\u0430\u0447\u0456","displayName-count-many":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u043a\u0432\u0430\u0447","displayName-count-other":"\u0437\u0430\u043c\u0431\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u043a\u0432\u0430\u0447\u0456",symbol:"ZMW","symbol-alt-narrow":"ZK"},ZRN:{displayName:"\u0437\u0430\u0457\u0440\u0441\u044c\u043a\u0438\u0439 \u043d\u043e\u0432\u0438\u0439 \u0437\u0430\u0457\u0440",symbol:"ZRN"},ZRZ:{displayName:"\u0437\u0430\u0457\u0440\u0441\u044c\u043a\u0438\u0439 \u0437\u0430\u0457\u0440",symbol:"ZRZ"},ZWD:{displayName:"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440","displayName-count-one":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430","displayName-count-few":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438","displayName-count-many":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432","displayName-count-other":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438",symbol:"ZWD"},ZWL:{displayName:"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440 (2009)","displayName-count-one":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0439 \u0434\u043e\u043b\u0430\u0440 (2009)","displayName-count-few":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0456 \u0434\u043e\u043b\u0430\u0440\u0438 (2009)","displayName-count-many":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0456\u0432 (2009)","displayName-count-other":"\u0437\u0456\u043c\u0431\u0430\u0431\u0432\u0456\u0439\u0441\u044c\u043a\u043e\u0433\u043e \u0434\u043e\u043b\u0430\u0440\u0430 (2009)",symbol:"ZWL"},ZWR:{displayName:"ZWR",symbol:"ZWR"}},localeCurrency:"UAH"},calendar:{patterns:{d:"dd.MM.y",D:"EEEE, d MMMM y '\u0440'.",m:"d MMM",M:"d MMMM",y:"LLL y '\u0440'.",Y:"LLLL y '\u0440'.",F:"EEEE, d MMMM y '\u0440'. HH:mm:ss",g:"dd.MM.y HH:mm",G:"dd.MM.y HH:mm:ss",t:"HH:mm",T:"HH:mm:ss",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} '\u043e' {0}",long:"{1} '\u043e' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"E, d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"dd-MM-y GGGGG",GyMMM:"LLL y '\u0440'. G",GyMMMd:"d MMM y '\u0440'. G",GyMMMEd:"E, d MMM y '\u0440'. G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"LL",Md:"dd.MM",MEd:"E, dd.MM",MMM:"LLL",MMMd:"d MMM",MMMEd:"E, d MMM",MMMMd:"d MMMM",MMMMEd:"E, d MMMM","MMMMW-count-one":"W-'\u0439' '\u0442\u0438\u0436'. MMMM","MMMMW-count-few":"W-'\u0439' '\u0442\u0438\u0436'. MMMM","MMMMW-count-many":"W-'\u0439' '\u0442\u0438\u0436'. MMMM","MMMMW-count-other":"W-'\u0439' '\u0442\u0438\u0436'. MMMM",ms:"mm:ss",y:"y",yM:"MM.y",yMd:"dd.MM.y",yMEd:"E, dd.MM.y",yMMM:"LLL y '\u0440'.",yMMMd:"d MMM y '\u0440'.",yMMMEd:"E, d MMM y '\u0440'.",yMMMM:"LLLL y '\u0440'.",yQQQ:"QQQ y",yQQQQ:"QQQQ y '\u0440'.","yw-count-one":"w-'\u0439' '\u0442\u0438\u0436'. Y '\u0440'.","yw-count-few":"w-'\u0439' '\u0442\u0438\u0436'. Y '\u0440'.","yw-count-many":"w-'\u0439' '\u0442\u0438\u0436'. Y '\u0440'.","yw-count-other":"w-'\u0439' '\u0442\u0438\u0436'. Y '\u0440'."}},timeFormats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateFormats:{full:"EEEE, d MMMM y '\u0440'.",long:"d MMMM y '\u0440'.",medium:"d MMM y '\u0440'.",short:"dd.MM.yy"},days:{format:{abbreviated:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]},"stand-alone":{abbreviated:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],narrow:["\u041d","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],wide:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"]}},months:{format:{abbreviated:["\u0441\u0456\u0447.","\u043b\u044e\u0442.","\u0431\u0435\u0440.","\u043a\u0432\u0456\u0442.","\u0442\u0440\u0430\u0432.","\u0447\u0435\u0440\u0432.","\u043b\u0438\u043f.","\u0441\u0435\u0440\u043f.","\u0432\u0435\u0440.","\u0436\u043e\u0432\u0442.","\u043b\u0438\u0441\u0442.","\u0433\u0440\u0443\u0434."],narrow:["\u0441","\u043b","\u0431","\u043a","\u0442","\u0447","\u043b","\u0441","\u0432","\u0436","\u043b","\u0433"],wide:["\u0441\u0456\u0447\u043d\u044f","\u043b\u044e\u0442\u043e\u0433\u043e","\u0431\u0435\u0440\u0435\u0437\u043d\u044f","\u043a\u0432\u0456\u0442\u043d\u044f","\u0442\u0440\u0430\u0432\u043d\u044f","\u0447\u0435\u0440\u0432\u043d\u044f","\u043b\u0438\u043f\u043d\u044f","\u0441\u0435\u0440\u043f\u043d\u044f","\u0432\u0435\u0440\u0435\u0441\u043d\u044f","\u0436\u043e\u0432\u0442\u043d\u044f","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430","\u0433\u0440\u0443\u0434\u043d\u044f"]},"stand-alone":{abbreviated:["\u0441\u0456\u0447","\u043b\u044e\u0442","\u0431\u0435\u0440","\u043a\u0432\u0456","\u0442\u0440\u0430","\u0447\u0435\u0440","\u043b\u0438\u043f","\u0441\u0435\u0440","\u0432\u0435\u0440","\u0436\u043e\u0432","\u043b\u0438\u0441","\u0433\u0440\u0443"],narrow:["\u0421","\u041b","\u0411","\u041a","\u0422","\u0427","\u041b","\u0421","\u0412","\u0416","\u041b","\u0413"],wide:["\u0441\u0456\u0447\u0435\u043d\u044c","\u043b\u044e\u0442\u0438\u0439","\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u043a\u0432\u0456\u0442\u0435\u043d\u044c","\u0442\u0440\u0430\u0432\u0435\u043d\u044c","\u0447\u0435\u0440\u0432\u0435\u043d\u044c","\u043b\u0438\u043f\u0435\u043d\u044c","\u0441\u0435\u0440\u043f\u0435\u043d\u044c","\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0436\u043e\u0432\u0442\u0435\u043d\u044c","\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0433\u0440\u0443\u0434\u0435\u043d\u044c"]}},quarters:{format:{abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],narrow:["1","2","3","4"],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},"stand-alone":{abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],narrow:["1","2","3","4"],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]}},dayPeriods:{format:{abbreviated:{midnight:"\u043e\u043f\u0456\u0432\u043d\u043e\u0447\u0456",am:"\u0434\u043f",noon:"\u043f\u043e\u043f\u043e\u043b\u0443\u0434\u043d\u0456",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043a\u0443",afternoon1:"\u0434\u043d\u044f",evening1:"\u0432\u0435\u0447\u043e\u0440\u0430",night1:"\u043d\u043e\u0447\u0456"},narrow:{midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",am:"\u0434\u043f",noon:"\u043f",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043a\u0443",afternoon1:"\u0434\u043d\u044f",evening1:"\u0432\u0435\u0447\u043e\u0440\u0430",night1:"\u043d\u043e\u0447\u0456"},wide:{midnight:"\u043e\u043f\u0456\u0432\u043d\u043e\u0447\u0456",am:"\u0434\u043f",noon:"\u043f\u043e\u043f\u043e\u043b\u0443\u0434\u043d\u0456",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043a\u0443",afternoon1:"\u0434\u043d\u044f",evening1:"\u0432\u0435\u0447\u043e\u0440\u0430",night1:"\u043d\u043e\u0447\u0456"}},"stand-alone":{abbreviated:{midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",am:"\u0434\u043f",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043e\u043a",afternoon1:"\u0434\u0435\u043d\u044c",evening1:"\u0432\u0435\u0447\u0456\u0440",night1:"\u043d\u0456\u0447"},narrow:{midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",am:"\u0434\u043f",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043e\u043a",afternoon1:"\u0434\u0435\u043d\u044c",evening1:"\u0432\u0435\u0447\u0456\u0440",night1:"\u043d\u0456\u0447"},wide:{midnight:"\u043f\u0456\u0432\u043d\u0456\u0447",am:"\u0434\u043f",noon:"\u043f\u043e\u043b\u0443\u0434\u0435\u043d\u044c",pm:"\u043f\u043f",morning1:"\u0440\u0430\u043d\u043e\u043a",afternoon1:"\u0434\u0435\u043d\u044c",evening1:"\u0432\u0435\u0447\u0456\u0440",night1:"\u043d\u0456\u0447"}}},eras:{format:{wide:{0:"\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438",1:"\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","0-alt-variant":"\u0434\u043e \u043d\u043e\u0432\u043e\u0457 \u0435\u0440\u0438","1-alt-variant":"\u043d\u043e\u0432\u043e\u0457 \u0435\u0440\u0438"},abbreviated:{0:"\u0434\u043e \u043d. \u0435.",1:"\u043d. \u0435.","0-alt-variant":"\u0434\u043e \u043d. \u0435.","1-alt-variant":"\u043d. \u0435."},narrow:{0:"\u0434\u043e \u043d.\u0435.",1:"\u043d.\u0435.","0-alt-variant":"\u0434\u043e \u043d. \u0435.","1-alt-variant":"\u043d. \u0435."}}},gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",dateFields:{era:{wide:"\u0435\u0440\u0430",short:"\u0435.",narrow:"\u0435"},year:{wide:"\u0440\u0456\u043a",short:"\u0440.",narrow:"\u0440"},quarter:{wide:"\u043a\u0432\u0430\u0440\u0442\u0430\u043b",short:"\u043a\u0432.",narrow:"\u043a\u0432"},month:{wide:"\u043c\u0456\u0441\u044f\u0446\u044c",short:"\u043c\u0456\u0441.",narrow:"\u043c"},week:{wide:"\u0442\u0438\u0436\u0434\u0435\u043d\u044c",short:"\u0442\u0438\u0436.",narrow:"\u0442"},weekOfMonth:{wide:"\u0442\u0438\u0436\u0434\u0435\u043d\u044c \u043c\u0456\u0441\u044f\u0446\u044f",short:"\u0442\u0438\u0436. \u043c\u0456\u0441\u044f\u0446\u044f",narrow:"\u0442\u0438\u0436. \u043c\u0456\u0441."},day:{wide:"\u0434\u0435\u043d\u044c",short:"\u0434.",narrow:"\u0434"},dayOfYear:{wide:"\u0434\u0435\u043d\u044c \u0440\u043e\u043a\u0443",short:"\u0434. \u0440\u043e\u043a\u0443",narrow:"\u0434\u0435\u043d\u044c \u0440\u043e\u043a\u0443"},weekday:{wide:"\u0434\u0435\u043d\u044c \u0442\u0438\u0436\u043d\u044f",short:"\u0434. \u0442\u0438\u0436\u043d\u044f",narrow:"\u0434 \u0442\u0438\u0436\u043d\u044f"},weekdayOfMonth:{wide:"\u0434\u0435\u043d\u044c \u043c\u0456\u0441\u044f\u0446\u044f",short:"\u0434. \u043c\u0456\u0441\u044f\u0446\u044f",narrow:"\u0434 \u043c\u0456\u0441\u044f\u0446\u044f"},dayperiod:{short:"\u0434\u043f/\u043f\u043f",wide:"\u0434\u043f/\u043f\u043f",narrow:"\u0434\u043f/\u043f\u043f"},hour:{wide:"\u0433\u043e\u0434\u0438\u043d\u0430",short:"\u0433\u043e\u0434.",narrow:"\u0433\u043e\u0434"},minute:{wide:"\u0445\u0432\u0438\u043b\u0438\u043d\u0430",short:"\u0445\u0432.",narrow:"\u0445\u0432"},second:{wide:"\u0441\u0435\u043a\u0443\u043d\u0434\u0430",short:"\u0441",narrow:"\u0441"},zone:{wide:"\u0447\u0430\u0441\u043e\u0432\u0438\u0439 \u043f\u043e\u044f\u0441",short:"\u0447\u0430\u0441. \u043f\u043e\u044f\u0441",narrow:"\u0447\u0430\u0441. \u043f."},millisecond:{narrow:"\u043c\u0441",short:"\u043c\u0441",wide:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434\u0430"}}},firstDay:1,weekendRange:{start:6,end:0},likelySubtags:{uk:"uk-Cyrl-UA"}})},99912:(fn,ve,_)=>{"use strict";_.d(ve,{Xh:()=>y,r4:()=>R,oh:()=>N,Yn:()=>q,$w:()=>j,d:()=>se,IS:()=>Q,Pt:()=>he});const e=()=>typeof window<"u",o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},T={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},A={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},G={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},F=(pe,Ee,ke)=>{for(let Ye in Ee)if(Ee.hasOwnProperty(Ye)&&Ee[Ye].test(pe))return Ye;return void 0!==ke?ke:pe},N=pe=>{let Ee,ke=[];for(let Ye in o)if(o.hasOwnProperty(Ye)){if(ke=pe.match(o[Ye]),!ke)continue;if("windows"===Ye&&"plugins"in window.navigator)return null;const ct={};return ct.device=Ye,ct.browser=F(pe,G,"default"),ct.name=F(Ye,T),ct[ct.name]=!0,ct.majorVersion=ke[2],ct.minorVersion=ke[3]?ke[3].replace("_","."):".0",Ee=ct.minorVersion.replace(".","").substr(0,2),ct.flatVersion=ct.majorVersion+Ee+new Array(3-(Ee.length<3?Ee.length:2)).join("0"),ct.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,ct.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||ct.cordova,ct}return null},R=pe=>{let Ee=null,ke=[];for(let Ye in A)if(A.hasOwnProperty(Ye)&&(ke=pe.match(A[Ye]),ke)){Ee={},Ee[Ye]=!0,Ee[ke[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,Ee.version=parseInt(document.documentMode||ke[2],10);break}return Ee},P=e()&&window.navigator?window.navigator.userAgent:null,y=P?R(P):null,j=P?N(P):null,Y=e()&&"ontouchstart"in window,ee=y&&!y.chrome&&window.MSPointerEvent,se=y&&!y.chrome&&window.PointerEvent,he=j&&(Y||ee||se),Se=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function te(pe){const Ee=[];return pe.replace(Se,function(ke,Ye,ct,ut){Ee.push(void 0!==Ye?Ye:ct||ut)}),Ee}const oe={};function q(pe){if(oe[pe])return oe[pe];const Ee=te(pe);return oe[pe]=function(ke){let Ye=ke;for(let ct=0;ct<Ee.length&&Ye;ct++)Ye=Ye[Ee[ct]];return Ye},oe[pe]}oe.undefined=pe=>pe;const we={undefined:pe=>pe},ae=(pe,Ee)=>Ee&&Ee.arrays&&!isNaN(Number(pe))?[]:{};function Q(pe){if(we[pe])return we[pe];const Ee=te(pe);return we[pe]=(ke,Ye,ct)=>{let ut=ke;const Ct=Ee.length-1;for(let Ue=0;Ue<Ct&&ut;Ue++)ut=ut[Ee[Ue]]=ut[Ee[Ue]]||ae(Ee[Ue+1],ct);ut[Ee[Ct]]=Ye},we[pe]}},92999:(fn,ve,_)=>{"use strict";_.d(ve,{j:()=>Be,vM:()=>Ke,GO:()=>j,Xo:()=>Dn,N4:()=>Ps});const e=Wt=>null!=Wt,o=Wt=>null==Wt,T=Wt=>Array.isArray(Wt),A=Wt=>"function"==typeof Wt,G=Wt=>"string"==typeof Wt,P=Wt=>!isNaN(Wt-parseFloat(Wt)),y=Wt=>Wt&&Wt.getTime,j=Wt=>e(Wt.filters),Y=(Wt,Bn,ti)=>Ui=>Wt(Ui)?Bn(Ui):ti(Ui),ee=(...Wt)=>Bn=>Wt.reduceRight((ti,Ui)=>Ui(ti),Bn),Q=("",{}),pe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;Q.undefined=Wt=>Wt;const Ee=(Wt,Bn)=>{const ti=Wt+Bn;if(Q[ti])return Q[ti];const Ui=[];return Wt.replace(pe,(Pe,gn,z,Ce)=>{Ui.push(e(gn)?gn:z||Ce)}),Q[ti]=Pe=>{let gn=Pe;for(let z=0;z<Ui.length;z++)if(gn=gn[Ui[z]],!e(gn)&&Bn)return gn;return gn},Q[ti]},Ze=Wt=>Bn=>[Wt,Bn],$e=()=>null,Nt=Wt=>Bn=>e(Wt(Bn)),xt=Wt=>Bn=>(Wt=>e(Wt)&&T(Wt)&&Wt.length>0)(Wt(Bn)),Ot=(Wt,Bn)=>Y(Wt,Bn,$e),$t=(Wt,Bn)=>ti=>Wt(ti).map(Bn).join("~"),yt=ee(...[['"',""],[":","-"]].map(([Bn,ti])=>Ui=>Ui.replace(new RegExp(Bn,"g"),ti))),it=Bn=>Bn.slice(0,Bn.indexOf(".")),It=({field:Wt,dir:Bn="asc"})=>`${Wt}-${Bn}`,wn=Ee("take"),Nn=Ee("aggregates"),an=Ee("skip"),sn=Ee("group"),_n=Ee("sort",!0),Ln=$t(_n,It),Mn=$t(sn,It),pi=$t(Nn,({field:Wt,aggregate:Bn})=>`${Wt}-${Bn}`),gi=ee(Wt=>`datetime'${Wt}'`,it,yt,JSON.stringify,Wt=>new Date(Date.UTC(Wt.getFullYear(),Wt.getMonth(),Wt.getDate(),Wt.getHours(),Wt.getMinutes(),Wt.getSeconds(),Wt.getMilliseconds()))),Si=ee(Ze("page"),({skip:Wt,take:Bn})=>Math.floor((Wt||0)/Bn)+1),Ni=ee(Ze("pageSize"),wn),pn=ee(Ze("group"),Mn),Vn=ee(Ze("sort"),Ln),ot=ee(Ze("aggregate"),pi),Li=(Ot(Nt(an),Si),Ot(Nt(wn),Ni),Ot(xt(sn),pn),Ot(Nt(Nn),ot),ee(Ot(xt(_n),Vn),Wt=>Object.assign({},Wt,{sort:(_n(Wt)||[]).filter(({dir:Bn})=>(Wt=>!(Wt=>o(Wt)||0===Wt.trim().length)(Wt))(Bn))})),({field:Wt,operator:Bn,value:ti})=>`${Wt}~${Bn}~${ti}`),bi=(Y(Wt=>y(Wt.value),ee(Li,({field:Wt,value:Bn,ignoreCase:ti,operator:Ui})=>({value:gi(Bn),field:Wt,ignoreCase:ti,operator:Ui})),Li),(Wt,Bn,ti)=>(Bn[Wt]=ti,Bn)),mn=Wt=>Bn=>{const ti=Bn[Wt];return e(ti)?ti:Bn[(Wt=>Wt.replace(/(^[A-Z])/g,(Bn,ti)=>ti.toLowerCase()))(Wt)]},U=(mn("Member"),mn("AggregateMethodName"),mn("Value"),Wt=>Bn=>Object.keys(Bn).reduce(Wt.bind(null,Bn),{})),gt=U((Wt,Bn,ti)=>bi(ti.toLowerCase(),Bn,Wt[ti])),Lt=U((Wt,Bn,ti)=>bi(ti,Bn,gt(Wt[ti]))),kt=(Wt,Bn)=>e(Wt)?Wt:Bn,jn=ee(({field:Wt,hasSubgroups:Bn,value:ti,aggregates:Ui,items:Pe})=>({aggregates:Lt(Ui),field:Wt,items:Bn?Pe.map(jn):Pe,value:ti}),Wt=>({aggregates:Wt.Aggregates||Wt.aggregates,field:Wt.Member||Wt.member||Wt.field,hasSubgroups:Wt.HasSubgroups||Wt.hasSubgroups||!1,items:Wt.Items||Wt.items,value:kt(Wt.Key,kt(Wt.key,Wt.value))})),ie=(Wt,Bn)=>o(Wt)?Wt===Bn?0:-1:o(Bn)?1:Wt.localeCompare?Wt.localeCompare(Bn):Wt>Bn?1:Wt<Bn?-1:0,je=(Wt,Bn)=>ie(Bn,Wt),pt=Wt=>{const Bn=Ee(Wt.field,!0);return(ti,Ui)=>("asc"===Wt.dir?ie:je)(Bn(ti),Bn(Ui))},Ut=(Wt,Bn)=>0,Pi=(Wt,Bn)=>(Wt.push(Bn),Wt),Di=Wt=>Bn=>(ti,Ui,Pe)=>Bn(ti,Wt(Ui,Pe)),Yi=Wt=>Bn=>(ti,Ui)=>Wt(Ui)?Bn(ti,Ui):ti,ji=Wt=>e(Wt.__value),zi=(Wt,Bn,ti)=>{let Ui=Bn;for(let Pe=0,gn=ti.length;Pe<gn;Pe++)if(Ui=Wt(Ui,ti[Pe],Pe),ji(Ui)){Ui=Ui.__value;break}return Ui},as=Di(Wt=>Wt),ds=(Wt,Bn=[],ti=as)=>{const Ui={};return Bn.length?((Wt={})=>(Object.keys(Wt).forEach(Bn=>{const ti=Wt[Bn];Object.keys(ti).forEach(Ui=>{ti[Ui]=ti[Ui].result()})}),Wt))(zi(ti((Wt=>{const Bn=Wt.map(ti=>{const Ui=Ee(ti.field,!0),Pe=(ti.aggregate||"").toLowerCase(),gn=Ee(Pe,!0);return(z,Ce)=>{const on=z[ti.field]||{},Hn=gn(on)||(Wt=>({average:()=>{let Bn=0,ti=0;return{calc:Ui=>{P(Ui)?(Bn+=Ui,ti++):Bn=Ui},result:()=>P(Bn)?Bn/ti:Bn}},count:()=>{let Bn=0;return{calc:()=>Bn++,result:()=>Bn}},max:()=>{let Bn=Number.NEGATIVE_INFINITY;return{calc:ti=>{Bn=P(Bn)||y(Bn)?Bn:ti,Bn<ti&&(P(ti)||y(ti))&&(Bn=ti)},result:()=>Bn}},min:()=>{let Bn=Number.POSITIVE_INFINITY;return{calc:ti=>{Bn=P(Bn)||y(Bn)?Bn:ti,Bn>ti&&(P(ti)||y(ti))&&(Bn=ti)},result:()=>Bn}},sum:()=>{let Bn=0;return{calc:ti=>{ti=e(ti)?ti:0,Bn+=ti},result:()=>Bn}}}[Wt]()))(Pe);return Hn.calc(Ui(Ce)),on[ti.aggregate]=Hn,z[ti.field]=on,z}});return(ti,Ui)=>Bn.reduce((Pe,gn)=>gn(Pe,Ui),ti)})(Bn)),Ui,Wt)):Ui},us=Wt=>{Wt.filters&&(Wt.filters=Wt.filters.map(Bn=>{const ti=Object.assign({},Bn);return!j(Bn)&&G(Bn.operator)&&(ti.operator=(Wt=>({"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[Wt.toLowerCase()]||Wt))(Bn.operator)),j(Bn)&&us(ti),ti}))},_s=Wt=>(e(Wt)&&(Wt=(Wt=>j(Wt)?Object.assign({},Wt):{filters:T(Wt)?Wt:[Wt],logic:"and"})(Wt),us(Wt)),Wt),ei={or:{concat:(Wt,Bn)=>ti=>Wt(ti)||Bn(ti),identity:()=>!1},and:{concat:(Wt,Bn)=>ti=>Wt(ti)&&Bn(ti),identity:()=>!0}},Fs={contains:(Wt,Bn)=>(Wt||"").indexOf(Bn)>=0,doesnotcontain:(Wt,Bn)=>-1===(Wt||"").indexOf(Bn),doesnotendwith:(Wt,Bn)=>(Wt||"").indexOf(Bn,(Wt||"").length-(Bn||"").length)<0,doesnotstartwith:(Wt,Bn)=>-1===(Wt||"").lastIndexOf(Bn,0),endswith:(Wt,Bn)=>(Wt||"").indexOf(Bn,(Wt||"").length-(Bn||"").length)>=0,eq:(Wt,Bn)=>Wt===Bn,gt:(Wt,Bn)=>Wt>Bn,gte:(Wt,Bn)=>Wt>=Bn,isempty:Wt=>""===Wt,isnotempty:Wt=>""!==Wt,isnotnull:Wt=>e(Wt),isnull:Wt=>o(Wt),lt:(Wt,Bn)=>Wt<Bn,lte:(Wt,Bn)=>Wt<=Bn,neq:(Wt,Bn)=>Wt!=Bn,startswith:(Wt,Bn)=>0===(Wt||"").lastIndexOf(Bn,0)},po=/^\/Date\((.*?)\)\/$/,Le=Wt=>{const Bn=ei[Wt.logic];return Wt.filters.filter(e).map(ti=>j(ti)?Le(ti):(({field:Wt,ignoreCase:Bn,value:ti,operator:Ui})=>{Wt=e(Wt)?Wt:z=>z,Bn=!e(Bn)||Bn;const Pe=((Wt,Bn,ti)=>{if(!e(Bn))return Wt;let Ui=Wt;if(G(Bn)){const Pe=po.exec(Bn);Pe?Bn=new Date(+Pe[1]):Ui=gn=>{const z=Wt(gn);return"string"==typeof z&&ti?z.toLowerCase():P(z)?z+"":z}}return y(Bn)?Pe=>{const gn=Ui(Pe);return y(gn)?gn.getTime():gn}:Ui})(A(Wt)?Wt:Ee(Wt,!0),ti,Bn);ti=((Wt,Bn)=>{if(null!=Wt&&G(Wt)){const ti=po.exec(Wt);if(ti)return new Date(+ti[1]).getTime();if(Bn)return Wt.toLowerCase()}else if(null!=Wt&&y(Wt))return Wt.getTime();return Wt})(ti,Bn);const gn=A(Ui)?Ui:Fs[Ui];return z=>gn(Pe(z),ti,Bn)})(ti)).reduce(Bn.concat,Bn.identity)},Pt=Wt=>Wt&&0!==Wt.filters.length?Le(Wt):()=>!0,Be=(Wt,Bn)=>!e(Bn)||j(Bn)&&0===Bn.filters.length?Wt:Wt.filter(Pt(_s(Bn))),Jt=Wt=>(Wt=T(Wt)?Wt:[Wt]).map(Bn=>Object.assign({dir:"asc"},Bn)),xe=Di(Wt=>Wt),Ke=(Wt,Bn=[],ti=xe,Ui=Wt)=>{if(!(Bn=Jt(Bn)).length)return Wt;const Pe=Bn[0],z=zi(ti((Wt=>{const Bn=Ee(Wt,!0);let ti=0;return(Ui,Pe)=>{Ui[Wt]=Ui[Wt]||{};const gn=Bn(Pe),z=(Wt=>(Wt=e(Wt)&&Wt.getTime?Wt.getTime():Wt)+"")(gn),Ce=Ui[Wt][z]||{__position:ti++,aggregates:{},items:[],value:gn};return Ce.items.push(Pe),Ui[Wt][z]=Ce,Ui}})(Pe.field)),{},Wt),Ce=[];return Object.keys(z).forEach(on=>{Object.keys(z[on]).forEach(Hn=>{const Mi=z[on][Hn];let Fi={},os=Ui;e(Pe.aggregates)&&(os=Be(Ui,{field:Pe.field,ignoreCase:!1,operator:"eq",value:Mi.value}),Fi=ds(os,Pe.aggregates)),Ce[Mi.__position]={aggregates:Fi,field:on,items:Bn.length>1?Ke(Mi.items,Bn.slice(1),xe,os):Mi.items,value:Mi.value}})}),Ce},Et=(Wt,Bn,ti,Ui)=>{if(ti-Bn<2)return;const Pe=Bn+ti>>>1;Et(Wt,Bn,Pe,Ui),Et(Wt,Pe,ti,Ui),((Wt,Bn,ti,Ui,Pe)=>{let gn=ti-Bn,z=Ui-ti;const Ce=[];for(let Fi=0;Fi<gn;Fi++)Ce.push(Wt[Bn+Fi]);let on=0,Hn=ti,Mi=Bn;do{Pe(Wt[Hn],Ce[on])<0?(Wt[Mi++]=Wt[Hn++],z--):(Wt[Mi++]=Ce[on++],gn--)}while(z>0&&gn>0);for(;gn;)Wt[Mi++]=Ce[on++],gn--;for(;z;)Wt[Mi++]=Wt[Hn++],z--})(Wt,Bn,Pe,ti,Ui)},Dn=(Wt,Bn)=>{if(Bn.some(ti=>e(ti.dir))){Wt=Wt.slice(0);const ti=(Wt=>Wt.filter(Bn=>e(Bn.dir)).map(Bn=>pt(Bn)).reduce((Bn,ti)=>(Ui,Pe)=>Bn(Ui,Pe)||ti(Ui,Pe),Ut))(Bn);Et(Wt,0,Wt.length,ti)}return Wt},bo=(Wt,Bn)=>Bn?Wt.filter(Bn):Wt,Ps=(Wt,Bn)=>{const{skip:ti,take:Ui,filter:Pe,sort:gn,group:z}=Bn,Ce=[...Jt(z||[]),...gn||[]];Ce.length&&(Wt=Dn(Wt,Ce));const on=e(Pe)&&Yi.length,Hn=e(z)&&z.length;if(!on&&!Hn)return{data:Ui?Wt.slice(ti,ti+Ui):Wt,total:Wt.length};let Mi;const Fi=[];let os;if(on?(os=Pt(_s(Pe)),Mi=((Wt,Bn)=>{let ti=0;for(let Ui=0,Pe=Wt.length;Ui<Pe;Ui++)Bn(Wt[Ui])&&ti++;return ti})(Wt,os),Fi.push(Yi(os))):Mi=Wt.length,e(ti)&&e(Ui)&&(Fi.push((Wt=>Bn=>(ti,Ui)=>Wt--<=0?Bn(ti,Ui):ti)(ti)),Fi.push((Wt=>Bn=>(ti,Ui)=>Wt-- >0?Bn(ti,Ui):(Wt=>ji(Wt)?Wt:{__value:Wt,reduced:!0})(ti))(Ui))),Fi.length){const dn=ee(...Fi);return{data:Hn?Ke(Wt,z,dn,bo(Wt,os)):zi(dn(Pi),[],Wt),total:Mi}}return{data:Hn?Ke(Wt,z):Wt,total:Mi}}},27704:(fn,ve,_)=>{"use strict";_.d(ve,{E:()=>T});var e=_(28587),o=_(94046);const T=(A,G)=>{const F=(0,o.k)(A);return F.setDate(F.getDate()+G),(0,e.m)(F,A.getHours())}},9048:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>F});var e=_(28587),o=_(94046),T=_(14902);const F=(N,R)=>{const P=(0,o.k)(N),j=(12+(P.getMonth()+R)%12)%12;return P.setMonth(P.getMonth()+R),((N,R)=>N.getMonth()!==R?(0,T.q)(F(N,-1)):N)((0,e.m)(P,N.getHours()),j)}},28587:(fn,ve,_)=>{"use strict";_.d(ve,{m:()=>o});var e=_(94046);const o=(T,A)=>{const G=(0,e.k)(T);return 0===A&&23===G.getHours()&&G.setHours(G.getHours()+2),G}},94046:(fn,ve,_)=>{"use strict";_.d(ve,{k:()=>e});const e=o=>o?new Date(o.getTime()):null},94682:(fn,ve,_)=>{"use strict";_.d(ve,{Mb:()=>T,X$:()=>e,zq:()=>o});const e=6e4,o=36e5,T=864e5},85254:(fn,ve,_)=>{"use strict";_.d(ve,{B:()=>o});var e=_(28587);const o=(T,A,G,F=0,N=0,R=0,P=0)=>{const y=new Date(T,A,G,F,N,R,P);return T>-1&&T<100&&y.setFullYear(y.getFullYear()-1900),(0,e.m)(y,F)}},79993:(fn,ve,_)=>{"use strict";_.d(ve,{J:()=>e});var e=(()=>{return(o=e||(e={}))[o.Sunday=0]="Sunday",o[o.Monday=1]="Monday",o[o.Tuesday=2]="Tuesday",o[o.Wednesday=3]="Wednesday",o[o.Thursday=4]="Thursday",o[o.Friday=5]="Friday",o[o.Saturday=6]="Saturday",e;var o})()},94991:(fn,ve,_)=>{"use strict";_.d(ve,{l:()=>o});var e=_(85254);const o=T=>(0,e.B)(T.getFullYear(),T.getMonth(),1,T.getHours(),T.getMinutes(),T.getSeconds(),T.getMilliseconds())},50854:(fn,ve,_)=>{"use strict";_.d(ve,{_:()=>o});var e=_(85254);const o=T=>(0,e.B)(T.getFullYear(),T.getMonth(),T.getDate(),0,0,0)},15971:(fn,ve,_)=>{"use strict";_.d(ve,{X:()=>e});const e=(o,T)=>!o&&!T||o&&T&&o.getTime()===T.getTime()},14902:(fn,ve,_)=>{"use strict";_.d(ve,{q:()=>T});var e=_(27704),o=_(85254);const T=A=>{const G=(0,o.B)(A.getFullYear(),A.getMonth()+1,1,A.getHours(),A.getMinutes(),A.getSeconds(),A.getMilliseconds());return(0,e.E)(G,-1)}},53454:(fn,ve,_)=>{"use strict";_.d(ve,{_:()=>P});const e=(j,Y)=>ee=>Y(j(ee)),o=(j,Y,ee)=>j.addEventListener&&j.addEventListener(Y,ee),T=(j,Y,ee)=>j&&j.removeEventListener&&j.removeEventListener(Y,ee),A=()=>{},G=j=>j.preventDefault(),F=/touch/;function R(j){return j.type.match(F)?{pageX:j.changedTouches[0].pageX,pageY:j.changedTouches[0].pageY,clientX:j.changedTouches[0].clientX,clientY:j.changedTouches[0].clientY,type:j.type,originalEvent:j,isTouch:!0}:{pageX:j.pageX,pageY:j.pageY,clientX:j.clientX,clientY:j.clientY,offsetX:j.offsetX,offsetY:j.offsetY,type:j.type,ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,originalEvent:j}}let P=(()=>{class j{static supportPointerEvent(){return typeof window<"u"&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:ee=A,drag:se=A,release:he=A,mouseOnly:Se=!1}){this._pressHandler=e(R,ee),this._dragHandler=e(R,se),this._releaseHandler=e(R,he),this._ignoreMouse=!1,this._mouseOnly=Se,this._touchstart=te=>{1===te.touches.length&&this._pressHandler(te)},this._touchmove=te=>{1===te.touches.length&&this._dragHandler(te)},this._touchend=te=>{0===te.touches.length&&1===te.changedTouches.length&&(this._releaseHandler(te),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=te=>{const{which:oe}=te;oe&&oe>1||this._ignoreMouse||(o(this.document,"mousemove",this._mousemove),o(this.document,"mouseup",this._mouseup),this._pressHandler(te))},this._mousemove=te=>{this._dragHandler(te)},this._mouseup=te=>{T(this.document,"mousemove",this._mousemove),T(this.document,"mouseup",this._mouseup),this._releaseHandler(te)},this._pointerdown=te=>{te.isPrimary&&0===te.button&&(o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"pointercancel",this._pointerup),o(this.document,"contextmenu",G),this._pressHandler(te))},this._pointermove=te=>{te.isPrimary&&this._dragHandler(te)},this._pointerup=te=>{te.isPrimary&&(T(this.document,"pointermove",this._pointermove),T(this.document,"pointerup",this._pointerup),T(this.document,"pointercancel",this._pointerup),T(this.document,"contextmenu",G),this._releaseHandler(te))}}bindTo(ee){ee!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=ee,this._bindToCurrent())}_bindToCurrent(){const ee=this._element;this._usePointers()?o(ee,"pointerdown",this._pointerdown):(o(ee,"mousedown",this._mousedown),this._mouseOnly||(o(ee,"touchstart",this._touchstart),o(ee,"touchmove",this._touchmove),o(ee,"touchend",this._touchend)))}_unbindFromCurrent(){const ee=this._element;if(this._usePointers())return T(ee,"pointerdown",this._pointerdown),T(this.document,"pointermove",this._pointermove),T(this.document,"pointerup",this._pointerup),T(this.document,"contextmenu",G),void T(this.document,"pointercancel",this._pointerup);T(ee,"mousedown",this._mousedown),this._mouseOnly||(T(ee,"touchstart",this._touchstart),T(ee,"touchmove",this._touchmove),T(ee,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&j.supportPointerEvent()}update({press:ee=A,drag:se=A,release:he=A,mouseOnly:Se=!1}){this._pressHandler=e(R,ee),this._dragHandler=e(R,se),this._releaseHandler=e(R,he),this._mouseOnly=Se}destroy(){this._unbindFromCurrent(),this._element=null}}return j.default=j,j})()},71211:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>e});class e{}},32429:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(71211),o=_(76211),T=_(1174);const F=(()=>{class N extends e.Z{constructor(P){if(super(),1===arguments.length){const y=N.formats,j=this.resolveColor(P);for(let Y=0;Y<y.length;Y++){const se=y[Y].process,he=y[Y].re.exec(j);if(he){const Se=se(he);this.r=Se[0],this.g=Se[1],this.b=Se[2]}}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}toHex(){const P=this.padDigit,y=this.r.toString(16),j=this.g.toString(16),Y=this.b.toString(16);return"#"+P(y)+P(j)+P(Y)}resolveColor(P){let y=P||"black";return"#"===y.charAt(0)&&(y=y.substr(1,6)),y=y.replace(/ /g,""),y=y.toLowerCase(),y=N.namedColors[y]||y,y}normalizeByte(P){return P<0||isNaN(P)?0:P>255?255:P}padDigit(P){return 1===P.length?"0"+P:P}brightness(P){const y=Math.round;return this.r=y(this.normalizeByte(this.r*P)),this.g=y(this.normalizeByte(this.g*P)),this.b=y(this.normalizeByte(this.b*P)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(P,y,j,Y){return new T.Jj(P,y,j,Y??1)}static fromRGB(P,y,j,Y){return new T.eX(P,y,j,Y??1)}static fromHSV(P,y,j,Y){return new T.kz(P,y,j,Y??1)}static fromHSL(P,y,j,Y){return new T.wA(P,y,j,Y??1)}}return N.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(R){return[parseInt(R[1],10),parseInt(R[2],10),parseInt(R[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(R){return[parseInt(R[1],16),parseInt(R[2],16),parseInt(R[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(R){return[parseInt(R[1]+R[1],16),parseInt(R[2]+R[2],16),parseInt(R[3]+R[3],16)]}}],N.namedColors=o.Z,N})()},76211:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});const o={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}},1174:(fn,ve,_)=>{"use strict";_.d(ve,{Jj:()=>R,ZP:()=>se,eX:()=>N,kz:()=>y,wA:()=>j});var e=_(71211),o=_(48131),T=_(76211);const A=o.Z.browser;let G=he=>{const Se=Object.keys(T.Z);Se.push("transparent");const te=new RegExp("^("+Se.join("|")+")(\\W|$)","i");return G=oe=>te.exec(oe),te.exec(he)};class F extends e.Z{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(Se){return this.toBytes().toHex(Se)}toBytes(){return this}toCss(Se){return"#"+this.toHex(Se)}toCssRgba(){const Se=this.toBytes();return`rgba(${Se.r}, ${Se.g}, ${Se.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return A.msie&&A.version<9?this.toCss():this.toCssRgba()}equals(Se){return Se===this||null!=Se&&this.toCssRgba()===se(Se).toCssRgba()}diff(Se){if(null===Se)return NaN;const te=this.toBytes(),oe=Se.toBytes();return Math.sqrt(Math.pow(.3*(te.r-oe.r),2)+Math.pow(.59*(te.g-oe.g),2)+Math.pow(.11*(te.b-oe.b),2))}clone(){let Se=this.toBytes();return Se===this&&(Se=new R(Se.r,Se.g,Se.b,Se.a)),Se}}class N extends F{constructor(Se,te,oe,q){super(),this.r=Se,this.g=te,this.b=oe,this.a=q}toHSV(){const{r:Se,g:te,b:oe}=this,q=Math.min(Se,te,oe),we=Math.max(Se,te,oe),ae=we-q,Q=we;let pe,Ee;return 0===ae?new y(0,0,Q,this.a):(0!==we?(Ee=ae/we,pe=Se===we?(te-oe)/ae:te===we?2+(oe-Se)/ae:4+(Se-te)/ae,pe*=60,pe<0&&(pe+=360)):(Ee=0,pe=-1),new y(pe,Ee,Q,this.a))}toHSL(){const{r:Se,g:te,b:oe}=this,q=Math.max(Se,te,oe),we=Math.min(Se,te,oe);let ae,Q,pe=(q+we)/2;if(q===we)ae=Q=0;else{const Ee=q-we;switch(Q=pe>.5?Ee/(2-q-we):Ee/(q+we),q){case Se:ae=(te-oe)/Ee+(te<oe?6:0);break;case te:ae=(oe-Se)/Ee+2;break;case oe:ae=(Se-te)/Ee+4}}return new j(60*ae,100*Q,100*pe,this.a)}toBytes(){return new R(255*this.r,255*this.g,255*this.b,this.a)}}class R extends N{constructor(Se,te,oe,q){super(Math.round(Se),Math.round(te),Math.round(oe),q)}toRGB(){return new N(this.r/255,this.g/255,this.b/255,this.a)}toHSV(){return this.toRGB().toHSV()}toHSL(){return this.toRGB().toHSL()}toHex(Se){let te=P(this.r,2)+P(this.g,2)+P(this.b,2);return Se&&Se.alpha&&(te+=P(Math.round(255*this.a),2)),te}toBytes(){return this}}function P(he,Se,te="0"){let oe=he.toString(16);for(;Se>oe.length;)oe=te+oe;return oe}class y extends F{constructor(Se,te,oe,q){super(),this.h=Se,this.s=te,this.v=oe,this.a=q}toRGB(){let q,we,ae,{h:Se,s:te,v:oe}=this;if(0===te)q=we=ae=oe;else{Se/=60;const Q=Math.floor(Se),pe=Se-Q,Ee=oe*(1-te),ke=oe*(1-te*pe),Ye=oe*(1-te*(1-pe));switch(Q){case 0:q=oe,we=Ye,ae=Ee;break;case 1:q=ke,we=oe,ae=Ee;break;case 2:q=Ee,we=oe,ae=Ye;break;case 3:q=Ee,we=ke,ae=oe;break;case 4:q=Ye,we=Ee,ae=oe;break;default:q=oe,we=Ee,ae=ke}}return new N(q,we,ae,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class j extends F{constructor(Se,te,oe,q){super(),this.h=Se,this.s=te,this.l=oe,this.a=q}toRGB(){let q,we,ae,Se=this.h/360,te=this.s/100,oe=this.l/100;if(0===te)q=we=ae=oe;else{const Q=oe<.5?oe*(1+te):oe+te-oe*te,pe=2*oe-Q;q=Y(pe,Q,Se+1/3),we=Y(pe,Q,Se),ae=Y(pe,Q,Se-1/3)}return new N(q,we,ae,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function Y(he,Se,te){let oe=te;return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?he+6*(Se-he)*oe:oe<.5?Se:oe<2/3?he+(Se-he)*(2/3-oe)*6:he}function ee(he){return parseFloat(parseFloat(parseInt(he,16)/255).toFixed(3))}function se(he,Se){let te,oe;if(null==he||"none"===he)return null;if(he instanceof F)return he;let q=he.toLowerCase();if(te=G(q))return q="transparent"===te[1]?new N(1,1,1,0):se(T.Z[te[1]],Se),q.match=[te[1]],q;if((te=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(q))?oe=new R(parseInt(te[1],16),parseInt(te[2],16),parseInt(te[3],16),1):(te=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(q))?oe=new R(parseInt(te[1]+te[1],16),parseInt(te[2]+te[2],16),parseInt(te[3]+te[3],16),1):(te=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(q))?oe=new R(parseInt(te[1]+te[1],16),parseInt(te[2]+te[2],16),parseInt(te[3]+te[3],16),ee(te[4]+te[4])):(te=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(q))?oe=new R(parseInt(te[1],16),parseInt(te[2],16),parseInt(te[3],16),ee(te[4])):(te=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(q))?oe=new R(parseInt(te[1],10),parseInt(te[2],10),parseInt(te[3],10),1):(te=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(q))?oe=new R(parseInt(te[1],10),parseInt(te[2],10),parseInt(te[3],10),parseFloat(te[4])):(te=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(q))?oe=new N(parseFloat(te[1])/100,parseFloat(te[2])/100,parseFloat(te[3])/100,1):(te=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(q))&&(oe=new N(parseFloat(te[1])/100,parseFloat(te[2])/100,parseFloat(te[3])/100,parseFloat(te[4]))),oe)oe.match=te;else if(!Se)throw new Error("Cannot parse color: "+q);return oe}},48131:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>A});let o=null;const A={get browser(){return typeof window>"u"||o||(o=function e(G){const F={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i};let N={};for(let R in F)if(F.hasOwnProperty(R)){const P=G.match(F[R]);if(P){N[R]=!0,N[P[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,N.version=parseInt(document.documentMode||P[2],10);break}}return N}(window.navigator.userAgent)),o}}},3735:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>T});var e=_(71211);const T=class o extends e.Z{observers(){return this._observers=this._observers||[],this._observers}addObserver(G){return this._observers?this._observers.push(G):this._observers=[G],this}removeObserver(G){const F=this.observers(),N=F.indexOf(G);return-1!==N&&F.splice(N,1),this}trigger(G,F){const N=this._observers;if(N&&!this._suspended)for(let R=0;R<N.length;R++){let P=N[R];P[G]&&P[G](F)}return this}optionsChange(G={}){G.element=this,this.trigger("optionsChange",G)}geometryChange(){this.trigger("geometryChange",{element:this})}suspend(){return this._suspended=(this._suspended||0)+1,this}resume(){return this._suspended=Math.max((this._suspended||0)-1,0),this}_observerField(G,F){this[G]&&this[G].removeObserver(this),this[G]=F,F.addObserver(this)}}},64914:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(71211),o=_(3735),T=_(80829);const A={}.toString;class G extends o.Z{constructor(R,P=""){super(),this.prefix=P;for(let y in R){let j=R[y];j=this._wrap(j,y),this[y]=j}}get(R){const P=R.split(".");let y=this;for(;P.length&&y;)y=y[P.shift()];return y}set(R,P){this.get(R)!==P&&(this._set(R,this._wrap(P,R)),this.optionsChange({field:this.prefix+R,value:P}))}_set(R,P){const y=R.indexOf(".")>=0;let j=this,Y=R;if(y){const ee=Y.split(".");let se=this.prefix;for(;ee.length>1;){Y=ee.shift(),se+=Y+".";let he=j[Y];he||(he=new G({},se),he.addObserver(this),j[Y]=he),j=he}Y=ee[0]}j._clear(Y),j[Y]=P}_clear(R){const P=this[R];P&&P.removeObserver&&P.removeObserver(this)}_wrap(R,P){const y=A.call(R);let j=R;return null!==j&&(0,T.Z)(j)&&"[object Object]"===y&&(!(R instanceof G)&&!(R instanceof e.Z)&&(j=new G(j,this.prefix+P+".")),j.addObserver(this)),j}}const F=G},8713:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>ae});var e=_(3735),o=_(88313),T=_(6175),A=_(65769),G=_(13046),F=_(84583);function N(Q,pe,Ee){return Q<pe||(0,F.Z)(Q,pe,Ee)}var R=_(83274),y=_(54755),j=_(21284),Y=_(84572),ee=_(40904);const he=Math.pow,Se=["radiusX","radiusY","startAngle","endAngle","anticlockwise"];class te extends((0,G.Z)(e.Z,Se)){constructor(pe=new R.Z,Ee={}){super(),this.setCenter(pe),this.radiusX=Ee.radiusX,this.radiusY=Ee.radiusY||Ee.radiusX,this.startAngle=Ee.startAngle,this.endAngle=Ee.endAngle,this.anticlockwise=Ee.anticlockwise||!1,this.xRotation=Ee.xRotation}clone(){return new te(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}setCenter(pe){return this._observerField("center",R.Z.create(pe)),this.geometryChange(),this}getCenter(){return this.center}pointAt(pe){const Ee=this.center,ke=(0,o.Z)(pe);return new R.Z(Ee.x+this.radiusX*Math.cos(ke),Ee.y+this.radiusY*Math.sin(ke))}curvePoints(){const pe=this.startAngle,Ee=this.anticlockwise?-1:1,ke=[this.pointAt(pe)],Ye=this._arcInterval(),ct=Ye.endAngle-Ye.startAngle,ut=Math.ceil(ct/45),Ct=ct/ut;let vt,Ue=pe;this.xRotation&&(vt=(0,ee.Z)().rotate(this.xRotation,this.center));for(let ln=1;ln<=ut;ln++){const Je=Ue+Ee*Ct,Ft=this._intervalCurvePoints(Ue,Je,vt);ke.push(Ft.cp1,Ft.cp2,Ft.p2),Ue=Je}return ke}bbox(pe){const Ee=this._arcInterval(),ke=Ee.startAngle,Ye=Ee.endAngle,ct=(0,y.Z)(this.center,this.radiusX,this.radiusY,pe),ut=(0,T.Z)(ct.x),Ct=(0,T.Z)(ct.y),Ue=this.pointAt(Ye).transformCopy(pe);let vt=we(ut,ke),ln=we(Ct,ke),Je=this.pointAt(ke).transformCopy(pe),Ft=R.Z.min(Je,Ue),st=R.Z.max(Je,Ue);for(;vt<Ye||ln<Ye;){let Ze,$e;vt<Ye&&(Ze=this.pointAt(vt).transformCopy(pe),vt+=90),ln<Ye&&($e=this.pointAt(ln).transformCopy(pe),ln+=90),Je=new R.Z(Ze.x,$e.y),Ft=R.Z.min(Ft,Je),st=R.Z.max(st,Je)}return Y.Z.fromPoints(Ft,st)}_arcInterval(){let{startAngle:pe,endAngle:Ee,anticlockwise:ke}=this;if(ke){let Ye=pe;pe=Ee,Ee=Ye}return(pe>Ee||ke&&pe===Ee)&&(Ee+=360),{startAngle:pe,endAngle:Ee}}_intervalCurvePoints(pe,Ee,ke){const Ye=this.pointAt(pe),ct=this.pointAt(Ee),ut=this._derivativeAt(pe),Ct=this._derivativeAt(Ee),Ue=((0,o.Z)(Ee)-(0,o.Z)(pe))/3,vt=new R.Z(Ye.x+Ue*ut.x,Ye.y+Ue*ut.y),ln=new R.Z(ct.x-Ue*Ct.x,ct.y-Ue*Ct.y);return ke&&(Ye.transform(ke),ct.transform(ke),vt.transform(ke),ln.transform(ke)),{p1:Ye,cp1:vt,cp2:ln,p2:ct}}_derivativeAt(pe){const Ee=(0,o.Z)(pe);return new R.Z(-this.radiusX*Math.sin(Ee),this.radiusY*Math.cos(Ee))}containsPoint(pe){const Ee=this._arcInterval(),ke=Ee.endAngle-Ee.startAngle,{center:Ye,radiusX:ct,radiusY:ut}=this,Ct=Ye.distanceTo(pe),Ue=Math.atan2(pe.y-Ye.y,pe.x-Ye.x),vt=ct*ut/Math.sqrt(he(ct,2)*he(Math.sin(Ue),2)+he(ut,2)*he(Math.cos(Ue),2)),ln=this.pointAt(this.startAngle).round(j.c),Je=this.pointAt(this.endAngle).round(j.c),Ft=function P(Q,pe,Ee,ke){const Ye=pe.x-Q.x,ct=ke.x-Ee.x,ut=pe.y-Q.y,Ct=ke.y-Ee.y,Ue=Q.x-Ee.x,vt=Q.y-Ee.y,ln=Ye*Ct-ct*ut,Je=(Ye*vt-ut*Ue)/ln,Ft=(ct*vt-Ct*Ue)/ln;if(Je>=0&&Je<=1&&Ft>=0&&Ft<=1)return new R.Z(Q.x+Ft*Ye,Q.y+Ft*ut)}(Ye,pe.round(j.c),ln,Je);let st;if(ke<180)st=Ft&&N(Ye.distanceTo(Ft),Ct)&&N(Ct,vt);else{let Ze=oe(Ye.x,Ye.y,ct,ut,pe.x,pe.y);360!==Ze&&(Ze=(360+Ze)%360);let $e=Ee.startAngle<=Ze&&Ze<=Ee.endAngle;st=$e&&N(Ct,vt)||!$e&&(!Ft||Ft.equals(pe))}return st}_isOnPath(pe,Ee){const ke=this._arcInterval(),Ye=this.center;let ct=oe(Ye.x,Ye.y,this.radiusX,this.radiusY,pe.x,pe.y);return 360!==ct&&(ct=(360+ct)%360),ke.startAngle<=ct&&ct<=ke.endAngle&&this.pointAt(ct).distanceTo(pe)<=Ee}static fromPoints(pe,Ee,ke,Ye,ct,ut,Ct){const Ue=function q(Q){let{x1:pe,y1:Ee,x2:ke,y2:Ye,rx:ct,ry:ut,largeArc:Ct,swipe:Ue,rotation:vt=0}=Q;const ln=(0,o.Z)(vt),Je=Math.cos(ln),Ft=Math.sin(ln),st=Je*(pe-ke)/2+Ft*(Ee-Ye)/2,Ze=-Ft*(pe-ke)/2+Je*(Ee-Ye)/2,$e=Ct!==Ue?1:-1,Oe=Math.pow(st,2),Nt=Math.pow(Ze,2);let xt=Math.pow(ct,2),Ot=Math.pow(ut,2),Kt=Oe/xt+Nt/Ot;Kt>1&&(Kt=Math.sqrt(Oe/xt+Nt/Ot),ct*=Kt,xt=Math.pow(ct,2),ut*=Kt,Ot=Math.pow(ut,2));let $t=$e*Math.sqrt((xt*Ot-xt*Nt-Ot*Oe)/(xt*Nt+Ot*Oe));isNaN($t)&&($t=0);const rt=$t*(ct*Ze)/ut,We=ut*st*-$t/ct,yt=Je*rt-Ft*We+(pe+ke)/2,it=Ft*rt+Je*We+(Ee+Ye)/2,It=(st-rt)/ct,Tt=(Ze-We)/ut,wn=-(st+rt)/ct,Nn=-(Ze+We)/ut,an=(Tt>=0?1:-1)*(0,T.Z)(Math.acos(It/Math.sqrt(It*It+Tt*Tt))),sn=(0,A.Z)((It*wn+Tt*Nn)/(Math.sqrt(It*It+Tt*Tt)*Math.sqrt(wn*wn+Nn*Nn)),10);let _n=(It*Nn-Tt*wn>=0?1:-1)*(0,T.Z)(Math.acos(sn));!Ue&&_n>0&&(_n-=360),Ue&&_n<0&&(_n+=360);let Ln=an+_n;const Mn=Ln>=0?1:-1;return Ln=Math.abs(Ln)%360*Mn,{center:new R.Z(yt,it),startAngle:an,endAngle:Ln,radiusX:ct,radiusY:ut,xRotation:vt}}({x1:pe.x,y1:pe.y,x2:Ee.x,y2:Ee.y,rx:ke,ry:Ye,largeArc:ct,swipe:ut,rotation:Ct});return new te(Ue.center,{startAngle:Ue.startAngle,endAngle:Ue.endAngle,radiusX:Ue.radiusX,radiusY:Ue.radiusY,xRotation:Ue.xRotation,anticlockwise:0===ut})}}function oe(Q,pe,Ee,ke,Ye,ct){const ut=(0,A.Z)((Ye-Q)/Ee,3),Ct=(0,A.Z)((ct-pe)/ke,3);return(0,A.Z)((0,T.Z)(Math.atan2(Ct,ut)))}function we(Q,pe){let Ee=Q;for(;Ee<pe;)Ee+=90;return Ee}const ae=te},96616:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>P});var e=_(13046),o=_(83274),T=_(84572),A=_(54755),G=_(3735),F=_(88313);const N=Math.PI/2;class R extends((0,e.Z)(G.Z,["radius"])){constructor(j=new o.Z,Y=0){super(),this.setCenter(j),this.setRadius(Y)}setCenter(j){return this._observerField("center",o.Z.create(j)),this.geometryChange(),this}getCenter(){return this.center}equals(j){return j&&j.center.equals(this.center)&&j.radius===this.radius}clone(){return new R(this.center.clone(),this.radius)}pointAt(j){return this._pointAt((0,F.Z)(j))}bbox(j){const Y=(0,A.Z)(this.center,this.radius,this.radius,j);let ee=o.Z.maxPoint(),se=o.Z.minPoint();for(let he=0;he<4;he++){let Se=this._pointAt(Y.x+he*N).transformCopy(j),te=this._pointAt(Y.y+he*N).transformCopy(j),oe=new o.Z(Se.x,te.y);ee=o.Z.min(ee,oe),se=o.Z.max(se,oe)}return T.Z.fromPoints(ee,se)}_pointAt(j){const{center:Y,radius:ee}=this;return new o.Z(Y.x+ee*Math.cos(j),Y.y+ee*Math.sin(j))}containsPoint(j){const{center:Y,radius:ee}=this;return Math.pow(j.x-Y.x,2)+Math.pow(j.y-Y.y,2)<=Math.pow(ee,2)}_isOnPath(j,Y){const{center:ee,radius:se}=this,he=ee.distanceTo(j);return se-Y<=he&&he<=se+Y}}const P=R},21284:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>e});const e=10},84583:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>T});var e=_(21284),o=_(65769);function T(A,G,F=e.c){return 0===(0,o.Z)(Math.abs(A-G),F)}},54755:(fn,ve,_)=>{"use strict";function e(o,T,A,G){let F=0,N=0;return G&&(F=Math.atan2(G.c*A,G.a*T),0!==G.b&&(N=Math.atan2(G.d*A,G.b*T))),{x:F,y:N}}_.d(ve,{Z:()=>e})},91767:(fn,ve,_)=>{"use strict";function e(o,T,A){let G;if(o.x!==T.x){const F=Math.min(o.x,T.x),N=Math.max(o.x,T.x),R=Math.min(o.y,T.y),P=Math.max(o.y,T.y),y=F<=A.x&&A.x<N;G=R===P?A.y<=R&&y:y&&(P-R)*((o.x-T.x)*(o.y-T.y)>0?A.x-F:N-A.x)/(N-F)+R-A.y>=0}return G?1:0}_.d(ve,{Z:()=>e})},13748:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(71211),o=_(80829),T=_(88313),A=_(65769);class G extends e.Z{constructor(R=0,P=0,y=0,j=0,Y=0,ee=0){super(),this.a=R,this.b=P,this.c=y,this.d=j,this.e=Y,this.f=ee}multiplyCopy(R){return new G(this.a*R.a+this.c*R.b,this.b*R.a+this.d*R.b,this.a*R.c+this.c*R.d,this.b*R.c+this.d*R.d,this.a*R.e+this.c*R.f+this.e,this.b*R.e+this.d*R.f+this.f)}invert(){const{a:R,b:P,c:y,d:j,e:Y,f:ee}=this,se=R*j-P*y;return 0===se?null:new G(j/se,-P/se,-y/se,R/se,(y*ee-j*Y)/se,(P*Y-R*ee)/se)}clone(){return new G(this.a,this.b,this.c,this.d,this.e,this.f)}equals(R){return!!R&&this.a===R.a&&this.b===R.b&&this.c===R.c&&this.d===R.d&&this.e===R.e&&this.f===R.f}round(R){return this.a=(0,A.Z)(this.a,R),this.b=(0,A.Z)(this.b,R),this.c=(0,A.Z)(this.c,R),this.d=(0,A.Z)(this.d,R),this.e=(0,A.Z)(this.e,R),this.f=(0,A.Z)(this.f,R),this}toArray(R){const P=[this.a,this.b,this.c,this.d,this.e,this.f];if((0,o.Z)(R))for(let y=0;y<P.length;y++)P[y]=(0,A.Z)(P[y],R);return P}toString(R,P=","){return this.toArray(R).join(P)}static translate(R,P){return new G(1,0,0,1,R,P)}static unit(){return new G(1,0,0,1,0,0)}static rotate(R,P,y){const j=new G;return j.a=Math.cos((0,T.Z)(R)),j.b=Math.sin((0,T.Z)(R)),j.c=-j.b,j.d=j.a,j.e=P-P*j.a+y*j.b||0,j.f=y-y*j.a-P*j.b||0,j}static scale(R,P){return new G(R,0,0,P,0,0)}}G.IDENTITY=G.unit();const F=G},83274:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>P});var e=_(13046),o=_(3735),T=_(65769),A=_(80829),G=_(65969),F=_(13748),N=_(47108);class R extends((0,e.Z)(o.Z,["x","y"])){constructor(j,Y){super(),this.x=j||0,this.y=Y||0}equals(j){return j&&j.x===this.x&&j.y===this.y}clone(){return new R(this.x,this.y)}rotate(j,Y){const ee=R.create(Y)||R.ZERO;return this.transform(F.Z.rotate(j,ee.x,ee.y))}translate(j,Y){return this.x+=j,this.y+=Y,this.geometryChange(),this}translateWith(j){return this.translate(j.x,j.y)}move(j,Y){return this.x=this.y=0,this.translate(j,Y)}scale(j,Y=j){return this.x*=j,this.y*=Y,this.geometryChange(),this}scaleCopy(j,Y){return this.clone().scale(j,Y)}transform(j){const Y=(0,N.Z)(j),{x:ee,y:se}=this;return this.x=Y.a*ee+Y.c*se+Y.e,this.y=Y.b*ee+Y.d*se+Y.f,this.geometryChange(),this}transformCopy(j){const Y=this.clone();return j&&Y.transform(j),Y}distanceTo(j){const Y=this.x-j.x,ee=this.y-j.y;return Math.sqrt(Y*Y+ee*ee)}round(j){return this.x=(0,T.Z)(this.x,j),this.y=(0,T.Z)(this.y,j),this.geometryChange(),this}toArray(j){const Y=(0,A.Z)(j);return[Y?(0,T.Z)(this.x,j):this.x,Y?(0,T.Z)(this.y,j):this.y]}toString(j,Y=" "){let{x:ee,y:se}=this;return(0,A.Z)(j)&&(ee=(0,T.Z)(ee,j),se=(0,T.Z)(se,j)),ee+Y+se}static create(j,Y){if((0,A.Z)(j))return j instanceof R?j:1===arguments.length&&2===j.length?new R(j[0],j[1]):new R(j,Y)}static min(){let j=G.lA,Y=G.lA;for(let ee=0;ee<arguments.length;ee++){let se=arguments[ee];j=Math.min(se.x,j),Y=Math.min(se.y,Y)}return new R(j,Y)}static max(){let j=G.fO,Y=G.fO;for(let ee=0;ee<arguments.length;ee++){const se=arguments[ee];j=Math.max(se.x,j),Y=Math.max(se.y,Y)}return new R(j,Y)}static minPoint(){return new R(G.fO,G.fO)}static maxPoint(){return new R(G.lA,G.lA)}static get ZERO(){return new R(0,0)}}const P=R},84572:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>G});var e=_(3735),o=_(83274),T=_(57303);class A extends e.Z{constructor(N=new o.Z,R=new T.Z,P=0){super(),this.setOrigin(N),this.setSize(R),this.setCornerRadius(P)}clone(){return new A(this.origin.clone(),this.size.clone())}equals(N){return N&&N.origin.equals(this.origin)&&N.size.equals(this.size)}setOrigin(N){return this._observerField("origin",o.Z.create(N)),this.geometryChange(),this}getOrigin(){return this.origin}setCornerRadius(N){return this.cornerRadius=Array.isArray(N)?N:[N,N],this.geometryChange(),this}getCornerRadius(){return this.cornerRadius}setSize(N){return this._observerField("size",T.Z.create(N)),this.geometryChange(),this}getSize(){return this.size}width(){return this.size.width}height(){return this.size.height}topLeft(){return this.origin.clone()}bottomRight(){return this.origin.clone().translate(this.width(),this.height())}topRight(){return this.origin.clone().translate(this.width(),0)}bottomLeft(){return this.origin.clone().translate(0,this.height())}center(){return this.origin.clone().translate(this.width()/2,this.height()/2)}bbox(N){const R=this.topLeft().transformCopy(N),P=this.topRight().transformCopy(N),y=this.bottomRight().transformCopy(N),j=this.bottomLeft().transformCopy(N);return A.fromPoints(R,P,y,j)}transformCopy(N){return A.fromPoints(this.topLeft().transform(N),this.bottomRight().transform(N))}expand(N,R=N){return this.size.width+=2*N,this.size.height+=2*R,this.origin.translate(-N,-R),this}expandCopy(N,R){return this.clone().expand(N,R)}containsPoint(N){const R=this.origin,P=this.bottomRight();return!(N.x<R.x||N.y<R.y||P.x<N.x||P.y<N.y)}_isOnPath(N,R){const P=this.expandCopy(R,R),y=this.expandCopy(-R,-R);return P.containsPoint(N)&&!y.containsPoint(N)}static fromPoints(){const N=o.Z.min.apply(null,arguments),R=o.Z.max.apply(null,arguments),P=new T.Z(R.x-N.x,R.y-N.y);return new A(N,P)}static union(N,R){return A.fromPoints(o.Z.min(N.topLeft(),R.topLeft()),o.Z.max(N.bottomRight(),R.bottomRight()))}static intersect(N,R){const P={left:N.topLeft().x,top:N.topLeft().y,right:N.bottomRight().x,bottom:N.bottomRight().y},y={left:R.topLeft().x,top:R.topLeft().y,right:R.bottomRight().x,bottom:R.bottomRight().y};if(P.left<=y.right&&y.left<=P.right&&P.top<=y.bottom&&y.top<=P.bottom)return A.fromPoints(new o.Z(Math.max(P.left,y.left),Math.max(P.top,y.top)),new o.Z(Math.min(P.right,y.right),Math.min(P.bottom,y.bottom)))}}const G=A},57192:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>Ye});var e=_(3735),o=_(84572),T=_(83274),A=_(40904),G=_(6175),F=_(65969);function N(ct,ut,Ct){const Ue=(0,G.Z)(Math.atan2(ut.y-ct.y,ut.x-ct.x));return Ct.transformCopy((0,A.Z)().rotate(-Ue,ct)).x<ct.x}function R(ct,ut,Ct){const Ue=1-ct;return Math.pow(Ue,3)*Ct[0][ut]+3*Math.pow(Ue,2)*ct*Ct[1][ut]+3*Math.pow(ct,2)*Ue*Ct[2][ut]+Math.pow(ct,3)*Ct[3][ut]}function P(ct,ut){return[3*ct[1][ut]-ct[0][ut]-3*ct[2][ut]+ct[3][ut],3*(ct[0][ut]-2*ct[1][ut]+ct[2][ut]),3*(-ct[0][ut]+ct[1][ut]),ct[0][ut]]}var y=_(21284),j=_(71211),Y=_(65769);class ee extends j.Z{constructor(ut=0,Ct=0){super(),this.real=ut,this.img=Ct}add(ut){return new ee((0,Y.Z)(this.real+ut.real,y.c),(0,Y.Z)(this.img+ut.img,y.c))}addConstant(ut){return new ee(this.real+ut,this.img)}negate(){return new ee(-this.real,-this.img)}multiply(ut){return new ee(this.real*ut.real-this.img*ut.img,this.real*ut.img+this.img*ut.real)}multiplyConstant(ut){return new ee(this.real*ut,this.img*ut)}nthRoot(ut){const Ct=Math.atan2(this.img,this.real),Ue=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),vt=Math.pow(Ue,1/ut);return new ee(vt*Math.cos(Ct/ut),vt*Math.sin(Ct/ut))}equals(ut){return this.real===ut.real&&this.img===ut.img}isReal(){return 0===this.img}}const se=ee;function he(ct){return ct<0?-1:1}function te(ct,ut,Ct,Ue){if(0===ct)return function Se(ct,ut,Ct){const Ue=Math.sqrt(Math.pow(ut,2)-4*ct*Ct);return[(-ut+Ue)/(2*ct),(-ut-Ue)/(2*ct)]}(ut,Ct,Ue);const vt=(3*ct*Ct-Math.pow(ut,2))/(3*Math.pow(ct,2)),ln=(2*Math.pow(ut,3)-9*ct*ut*Ct+27*Math.pow(ct,2)*Ue)/(27*Math.pow(ct,3)),Je=Math.pow(vt/3,3)+Math.pow(ln/2,2),Ft=new se(0,1),st=-ut/(3*ct);let Ze,$e,Oe,Nt,xt,Ot,Kt;Je<0?(Ze=new se(-ln/2,Math.sqrt(-Je)).nthRoot(3),$e=new se(-ln/2,-Math.sqrt(-Je)).nthRoot(3)):(Ze=-ln/2+Math.sqrt(Je),Ze=new se(he(Ze)*Math.pow(Math.abs(Ze),1/3)),$e=-ln/2-Math.sqrt(Je),$e=new se(he($e)*Math.pow(Math.abs($e),1/3))),Oe=Ze.add($e),Ot=Ze.add($e).multiplyConstant(-.5),Kt=Ze.add($e.negate()).multiplyConstant(Math.sqrt(3)/2),Nt=Ot.add(Ft.multiply(Kt)),xt=Ot.add(Ft.negate().multiply(Kt));const $t=[];return Oe.isReal()&&$t.push((0,Y.Z)(Oe.real+st,y.c)),Nt.isReal()&&$t.push((0,Y.Z)(Nt.real+st,y.c)),xt.isReal()&&$t.push((0,Y.Z)(xt.real+st,y.c)),$t}function oe(ct,ut,Ct,Ue,vt){const ln=P(ct,Ue),Je=te(ln[0],ln[1],ln[2],ln[3]-ut[Ue]);let Ft;for(let st=0;st<Je.length;st++)if(0<=Je[st]&&Je[st]<=1&&(Ft=R(Je[st],Ct,ct),Math.abs(Ft-ut[Ct])<=vt))return!0}var q=_(84583),ae=_(91767),Q=_(93392);const pe=["anchor","controlIn","controlOut"];class Ee extends((0,Q.Z)(e.Z,pe)){constructor(ut,Ct,Ue){super(),this.anchor(ut||new T.Z),this.controlIn(Ct),this.controlOut(Ue)}bboxTo(ut,Ct){const Ue=this.anchor().transformCopy(Ct),vt=ut.anchor().transformCopy(Ct);let ln;return ln=this.controlOut()&&ut.controlIn()?this._curveBoundingBox(Ue,this.controlOut().transformCopy(Ct),ut.controlIn().transformCopy(Ct),vt):this._lineBoundingBox(Ue,vt),ln}_lineBoundingBox(ut,Ct){return o.Z.fromPoints(ut,Ct)}_curveBoundingBox(ut,Ct,Ue,vt){const ln=[ut,Ct,Ue,vt],Je=this._curveExtremesFor(ln,"x"),Ft=this._curveExtremesFor(ln,"y"),st=ke([Je.min,Je.max,ut.x,vt.x]),Ze=ke([Ft.min,Ft.max,ut.y,vt.y]);return o.Z.fromPoints(new T.Z(st.min,Ze.min),new T.Z(st.max,Ze.max))}_curveExtremesFor(ut,Ct){const Ue=this._curveExtremes(ut[0][Ct],ut[1][Ct],ut[2][Ct],ut[3][Ct]);return{min:R(Ue.min,Ct,ut),max:R(Ue.max,Ct,ut)}}_curveExtremes(ut,Ct,Ue,vt){const ln=ut-3*Ct+3*Ue-vt,Je=-2*(ut-2*Ct+Ue),Ft=ut-Ct,st=Math.sqrt(Je*Je-4*ln*Ft);let Ze=0,$e=1;0===ln?0!==Je&&(Ze=$e=-Ft/Je):isNaN(st)||(Ze=(-Je+st)/(2*ln),$e=(-Je-st)/(2*ln));let Oe=Math.max(Math.min(Ze,$e),0);(Oe<0||Oe>1)&&(Oe=0);let Nt=Math.min(Math.max(Ze,$e),1);return(Nt>1||Nt<0)&&(Nt=1),{min:Oe,max:Nt}}_intersectionsTo(ut,Ct){let Ue;return Ue=this.controlOut()&&ut.controlIn()?function we(ct,ut,Ct){const Ue=P(ct,"x"),vt=te(Ue[0],Ue[1],Ue[2],Ue[3]-ut.x);let ln,Je,Ft=0;for(let st=0;st<vt.length;st++)ln=R(vt[st],"y",ct),Je=(0,q.Z)(ln,ut.y)||ln>ut.y,Je&&((0===vt[st]||1===vt[st])&&Ct.bottomRight().x>ut.x||0<vt[st]&&vt[st]<1)&&Ft++;return Ft}([this.anchor(),this.controlOut(),ut.controlIn(),ut.anchor()],Ct,this.bboxTo(ut)):(0,ae.Z)(this.anchor(),ut.anchor(),Ct),Ue}_isOnCurveTo(ut,Ct,Ue,vt){if(this.bboxTo(ut).expand(Ue,Ue).containsPoint(Ct)){const Je=this.anchor(),Ft=this.controlOut(),st=ut.controlIn(),Ze=ut.anchor();if("start"===vt&&Je.distanceTo(Ct)<=Ue)return!N(Je,Ft,Ct);if("end"===vt&&Ze.distanceTo(Ct)<=Ue)return!N(Ze,st,Ct);const $e=[Je,Ft,st,Ze];if(oe($e,Ct,"x","y",Ue)||oe($e,Ct,"y","x",Ue))return!0;const Oe=(0,A.Z)().rotate(45,Ct),Nt=[Je.transformCopy(Oe),Ft.transformCopy(Oe),st.transformCopy(Oe),Ze.transformCopy(Oe)];return oe(Nt,Ct,"x","y",Ue)||oe(Nt,Ct,"y","x",Ue)}}_isOnLineTo(ut,Ct,Ue){const vt=this.anchor(),ln=ut.anchor(),Je=(0,G.Z)(Math.atan2(ln.y-vt.y,ln.x-vt.x));return new o.Z([vt.x,vt.y-Ue/2],[vt.distanceTo(ln),Ue]).containsPoint(Ct.transformCopy((0,A.Z)().rotate(-Je,vt)))}_isOnPathTo(ut,Ct,Ue,vt){let ln;return ln=this.controlOut()&&ut.controlIn()?this._isOnCurveTo(ut,Ct,Ue/2,vt):this._isOnLineTo(ut,Ct,Ue),ln}}function ke(ct){let ut=ct.length,Ct=F.lA,Ue=F.fO;for(let vt=0;vt<ut;vt++)Ue=Math.max(Ue,ct[vt]),Ct=Math.min(Ct,ct[vt]);return{min:Ct,max:Ue}}const Ye=Ee},57303:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(3735),o=_(13046),T=_(80829),A=_(65769);class G extends((0,o.Z)(e.Z,["width","height"])){constructor(R,P){super(),this.width=R||0,this.height=P||0}equals(R){return R&&R.width===this.width&&R.height===this.height}clone(){return new G(this.width,this.height)}toArray(R){const P=(0,T.Z)(R);return[P?(0,A.Z)(this.width,R):this.width,P?(0,A.Z)(this.height,R):this.height]}static create(R,P){if((0,T.Z)(R))return R instanceof G?R:1===arguments.length&&2===R.length?new G(R[0],R[1]):new G(R,P)}static get ZERO(){return new G(0,0)}}const F=G},47108:(fn,ve,_)=>{"use strict";function e(o){return o&&"function"==typeof o.matrix?o.matrix():o}_.d(ve,{Z:()=>e})},40904:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(71577);function o(T){return null===T?null:T instanceof e.Z?T:new e.Z(T)}},71577:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(3735),o=_(47108),T=_(13748),A=_(83274);class G extends e.Z{constructor(R=T.Z.unit()){super(),this._matrix=R}clone(){return new G(this._matrix.clone())}equals(R){return R&&R._matrix.equals(this._matrix)}translate(R,P){return this._matrix=this._matrix.multiplyCopy(T.Z.translate(R,P)),this._optionsChange(),this}scale(R,P=R,y=null){let j=y;return j&&(j=A.Z.create(j),this._matrix=this._matrix.multiplyCopy(T.Z.translate(j.x,j.y))),this._matrix=this._matrix.multiplyCopy(T.Z.scale(R,P)),j&&(this._matrix=this._matrix.multiplyCopy(T.Z.translate(-j.x,-j.y))),this._optionsChange(),this}rotate(R,P){const y=A.Z.create(P)||A.Z.ZERO;return this._matrix=this._matrix.multiplyCopy(T.Z.rotate(R,y.x,y.y)),this._optionsChange(),this}multiply(R){const P=(0,o.Z)(R);return this._matrix=this._matrix.multiplyCopy(P),this._optionsChange(),this}matrix(R){return R?(this._matrix=R,this._optionsChange(),this):this._matrix}_optionsChange(){this.optionsChange({field:"transform",value:this})}}const F=G},51086:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>y});var e=_(64914),o=_(80829);function T(j){return function(Y){return(0,o.Z)(Y)?(this.options.set(j,Y),this):this.options.get(j)}}var N=_(3735);const R=["offset","color","opacity"];class P extends(((j,Y)=>{const ee=class extends j{};return function A(j,Y){for(let ee=0;ee<Y.length;ee++)j[Y[ee]]=T(Y[ee])}(ee.prototype,Y),ee})(N.Z,R)){constructor(Y,ee,se){super(),this.options=new e.Z({offset:Y,color:ee,opacity:(0,o.Z)(se)?se:1}),this.options.addObserver(this)}static create(Y){if((0,o.Z)(Y)){let ee;return ee=Y instanceof P?Y:Y.length>1?new P(Y[0],Y[1],Y[2]):new P(Y.offset,Y.color,Y.opacity),ee}}}const y=P},39290:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>P});var e=_(27258);const T=class o extends e.Z{_change(){this.optionsChange({field:"stops"})}};var A=_(51086),G=_(3735),F=_(83415),N=_(80829);const P=class R extends G.Z{get nodeType(){return"Gradient"}constructor(j={}){super(),this.stops=new T(this._createStops(j.stops)),this.stops.addObserver(this),this._userSpace=j.userSpace,this.id=(0,F.Z)()}userSpace(j){return(0,N.Z)(j)?(this._userSpace=j,this.optionsChange(),this):this._userSpace}_createStops(j=[]){const Y=[];for(let ee=0;ee<j.length;ee++)Y.push(A.Z.create(j[ee]));return Y}addStop(j,Y,ee){this.stops.push(new A.Z(j,Y,ee))}removeStop(j){const Y=this.stops.indexOf(j);Y>=0&&this.stops.splice(Y,1)}optionsChange(j){this.trigger("optionsChange",{field:"gradient"+(j?"."+j.field:""),value:this})}geometryChange(){this.optionsChange()}}},98260:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(93392),o=_(83274),T=_(39290);const A=["start","end"];class G extends((0,e.Z)(T.Z,A)){constructor(R={}){super(R),this.start(R.start||new o.Z),this.end(R.end||new o.Z(1,0))}}const F=G},27525:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(93392),o=_(83274),T=_(39290),A=_(80829);class G extends((0,e.Z)(T.Z,["center"])){constructor(R={}){super(R),this.center(R.center||new o.Z),this._radius=(0,A.Z)(R.radius)?R.radius:1,this._fallbackFill=R.fallbackFill}radius(R){return(0,A.Z)(R)?(this._radius=R,this.geometryChange(),this):this._radius}fallbackFill(R){return(0,A.Z)(R)?(this._fallbackFill=R,this.optionsChange(),this):this._fallbackFill}}const F=G},68400:(fn,ve,_)=>{"use strict";_.d(ve,{Vg:()=>Ze});var e=_(13748),o=_(84572),T=_(8713),A=_(40904),G=_(96616),F=_(62742),N=_(52017),R=_(37881),P=_(87471),y=_(35826),j=_(48131),ee=_(1174),se=_(6520),he=_(80279),Se=_(75614),te=_(38742),oe=_(98260),q=_(65294),we=_(59852);const ae=j.Z.browser||{};function Q(ie){return Array.prototype.slice.call(ie)}var pe="KENDO-PSEUDO-ELEMENT",Ee={},ke={};ke._root=ke;const ct=typeof window<"u"&&(ae.msie||ae.edge);class ut extends se.Z{constructor(je,pt,Ut){super(je,pt.getOrigin(),Ut),this._pdfRect=pt}rect(){return this._pdfRect}rawBBox(){return this._pdfRect}}function vt(ie,je){Object.keys(je).forEach(function(pt){ie.style[pt]=je[pt]})}var ie,ln=typeof Element<"u"&&Element.prototype&&((ie=Element.prototype).matches?function(je,pt){return je.matches(pt)}:ie.webkitMatchesSelector?function(je,pt){return je.webkitMatchesSelector(pt)}:ie.mozMatchesSelector?function(je,pt){return je.mozMatchesSelector(pt)}:ie.msMatchesSelector?function(je,pt){return je.msMatchesSelector(pt)}:function(je){return-1!==[].indexOf.call(document.querySelectorAll(je),this)});function Je(ie,je){if(ie.closest)return ie.closest(je);for(;ie&&!/^\[object (?:HTML)?Document\]$/.test(String(ie));){if(1==ie.nodeType&&ln(ie,je))return ie;ie=ie.parentNode}}var Ft=function(ie){return ie?function je(pt){var Ut=pt.cloneNode(!1);if(1==pt.nodeType){var Gn,xn=ie(pt),hn=ie(Ut),ri=xn.data();for(Gn in ri)hn.data(Gn,ri[Gn]);for(/^canvas$/i.test(pt.tagName)?Ut.getContext("2d").drawImage(pt,0,0):/^(?:input|select|textarea|option)$/i.test(pt.tagName)&&(Ut.removeAttribute("id"),Ut.removeAttribute("name"),/^textarea$/i.test(pt.tagName)||(Ut.value=pt.value),Ut.checked=pt.checked,Ut.selected=pt.selected),Gn=pt.firstChild;Gn;Gn=Gn.nextSibling)Ut.appendChild(je(Gn))}return Ut}:function(pt){const Ut=function Gn(ri){const mi=ri.cloneNode(!1);ri._kendoExportVisual&&(mi._kendoExportVisual=ri._kendoExportVisual);for(let ui=ri.firstChild;ui;ui=ui.nextSibling)mi.appendChild(Gn(ui));return mi}(pt),xn=pt.querySelectorAll("canvas");xn.length&&Q(Ut.querySelectorAll("canvas")).forEach((Gn,ri)=>{Gn.getContext("2d").drawImage(xn[ri],0,0)});const hn=pt.querySelectorAll("input, select, textarea, option");return Q(Ut.querySelectorAll("input, select, textarea, option")).forEach((Gn,ri)=>{Gn.removeAttribute("id"),Gn.removeAttribute("name"),/^textarea$/i.test(Gn.tagName)||(Gn.value=hn[ri].value),Gn.checked=hn[ri].checked,Gn.selected=hn[ri].selected}),Ut}}(typeof window<"u"&&window.kendo&&window.kendo.jQuery);function Ze(ie,je){je||(je={});var pt=(0,N.Z)();if(!ie)return pt.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");F.pl(function Kt(ie){null==ie&&(ie=document);for(var je={},pt=0;pt<ie.styleSheets.length;++pt)Ut(ie.styleSheets[pt]);return je;function Ut(ri){if(ri){var mi=null;try{mi=ri.cssRules}catch{}mi&&function hn(ri,mi){for(var ui=0;ui<mi.length;++ui){var Pi=mi[ui];switch(Pi.type){case 3:Ut(Pi.styleSheet);break;case 5:var Di=Pi.style,Yi=Nt(qn(Di,"font-family")),ji=/^([56789]00|bold)$/i.test(qn(Di,"font-weight")),gs="italic"==qn(Di,"font-style"),bs=xn(Pi);bs.length>0&&Gn(ri,Yi,ji,gs,bs[0])}}}(ri,mi)}}function xn(ri){var mi=qn(ri.style,"src");if(mi)return Nt(mi).reduce(function(Pi,Di){var Yi=xt(Di);return Yi&&Pi.push(Yi),Pi},[]);var ui=xt(ri.cssText);return ui?[ui]:[]}function Gn(ri,mi,ui,Pi,Di){/^data:/i.test(Di)||/^[^\/:]+:\/\//.test(Di)||/^\//.test(Di)||(Di=String(ri.href).replace(/[^\/]*$/,"")+Di),mi.forEach(function(Yi){Yi=Yi.replace(/^(['"]?)(.*?)\1$/,"$2"),ui&&(Yi+="|bold"),Pi&&(Yi+="|italic"),je[Yi]=Di})}}(ie.ownerDocument));var Ut=function st(ie){return"number"==typeof ie?{x:ie,y:ie}:Array.isArray(ie)?{x:ie[0],y:ie[1]}:{x:ie.x,y:ie.y}}(je.scale||1);function xn(ri){var mi=new he.Z,ui=ri.getBoundingClientRect();return rn(mi,[Ut.x,0,0,Ut.y,-ui.left*Ut.x,-ui.top*Ut.y]),ke._clipbox=!1,ke._matrix=e.Z.unit(),ke._stackingContext={element:ri,group:mi},ke._avoidLinks=!0===je.avoidLinks?"a":je.avoidLinks,function Ct(ie,je){ie.classList?ie.classList.add(je):ie.className+=" "+je}(ri,"k-pdf-export"),St(ri,mi),function Ue(ie,je){ie.classList?ie.classList.remove(je):ie.className=ie.className.split(/\s+/).reduce(function(pt,Ut){return Ut!=je&&pt.push(Ut),pt},[]).join(" ")}(ri,"k-pdf-export"),mi}return an([ie],function(){var ri=je&&je.forcePageBreak,mi=je&&je.paperSize&&"auto"!=je.paperSize,ui=F.M(function(bs,Es){return"paperSize"==bs?mi?je[bs]:"A4":bs in je?je[bs]:Es}),Pi=mi&&ui.paperSize[0],Di=mi&&ui.paperSize[1],Yi=je.margin&&ui.margin,ji=Boolean(Yi);if(ri||Di){Yi||(Yi={left:0,top:0,right:0,bottom:0}),Pi&&(Pi/=Ut.x),Di&&(Di/=Ut.y),Yi.left/=Ut.x,Yi.right/=Ut.x,Yi.top/=Ut.y,Yi.bottom/=Ut.y;var gs=new he.Z({pdf:{multiPage:!0,paperSize:mi?ui.paperSize:"auto",_ignoreMargin:ji}});!function Gn(ri,mi,ui,Pi,Di,Yi,ji){var gs=function hn(ri){if(null!=ri)return"string"==typeof ri&&(ri=function Y(){throw new Error("Template implementation missing.")}(ri.replace(/^\s+|\s+$/g,""))),"function"==typeof ri?function(mi){var ui=ri(mi);if(ui&&"string"==typeof ui){var Pi=document.createElement("div");Pi.innerHTML=ui,ui=Pi.firstElementChild}return ui}:function(){return ri.cloneNode(!0)}}(ji.template),bs=mi.ownerDocument,Es=[],ss=ji._destructive?mi:Ft(mi),zi=bs.createElement("KENDO-PDF-DOCUMENT"),as=0;function ds(){("-"!=ui||Di)&&us(ss);{let un=ei();ss.parentNode.insertBefore(un,ss),un.appendChild(ss)}gs&&Es.forEach(function(un,ai){const Le=gs({element:un,pageNum:ai+1,totalPages:Es.length});Le&&un.appendChild(Le)}),an(Es,ri.bind(null,{pages:Es,container:zi}))}function Xi(un){return!!(ji.keepTogether&&ln(un,ji.keepTogether)&&un.offsetHeight<=Di-as)||!(/^h[1-6]$/i.test(un.tagName)&&un.offsetHeight>=Di-as)&&(un.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(un.tagName))}function us(un){if("TABLE"==un.tagName&&vt(un,{tableLayout:"fixed"}),!Xi(un)){var ai=gi(un),Le=parseFloat(qn(ai,"padding-bottom")),Pt=parseFloat(qn(ai,"border-bottom-width")),Be=as;as+=Le+Pt;for(var Jt=!0,xe=un.firstChild;xe;xe=xe.nextSibling)if(1==xe.nodeType){if(Jt=!1,ln(xe,ui)){_s(xe);continue}if(!Di){us(xe);continue}if(!/^(?:static|relative)$/.test(qn(gi(xe),"position")))continue;var Ke=Fs(xe);1==Ke||Ke&&Xi(xe)?_s(xe):us(xe)}else 3==xe.nodeType&&Di&&(po(xe,Jt),Jt=!1);as=Be}}function _s(un){if(1==un.nodeType&&un!==ss&&function ps(un){var ai=un.parentNode,Le=ai.firstChild;if(un===Le)return!0;if(un===ai.children[0]){if(7==Le.nodeType||8==Le.nodeType)return!0;if(3==Le.nodeType)return!/\S/.test(Le.data)}return!1}(un))return _s(un.parentNode);var ai,Le,Pt,Be,Jt;Le=(ai=Je(un,"table"))&&ai.querySelector("colgroup"),ji.repeatHeaders&&(Pt=ai&&ai.querySelector("thead"),(Be=Je(un,".k-grid.k-widget"))&&Be.querySelector(".k-auto-scrollable")&&(Jt=Be.querySelector(".k-grid-header")));var xe=ei(),Ke=bs.createRange();Ke.setStartBefore(ss),Ke.setEndBefore(un),xe.appendChild(Ke.extractContents()),ss.parentNode.insertBefore(xe,ss),As(un.parentNode),ai&&(ai=Je(un,"table"),ji.repeatHeaders&&Pt&&ai.insertBefore(Pt.cloneNode(!0),ai.firstChild),Le&&ai.insertBefore(Le.cloneNode(!0),ai.firstChild)),ji.repeatHeaders&&Jt&&(Be=Je(un,".k-grid.k-widget")).insertBefore(Jt.cloneNode(!0),Be.firstChild)}function ei(){var un=bs.createElement("KENDO-PDF-PAGE");return vt(un,{display:"block",boxSizing:"content-box",width:Pi?Pi+"px":"auto",padding:Yi.top+"px "+Yi.right+"px "+Yi.bottom+"px "+Yi.left+"px",position:"relative",height:Di?Di+"px":"auto",overflow:Di||Pi?"hidden":"visible",clear:"both"}),ji&&ji.pageClassName&&(un.className=ji.pageClassName),Es.push(un),un}function Fs(un){var ai=un.getBoundingClientRect();if(0===ai.width||0===ai.height)return 0;var Le=ss.getBoundingClientRect().top,Pt=Di-as;return ai.height>Pt?3:ai.top-Le>Pt?1:ai.bottom-Le>Pt?2:0}function po(un,ai){if(/\S/.test(un.data)){var Le=un.data.length,Pt=bs.createRange();Pt.selectNodeContents(un);var Be=Fs(Pt);if(Be){var Jt=un;if(1==Be)_s(ai?un.parentNode:un);else if(function Ke(Qe,Et,Dn){return Pt.setEnd(un,Et),Qe==Et||Et==Dn?Et:Fs(Pt)?Ke(Qe,Qe+Et>>1,Et):Ke(Et,Et+Dn>>1,Dn)}(0,Le>>1,Le),!/\S/.test(Pt.toString())&&ai)_s(un.parentNode);else{Jt=un.splitText(Pt.endOffset);var xe=ei();Pt.setStartBefore(ss),xe.appendChild(Pt.extractContents()),ss.parentNode.insertBefore(xe,ss),As(Jt.parentNode)}po(Jt)}}}function As(un){var ai=Je(un,"li");ai&&(ai.setAttribute("kendo-no-bullet","1"),As(ai.parentNode))}Q(ss.querySelectorAll("tfoot")).forEach(function(un){un.parentNode.appendChild(un)}),Q(ss.querySelectorAll("ol")).forEach(function(un){Q(un.children).forEach(function(ai,Le){ai.setAttribute("kendo-split-index",Le)})}),vt(zi,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),Pi&&(vt(zi,{width:Pi+"px",paddingLeft:Yi.left+"px",paddingRight:Yi.right+"px"}),vt(ss,{overflow:"hidden"})),mi.parentNode.insertBefore(zi,mi),zi.appendChild(ss),Nn([zi],ji.beforePageBreak?function(){ji.beforePageBreak(zi,ds)}:ds)}(function(bs){if(je.progress){var Es=!1,ss=0;!function zi(){if(ss<bs.pages.length){var as=xn(bs.pages[ss]);gs.append(as),je.progress({page:as,pageNum:++ss,totalPages:bs.pages.length,cancel:function(){Es=!0}}),Es?bs.container.parentNode.removeChild(bs.container):setTimeout(zi)}else bs.container.parentNode.removeChild(bs.container),pt.resolve(gs)}()}else bs.pages.forEach(function(zi){gs.append(xn(zi))}),bs.container.parentNode.removeChild(bs.container),pt.resolve(gs)},ie,ri,Pi?Pi-Yi.left-Yi.right:null,Di?Di-Yi.top-Yi.bottom:null,Yi,je)}else pt.resolve(xn(ie))}),pt}var Oe=function(){var ie=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,je=/^([-0-9.]+%)/,pt=/^([-0-9.]+px)/,Ut=/^(left|right|top|bottom|to|center)\W/,xn=/^([-0-9.]+(deg|grad|rad|turn)|0)/,hn=/^(\s+)/,Gn=/^(\()/,ri=/^(\))/,mi=/^(,)/,ui=/^(url)\(/,Pi=/^(.*?)\)/,Di={},Yi={};function ji(gs){var Xi,bs=gs;if($t(Di,bs))return Di[bs];function ss(us){!function Es(){var us=hn.exec(gs);us&&(gs=gs.substr(us[1].length))}();var ps=us.exec(gs);if(ps)return gs=gs.substr(ps[1].length),ps[1]}function zi(){var ps,_s,us=(0,ee.ZP)(gs,!0);if(us){let ei=/^#[0-9a-f]+/i.exec(gs)||/^rgba?\(.*?\)/i.exec(gs)||/^..*?\b/.exec(gs);return gs=gs.substr(ei[0].length),us=us.toRGB(),(ps=ss(pt))||(_s=ss(je)),{color:us,length:ps,percent:_s}}}return(Xi=ss(ie))?Xi=function as(us){var ps,_s,ei,Fs=[],po=!1;if(ss(Gn)){if("0"==(ps=ss(xn))&&(ps="0deg"),ps?(ps=function In(ie){var je=parseFloat(ie);return/grad$/.test(ie)?Math.PI*je/200:/rad$/.test(ie)?je:/turn$/.test(ie)?Math.PI*je*2:/deg$/.test(ie)?Math.PI*je/180:void 0}(ps),ss(mi)):("to"==(_s=ss(Ut))?_s=ss(Ut):_s&&/^-/.test(us)&&(po=!0),ei=ss(Ut),ss(mi)),/-moz-/.test(us)&&null==ps&&null==_s){var As=ss(je),un=ss(je);po=!0,"0%"==As?_s="left":"100%"==As&&(_s="right"),"0%"==un?ei="top":"100%"==un&&(ei="bottom"),ss(mi)}for(;gs&&!ss(ri);){var ai=zi();if(!ai)break;Fs.push(ai),ss(mi)}return{type:"linear",angle:ps,to:_s&&ei?_s+" "+ei:_s||ei||null,stops:Fs,reverse:po}}}(Xi):(Xi=ss(ui))&&(Xi=function ds(){if(ss(Gn)){var us=ss(Pi);return us=us.replace(/^['"]+|["']+$/g,""),ss(ri),{type:"url",url:us}}}()),Di[bs]=Xi||{type:"none"}}return function(gs){return $t(Yi,gs)?Yi[gs]:Yi[gs]=Nt(gs).map(ji)}}(),Nt=function(){var ie={};return function(je,pt){pt||(pt=/^\s*,\s*/);var Ut=je+pt;if($t(ie,Ut))return ie[Ut];var ui,xn=[],hn=0,Gn=0,ri=0,mi=!1;function Pi(Yi){return ui=Yi.exec(je.substr(Gn))}function Di(Yi){return Yi.replace(/^\s+|\s+$/g,"")}for(;Gn<je.length;)!mi&&Pi(/^[\(\[\{]/)?(ri++,Gn++):!mi&&Pi(/^[\)\]\}]/)?(ri--,Gn++):!mi&&Pi(/^[\"\']/)?(mi=ui[0],Gn++):"'"==mi&&Pi(/^\\\'/)||'"'==mi&&Pi(/^\\\"/)?Gn+=2:"'"==mi&&Pi(/^\'/)||'"'==mi&&Pi(/^\"/)?(mi=!1,Gn++):Pi(pt)?(!mi&&!ri&&Gn>hn&&(xn.push(Di(je.substring(hn,Gn))),hn=Gn+ui[0].length),Gn+=ui[0].length):Gn++;return hn<Gn&&xn.push(Di(je.substring(hn,Gn))),ie[Ut]=xn}}(),xt=function(ie){return function(je){var Ut,pt=ie[je];return pt||((Ut=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(je))||(Ut=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(je)))&&(pt=ie[je]=Ut[2]),pt}}(Object.create(null)),Ot=function(ie){return function(je){var pt=ie[je];return null==pt&&(pt=ie[je]=(0,R.Z)("Mapq",{font:je}).height),pt}}(Object.create(null));function $t(ie,je){return Object.prototype.hasOwnProperty.call(ie,je)}function yt(ie,je){var pt=ke;for(ie="_counter_"+ie;pt&&!$t(pt,ie);)pt=Object.getPrototypeOf(pt);pt||(pt=ke._root),pt[ie]=(pt[ie]||0)+(je??1)}function it(ie,je){ke[ie="_counter_"+ie]=je??0}function It(ie,je,pt){for(var Ut=0;Ut<ie.length;){var xn=ie[Ut++],hn=parseFloat(ie[Ut]);isNaN(hn)?je(xn,pt):(je(xn,hn),++Ut)}}function Tt(ie){var je=qn(ie,"counter-reset");je&&It(Nt(je,/^\s+/),it,0);var pt=qn(ie,"counter-increment");pt&&It(Nt(pt,/^\s+/),yt,1)}function wn(ie,je){var pt=(0,ee.ZP)(ie,!0);return pt&&(pt=pt.toRGB(),je?pt=pt.toCssRgba():0===pt.a&&(pt=null)),pt}function Nn(ie,je){var pt=0,Ut=!1;function xn(){!Ut&&--pt<=0&&(je(),Ut=!0)}ie.forEach(function(hn){for(var Gn=hn.querySelectorAll("img"),ri=0;ri<Gn.length;++ri){var mi=Gn[ri];mi.complete||(pt++,mi.onload=mi.onerror=xn)}}),xn()}function an(ie,je){var pt=[];function Ut(Gn){Ee[Gn]||(Ee[Gn]=!0,pt.push(Gn))}ie.forEach(function Gn(ri){/^img$/i.test(ri.tagName)&&Ut(ri.src),Oe(qn(gi(ri),"background-image")).forEach(function(mi){"url"==mi.type&&Ut(mi.url)}),ri.children&&Q(ri.children).forEach(Gn)});var xn=pt.length;function hn(){--xn<=0&&Nn(ie,je)}0===xn&&hn(),pt.forEach(function(Gn){var ri=Ee[Gn]=new window.Image;/^data:/i.test(Gn)||(ri.crossOrigin="Anonymous"),ri.src=Gn,ri.complete?hn():(ri.onload=hn,ri.onerror=function(){Ee[Gn]=null,hn()})})}function sn(ie){var je="";do{je=String.fromCharCode(97+ie%26)+je,ie=Math.floor(ie/26)}while(ie>0);return je}function Mn(ie){if(null!=ke._clipbox){var je=ie.bbox(ke._matrix);ke._clipbox=ke._clipbox?o.Z.intersect(ke._clipbox,je):je}}function gi(ie,je){return window.getComputedStyle(ie,je||null)}function qn(ie,je,pt){var Ut=ie.getPropertyValue(je);return(null==Ut||""===Ut)&&(ae.webkit?Ut=ie.getPropertyValue("-webkit-"+je):ae.mozilla?Ut=ie.getPropertyValue("-moz-"+je):ae.opera?Ut=ie.getPropertyValue("-o-"+je):ct&&(Ut=ie.getPropertyValue("-ms-"+je))),arguments.length>2&&(null==Ut||""===Ut)?pt:Ut}function ki(ie,je,pt,Ut){ie.setProperty(je,pt,Ut),ae.webkit?ie.setProperty("-webkit-"+je,pt,Ut):ae.mozilla?ie.setProperty("-moz-"+je,pt,Ut):ae.opera?ie.setProperty("-o-"+je,pt,Ut):ct&&(ie.setProperty("-ms-"+je,pt,Ut),ie[je="ms"+je.replace(/(^|-)([a-z])/g,function(xn,hn,Gn){return hn+Gn.toUpperCase()})]=pt)}function Si(ie,je){return je="border-"+je,{width:parseFloat(qn(ie,je+"-width")),style:qn(ie,je+"-style"),color:wn(qn(ie,je+"-color"),!0)}}function Ni(ie,je){var pt=ie.style.cssText,Ut=je();return ie.style.cssText=pt,Ut}function pn(ie,je){var pt=qn(ie,"border-"+je+"-radius").split(/\s+/g).map(parseFloat);return 1==pt.length&&pt.push(pt[0]),Li({x:pt[0],y:pt[1]})}function Vn(ie){var je=ie.getBoundingClientRect();return je=ot(je,"border-*-width",ie),ot(je,"padding-*",ie)}function ot(ie,je,pt){var Ut,xn,hn,Gn,ri;return"string"==typeof je?(Ut=gi(pt),xn=parseFloat(qn(Ut,je.replace("*","top"))),hn=parseFloat(qn(Ut,je.replace("*","right"))),Gn=parseFloat(qn(Ut,je.replace("*","bottom"))),ri=parseFloat(qn(Ut,je.replace("*","left")))):"number"==typeof je&&(xn=hn=Gn=ri=je),{top:ie.top+xn,right:ie.right-hn,bottom:ie.bottom-Gn,left:ie.left+ri,width:ie.right-ie.left-hn-ri,height:ie.bottom-ie.top-Gn-xn}}function lt(ie){return 180*ie/Math.PI%360}function rn(ie,je){return je=new e.Z(je[0],je[1],je[2],je[3],je[4],je[5]),ie.transform(je),je}function Qt(ie,je){ie.clip(je)}function yi(ie,je,pt,Ut){for(var xn=new T.Z([je,pt],Ut).curvePoints(),hn=1;hn<xn.length;)ie.curveTo(xn[hn++],xn[hn++],xn[hn++])}function Li(ie){return(ie.x<=0||ie.y<=0)&&(ie.x=ie.y=0),ie}function An(ie,je,pt,Ut,xn){var hn=Math.max(0,je.x),Gn=Math.max(0,je.y),ri=Math.max(0,pt.x),mi=Math.max(0,pt.y),ui=Math.max(0,Ut.x),Pi=Math.max(0,Ut.y),Di=Math.max(0,xn.x),Yi=Math.max(0,xn.y),ji=Math.min(ie.width/(hn+ri),ie.height/(mi+Pi),ie.width/(ui+Di),ie.height/(Yi+Gn));return ji<1&&(hn*=ji,Gn*=ji,ri*=ji,mi*=ji,ui*=ji,Pi*=ji,Di*=ji,Yi*=ji),{tl:{x:hn,y:Gn},tr:{x:ri,y:mi},br:{x:ui,y:Pi},bl:{x:Di,y:Yi}}}function Ht(ie,je,pt){var Ut=gi(ie),xn=pn(Ut,"top-left"),hn=pn(Ut,"top-right"),Gn=pn(Ut,"bottom-left"),ri=pn(Ut,"bottom-right");if("padding"==pt||"content"==pt){var mi=Si(Ut,"top"),ui=Si(Ut,"right"),Pi=Si(Ut,"bottom"),Di=Si(Ut,"left");if(xn.x-=Di.width,xn.y-=mi.width,hn.x-=ui.width,hn.y-=mi.width,ri.x-=ui.width,ri.y-=Pi.width,Gn.x-=Di.width,Gn.y-=Pi.width,"content"==pt){var Yi=parseFloat(qn(Ut,"padding-top")),ji=parseFloat(qn(Ut,"padding-right")),gs=parseFloat(qn(Ut,"padding-bottom")),bs=parseFloat(qn(Ut,"padding-left"));xn.x-=bs,xn.y-=Yi,hn.x-=ji,hn.y-=Yi,ri.x-=ji,ri.y-=gs,Gn.x-=bs,Gn.y-=gs}}return"number"==typeof pt&&(xn.x-=pt,xn.y-=pt,hn.x-=pt,hn.y-=pt,ri.x-=pt,ri.y-=pt,Gn.x-=pt,Gn.y-=pt),Pn(je,xn,hn,ri,Gn)}function Pn(ie,je,pt,Ut,xn){var hn=An(ie,je,pt,Ut,xn),Gn=hn.tl,ri=hn.tr,mi=hn.br,ui=hn.bl,Pi=new Se.y({fill:null,stroke:null});return Pi.moveTo(ie.left,ie.top+Gn.y),Gn.x&&yi(Pi,ie.left+Gn.x,ie.top+Gn.y,{startAngle:-180,endAngle:-90,radiusX:Gn.x,radiusY:Gn.y}),Pi.lineTo(ie.right-ri.x,ie.top),ri.x&&yi(Pi,ie.right-ri.x,ie.top+ri.y,{startAngle:-90,endAngle:0,radiusX:ri.x,radiusY:ri.y}),Pi.lineTo(ie.right,ie.bottom-mi.y),mi.x&&yi(Pi,ie.right-mi.x,ie.bottom-mi.y,{startAngle:0,endAngle:90,radiusX:mi.x,radiusY:mi.y}),Pi.lineTo(ie.left+ui.x,ie.bottom),ui.x&&yi(Pi,ie.left+ui.x,ie.bottom-ui.y,{startAngle:90,endAngle:180,radiusX:ui.x,radiusY:ui.y}),Pi.close()}function Sn(ie,je){var pt=String(parseFloat(ie));switch(je){case"decimal-leading-zero":return pt.length<2&&(pt="0"+pt),pt;case"lower-roman":return(0,P.Z)(ie).toLowerCase();case"upper-roman":return(0,P.Z)(ie).toUpperCase();case"lower-latin":case"lower-alpha":return sn(ie-1);case"upper-latin":case"upper-alpha":return sn(ie-1).toUpperCase();default:return pt}}function Cn(ie){if(ie.cssText)return ie.cssText;for(var je=[],pt=0;pt<ie.length;++pt)je.push(ie[pt]+": "+qn(ie,ie[pt]));return je.join(";\n")}function Un(ie,je){if(ie.tagName==pe)return void fi(ie,je);let pt=[];function Ut(xn,hn){let Gn=gi(ie,xn),ri=Gn.content;if(Tt(Gn),ri&&"normal"!=ri&&"none"!=ri&&"0px"!=Gn.width){let mi=ie.ownerDocument.createElement(pe);mi.style.cssText=Cn(Gn),mi.textContent=function Fn(ie,je){function pt(Gn,ri,mi){return mi?(mi=mi.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function We(ie){var je=[],pt=ke;for(ie="_counter_"+ie;pt;)$t(pt,ie)&&je.push(pt[ie]),pt=Object.getPrototypeOf(pt);return je.reverse()}(Gn).map(function(ui){return Sn(ui,ri)}).join(mi)):Sn(function rt(ie){return ke[ie="_counter_"+ie]}(Gn)||0,ri)}var hn,Ut=Nt(je,/^\s+/),xn=[];return Ut.forEach(function(Gn){var ri;(hn=/^\s*(["'])(.*)\1\s*$/.exec(Gn))?xn.push(hn[2].replace(/\\([0-9a-f]{4})/gi,function(mi,ui){return String.fromCharCode(parseInt(ui,16))})):(hn=/^\s*counter\((.*?)\)\s*$/.exec(Gn))?(ri=Nt(hn[1]),xn.push(pt(ri[0],ri[1]))):(hn=/^\s*counters\((.*?)\)\s*$/.exec(Gn))?(ri=Nt(hn[1]),xn.push(pt(ri[0],ri[2],ri[1]))):(hn=/^\s*attr\((.*?)\)\s*$/.exec(Gn))?xn.push(ie.getAttribute(hn[1])||""):xn.push(Gn)}),xn.join("")}(ie,ri),ie.insertBefore(mi,hn),pt.push(mi)}}if(Ut(":before",ie.firstChild),Ut(":after",null),pt.length>0){let xn=ie.className;ie.className+=" kendo-pdf-hide-pseudo-elements",fi(ie,je),ie.className=xn,pt.forEach(function(hn){ie.removeChild(hn)})}else fi(ie,je)}function fi(ie,je){var pt=gi(ie),Ut=Si(pt,"top"),xn=Si(pt,"right"),hn=Si(pt,"bottom"),Gn=Si(pt,"left"),ri=pn(pt,"top-left"),mi=pn(pt,"top-right"),ui=pn(pt,"bottom-left"),Pi=pn(pt,"bottom-right"),Di=qn(pt,"direction"),Yi=qn(pt,"background-color");Yi=wn(Yi);var zi,as,ji=Oe(qn(pt,"background-image")),gs=Nt(qn(pt,"background-repeat")),bs=Nt(qn(pt,"background-position")),Es=Nt(qn(pt,"background-origin")),ss=Nt(qn(pt,"background-size"));ct&&"ellipsis"==(zi=pt.textOverflow)&&(as=ie.style.textOverflow,ie.style.textOverflow="clip"),ae.msie&&ae.version<10&&(bs=Nt(ie.currentStyle.backgroundPosition));var ds=ot(ie.getBoundingClientRect(),"border-*-width",ie);!function(){var Le=qn(pt,"clip"),Pt=/^\s*rect\((.*)\)\s*$/.exec(Le);if(Pt){var Be=Pt[1].split(/[ ,]+/g),Jt="auto"==Be[0]?ds.top:parseFloat(Be[0])+ds.top,xe="auto"==Be[1]?ds.right:parseFloat(Be[1])+ds.left,Ke="auto"==Be[2]?ds.bottom:parseFloat(Be[2])+ds.top,Qe="auto"==Be[3]?ds.left:parseFloat(Be[3])+ds.left,Et=new he.Z,Dn=(new Se.y).moveTo(Qe,Jt).lineTo(xe,Jt).lineTo(xe,Ke).lineTo(Qe,Ke).close();Qt(Et,Dn),je.append(Et),je=Et,Mn(Dn)}}();var Xi,us,ps,_s=qn(pt,"display");if("table-row"==_s)for(Xi=[],us=0,ps=ie.children;us<ps.length;++us)Xi.push(ps[us].getBoundingClientRect());else 1==(Xi=ie.getClientRects()).length&&(Xi=[ie.getBoundingClientRect()]);for(Xi=function ei(Le){if(/^td$/i.test(ie.tagName)){var Pt=ke.table;if(Pt&&"collapse"==qn(Pt.style,"border-collapse")){var Be=Si(Pt.style,"left").width,Jt=Si(Pt.style,"top").width;if(0===Be&&0===Jt)return Le;var xe=Pt.element.getBoundingClientRect(),Qe=Pt.element.rows[0].cells[0].getBoundingClientRect();if(Qe.top==xe.top||Qe.left==xe.left)return Q(Le).map(function(Et){return{left:Et.left+Be,top:Et.top+Jt,right:Et.right+Be,bottom:Et.bottom+Jt,height:Et.height,width:Et.width}})}}return Le}(Xi),us=0;us<Xi.length;++us)ai(Xi[us],0===us,us==Xi.length-1);if("A"==ie.tagName&&ie.href&&!/^#?$/.test(ie.getAttribute("href"))&&(!ke._avoidLinks||!ln(ie,ke._avoidLinks))){const Le=document.createRange();Le.selectNodeContents(ie),Q(Le.getClientRects()).forEach(function(Pt){const Be=new he.Z;Be._pdfLink={url:ie.href,top:Pt.top,right:Pt.right,bottom:Pt.bottom,left:Pt.left},je.append(Be)})}return Xi.length>0&&"list-item"==_s&&!ie.getAttribute("kendo-no-bullet")&&function un(){var Le=qn(pt,"list-style-type");if("none"!=Le){var Pt=qn(pt,"list-style-position");switch(Le){case"circle":case"disc":case"square":Be(function(xe){xe.style.fontSize="60%",xe.style.lineHeight="200%",xe.style.paddingRight="0.5em",xe.style.fontFamily="DejaVu Serif",xe.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[Le]});break;case"decimal":case"decimal-leading-zero":Be(function(xe){Jt(function(Ke){++Ke,"decimal-leading-zero"==Le&&Ke<10&&(Ke="0"+Ke),xe.innerHTML=Ke+"."})});break;case"lower-roman":case"upper-roman":Be(function(xe){Jt(function(Ke){Ke=(0,P.Z)(Ke+1),"upper-roman"==Le&&(Ke=Ke.toUpperCase()),xe.innerHTML=Ke+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":Be(function(xe){Jt(function(Ke){Ke=sn(Ke),/^upper/i.test(Le)&&(Ke=Ke.toUpperCase()),xe.innerHTML=Ke+"."})})}}function Be(xe){Ni(ie,function(){ie.style.position="relative";var Ke=ie.ownerDocument.createElement(pe);Ke.style.position="absolute",Ke.style.boxSizing="border-box","outside"==Pt?(Ke.style.width="6em",Ke.style.left="-6.8em",Ke.style.textAlign="right"):Ke.style.left="0px",xe(Ke),ie.insertBefore(Ke,ie.firstChild),St(Ke,je),ie.removeChild(Ke)})}function Jt(xe){var Ke=ie.parentNode.children,Qe=ie.getAttribute("kendo-split-index");if(null!=Qe)return xe(0|Qe,Ke.length);for(var Et=0;Et<Ke.length;++Et)if(Ke[Et]===ie)return xe(Et,Ke.length)}}(),(function wt(ie){return/^(?:textarea|select|input)$/i.test(ie.tagName)}(ie)||/^(hidden|auto|scroll)/.test(qn(pt,"overflow"))||/^(hidden|auto|scroll)/.test(qn(pt,"overflow-x"))||/^(hidden|auto|scroll)/.test(qn(pt,"overflow-y")))&&function Le(){var Pt=Ht(ie,ds,"padding"),Be=new he.Z;Qt(Be,Pt),je.append(Be),je=Be,Mn(Pt)}(),function Zn(ie,je){var pt;if(ie._kendoExportVisual)pt=ie._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&ie.getAttribute(window.kendo.attr("role"))){var Ut=window.kendo.widgetInstance(window.kendo.jQuery(ie));Ut&&(Ut.exportDOMVisual||Ut.exportVisual)&&(pt=Ut.exportDOMVisual?Ut.exportDOMVisual():Ut.exportVisual())}if(!pt)return!1;var xn=new he.Z;xn.children.push(pt);var hn=ie.getBoundingClientRect();return xn.transform(A.Z().translate(hn.left,hn.top)),je.append(xn),!0}(ie,je)||kt(ie,je),ct&&"ellipsis"==zi&&(ie.style.textOverflow=as),je;function Fs(Le,Pt,Be,Jt,xe,Ke,Qe,Et){if(!(Be<=0)){var Dn,vi=new he.Z;rn(vi,Et),je.append(vi),Li(Ke),Li(Qe),Dn=new Se.y({fill:{color:Le},stroke:null}),vi.append(Dn),Dn.moveTo(Ke.x?Math.max(Ke.x,Jt):0,0).lineTo(Pt-(Qe.x?Math.max(Qe.x,xe):0),0).lineTo(Pt-Math.max(Qe.x,xe),Be).lineTo(Math.max(Ke.x,Jt),Be).close(),Ke.x&&ni(Jt,Ke,[-1,0,0,1,Ke.x,0]),Qe.x&&ni(xe,Qe,[1,0,0,1,Pt-Qe.x,0])}function ni(qi,ys,Mo){var bo=Math.PI/2*qi/(qi+Be),Ps={x:ys.x-qi,y:ys.y-Be},Wt=new Se.y({fill:{color:Le},stroke:null}).moveTo(0,0);rn(Wt,Mo),yi(Wt,0,ys.y,{startAngle:-90,endAngle:-lt(bo),radiusX:ys.x,radiusY:ys.y}),Ps.x>0&&Ps.y>0?(Wt.lineTo(Ps.x*Math.cos(bo),ys.y-Ps.y*Math.sin(bo)),yi(Wt,0,ys.y,{startAngle:-lt(bo),endAngle:-90,radiusX:Ps.x,radiusY:Ps.y,anticlockwise:!0})):Ps.x>0?Wt.lineTo(Ps.x,Be).lineTo(0,Be):Wt.lineTo(Ps.x,Be).lineTo(Ps.x,0),vi.append(Wt.close())}}function As(Le,Pt,Be,Jt,xe,Ke,Qe){if(Be&&"none"!=Be)if("url"==Be.type){var Et=Ee[Be.url];Et&&Et.width>0&&Et.height>0&&Dn(Le,Pt,Et.width,Et.height,function(vi,ni){vi.append(new te.Z(Be.url,ni))})}else{if("linear"!=Be.type)return;Dn(Le,Pt,Pt.width,Pt.height,function bi(ie){return function(je,pt){var Ut=pt.width(),xn=pt.height();switch(ie.type){case"linear":var hn=null!=ie.angle?ie.angle:Math.PI;switch(ie.to){case"top":hn=0;break;case"left":hn=-Math.PI/2;break;case"bottom":hn=Math.PI;break;case"right":hn=Math.PI/2;break;case"top left":case"left top":hn=-Math.atan2(xn,Ut);break;case"top right":case"right top":hn=Math.atan2(xn,Ut);break;case"bottom left":case"left bottom":hn=Math.PI+Math.atan2(xn,Ut);break;case"bottom right":case"right bottom":hn=Math.PI-Math.atan2(xn,Ut)}ie.reverse&&(hn-=Math.PI),(hn%=2*Math.PI)<0&&(hn+=2*Math.PI);var Gn=Math.abs(Ut*Math.sin(hn))+Math.abs(xn*Math.cos(hn)),ri=Math.atan(Ut*Math.tan(hn)/xn),mi=Math.sin(ri),ui=Math.cos(ri),Pi=Math.abs(mi)+Math.abs(ui),Di=Pi/2*mi,Yi=Pi/2*ui;hn>Math.PI/2&&hn<=3*Math.PI/2&&(Di=-Di,Yi=-Yi);var ji=[],gs=0,bs=ie.stops.map(function(zi,as){var ds=zi.percent;ds?ds=parseFloat(ds)/100:zi.length?ds=parseFloat(zi.length)/Gn:0===as?ds=0:as==ie.stops.length-1&&(ds=1);var Xi={color:zi.color.toCssRgba(),offset:ds};return null!=ds?(gs=ds,ji.forEach(function(us,ps){us.stop.offset=us.left+(gs-us.left)*(ps+1)/(ji.length+1)}),ji=[]):ji.push({left:gs,stop:Xi}),Xi}),Es=[.5-Di,.5+Yi],ss=[.5+Di,.5-Yi];je.append(Se.y.fromRect(pt).stroke(null).fill(new oe.Z({start:Es,end:ss,stops:bs,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}(Be))}function Dn(vi,ni,qi,ys,Mo){var Ps,bo=qi/ys,Wt=ni;if("content-box"==Ke?(Wt=ot(Wt,"border-*-width",ie),Wt=ot(Wt,"padding-*",ie)):"padding-box"==Ke&&(Wt=ot(Wt,"border-*-width",ie)),!/^\s*auto(\s+auto)?\s*$/.test(Qe))if("contain"==Qe)Ps=Math.min(Wt.width/qi,Wt.height/ys),qi*=Ps,ys*=Ps;else if("cover"==Qe)Ps=Math.max(Wt.width/qi,Wt.height/ys),qi*=Ps,ys*=Ps;else{var Bn=Qe.split(/\s+/g);qi=/%$/.test(Bn[0])?Wt.width*parseFloat(Bn[0])/100:parseFloat(Bn[0]),ys=1==Bn.length||"auto"==Bn[1]?qi/bo:/%$/.test(Bn[1])?Wt.height*parseFloat(Bn[1])/100:parseFloat(Bn[1])}var ti=String(xe);switch(ti){case"bottom":ti="50% 100%";break;case"top":ti="50% 0";break;case"left":ti="0 50%";break;case"right":ti="100% 50%";break;case"center":ti="50% 50%"}1==(ti=ti.split(/\s+/)).length&&(ti[1]="50%"),ti[0]=/%$/.test(ti[0])?parseFloat(ti[0])/100*(Wt.width-qi):parseFloat(ti[0]),ti[1]=/%$/.test(ti[1])?parseFloat(ti[1])/100*(Wt.height-ys):parseFloat(ti[1]);var Ui=new o.Z([Wt.left+ti[0],Wt.top+ti[1]],[qi,ys]);function Pe(){for(;Ui.origin.x>ni.left;)Ui.origin.x-=qi}function gn(){for(;Ui.origin.y>ni.top;)Ui.origin.y-=ys}function z(){for(;Ui.origin.x<ni.right;)Mo(vi,Ui.clone()),Ui.origin.x+=qi}if("no-repeat"==Jt)Mo(vi,Ui);else if("repeat-x"==Jt)Pe(),z();else if("repeat-y"==Jt)for(gn();Ui.origin.y<ni.bottom;)Mo(vi,Ui.clone()),Ui.origin.y+=ys;else if("repeat"==Jt){Pe(),gn();for(var Ce=Ui.origin.clone();Ui.origin.y<ni.bottom;)Ui.origin.x=Ce.x,z(),Ui.origin.y+=ys}}}function ai(Le,Pt,Be){if(0!==Le.width&&0!==Le.height){!function po(Le){var Pt=new he.Z;if(Qt(Pt,Pn(Le,ri,mi,Pi,ui)),je.append(Pt),Yi){var Be=new Se.y({fill:{color:Yi.toCssRgba()},stroke:null});Be.moveTo(Le.left,Le.top).lineTo(Le.right,Le.top).lineTo(Le.right,Le.bottom).lineTo(Le.left,Le.bottom).close(),Pt.append(Be)}for(var Jt=ji.length;--Jt>=0;)As(Pt,Le,ji[Jt],gs[Jt%gs.length],bs[Jt%bs.length],Es[Jt%Es.length],ss[Jt%ss.length])}(Le);var Jt=Gn.width>0&&(Pt&&"ltr"==Di||Be&&"rtl"==Di),xe=xn.width>0&&(Be&&"ltr"==Di||Pt&&"rtl"==Di);if(0!==Ut.width||0!==Gn.width||0!==xn.width||0!==hn.width){if(Ut.color==xn.color&&Ut.color==hn.color&&Ut.color==Gn.color&&Ut.width==xn.width&&Ut.width==hn.width&&Ut.width==Gn.width&&Jt&&xe){Le=ot(Le,Ut.width/2);var Ke=Ht(ie,Le,Ut.width/2);return Ke.options.stroke={color:Ut.color,width:Ut.width},void je.append(Ke)}if(0===ri.x&&0===mi.x&&0===Pi.x&&0===ui.x&&Ut.width<2&&Gn.width<2&&xn.width<2&&hn.width<2)return Ut.width>0&&je.append(new Se.y({stroke:{width:Ut.width,color:Ut.color}}).moveTo(Le.left,Le.top+Ut.width/2).lineTo(Le.right,Le.top+Ut.width/2)),hn.width>0&&je.append(new Se.y({stroke:{width:hn.width,color:hn.color}}).moveTo(Le.left,Le.bottom-hn.width/2).lineTo(Le.right,Le.bottom-hn.width/2)),Jt&&je.append(new Se.y({stroke:{width:Gn.width,color:Gn.color}}).moveTo(Le.left+Gn.width/2,Le.top).lineTo(Le.left+Gn.width/2,Le.bottom)),void(xe&&je.append(new Se.y({stroke:{width:xn.width,color:xn.color}}).moveTo(Le.right-xn.width/2,Le.top).lineTo(Le.right-xn.width/2,Le.bottom)));var Qe=An(Le,ri,mi,Pi,ui),Et=Qe.tl,Dn=Qe.tr,vi=Qe.br,ni=Qe.bl;Fs(Ut.color,Le.width,Ut.width,Gn.width,xn.width,Et,Dn,[1,0,0,1,Le.left,Le.top]),Fs(hn.color,Le.width,hn.width,xn.width,Gn.width,vi,ni,[-1,0,0,-1,Le.right,Le.bottom]),Fs(Gn.color,Le.height,Gn.width,hn.width,Ut.width,qi(ni),qi(Et),[0,-1,1,0,Le.left,Le.bottom]),Fs(xn.color,Le.height,xn.width,Ut.width,hn.width,qi(Dn),qi(vi),[0,1,-1,0,Le.right,Le.top])}}function qi(ys){return{x:ys.y,y:ys.x}}}}function mn(ie,je,pt){var Ut=Vn(ie),xn=new o.Z([Ut.left,Ut.top],[Ut.width,Ut.height]),hn=new te.Z(je,xn);Qt(hn,Ht(ie,Ut,"content")),pt.append(hn)}function ze(ie,je){var pt=gi(ie),Ut=gi(je),xn=parseFloat(qn(pt,"z-index")),hn=parseFloat(qn(Ut,"z-index")),Gn=qn(pt,"position"),ri=qn(Ut,"position");return isNaN(xn)&&isNaN(hn)?/static|absolute/.test(Gn)&&/static|absolute/.test(ri)?0:"static"==Gn?-1:"static"==ri?1:0:isNaN(xn)?0===hn?0:hn>0?-1:1:isNaN(hn)?0===xn?0:xn>0?1:-1:parseFloat(xn)-parseFloat(hn)}function kt(ie,je){switch(ke._stackingContext.element===ie&&(ke._stackingContext.group=je),ie.tagName.toLowerCase()){case"img":mn(ie,ie.src,je);break;case"svg":let ui=function Lt(ie){const je=new window.XMLSerializer;let pt=je.serializeToString(ie);if(ae.mozilla&&(!ie.getAttribute("width")||!ie.getAttribute("height"))){const xn=(new window.DOMParser).parseFromString(pt,"image/svg+xml").documentElement,hn=Vn(ie);xn.setAttribute("width",hn.width),xn.setAttribute("height",hn.height),pt=je.serializeToString(xn)}return pt}(ie);mn(ie,`data:image/svg+xml;base64,${(0,we.Z)(ui)}`,je);break;case"canvas":try{mn(ie,ie.toDataURL("image/png"),je)}catch{}break;case"textarea":case"input":case"select":!function gt(ie,je){var pt=ie.tagName.toLowerCase();if("input"==pt&&("checkbox"==ie.type||"radio"==ie.type))return function U(ie,je){var Ut=qn(gi(ie),"color"),xn=ie.getBoundingClientRect();"checkbox"==ie.type?(je.append(Se.y.fromRect(new o.Z([xn.left+1,xn.top+1],[xn.width-2,xn.height-2])).stroke(Ut,1)),ie.checked&&je.append((new Se.y).stroke(Ut,1.2).moveTo(xn.left+.22*xn.width,xn.top+.55*xn.height).lineTo(xn.left+.45*xn.width,xn.top+.75*xn.height).lineTo(xn.left+.78*xn.width,xn.top+.22*xn.width))):(je.append(new q.Z(new G.Z([(xn.left+xn.right)/2,(xn.top+xn.bottom)/2],Math.min(xn.width-2,xn.height-2)/2)).stroke(Ut,1)),ie.checked&&je.append(new q.Z(new G.Z([(xn.left+xn.right)/2,(xn.top+xn.bottom)/2],Math.min(xn.width-8,xn.height-8)/2)).fill(Ut).stroke(null)))}(ie,je);var Gn,Ut=ie.parentNode,xn=ie.ownerDocument,hn=xn.createElement(pe);if(hn.style.cssText=Cn(gi(ie)),"input"==pt&&(hn.style.whiteSpace="pre"),("select"==pt||"textarea"==pt)&&(hn.style.overflow="auto"),"select"==pt)if(ie.multiple)for(var ri=0;ri<ie.options.length;++ri)(Gn=xn.createElement(pe)).style.cssText=Cn(gi(ie.options[ri])),Gn.style.display="block",Gn.textContent=ie.options[ri].textContent,hn.appendChild(Gn);else Gn=function ht(ie){return ie.selectedOptions&&ie.selectedOptions.length>0?ie.selectedOptions[0]:ie.options[ie.selectedIndex]}(ie),Gn&&(hn.textContent=Gn.textContent);else hn.textContent=ie.value;Ut.insertBefore(hn,ie),hn.scrollLeft=ie.scrollLeft,hn.scrollTop=ie.scrollTop,ie.style.display="none",kt(hn,je),ie.style.display="",Ut.removeChild(hn)}(ie,je);break;default:for(var pt=[],Ut=[],xn=[],hn=ie.firstChild;hn;hn=hn.nextSibling)switch(hn.nodeType){case 3:/\S/.test(hn.data)&&vn(ie,hn,je);break;case 1:var Gn=gi(hn),ri=qn(Gn,"float");"static"!=qn(Gn,"position")?xn.push(hn):"none"!=ri?Ut.push(hn):pt.push(hn)}(0,y.Z)(pt,ze).forEach(function(Di){St(Di,je)}),(0,y.Z)(Ut,ze).forEach(function(Di){St(Di,je)}),(0,y.Z)(xn,ze).forEach(function(Di){St(Di,je)})}}function vn(ie,je,pt){if(!function pi(){var ie=ke._clipbox;return null==ie||(ie?0===ie.width()||0===ie.height():void 0)}()){var Ut=gi(ie);if(!(parseFloat(qn(Ut,"text-indent"))<-500)){var xn=je.data,hn=0,Gn=xn.search(/\S\s*$/)+1;if(Gn){var ri=qn(Ut,"font-size"),mi=qn(Ut,"line-height"),ui=[qn(Ut,"font-style"),qn(Ut,"font-variant"),qn(Ut,"font-weight"),ri,qn(Ut,"font-family")].join(" ");if(ri=parseFloat(ri),mi=parseFloat(mi),0!==ri&&!isNaN(ri)){var Pi=qn(Ut,"color"),Di=ie.ownerDocument.createRange(),ji="justify"==qn(Ut,"text-align"),gs=qn(Ut,"column-count",1),bs=qn(Ut,"white-space"),Es=qn(Ut,"text-transform"),ss=ie.getBoundingClientRect().width/ri*5;0===ss&&(ss=500);var zi=null,as=ke.underline,ds=ke["line-through"],Xi=ke.overline,us=ke["underline-offset"];for(as&&ps(function un(ai){let Le=ri/12,Pt=ai.bottom;Pt+=null!=us?us:Le,po(Le,ai,as,Pt)});!ei(););return void((ds||Xi)&&ps(function As(ai){let Le=ri/12;po(Le,ai,ds,ai.bottom-ai.height/2.7),po(Le,ai,Xi,ai.top)}))}}}}function ps(ai){Di.selectNode(je);let Le=Q(Di.getClientRects());(ps=Pt=>Le.forEach(Pt))(ai)}function _s(ai){if(ct||ae.chrome||ae.safari){for(var Le=ai.getClientRects(),Pt={top:1/0,right:-1/0,bottom:-1/0,left:1/0},Be=!1,Jt=0;Jt<Le.length;++Jt){var xe=Le[Jt];xe.width<=1||xe.bottom===zi||(Pt.left=Math.min(xe.left,Pt.left),Pt.top=Math.min(xe.top,Pt.top),Pt.right=Math.max(xe.right,Pt.right),Pt.bottom=Math.max(xe.bottom,Pt.bottom),Be=!0)}return Be?(Pt.width=Pt.right-Pt.left,Pt.height=Pt.bottom-Pt.top,Pt):ai.getBoundingClientRect()}return ai.getBoundingClientRect()}function ei(){var Le,ai=hn,Pt=xn.substr(hn).search(/\S/);if(hn+=Pt,Pt<0||hn>=Gn)return!0;Di.setStart(je,hn),Di.setEnd(je,hn+1),Le=_s(Di);var Be=!1;if((ji||gs>1)&&(Pt=xn.substr(hn).search(/\s/))>=0){Di.setEnd(je,hn+Pt);var Jt=_s(Di);Jt.bottom==Le.bottom&&(Le=Jt,Be=!0,hn+=Pt)}if(!Be){if((Pt=function Dn(vi,ni,qi){Di.setEnd(je,ni);var ys=_s(Di);return ys.bottom!=Le.bottom&&vi<ni?Dn(vi,vi+ni>>1,ni):ys.right!=Le.right?(Le=ys,ni<qi?Dn(ni,ni+qi>>1,qi):ni):ni}(hn,Math.min(Gn,hn+ss),Gn))==hn)return!0;if(hn=Pt,0===(Pt=Di.toString().search(/\s+$/)))return!1;Pt>0&&(Di.setEnd(je,Di.startOffset+Pt),Le=_s(Di))}ct&&(Le=Di.getClientRects()[0]);var xe=Di.toString();if(/^(?:pre|pre-wrap)$/i.test(bs)){if(/\t/.test(xe)){var Ke=0;for(Pt=ai;Pt<Di.startOffset;++Pt){var Qe=xn.charCodeAt(Pt);9==Qe?Ke+=8-Ke%8:10==Qe||13==Qe?Ke=0:Ke++}for(;(Pt=xe.search("\t"))>=0;){var Et="        ".substr(0,8-(Ke+Pt)%8);xe=xe.substr(0,Pt)+Et+xe.substr(Pt+1)}}}else xe=xe.replace(/\s+/g," ");Be||(zi=Le.bottom),function Fs(ai,Le){if(ct&&!isNaN(mi)){var Pt=Ot(ui),Be=(Le.top+Le.bottom-Pt)/2;Le={top:Be,right:Le.right,bottom:Be+Pt,left:Le.left,height:Pt,width:Le.right-Le.left}}switch(Es){case"uppercase":ai=ai.toUpperCase();break;case"lowercase":ai=ai.toLowerCase();break;case"capitalize":ai=ai.replace(/(?:^|\s)\S/g,xe=>xe.toUpperCase())}var Jt=new ut(ai,new o.Z([Le.left,Le.top],[Le.width,Le.height]),{font:ui,fill:{color:Pi}});pt.append(Jt)}(xe,Le)}function po(ai,Le,Pt,Be){if(Pt){var Jt=new Se.y({stroke:{width:ai,color:Pt}});Jt.moveTo(Le.left,Be-=ai).lineTo(Le.right,Be),pt.append(Jt)}}}function St(ie,je){var pt=gi(ie);if(Tt(pt),!/^(style|script|link|meta|iframe|col|colgroup)$/i.test(ie.tagName)&&null!=ke._clipbox){var Ut=parseFloat(qn(pt,"opacity")),xn=qn(pt,"visibility"),hn=qn(pt,"display");if(0!==Ut&&"hidden"!=xn&&"none"!=hn){var ri,Gn=function en(ie){var je=qn(ie,"transform");if("none"==je)return null;var pt=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(je);if(pt){var Ut=qn(ie,"transform-origin");return{matrix:pt=pt[1].split(/\s*,\s*/g).map(parseFloat),origin:Ut=Ut.split(/\s+/g).map(parseFloat)}}}(pt),mi=qn(pt,"z-index");(Gn||Ut<1)&&"auto"==mi&&(mi=0),ri=function jn(ie,je,pt){var Ut;"auto"!=pt?(Ut=ke._stackingContext.group,pt=parseFloat(pt)):(Ut=je,pt=0);for(var xn=Ut.children,hn=0;hn<xn.length&&!(null!=xn[hn]._dom_zIndex&&xn[hn]._dom_zIndex>pt);++hn);var Gn=new he.Z;if(Ut.insert(hn,Gn),Gn._dom_zIndex=pt,Ut!==je&&ke._clipbox){var ri=ke._matrix.invert(),mi=ke._clipbox.transformCopy(ri);Qt(Gn,Se.y.fromRect(mi))}return Gn}(0,je,mi),Ut<1&&ri.opacity(Ut*ri.opacity()),function _n(ie,je,pt){(ke=Object.create(ke))[ie.tagName.toLowerCase()]={element:ie,style:je};let Ut=qn(je,"text-decoration");if(Ut&&"none"!=Ut){let xn=qn(je,"text-decoration-color");Ut.split(/\s+/g).forEach(function(hn){if(!ke[hn]&&(ke[hn]=xn,"underline"==hn)){let Gn=qn(je,"text-underline-offset");"auto"!=Gn&&(ke["underline-offset"]=parseFloat(Gn))}})}(function Yn(ie){function je(pt){return qn(ie,pt)}if("none"!=je("transform")||"static"!=je("position")||"auto"!=je("z-index")||je("opacity")<1)return!0})(je)&&(ke._stackingContext={element:ie,group:pt})}(ie,pt,ri),Gn?Ni(ie,function(){ki(ie.style,"transform","none","important"),ki(ie.style,"transition","none","important"),"static"==qn(pt,"position")&&ki(ie.style,"position","relative","important");var ui=ie.getBoundingClientRect(),Pi=ui.left+Gn.origin[0],Di=ui.top+Gn.origin[1],Yi=[1,0,0,1,-Pi,-Di];Yi=De(Yi,Gn.matrix),Yi=De(Yi,[1,0,0,1,Pi,Di]),Yi=rn(ri,Yi),ke._matrix=ke._matrix.multiplyCopy(Yi),Un(ie,ri)}):Un(ie,ri),function Ln(){ke=Object.getPrototypeOf(ke)}()}}}function De(ie,je){var pt=ie[0],Ut=ie[1],xn=ie[2],hn=ie[3],Gn=ie[4],ri=ie[5],mi=je[0],ui=je[1],Pi=je[2],Di=je[3];return[pt*mi+Ut*Pi,pt*ui+Ut*Di,xn*mi+hn*Pi,xn*ui+hn*Di,Gn*mi+ri*Pi+je[4],Gn*ui+ri*Di+je[5]]}},49458:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>G});var e=_(13748),o=_(47108);const T=e.Z.IDENTITY.toString(),G=F=>class extends F{bbox(N){const R=(0,o.Z)(this.currentTransform(N)),P=R?R.toString():T;let y;this._bboxCache&&this._matrixHash===P?y=this._bboxCache.clone():(y=this._bbox(R),this._bboxCache=y?y.clone():null,this._matrixHash=P);const j=this.options.get("stroke.width");return j&&y&&y.expand(j/2),y}geometryChange(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}},68341:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>A});var e=_(80829);const A=G=>class extends G{fill(F,N){const R=this.options;if((0,e.Z)(F)){if(F&&"Gradient"!==F.nodeType){const P={color:F};(0,e.Z)(N)&&(P.opacity=N),R.set("fill",P)}else R.set("fill",F);return this}return R.get("fill")}stroke(F,N,R){return(0,e.Z)(F)?(this.options.set("stroke.color",F),(0,e.Z)(N)&&this.options.set("stroke.width",N),(0,e.Z)(R)&&this.options.set("stroke.opacity",R),this):this.options.get("stroke")}}},439:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});const o=(T,A)=>class extends T{traverse(G){const F=this[A];for(let N=0;N<F.length;N++){let R=F[N];R.traverse?R.traverse(G):G(R)}return this}}},13046:(fn,ve,_)=>{"use strict";function e(F){return function(N){return this[F]!==N&&(this[F]=N,this.geometryChange()),this}}function o(F){return function(){return this[F]}}_.d(ve,{Z:()=>G});const G=(F,N)=>{const R=class extends F{};return function T(F,N){for(let R=0;R<N.length;R++){let P=N[R],y=P.charAt(0).toUpperCase()+P.substring(1,P.length);F["set"+y]=e(P),F["get"+y]=o(P)}}(R.prototype,N),R}},86620:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>G});var e=_(80829);function o(F){const N="_"+F;return function(R){return(0,e.Z)(R)?(this._observerField(N,R),this.geometryChange(),this):this[N]}}const G=(F,N=["geometry"])=>{const R=class extends F{};return function T(F,N){for(let R=0;R<N.length;R++)F[N[R]]=o(N[R])}(R.prototype,N),R}},93392:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>F});var e=_(80829),o=_(83274);function T(N){const R="_"+N;return function(P){return(0,e.Z)(P)?(this._observerField(R,o.Z.create(P)),this.geometryChange(),this):this[R]}}const F=(N,R)=>{const P=class extends N{};return function A(N,R){for(let P=0;P<R.length;P++)N[R[P]]=T(R[P])}(P.prototype,R),P}},80327:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>he});var e=_(83274),o=_(69899);function A(Se,te,oe){const q=te?0:1;for(let we=0;we<Se.length;we+=2)Se.splice(we+q,0,oe)}function G(Se,te){if(Se&&te)return te.scaleCopy(2).translate(-Se.x,-Se.y)}const F=1/3;function N(Se,te,oe){const q=te.clone().scale(.6666666666666666);return{controlOut:q.clone().translateWith(Se.scaleCopy(F)),controlIn:q.translateWith(oe.scaleCopy(F))}}const R={l:function(Se,te){const{parameters:oe,position:q}=te;for(let we=0;we<oe.length;we+=2){let ae=new e.Z(oe[we],oe[we+1]);te.isRelative&&ae.translateWith(q),Se.lineTo(ae.x,ae.y),q.x=ae.x,q.y=ae.y}},c:function(Se,te){const{parameters:oe,position:q}=te;for(let we=0;we<oe.length;we+=6){let ae=new e.Z(oe[we],oe[we+1]),Q=new e.Z(oe[we+2],oe[we+3]),pe=new e.Z(oe[we+4],oe[we+5]);te.isRelative&&(Q.translateWith(q),ae.translateWith(q),pe.translateWith(q)),Se.curveTo(ae,Q,pe),q.x=pe.x,q.y=pe.y}},v:function(Se,te){A(te.parameters,!0,te.isRelative?0:te.position.x),this.l(Se,te)},h:function(Se,te){A(te.parameters,!1,te.isRelative?0:te.position.y),this.l(Se,te)},a:function(Se,te){const{parameters:oe,position:q}=te;for(let we=0;we<oe.length;we+=7){const ae=oe[we],Q=oe[we+1],pe=oe[we+2],Ee=oe[we+3],ke=oe[we+4],Ye=new e.Z(oe[we+5],oe[we+6]);te.isRelative&&Ye.translateWith(q),(q.x!==Ye.x||q.y!==Ye.y)&&(Se.arcTo(Ye,ae,Q,Ee,ke,pe),q.x=Ye.x,q.y=Ye.y)}},s:function(Se,te){const{parameters:oe,position:q,previousCommand:we}=te;let ae;("s"===we||"c"===we)&&(ae=(0,o.Z)((0,o.Z)(Se.paths).segments).controlIn());for(let Q=0;Q<oe.length;Q+=4){let ke,pe=new e.Z(oe[Q],oe[Q+1]),Ee=new e.Z(oe[Q+2],oe[Q+3]);te.isRelative&&(pe.translateWith(q),Ee.translateWith(q)),ke=ae?G(ae,q):q.clone(),ae=pe,Se.curveTo(ke,pe,Ee),q.x=Ee.x,q.y=Ee.y}},q:function(Se,te){const{parameters:oe,position:q}=te;for(let we=0;we<oe.length;we+=4){let ae=new e.Z(oe[we],oe[we+1]),Q=new e.Z(oe[we+2],oe[we+3]);te.isRelative&&(ae.translateWith(q),Q.translateWith(q));let pe=N(q,ae,Q);Se.curveTo(pe.controlOut,pe.controlIn,Q),q.x=Q.x,q.y=Q.y}},t:function(Se,te){const{parameters:oe,position:q,previousCommand:we}=te;let ae;("q"===we||"t"===we)&&(ae=(0,o.Z)((0,o.Z)(Se.paths).segments).controlIn().clone().translateWith(q.scaleCopy(-1/3)).scale(1.5));for(let Q=0;Q<oe.length;Q+=2){let pe=new e.Z(oe[Q],oe[Q+1]);te.isRelative&&pe.translateWith(q),ae=ae?G(ae,q):q.clone();let Ee=N(q,ae,pe);Se.curveTo(Ee.controlOut,Ee.controlIn,pe),q.x=pe.x,q.y=pe.y}}},P=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,y=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,he=function se(Se,te){const oe=new e.Z;let q;return te.replace(P,(we,ae,Q,pe)=>{let Ee=ae.toLowerCase();const ke=Ee===ae,Ye=function ee(Se){const te=[];return Se.replace(y,function(oe,q){te.push(parseFloat(q))}),te}(Q.trim());if("m"===Ee&&(ke?(oe.x+=Ye[0],oe.y+=Ye[1]):(oe.x=Ye[0],oe.y=Ye[1]),Se.moveTo(oe.x,oe.y),Ye.length>2&&(Ee="l",Ye.splice(0,2))),R[Ee])R[Ee](Se,{parameters:Ye,position:oe,isRelative:ke,previousCommand:q}),pe&&"z"===pe.toLowerCase()&&Se.close();else if("m"!==Ee)throw new Error("Error while parsing SVG path. Unsupported command: "+Ee);q=Ee}),Se}},62742:(fn,ve,_)=>{"use strict";_.d(ve,{BB:()=>Tt,Q$:()=>jn,qL:()=>rt,pl:()=>Lt,VI:()=>ht,M:()=>Nt,hR:()=>it,lL:()=>It,$h:()=>wt});var e=_(48131);const o=typeof Uint8Array<"u"&&e.Z.browser&&(!e.Z.browser.msie||e.Z.browser.version>9),T=(St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(De){for(var ie=De.replace(/[^A-Za-z0-9\+\/\=]/g,""),je=0,pt=ie.length,Ut=[];je<pt;){var xn=St.indexOf(ie.charAt(je++)),hn=St.indexOf(ie.charAt(je++)),Gn=St.indexOf(ie.charAt(je++)),ri=St.indexOf(ie.charAt(je++)),ui=(15&hn)<<4|Gn>>>2,Pi=(3&Gn)<<6|ri;Ut.push(xn<<2|hn>>>4),64!=Gn&&Ut.push(ui),64!=ri&&Ut.push(Pi)}return Ut},encode:function(De){for(var ie=0,je=De.length,pt="";ie<je;){var Ut=De[ie++],xn=De[ie++],hn=De[ie++],ri=(3&Ut)<<4|xn>>>4,mi=(15&xn)<<2|hn>>>6,ui=63&hn;ie-je==2?mi=ui=64:ie-je==1&&(ui=64),pt+=St.charAt(Ut>>>2)+St.charAt(ri)+St.charAt(mi)+St.charAt(ui)}return pt}});var St;function A(St){var De=0,ie=0;null==St?St=o?new Uint8Array(256):[]:ie=St.length;var je=o?function(ei){if(ei>=St.length){var Fs=new Uint8Array(Math.max(ei+256,2*St.length));Fs.set(St,0),St=Fs}}:function(){},pt=o?function(){return new Uint8Array(St.buffer,0,ie)}:function(){return St},Ut=o?function(ei){if("string"==typeof ei)return us(ei);var Fs=ei.length;je(De+Fs),St.set(ei,De),(De+=Fs)>ie&&(ie=De)}:function(ei){if("string"==typeof ei)return us(ei);for(var Fs=0;Fs<ei.length;++Fs)ri(ei[Fs])};function Gn(){return De<ie?St[De++]:0}function ri(ei){je(De),St[De++]=255&ei,De>ie&&(ie=De)}function mi(){return Gn()<<8|Gn()}function ui(ei){ri(ei>>8),ri(ei)}function Yi(){return 65536*mi()+mi()}function ji(ei){ui(ei>>>16&65535),ui(65535&ei)}function gs(){var ei=Yi();return ei>=2147483648?ei-4294967296:ei}function bs(ei){ji(ei<0?ei+4294967296:ei)}function ds(ei){return ps(ei,Gn)}function us(ei){for(var Fs=0;Fs<ei.length;++Fs)ri(ei.charCodeAt(Fs))}function ps(ei,Fs){for(var po=new Array(ei),As=0;As<ei;++As)po[As]=Fs();return po}var _s={eof:function hn(){return De>=ie},readByte:Gn,writeByte:ri,readShort:mi,writeShort:ui,readLong:Yi,writeLong:ji,readFixed:function Es(){return Yi()/65536},writeFixed:function ss(ei){ji(Math.round(65536*ei))},readShort_:function Pi(){var ei=mi();return ei>=32768?ei-65536:ei},writeShort_:function Di(ei){ui(ei<0?ei+65536:ei)},readLong_:gs,writeLong_:bs,readFixed_:function zi(){return gs()/65536},writeFixed_:function as(ei){bs(Math.round(65536*ei))},read:ds,write:Ut,readString:function Xi(ei){return String.fromCharCode.apply(String,ds(ei))},writeString:us,times:ps,get:pt,slice:o?function(ei,Fs){if(St.buffer.slice)return new Uint8Array(St.buffer.slice(ei,ei+Fs));var po=new Uint8Array(Fs);return po.set(new Uint8Array(St.buffer,ei,Fs)),po}:function(ei,Fs){return St.slice(ei,ei+Fs)},offset:function(ei){return null!=ei?(De=ei,_s):De},skip:function(ei){De+=ei},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return ie},saveExcursion:function(ei){var Fs=De;try{return ei()}finally{De=Fs}},writeBase64:function(ei){window.atob?us(window.atob(ei)):Ut(T.decode(ei))},base64:function(){return T.encode(pt())}};return _s}function F(St){return St.map(function(De){var ie="";return De>65535&&(De-=65536,ie+=String.fromCharCode(De>>>10&1023|55296),De=56320|1023&De),ie+String.fromCharCode(De)}).join("")}function y(St,De){return Object.prototype.hasOwnProperty.call(St,De)}function j(St){return Object.keys(St).sort(function(De,ie){return De-ie}).map(parseFloat)}class Y{constructor(De){this.raw=De,this.scalerType=De.readLong(),this.tableCount=De.readShort(),this.searchRange=De.readShort(),this.entrySelector=De.readShort(),this.rangeShift=De.readShort();for(var ie=this.tables={},je=0;je<this.tableCount;++je){var pt={tag:De.readString(4),checksum:De.readLong(),offset:De.readLong(),length:De.readLong()};ie[pt.tag]=pt}}readTable(De,ie){var je=this.tables[De];if(!je)throw new Error("Table "+De+" not found in directory");return this[De]=je.table=new ie(this,je)}render(De){var ie=Object.keys(De).length,je=Math.pow(2,Math.floor(Math.log(ie)/Math.LN2)),pt=16*je,Ut=Math.floor(Math.log(je)/Math.LN2),xn=16*ie-pt,hn=A();hn.writeLong(this.scalerType),hn.writeShort(ie),hn.writeShort(pt),hn.writeShort(Ut),hn.writeShort(xn);var Gn=16*ie,ri=hn.offset()+Gn,mi=null,ui=A();for(var Pi in De)if(y(De,Pi)){var Di=De[Pi];for(hn.writeString(Pi),hn.writeLong(this.checksum(Di)),hn.writeLong(ri),hn.writeLong(Di.length),ui.write(Di),"head"==Pi&&(mi=ri),ri+=Di.length;ri%4;)ui.writeByte(0),ri++}hn.write(ui.get());var ji=2981146554-this.checksum(hn.get());return hn.offset(mi+8),hn.writeLong(ji),hn.get()}checksum(De){De=A(De);for(var ie=0;!De.eof();)ie+=De.readLong();return 4294967295&ie}}class ee{constructor(De,ie){this.definition=ie,this.length=ie.length,this.offset=ie.offset,this.file=De,this.rawData=De.raw,this.parse(De.raw)}raw(){return this.rawData.slice(this.offset,this.length)}parse(){}}class se extends ee{parse(De){De.offset(this.offset),this.version=De.readLong(),this.revision=De.readLong(),this.checkSumAdjustment=De.readLong(),this.magicNumber=De.readLong(),this.flags=De.readShort(),this.unitsPerEm=De.readShort(),this.created=De.read(8),this.modified=De.read(8),this.xMin=De.readShort_(),this.yMin=De.readShort_(),this.xMax=De.readShort_(),this.yMax=De.readShort_(),this.macStyle=De.readShort(),this.lowestRecPPEM=De.readShort(),this.fontDirectionHint=De.readShort_(),this.indexToLocFormat=De.readShort_(),this.glyphDataFormat=De.readShort_()}render(De){var ie=A();return ie.writeLong(this.version),ie.writeLong(this.revision),ie.writeLong(0),ie.writeLong(this.magicNumber),ie.writeShort(this.flags),ie.writeShort(this.unitsPerEm),ie.write(this.created),ie.write(this.modified),ie.writeShort_(this.xMin),ie.writeShort_(this.yMin),ie.writeShort_(this.xMax),ie.writeShort_(this.yMax),ie.writeShort(this.macStyle),ie.writeShort(this.lowestRecPPEM),ie.writeShort_(this.fontDirectionHint),ie.writeShort_(De),ie.writeShort_(this.glyphDataFormat),ie.get()}}class he extends ee{parse(De){De.offset(this.offset),this.offsets=0===this.file.head.indexToLocFormat?De.times(this.length/2,function(){return 2*De.readShort()}):De.times(this.length/4,De.readLong)}offsetOf(De){return this.offsets[De]}lengthOf(De){return this.offsets[De+1]-this.offsets[De]}render(De){for(var ie=A(),je=De[De.length-1]>65535,pt=0;pt<De.length;++pt)je?ie.writeLong(De[pt]):ie.writeShort(De[pt]/2);return{format:je?1:0,table:ie.get()}}}class Se extends ee{parse(De){De.offset(this.offset),this.version=De.readLong(),this.ascent=De.readShort_(),this.descent=De.readShort_(),this.lineGap=De.readShort_(),this.advanceWidthMax=De.readShort(),this.minLeftSideBearing=De.readShort_(),this.minRightSideBearing=De.readShort_(),this.xMaxExtent=De.readShort_(),this.caretSlopeRise=De.readShort_(),this.caretSlopeRun=De.readShort_(),this.caretOffset=De.readShort_(),De.skip(8),this.metricDataFormat=De.readShort_(),this.numOfLongHorMetrics=De.readShort()}render(De){var ie=A();return ie.writeLong(this.version),ie.writeShort_(this.ascent),ie.writeShort_(this.descent),ie.writeShort_(this.lineGap),ie.writeShort(this.advanceWidthMax),ie.writeShort_(this.minLeftSideBearing),ie.writeShort_(this.minRightSideBearing),ie.writeShort_(this.xMaxExtent),ie.writeShort_(this.caretSlopeRise),ie.writeShort_(this.caretSlopeRun),ie.writeShort_(this.caretOffset),ie.write([0,0,0,0,0,0,0,0]),ie.writeShort_(this.metricDataFormat),ie.writeShort(De.length),ie.get()}}class te extends ee{parse(De){De.offset(this.offset),this.version=De.readLong(),this.numGlyphs=De.readShort(),this.maxPoints=De.readShort(),this.maxContours=De.readShort(),this.maxComponentPoints=De.readShort(),this.maxComponentContours=De.readShort(),this.maxZones=De.readShort(),this.maxTwilightPoints=De.readShort(),this.maxStorage=De.readShort(),this.maxFunctionDefs=De.readShort(),this.maxInstructionDefs=De.readShort(),this.maxStackElements=De.readShort(),this.maxSizeOfInstructions=De.readShort(),this.maxComponentElements=De.readShort(),this.maxComponentDepth=De.readShort()}render(De){var ie=A();return ie.writeLong(this.version),ie.writeShort(De.length),ie.writeShort(this.maxPoints),ie.writeShort(this.maxContours),ie.writeShort(this.maxComponentPoints),ie.writeShort(this.maxComponentContours),ie.writeShort(this.maxZones),ie.writeShort(this.maxTwilightPoints),ie.writeShort(this.maxStorage),ie.writeShort(this.maxFunctionDefs),ie.writeShort(this.maxInstructionDefs),ie.writeShort(this.maxStackElements),ie.writeShort(this.maxSizeOfInstructions),ie.writeShort(this.maxComponentElements),ie.writeShort(this.maxComponentDepth),ie.get()}}class oe extends ee{parse(De){De.offset(this.offset);var ie=this.file;this.metrics=De.times(ie.hhea.numOfLongHorMetrics,function(){return{advance:De.readShort(),lsb:De.readShort_()}}),this.leftSideBearings=De.times(ie.maxp.numGlyphs-ie.hhea.numOfLongHorMetrics,De.readShort_)}forGlyph(De){var ie=this.metrics,je=ie.length;return De<je?ie[De]:{advance:ie[je-1].advance,lsb:this.leftSideBearings[De-je]}}render(De){for(var ie=A(),je=0;je<De.length;++je){var pt=this.forGlyph(De[je]);ie.writeShort(pt.advance),ie.writeShort_(pt.lsb)}return ie.get()}}var q=function(){class St{get compound(){return!1}constructor(Gn){this.raw=Gn}render(){return this.raw.get()}}class xn{get compound(){return!0}constructor(Gn){this.raw=Gn;for(var ri=this.glyphIds=[],mi=this.idOffsets=[];;){var ui=Gn.readShort();if(mi.push(Gn.offset()),ri.push(Gn.readShort()),!(32&ui))break;Gn.skip(1&ui?4:2),128&ui?Gn.skip(8):64&ui?Gn.skip(4):8&ui&&Gn.skip(2)}}render(Gn){for(var ri=A(this.raw.get()),mi=0;mi<this.glyphIds.length;++mi){var ui=this.glyphIds[mi];ri.offset(this.idOffsets[mi]),ri.writeShort(Gn[ui])}return ri.get()}}return class extends ee{parse(){this.cache={}}glyphFor(hn){var Gn=this.cache;if(y(Gn,hn))return Gn[hn];var ri=this.file.loca,mi=ri.lengthOf(hn);if(0===mi)return Gn[hn]=null;var ui=this.rawData,Pi=this.offset+ri.offsetOf(hn),Di=A(ui.slice(Pi,mi)),Yi=Di.readShort_(),ji=Di.readShort_(),gs=Di.readShort_(),bs=Di.readShort_(),Es=Di.readShort_(),ss=Gn[hn]=Yi<0?new xn(Di):new St(Di);return ss.numberOfContours=Yi,ss.xMin=ji,ss.yMin=gs,ss.xMax=bs,ss.yMax=Es,ss}render(hn,Gn,ri){for(var mi=A(),ui=[],Pi=0;Pi<Gn.length;++Pi){var Yi=hn[Gn[Pi]];mi.offset()%2&&mi.writeByte(0),ui.push(mi.offset()),Yi&&mi.write(Yi.render(ri))}return mi.offset()%2&&mi.writeByte(0),ui.push(mi.offset()),{table:mi.get(),offsets:ui}}}}(),we=function(){class St{constructor(ie,je){this.text=ie,this.length=ie.length,this.platformID=je.platformID,this.platformSpecificID=je.platformSpecificID,this.languageID=je.languageID,this.nameID=je.nameID}}return class extends ee{parse(De){De.offset(this.offset),De.readShort();for(var ie=De.readShort(),je=this.offset+De.readShort(),pt=De.times(ie,function(){return{platformID:De.readShort(),platformSpecificID:De.readShort(),languageID:De.readShort(),nameID:De.readShort(),length:De.readShort(),offset:De.readShort()+je}}),Ut=this.strings={},xn=0;xn<pt.length;++xn){var hn=pt[xn];De.offset(hn.offset);var Gn=De.readString(hn.length);Ut[hn.nameID]||(Ut[hn.nameID]=[]),Ut[hn.nameID].push(new St(Gn,hn))}this.postscriptEntry=Ut[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")}render(De){var ie=this.strings,je=0;for(var pt in ie)y(ie,pt)&&(je+=ie[pt].length);var Ut=A(),xn=A();for(pt in Ut.writeShort(0),Ut.writeShort(je),Ut.writeShort(6+12*je),ie)if(y(ie,pt))for(var hn=6==pt?[new St(De,this.postscriptEntry)]:ie[pt],Gn=0;Gn<hn.length;++Gn){var ri=hn[Gn];Ut.writeShort(ri.platformID),Ut.writeShort(ri.platformSpecificID),Ut.writeShort(ri.languageID),Ut.writeShort(ri.nameID),Ut.writeShort(ri.length),Ut.writeShort(xn.offset()),xn.writeString(ri.text)}return Ut.write(xn.get()),Ut.get()}}}(),ae=function(){var St=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return class extends ee{parse(De){var ie;switch(De.offset(this.offset),this.format=De.readLong(),this.italicAngle=De.readFixed_(),this.underlinePosition=De.readShort_(),this.underlineThickness=De.readShort_(),this.isFixedPitch=De.readLong(),this.minMemType42=De.readLong(),this.maxMemType42=De.readLong(),this.minMemType1=De.readLong(),this.maxMemType1=De.readLong(),this.format){case 65536:case 196608:break;case 131072:ie=De.readShort(),this.glyphNameIndex=De.times(ie,De.readShort),this.names=[];for(var je=this.offset+this.length;De.offset()<je;)this.names.push(De.readString(De.readByte()));break;case 151552:ie=De.readShort(),this.offsets=De.read(ie);break;case 262144:this.map=De.times(this.file.maxp.numGlyphs,De.readShort)}}glyphFor(De){switch(this.format){case 65536:return St[De]||".notdef";case 131072:var ie=this.glyphNameIndex[De];return ie<St.length?St[ie]:this.names[ie-St.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[De]||65535}}render(De){if(196608==this.format)return this.raw();var ie=A(this.rawData.slice(this.offset,32));ie.writeLong(131072),ie.offset(32);for(var je=[],pt=[],Ut=0;Ut<De.length;++Ut){var hn=this.glyphFor(De[Ut]),Gn=St.indexOf(hn);Gn>=0?je.push(Gn):(je.push(St.length+pt.length),pt.push(hn))}for(ie.writeShort(De.length),Ut=0;Ut<je.length;++Ut)ie.writeShort(je[Ut]);for(Ut=0;Ut<pt.length;++Ut)ie.writeByte(pt[Ut].length),ie.writeString(pt[Ut]);return ie.get()}}}(),Q=function(){class St{constructor(je,pt,Ut){var xn=this;xn.platformID=je.readShort(),xn.platformSpecificID=je.readShort(),xn.offset=pt+je.readLong(),je.saveExcursion(function(){var hn;switch(je.offset(xn.offset),xn.format=je.readShort(),xn.format){case 0:xn.length=je.readShort(),xn.language=je.readShort();for(var Gn=0;Gn<256;++Gn)Ut[Gn]=je.readByte();break;case 4:xn.length=je.readShort(),xn.language=je.readShort();var ri=je.readShort()/2;je.skip(6);var mi=je.times(ri,je.readShort);je.skip(2);var ui=je.times(ri,je.readShort),Pi=je.times(ri,je.readShort_),Di=je.times(ri,je.readShort),Yi=(xn.length+xn.offset-je.offset())/2,ji=je.times(Yi,je.readShort);for(Gn=0;Gn<ri;++Gn){var gs=ui[Gn],bs=mi[Gn];for(hn=gs;hn<=bs;++hn){var Es;0===Di[Gn]?Es=hn+Pi[Gn]:0!==(Es=ji[Di[Gn]/2-(ri-Gn)+(hn-gs)]||0)&&(Es+=Pi[Gn]),Ut[hn]=65535&Es}}break;case 6:xn.length=je.readShort(),xn.language=je.readShort(),hn=je.readShort();for(var zi=je.readShort();zi-- >0;)Ut[hn++]=je.readShort();break;case 12:je.readShort(),xn.length=je.readLong(),xn.language=je.readLong();for(var as=je.readLong();as-- >0;){hn=je.readLong();for(var ds=je.readLong(),Xi=je.readLong();hn<=ds;)Ut[hn++]=Xi++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+xn.format)}})}}return class extends ee{parse(ie){var je=this,pt=je.offset;ie.offset(pt),je.codeMap={},je.version=ie.readShort();var Ut=ie.readShort();je.tables=ie.times(Ut,function(){return new St(ie,pt,je.codeMap)})}static render(ie,je){var pt=A();return pt.writeShort(0),pt.writeShort(1),pt.write(function De(ie,je){var pt=j(ie),Ut=[],xn=[],hn=null,Gn=null;function ri(ei){return je[ie[ei]]}for(var mi=0;mi<pt.length;++mi){var ui=pt[mi],Di=ri(ui)-ui;(null==hn||Di!==Gn)&&(hn&&xn.push(hn),Ut.push(ui),Gn=Di),hn=ui}hn&&xn.push(hn),xn.push(65535),Ut.push(65535);var Yi=Ut.length,ji=2*Yi,gs=2*Math.pow(2,Math.floor(Math.log(Yi)/Math.LN2)),bs=Math.log(gs/2)/Math.LN2,Es=ji-gs,ss=[],zi=[],as=[];for(mi=0;mi<Yi;++mi){var ds=Ut[mi],Xi=xn[mi];if(65535==ds){ss.push(0),zi.push(0);break}var us=ri(ds);if(ds-us>=32768){ss.push(0),zi.push(2*(as.length+Yi-mi));for(var ps=ds;ps<=Xi;++ps)as.push(ri(ps))}else ss.push(us-ds),zi.push(0)}var _s=A();return _s.writeShort(3),_s.writeShort(1),_s.writeLong(12),_s.writeShort(4),_s.writeShort(16+8*Yi+2*as.length),_s.writeShort(0),_s.writeShort(ji),_s.writeShort(gs),_s.writeShort(bs),_s.writeShort(Es),xn.forEach(_s.writeShort),_s.writeShort(0),Ut.forEach(_s.writeShort),ss.forEach(_s.writeShort_),zi.forEach(_s.writeShort),as.forEach(_s.writeShort),_s.get()}(ie,je)),pt.get()}}}();class pe extends ee{parse(De){De.offset(this.offset),this.version=De.readShort(),this.averageCharWidth=De.readShort_(),this.weightClass=De.readShort(),this.widthClass=De.readShort(),this.type=De.readShort(),this.ySubscriptXSize=De.readShort_(),this.ySubscriptYSize=De.readShort_(),this.ySubscriptXOffset=De.readShort_(),this.ySubscriptYOffset=De.readShort_(),this.ySuperscriptXSize=De.readShort_(),this.ySuperscriptYSize=De.readShort_(),this.ySuperscriptXOffset=De.readShort_(),this.ySuperscriptYOffset=De.readShort_(),this.yStrikeoutSize=De.readShort_(),this.yStrikeoutPosition=De.readShort_(),this.familyClass=De.readShort_(),this.panose=De.times(10,De.readByte),this.charRange=De.times(4,De.readLong),this.vendorID=De.readString(4),this.selection=De.readShort(),this.firstCharIndex=De.readShort(),this.lastCharIndex=De.readShort(),this.version>0&&(this.ascent=De.readShort_(),this.descent=De.readShort_(),this.lineGap=De.readShort_(),this.winAscent=De.readShort(),this.winDescent=De.readShort(),this.codePageRange=De.times(2,De.readLong),this.version>1&&(this.xHeight=De.readShort(),this.capHeight=De.readShort(),this.defaultChar=De.readShort(),this.breakChar=De.readShort(),this.maxContext=De.readShort()))}render(){return this.raw()}}var Ee=1e5;class Ye{constructor(De){this.font=De,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function ke(){for(var St="",De=String(Ee),ie=0;ie<De.length;++ie)St+=String.fromCharCode(De.charCodeAt(ie)-48+65);return++Ee,St}()+"+"+this.font.psName}use(De){var ie=this;if("string"==typeof De)return function G(St){for(var pt,Ut,De=[],ie=0,je=St.length;ie<je;)(pt=St.charCodeAt(ie++))>=55296&&pt<=56319&&ie<je?56320==(64512&(Ut=St.charCodeAt(ie++)))?De.push(((1023&pt)<<10)+(1023&Ut)+65536):(De.push(pt),ie--):De.push(pt);return De}(De).reduce(function(xn,hn){return xn+String.fromCharCode(ie.use(hn))},"");var je=ie.unicodes[De];if(!je){je=ie.next++,ie.subset[je]=De,ie.unicodes[De]=je;var pt=ie.font.cmap.codeMap[De];if(pt&&(ie.ncid2ogid[je]=pt,null==ie.ogid2ngid[pt])){var Ut=ie.nextGid++;ie.ogid2ngid[pt]=Ut,ie.ngid2ogid[Ut]=pt}}return je}encodeText(De){return this.use(De)}glyphIds(){return j(this.ogid2ngid)}glyphsFor(De,ie){ie||(ie={});for(var je=0;je<De.length;++je){var pt=De[je];if(!ie[pt]){var Ut=ie[pt]=this.font.glyf.glyphFor(pt);Ut&&Ut.compound&&this.glyphsFor(Ut.glyphIds,ie)}}return ie}render(){var De=this.glyphsFor(this.glyphIds());for(var ie in De)if(y(De,ie)&&(ie=parseInt(ie,10),null==this.ogid2ngid[ie])){var je=this.nextGid++;this.ogid2ngid[ie]=je,this.ngid2ogid[je]=ie}var Ut=j(this.ngid2ogid).map(function(mi){return this.ngid2ogid[mi]},this),xn=this.font,hn=xn.glyf.render(De,Ut,this.ogid2ngid),Gn=xn.loca.render(hn.offsets);this.lastChar=this.next-1;var ri={cmap:Q.render(this.ncid2ogid,this.ogid2ngid),glyf:hn.table,loca:Gn.table,hmtx:xn.hmtx.render(Ut),hhea:xn.hhea.render(Ut),maxp:xn.maxp.render(Ut),post:xn.post.render(Ut),name:xn.name.render(this.psName),head:xn.head.render(Gn.format),"OS/2":xn.os2.render()};return this.font.directory.render(ri)}cidToGidMap(){for(var De=A(),ie=0,je=this.firstChar;je<this.next;++je){for(;ie<je;)De.writeShort(0),ie++;var pt=this.ncid2ogid[je];De.writeShort(pt?this.ogid2ngid[pt]:0),ie++}return De.get()}}class ct{constructor(De,ie){var je=this,pt=je.contents=A(De);if("ttcf"==pt.readString(4)){var Ut;const Gn=function(){pt.offset(Ut),je.parse()};if(!ie)throw new Error("Must specify a name for TTC files");pt.readLong();for(var xn=pt.readLong(),hn=0;hn<xn;++hn)if(Ut=pt.readLong(),pt.saveExcursion(Gn),je.psName==ie)return;throw new Error("Font "+ie+" not found in collection")}pt.offset(0),je.parse()}parse(){var De=this.directory=new Y(this.contents);this.head=De.readTable("head",se),this.loca=De.readTable("loca",he),this.hhea=De.readTable("hhea",Se),this.maxp=De.readTable("maxp",te),this.hmtx=De.readTable("hmtx",oe),this.glyf=De.readTable("glyf",q),this.name=De.readTable("name",we),this.post=De.readTable("post",ae),this.cmap=De.readTable("cmap",Q),this.os2=De.readTable("OS/2",pe),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm}widthOfGlyph(De){return this.hmtx.forGlyph(De).advance*this.scale}makeSubset(){return new Ye(this)}}const Ct=_(5152).Wt;var vt=_(75721),ln=_(59852);const Je=e.Z.browser,Ft="\n";var st=0;const Ze={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function $e(){var St=0,De=A();function ie(){for(var je=0;je<arguments.length;++je){var pt=arguments[je];if(void 0===pt)throw new Error("Cannot output undefined to PDF");if(pt instanceof ki)pt.beforeRender(ie),pt.render(ie);else if(sn(pt))Ln(pt,ie);else if(_n(pt))Mn(pt,ie);else if("number"==typeof pt){if(isNaN(pt))throw new Error("Cannot output NaN to PDF");var Ut=pt.toFixed(7);Ut.indexOf(".")>=0&&(Ut=Ut.replace(/\.?0+$/,"")),"-0"==Ut&&(Ut="0"),De.writeString(Ut)}else/string|boolean/.test(typeof pt)?De.writeString(String(pt)):"function"==typeof pt.get?De.write(pt.get()):"object"==typeof pt&&(pt?ie(new en(pt)):De.writeString("null"))}}return ie.writeData=function(je){De.write(je)},ie.withIndent=function(je){++St,je(ie),--St},ie.indent=function(){ie(Ft,wn("",2*St,"  ")),ie.apply(null,arguments)},ie.offset=function(){return De.offset()},ie.toString=function(){throw new Error("FIX CALLER")},ie.get=function(){return De.get()},ie.stream=function(){return De},ie}function Nt(St){if("function"!=typeof St){var De=St;St=function(pt,Ut){return pt in De?De[pt]:Ut}}var ie=St("paperSize",Ze.a4);if(!ie)return{};if("string"==typeof ie&&null==(ie=Ze[ie.toLowerCase()]))throw new Error("Unknown paper size");ie[0]=qn(ie[0]),ie[1]=qn(ie[1]),St("landscape",!1)&&(ie=[Math.max(ie[0],ie[1]),Math.min(ie[0],ie[1])]);var je=St("margin");return je&&(je="string"==typeof je||"number"==typeof je?{left:je=qn(je,0),top:je,right:je,bottom:je}:{left:qn(je.left,0),top:qn(je.top,0),right:qn(je.right,0),bottom:qn(je.bottom,0)},St("addMargin")&&(ie[0]+=je.left+je.right,ie[1]+=je.top+je.bottom)),{paperSize:ie,margin:je}}var xt={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0},$t={};function rt(){$t={}}var it=function yt(St){return function(De,ie){var je=De.length,pt=je;if(0===je)return ie();function Ut(){0==--je&&ie()}for(;pt-- >0;)St(De[pt],Ut)}}(function Kt(St,De){var ie=xt[St];ie?De(ie):function Ot(St,De){let ie;if(Je.msie&&(ie=/^data:.*?;base64,/i.exec(St)))De(function P(St){return window.atob?function N(St){const De=window.atob(St),ie=new Uint8Array(De.length);for(let je=0;je<De.length;je++)ie[je]=De.charCodeAt(je);return ie}(St):function R(St){const De=new Uint8Array(St.length);for(let ie=0;ie<St.length;ie++)De[ie]=St[ie];return De}(T.decode(St))}(St.substr(ie[0].length)));else{var pt=new XMLHttpRequest;pt.open("GET",St,!0),o&&(pt.responseType="arraybuffer"),pt.onload=function(){200==pt.status||304==pt.status?De(o?new Uint8Array(pt.response):new window.VBArray(pt.responseBody).toArray()):je()},pt.onerror=je,pt.send(null)}function je(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",St):window.console.log("Cannot load URL: %s",St)),De(null)}}(St,function(je){if(null==je)throw new Error("Cannot load font from "+St);var pt=new ct(je);xt[St]=pt,De(pt)})}),It=function(St,De,ie){ie=Object.assign({jpegQuality:.92,keepPNG:!1},ie);var je=Object.keys(St),pt=je.length;if(0===pt)return De();function Ut(){0==--pt&&De()}je.forEach(function(xn){!function We(St,De,ie,je){var Ut,xn,pt=$t[St];if(pt)ie(pt);else if(pt=new Image,/^data:/i.test(St)||(pt.crossOrigin="Anonymous"),o&&!/^data:/i.test(St)){var hn=new XMLHttpRequest;hn.onload=function(){if(xn=hn.response,Je.mozilla&&"image/svg+xml"==xn.type){let Pi=new FileReader;Pi.onload=function(){let Yi=(new window.DOMParser).parseFromString(this.result,"image/svg+xml").documentElement;if(Yi.getAttribute("width")&&Yi.getAttribute("height"))Gn(Ut=URL.createObjectURL(xn));else{Yi.setAttribute("width",De.width),Yi.setAttribute("height",De.height);let ji=(new window.XMLSerializer).serializeToString(Yi);Gn(`data:image/svg+xml;base64,${(0,ln.Z)(ji)}`)}},Pi.readAsText(xn)}else Gn(Ut=URL.createObjectURL(xn))},hn.onerror=mi,hn.open("GET",St,!0),hn.responseType="blob",hn.send()}else Gn(St);function Gn(Pi){pt.src=Pi,pt.complete&&!Je.msie?ui.call(pt):(pt.onload=ui,pt.onerror=mi)}function ri(){De||(De={width:pt.width,height:pt.height});var Pi=document.createElement("canvas");Pi.width=De.width,Pi.height=De.height;var Yi,Di=Pi.getContext("2d");Di.drawImage(pt,0,0,De.width,De.height);try{Yi=Di.getImageData(0,0,De.width,De.height)}catch{return void mi()}finally{Ut&&URL.revokeObjectURL(Ut)}for(var ji=!1,gs=A(),bs=A(),Es=Yi.data,ss=0;ss<Es.length;){gs.writeByte(Es[ss++]),gs.writeByte(Es[ss++]),gs.writeByte(Es[ss++]);var zi=Es[ss++];zi<255&&(ji=!0),bs.writeByte(zi)}if(ji||je.keepPNG)pt=new Li(De.width,De.height,gs,bs);else{var as=Pi.toDataURL("image/jpeg",je.jpegQuality);as=as.substr(as.indexOf(";base64,")+8);var ds=A();ds.writeBase64(as),pt=new yi(ds)}ie($t[St]=pt)}function mi(){ie($t[St]="ERROR")}function ui(){if(De&&!(xn&&"image/svg+xml"===xn.type||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19)))&&(De.width>=pt.width||De.height>=pt.height)&&(De=null),!De&&xn&&/^image\/jpe?g$/i.test(xn.type)){let Pi=new FileReader;Pi.onload=function(){try{let Di=new yi(A(new Uint8Array(this.result)));URL.revokeObjectURL(Ut),ie($t[St]=Di)}catch{ri()}},Pi.readAsArrayBuffer(xn)}else ri()}}(xn,St[xn],Ut,ie)})};class Tt{constructor(De){var ie=this,je=$e(),pt=0,Ut=[];function xn(mi,ui){return De&&null!=De[mi]?De[mi]:ui}ie.getOption=xn,ie.attach=function(mi){return Ut.indexOf(mi)<0&&(function Oe(St,De){var ie=St.beforeRender,je=St.render;St.beforeRender=function(){},St.render=function(pt){pt(De," 0 R")},St.renderFull=function(pt){St._offset=pt.offset(),pt(De," 0 obj "),ie.call(St,pt),je.call(St,pt),pt(" endobj")}}(mi,++pt),Ut.push(mi)),mi},ie.pages=[],ie.FONTS={},ie.IMAGES={},ie.GRAD_COL_FUNCTIONS={},ie.GRAD_OPC_FUNCTIONS={},ie.GRAD_COL={},ie.GRAD_OPC={};var hn=ie.attach(new In),Gn=ie.attach(new rn);if(xn("autoPrint")){let mi={};mi.JavaScript=new en({Names:[new Si("JS"),ie.attach(new en({S:ot("JavaScript"),JS:new Si("print(true);")}))]}),hn.props.Names=new en(mi)}hn.setPages(Gn);var ri=ie.attach(new en({Producer:new Si(xn("producer","Kendo UI PDF Generator"),!0),Title:new Si(xn("title",""),!0),Author:new Si(xn("author",""),!0),Subject:new Si(xn("subject",""),!0),Keywords:new Si(xn("keywords",""),!0),Creator:new Si(xn("creator","Kendo UI PDF Generator"),!0),CreationDate:xn("date",new Date)}));ie.addPage=function(mi){var ui=Nt(function(ss,zi){return mi&&null!=mi[ss]?mi[ss]:zi}),Pi=ui.paperSize,Di=ui.margin,Yi=Pi[0],ji=Pi[1];Di&&(Yi-=Di.left+Di.right,ji-=Di.top+Di.bottom);var gs=new lt($e(),null,!0),bs={Contents:ie.attach(gs),Parent:Gn,MediaBox:[0,0,Pi[0],Pi[1]]},Es=new mn(ie,bs);return Es._content=gs,Gn.addPage(ie.attach(Es)),Es.transform(1,0,0,-1,0,Pi[1]),Di&&(Es.translate(Di.left,Di.top),Es.rect(0,0,Yi,ji),Es.clip()),ie.pages.push(Es),Es},ie.render=function(){var mi;for(je("%PDF-1.4",Ft,"%\xc2\xc1\xda\xcf\xce",Ft,Ft),mi=0;mi<Ut.length;++mi)Ut[mi].renderFull(je),je(Ft,Ft);var ui=je.offset();for(je("xref",Ft,0," ",Ut.length+1,Ft),je("0000000000 65535 f ",Ft),mi=0;mi<Ut.length;++mi)je(Nn(Ut[mi]._offset,10)," 00000 n ",Ft);return je(Ft),je("trailer",Ft),je(new en({Size:Ut.length+1,Root:hn,Info:ri}),Ft,Ft),je("startxref",Ft,ui,Ft),je("%%EOF",Ft),je.stream().offset(0)},ie.loadFonts=it,ie.loadImages=It}getFont(De){var ie=this.FONTS[De];if(!ie){if(!(ie=xt[De]))throw new Error("Font "+De+" has not been loaded");ie=this.attach(!0===ie?new An(De):new Ht(this,ie)),this.FONTS[De]=ie}return ie}getImage(De){var ie=this.IMAGES[De];if(!ie){if(!(ie=$t[De]))throw new Error("Image "+De+" has not been loaded");if("ERROR"===ie)return null;ie=this.IMAGES[De]=this.attach(ie.asStream(this))}return ie}getOpacityGS(De,ie){var je=parseFloat(De).toFixed(3);De=parseFloat(je),je+=ie?"S":"F";var pt=this._opacityGSCache||(this._opacityGSCache={}),Ut=pt[je];if(!Ut){var xn={Type:ot("ExtGState")};ie?xn.CA=De:xn.ca=De,(Ut=this.attach(new en(xn)))._resourceName=ot("GS"+ ++st),pt[je]=Ut}return Ut}dict(De){return new en(De)}name(De){return ot(De)}stream(De,ie){return new lt(ie,De)}}function wn(St,De,ie){for(;St.length<De;)St=ie+St;return St}function Nn(St,De){return wn(String(St),De,"0")}function an(St,De){return Object.prototype.hasOwnProperty.call(St,De)}var sn=Array.isArray||function(St){return St instanceof Array};function _n(St){return St instanceof Date}function Ln(St,De){De("["),St.length>0&&De.withIndent(function(){for(var ie=0;ie<St.length;++ie)ie>0&&ie%8==0?De.indent(St[ie]):De(" ",St[ie])}),De(" ]")}function Mn(St,De){De("(D:",Nn(St.getUTCFullYear(),4),Nn(St.getUTCMonth()+1,2),Nn(St.getUTCDate(),2),Nn(St.getUTCHours(),2),Nn(St.getUTCMinutes(),2),Nn(St.getUTCSeconds(),2),"Z)")}function pi(St){return St*(72/25.4)}function Yn(St){return pi(10*St)}function gi(St){return 72*St}function qn(St,De){if("number"==typeof St)return St;var ie;if("string"==typeof St&&(ie=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(St))){var je=parseFloat(ie[1]);if(!isNaN(je))return"pt"==ie[2]?je:{mm:pi,cm:Yn,in:gi}[ie[2]](je)}if(null!=De)return De;throw new Error("Can't parse unit: "+St)}class ki{beforeRender(){}}class Si extends ki{constructor(De,ie){super(),this.value=De,this.utf16be=Boolean(ie)}render(De){let ie=this.value;if(this.utf16be)ie=vt.aA+(0,vt.FC)(ie),ie=ie.replace(/([\(\)\\])/g,"\\$1"),De("(",ie,")");else{let pt=[40];for(var je=0;je<ie.length;++je){let Ut=255&ie.charCodeAt(je);(40==Ut||41==Ut||92==Ut)&&pt.push(92),pt.push(Ut)}pt.push(41),De.writeData(pt)}}toString(){return this.value}}class Ni extends Si{constructor(De){super(De),this.value=De}render(De){De("<");for(var ie=0;ie<this.value.length;++ie)De(Nn(this.value.charCodeAt(ie).toString(16),4));De(">")}}class pn extends ki{static get(De){return ot(De)}constructor(De){super(),this.name=De}render(De){De("/"+this.escape())}escape(){return this.name.replace(/[^\x21-\x7E]/g,function(De){return"#"+Nn(De.charCodeAt(0).toString(16),2)})}toString(){return this.name}}var Vn={};function ot(St){return an(Vn,St)?Vn[St]:Vn[St]=new pn(St)}class en extends ki{constructor(De){super(),this.props=De}render(De){var ie=this.props,je=!0;De("<<"),De.withIndent(function(){for(var pt in ie)an(ie,pt)&&!/^_/.test(pt)&&(je=!1,De.indent(ot(pt)," ",ie[pt]))}),je||De.indent(),De(">>")}}class lt extends ki{constructor(De,ie,je){if(super(),"string"==typeof De){var pt=A();pt.write(De),De=pt}this.data=De,this.props=ie||{},this.compress=je}render(De){var ie=this.data.get(),je=this.props;this.compress&&(je.Filter?je.Filter instanceof Array||(je.Filter=[je.Filter]):je.Filter=[],je.Filter.unshift(ot("FlateDecode")),ie=Ct(ie)),je.Length=ie.length,De(new en(je)," stream",Ft),De.writeData(ie),De(Ft,"endstream")}}class In extends en{constructor(){super({Type:ot("Catalog")})}setPages(De){this.props.Pages=De}}class rn extends en{constructor(){super({Type:ot("Pages"),Kids:[],Count:0})}addPage(De){this.props.Kids.push(De),this.props.Count++}}var Qt=[192,193,194,195,197,198,199,201,202,203,205,206,207];class yi{constructor(De){var ie,je,pt,Ut;if(De.offset(0),65496!=De.readShort())throw new Error("Invalid JPEG image");for(;!De.eof();){if(255!=De.readByte())throw new Error("Invalid JPEG image");var Gn=De.readByte(),ri=De.readShort();if(Qt.indexOf(Gn)>=0){Ut=De.readByte(),je=De.readShort(),ie=De.readShort(),pt=De.readByte();break}De.skip(ri-2)}if(null==pt)throw new Error("Invalid JPEG image");var mi={Type:ot("XObject"),Subtype:ot("Image"),Width:ie,Height:je,BitsPerComponent:Ut,Filter:ot("DCTDecode")};switch(pt){case 1:mi.ColorSpace=ot("DeviceGray");break;case 3:mi.ColorSpace=ot("DeviceRGB");break;case 4:mi.ColorSpace=ot("DeviceCMYK"),mi.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){De.offset(0);var ui=new lt(De,mi);return ui._resourceName=ot("I"+ ++st),ui}}}class Li{constructor(De,ie,je,pt){this.asStream=function(Ut){var xn=new lt(pt,{Type:ot("XObject"),Subtype:ot("Image"),Width:De,Height:ie,BitsPerComponent:8,ColorSpace:ot("DeviceGray")},!0),hn=new lt(je,{Type:ot("XObject"),Subtype:ot("Image"),Width:De,Height:ie,BitsPerComponent:8,ColorSpace:ot("DeviceRGB"),SMask:Ut.attach(xn)},!0);return hn._resourceName=ot("I"+ ++st),hn}}}class An extends en{constructor(De){super({Type:ot("Font"),Subtype:ot("Type1"),BaseFont:ot(De)}),this._resourceName=ot("F"+ ++st)}encodeText(De){return new Si(String(De))}}class Ht extends en{constructor(De,ie,je){super({}),(je=this.props).Type=ot("Font"),je.Subtype=ot("Type0"),je.Encoding=ot("Identity-H"),this._pdf=De,this._font=ie,this._sub=ie.makeSubset(),this._resourceName=ot("F"+ ++st);var pt=ie.head;this.name=ie.psName;var Ut=this.scale=ie.scale;this.bbox=[pt.xMin*Ut,pt.yMin*Ut,pt.xMax*Ut,pt.yMax*Ut],this.italicAngle=ie.post.italicAngle,this.ascent=ie.ascent*Ut,this.descent=ie.descent*Ut,this.lineGap=ie.lineGap*Ut,this.capHeight=ie.os2.capHeight||this.ascent,this.xHeight=ie.os2.xHeight||0,this.stemV=0,this.familyClass=(ie.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(ie.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}encodeText(De){return new Ni(this._sub.encodeText(String(De)))}getTextWidth(De,ie){for(var je=0,pt=this._font.cmap.codeMap,Ut=0;Ut<ie.length;++Ut){var xn=pt[ie.charCodeAt(Ut)];je+=this._font.widthOfGlyph(xn||0)}return je*De/1e3}beforeRender(){var De=this,ie=De._sub,je=ie.render(),pt=new lt(A(je),{Length1:je.length},!0),Ut=De._pdf.attach(new en({Type:ot("FontDescriptor"),FontName:ot(De._sub.psName),FontBBox:De.bbox,Flags:De.flags,StemV:De.stemV,ItalicAngle:De.italicAngle,Ascent:De.ascent,Descent:De.descent,CapHeight:De.capHeight,XHeight:De.xHeight,FontFile2:De._pdf.attach(pt)})),xn=ie.ncid2ogid,hn=ie.firstChar,Gn=ie.lastChar,ri=[];!function Yi(ji,gs){if(ji<=Gn){var bs=xn[ji];null==bs?Yi(ji+1):(gs||ri.push(ji,gs=[]),gs.push(De._font.widthOfGlyph(bs)),Yi(ji+1,gs))}}(hn);var mi=new en({Type:ot("Font"),Subtype:ot("CIDFontType2"),BaseFont:ot(De._sub.psName),CIDSystemInfo:new en({Registry:new Si("Adobe"),Ordering:new Si("Identity"),Supplement:0}),FontDescriptor:Ut,FirstChar:hn,LastChar:Gn,DW:Math.round(De._font.widthOfGlyph(0)),W:ri,CIDToGIDMap:De._pdf.attach(De._makeCidToGidMap())}),ui=De.props;ui.BaseFont=ot(De._sub.psName),ui.DescendantFonts=[De._pdf.attach(mi)];var Pi=new Pn(hn,Gn,ie.subset),Di=new lt($e(),null,!0);Di.data(Pi),ui.ToUnicode=De._pdf.attach(Di)}_makeCidToGidMap(){return new lt(A(this._sub.cidToGidMap()),null,!0)}}class Pn extends ki{constructor(De,ie,je){super(),this.firstChar=De,this.lastChar=ie,this.map=je}render(De){De.indent("/CIDInit /ProcSet findresource begin"),De.indent("12 dict begin"),De.indent("begincmap"),De.indent("/CIDSystemInfo <<"),De.indent("  /Registry (Adobe)"),De.indent("  /Ordering (UCS)"),De.indent("  /Supplement 0"),De.indent(">> def"),De.indent("/CMapName /Adobe-Identity-UCS def"),De.indent("/CMapType 2 def"),De.indent("1 begincodespacerange"),De.indent("  <0000><ffff>"),De.indent("endcodespacerange");var ie=this;De.indent(ie.lastChar-ie.firstChar+1," beginbfchar"),De.withIndent(function(){for(var je=ie.firstChar;je<=ie.lastChar;++je){var Ut=F([ie.map[je]]);De.indent("<",Nn(je.toString(16),4),">","<");for(var xn=0;xn<Ut.length;++xn)De(Nn(Ut.charCodeAt(xn).toString(16),4));De(">")}}),De.indent("endbfchar"),De.indent("endcmap"),De.indent("CMapName currentdict /CMap defineresource pop"),De.indent("end"),De.indent("end")}}function Sn(St){return St.map(function(De){return sn(De)?Sn(De):"number"==typeof De?(Math.round(1e3*De)/1e3).toFixed(3):De}).join(" ")}function Fn(St,De,ie,je,pt,Ut,xn){var hn=Sn([De,ie,je,pt,Ut,xn]),Gn=St.GRAD_COL_FUNCTIONS[hn];return Gn||(Gn=St.GRAD_COL_FUNCTIONS[hn]=St.attach(new en({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[De,ie,je],C1:[pt,Ut,xn]}))),Gn}function Cn(St,De,ie){var je=Sn([De,ie]),pt=St.GRAD_OPC_FUNCTIONS[je];return pt||(pt=St.GRAD_OPC_FUNCTIONS[je]=St.attach(new en({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[De],C1:[ie]}))),pt}class mn extends en{constructor(De,ie){super(ie),this._pdf=De,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(ie=this.props).Type=ot("Page"),ie.ProcSet=[ot("PDF"),ot("Text"),ot("ImageB"),ot("ImageC"),ot("ImageI")],ie.Resources=new en({Font:new en(this._fontResources),ExtGState:new en(this._gsResources),XObject:new en(this._xResources),Pattern:new en(this._patResources),Shading:new en(this._shResources)}),ie.Annots=this._annotations}_out(){this._content.data.apply(null,arguments)}transform(De,ie,je,pt,Ut,xn){(function vn(St){return 1===St[0]&&0===St[1]&&0===St[2]&&1===St[3]&&0===St[4]&&0===St[5]})(arguments)||(this._matrix=function kt(St,De){var ie=St[0],je=St[1],pt=St[2],Ut=St[3],xn=St[4],hn=St[5],Gn=De[0],ri=De[1],mi=De[2],ui=De[3];return[ie*Gn+je*mi,ie*ri+je*ui,pt*Gn+Ut*mi,pt*ri+Ut*ui,xn*Gn+hn*mi+De[4],xn*ri+hn*ui+De[5]]}(arguments,this._matrix),this._out(De," ",ie," ",je," ",pt," ",Ut," ",xn," cm"),this._out(Ft))}translate(De,ie){this.transform(1,0,0,1,De,ie)}scale(De,ie){this.transform(De,0,0,ie,0,0)}rotate(De){var ie=Math.cos(De),je=Math.sin(De);this.transform(ie,je,-je,ie,0,0)}beginText(){this._textMode=!0,this._out("BT",Ft)}endText(){this._textMode=!1,this._out("ET",Ft)}_requireTextMode(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")}_requireFont(){if(!this._font)throw new Error("No font selected; call page.setFont() first")}setFont(De,ie){this._requireTextMode(),null==De?De=this._font:De instanceof Ht||(De=this._pdf.getFont(De)),null==ie&&(ie=this._fontSize),this._fontResources[De._resourceName]=De,this._font=De,this._fontSize=ie,this._out(De._resourceName," ",ie," Tf",Ft)}setTextLeading(De){this._requireTextMode(),this._out(De," TL",Ft)}setTextRenderingMode(De){this._requireTextMode(),this._out(De," Tr",Ft)}showText(De,ie){if(this._requireFont(),De.length>1&&ie&&this._font instanceof Ht){var je=this._font.getTextWidth(this._fontSize,De);this._out(ie/je*100," Tz ")}this._out(this._font.encodeText(De)," Tj",Ft)}showTextNL(De){this._requireFont(),this._out(this._font.encodeText(De)," '",Ft)}addLink(De,ie){var je=this._toPage({x:ie.left,y:ie.bottom}),pt=this._toPage({x:ie.right,y:ie.top});this._annotations.push(new en({Type:ot("Annot"),Subtype:ot("Link"),Rect:[je.x,je.y,pt.x,pt.y],Border:[0,0,0],A:new en({Type:ot("Action"),S:ot("URI"),URI:new Si(De)})}))}setStrokeColor(De,ie,je){this._out(De," ",ie," ",je," RG",Ft)}setOpacity(De){this.setFillOpacity(De),this.setStrokeOpacity(De),this._opacity*=De}setStrokeOpacity(De){if(De<1){var ie=this._pdf.getOpacityGS(this._opacity*De,!0);this._gsResources[ie._resourceName]=ie,this._out(ie._resourceName," gs",Ft)}}setFillColor(De,ie,je){this._out(De," ",ie," ",je," rg",Ft)}setFillOpacity(De){if(De<1){var ie=this._pdf.getOpacityGS(this._opacity*De,!1);this._gsResources[ie._resourceName]=ie,this._out(ie._resourceName," gs",Ft)}}gradient(De,ie){this.save(),this.rect(ie.left,ie.top,ie.width,ie.height),this.clip(),De.userSpace||this.transform(ie.width,0,0,ie.height,ie.left,ie.top);var Ut,je=function Zn(St,De,ie){var je="radial"==De.type,pt=function Un(St,De){var hn,ri,mi,ui,ie=!1,je=[],pt=[],Ut=[],xn=[];for(hn=1;hn<De.length;++hn)pt.push(Fn(St,(mi=De[hn-1].color).r,mi.g,mi.b,(ui=(ri=De[hn]).color).r,ui.g,ui.b)),(mi.a<1||ui.a<1)&&(ie=!0),Ut.push(ri.offset),xn.push(0,1);if(ie)for(hn=1;hn<De.length;++hn)je.push(Cn(St,(mi=De[hn-1].color).a,(ui=(ri=De[hn]).color).a));return Ut.pop(),{hasAlpha:ie,colors:Pi(pt),opacities:ie?Pi(je):null};function Pi(Di){return 1==Di.length?Di[0]:{FunctionType:3,Functions:Di,Domain:[0,1],Bounds:Ut,Encode:xn}}}(St,De.stops),Ut=je?[De.start.x,De.start.y,De.start.r,De.end.x,De.end.y,De.end.r]:[De.start.x,De.start.y,De.end.x,De.end.y],xn=function fi(St,De,ie,je,pt,Ut){var xn,hn;if(!Ut){var Gn=[De].concat(je);ie.forEach(function(ri){Gn.push(ri.offset,ri.color.r,ri.color.g,ri.color.b)}),hn=Sn(Gn),xn=St.GRAD_COL[hn]}return xn||(xn=new en({Type:ot("Shading"),ShadingType:De?3:2,ColorSpace:ot("DeviceRGB"),Coords:je,Domain:[0,1],Function:pt,Extend:[!0,!0]}),St.attach(xn),xn._resourceName="S"+ ++st,hn&&(St.GRAD_COL[hn]=xn)),xn}(St,je,De.stops,Ut,pt.colors,De.userSpace&&ie),hn=pt.hasAlpha?function bi(St,De,ie,je,pt,Ut){var xn,hn;if(!Ut){var Gn=[De].concat(je);ie.forEach(function(ri){Gn.push(ri.offset,ri.color.a)}),hn=Sn(Gn),xn=St.GRAD_OPC[hn]}return xn||(xn=new en({Type:ot("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:ot("Mask"),S:ot("Luminosity"),G:St.attach(new lt("/a0 gs /s0 sh",{Type:ot("XObject"),Subtype:ot("Form"),FormType:1,BBox:Ut?[Ut.left,Ut.top+Ut.height,Ut.left+Ut.width,Ut.top]:[0,1,1,0],Group:{Type:ot("Group"),S:ot("Transparency"),CS:ot("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:ot("DeviceGray"),Coords:je,Domain:[0,1],ShadingType:De?3:2,Function:pt,Extend:[!0,!0]}}}}))}}),St.attach(xn),xn._resourceName="O"+ ++st,hn&&(St.GRAD_OPC[hn]=xn)),xn}(St,je,De.stops,Ut,pt.opacities,De.userSpace&&ie):null;return{hasAlpha:pt.hasAlpha,shading:xn,opacity:hn}}(this._pdf,De,ie),pt=je.shading._resourceName;this._shResources[pt]=je.shading,je.hasAlpha&&(this._gsResources[Ut=je.opacity._resourceName]=je.opacity,this._out("/"+Ut+" gs ")),this._out("/"+pt+" sh",Ft),this.restore()}setDashPattern(De,ie){this._out(De," ",ie," d",Ft)}setLineWidth(De){this._out(De," w",Ft)}setLineCap(De){this._out(De," J",Ft)}setLineJoin(De){this._out(De," j",Ft)}setMitterLimit(De){this._out(De," M",Ft)}save(){this._contextStack.push(this._context()),this._out("q",Ft)}restore(){this._out("Q",Ft),this._context(this._contextStack.pop())}moveTo(De,ie){this._out(De," ",ie," m",Ft)}lineTo(De,ie){this._out(De," ",ie," l",Ft)}bezier(De,ie,je,pt,Ut,xn){this._out(De," ",ie," ",je," ",pt," ",Ut," ",xn," c",Ft)}bezier1(De,ie,je,pt){this._out(De," ",ie," ",je," ",pt," y",Ft)}bezier2(De,ie,je,pt){this._out(De," ",ie," ",je," ",pt," v",Ft)}close(){this._out("h",Ft)}rect(De,ie,je,pt){this._out(De," ",ie," ",je," ",pt," re",Ft)}ellipse(De,ie,je,pt){function Ut(Gn){return De+Gn}function xn(Gn){return ie+Gn}var hn=.5522847498307936;this.moveTo(Ut(0),xn(pt)),this.bezier(Ut(je*hn),xn(pt),Ut(je),xn(pt*hn),Ut(je),xn(0)),this.bezier(Ut(je),xn(-pt*hn),Ut(je*hn),xn(-pt),Ut(0),xn(-pt)),this.bezier(Ut(-je*hn),xn(-pt),Ut(-je),xn(-pt*hn),Ut(-je),xn(0)),this.bezier(Ut(-je),xn(pt*hn),Ut(-je*hn),xn(pt),Ut(0),xn(pt))}circle(De,ie,je){this.ellipse(De,ie,je,je)}stroke(){this._out("S",Ft)}nop(){this._out("n",Ft)}clip(){this._out("W n",Ft)}clipStroke(){this._out("W S",Ft)}closeStroke(){this._out("s",Ft)}fill(){this._out("f",Ft)}fillStroke(){this._out("B",Ft)}drawImage(De){var ie=this._pdf.getImage(De);ie&&(this._xResources[ie._resourceName]=ie,this._out(ie._resourceName," Do",Ft))}comment(De){var ie=this;De.split(/\r?\n/g).forEach(function(je){ie._out("% ",je,Ft)})}_context(De){if(null==De)return{opacity:this._opacity,matrix:this._matrix};this._opacity=De.opacity,this._matrix=De.matrix}_toPage(De){var ie=this._matrix;return{x:ie[0]*De.x+ie[2]*De.y+ie[4],y:ie[1]*De.x+ie[3]*De.y+ie[5]}}}function ze(St){return St.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function wt(St){var ie=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i.exec(St);if(!ie)return{fontSize:12,fontFamily:"sans-serif"};var je=ie[8]?parseInt(ie[8],10):12;return{italic:ie[2]&&"italic"==ie[2].toLowerCase(),variant:ie[4],bold:ie[6]&&/bold|700/i.test(ie[6]),fontSize:je,lineHeight:ie[12]?"normal"==ie[12]?je:parseInt(ie[12],10):null,fontFamily:ie[14].split(/\s*,\s*/g).map(ze)}}function ht(St){var je,pt,xn,ie=St.fontFamily;if(ie instanceof Array)for(var Ut=0;Ut<ie.length&&(xn=ie[Ut],St.bold&&(xn+="|bold"),St.italic&&(xn+="|italic"),je=xn.toLowerCase(),!(pt=U[je]));++Ut);else pt=U[ie.toLowerCase()];for(;"function"==typeof pt;)pt=pt();return pt||(pt="Times-Roman"),pt}var U={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function gt(St,De){St=St.toLowerCase(),U[St]=function(){return U[De]},U[St+"|bold"]=function(){return U[De+"|bold"]},U[St+"|italic"]=function(){return U[De+"|italic"]},U[St+"|bold|italic"]=function(){return U[De+"|bold|italic"]}}function Lt(St,De){if(1==arguments.length)for(var ie in St)an(St,ie)&&Lt(ie,St[ie]);else switch(St=St.toLowerCase(),U[St]=De,St){case"dejavu sans":U["sans-serif"]=De;break;case"dejavu sans|bold":U["sans-serif|bold"]=De;break;case"dejavu sans|italic":U["sans-serif|italic"]=De;break;case"dejavu sans|bold|italic":U["sans-serif|bold|italic"]=De;break;case"dejavu serif":U.serif=De;break;case"dejavu serif|bold":U["serif|bold"]=De;break;case"dejavu serif|italic":U["serif|italic"]=De;break;case"dejavu serif|bold|italic":U["serif|bold|italic"]=De;break;case"dejavu mono":U.monospace=De;break;case"dejavu mono|bold":U["monospace|bold"]=De;break;case"dejavu mono|italic":U["monospace|italic"]=De;break;case"dejavu mono|bold|italic":U["monospace|bold|italic"]=De}}gt("Times New Roman","serif"),gt("Courier New","monospace"),gt("Arial","sans-serif"),gt("Helvetica","sans-serif"),gt("Verdana","sans-serif"),gt("Tahoma","sans-serif"),gt("Georgia","sans-serif"),gt("Monaco","monospace"),gt("Andale Mono","monospace");const jn={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7}},75950:(fn,ve,_)=>{"use strict";_.d(ve,{F_:()=>Nt});var e=_(52017),o=_(1174),T=_(62742),A=_(80279),G=_(39290),F=_(27525),N=_(75614),R=_(13748),P=_(84572);const y=300,j=T.Q$,Y={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},ee={butt:0,round:1,square:2},se={miter:0,round:1,bevel:2};function he(Ot,Kt){var $t=[],rt={},We=Ot.options;function yt(Nn,an,sn){return sn||(sn=We),sn.pdf&&null!=sn.pdf[Nn]?sn.pdf[Nn]:an}var it=yt("multiPage"),It=yt("imgDPI",y);function Tt(){if(!(--wn>0)){var Nn=new T.BB({producer:yt("producer"),title:yt("title"),author:yt("author"),subject:yt("subject"),keywords:yt("keywords"),creator:yt("creator"),date:yt("date"),autoPrint:yt("autoPrint")});it?Ot.children.forEach(an):an(Ot),Kt(Nn.render(),Nn)}function an(sn){var _n=sn.options,Ln=function Oe(Ot){var We,Kt=!1,$t=R.Z.unit(),rt=null;do{We=!1,Ot=Nn(Ot)}while(Ot&&We);return{root:Ot,bbox:rt};function yt(an){return We=!0,an}function it(an){return an.visible()&&an.opacity()>0&&(Ee(an.fill())||Ee(an.stroke()))}function It(an){for(var sn=[],_n=0;_n<an.length;++_n){var Ln=Nn(an[_n]);null!=Ln&&sn.push(Ln)}return sn}function Nn(an){return function Tt(an,sn){var _n=Kt,Ln=$t;an.transform()&&($t=$t.multiplyCopy(an.transform().matrix()));var Mn=an.clip();Mn&&(Mn=Mn.bbox())&&(Mn=Mn.bbox($t),Kt=Kt?P.Z.intersect(Kt,Mn):Mn);try{return sn()}finally{Kt=_n,$t=Ln}}(an,function(){if(!(an instanceof A.Z||an instanceof N.w)){var sn=function wn(an){if(null==Kt)return!1;var sn=an.rawBBox().bbox($t);return Kt&&sn&&(sn=P.Z.intersect(sn,Kt)),sn}(an);if(!sn)return yt(null);rt=rt?P.Z.union(rt,sn):sn}return q({Path:function(_n){return 0!==_n.segments.length&&it(_n)?_n:yt(null)},MultiPath:function(_n){if(!it(_n))return yt(null);var Ln=new N.w(_n.options);return Ln.paths=It(_n.paths),0===Ln.paths.length?yt(null):Ln},Circle:function(_n){return it(_n)?_n:yt(null)},Arc:function(_n){return it(_n)?_n:yt(null)},Text:function(_n){return/\S/.test(_n.content())&&it(_n)?_n:yt(null)},Image:function(_n){return _n.visible()&&_n.opacity()>0?_n:yt(null)},Group:function(_n){if(!(_n.visible()&&_n.opacity()>0))return yt(null);var Ln=new A.Z(_n.options);return Ln.children=It(_n.children),Ln._pdfLink=_n._pdfLink,_n===Ot||0!==Ln.children.length||_n._pdfLink?Ln:yt(null)},Rect:function(_n){return it(_n)?_n:yt(null)}},an)})}}(sn),Mn=Ln.bbox;sn=Ln.root;var pi=yt("paperSize",yt("paperSize","auto"),_n),Yn=!1;if("auto"==pi)if(Mn){var gi=Mn.getSize();pi=[gi.width,gi.height],Yn=!0;var qn=Mn.getOrigin();(Ln=new A.Z).transform(new R.Z(1,0,0,1,-qn.x,-qn.y)),Ln.append(sn),sn=Ln}else pi="A4";we(sn,Nn.addPage({paperSize:pi,margin:yt("margin",yt("margin"),_n),addMargin:Yn,landscape:yt("landscape",yt("landscape",!1),_n)}),Nn)}}T.qL(),Ot.traverse(function(Nn){q({Image:function(an){var sn=an.src(),_n=an.bbox().size;if(It){var Ln=rt[sn];_n={width:Math.ceil(_n.width*It/72),height:Math.ceil(_n.height*It/72)},Ln&&(_n.width=Math.max(Ln.width,_n.width),_n.height=Math.max(Ln.height,_n.height))}rt[sn]=_n},Text:function(an){var sn=T.$h(an.options.font),_n=T.VI(sn);$t.indexOf(_n)<0&&$t.push(_n)}},Nn)});var wn=2;T.hR($t,Tt),T.lL(rt,Tt,{jpegQuality:yt("jpegQuality",.92),keepPNG:yt("keepPNG",!1)})}function q(Ot,Kt){var $t=Ot[Kt.nodeType];return $t?$t.call.apply($t,arguments):Kt}function we(Ot,Kt,$t){Ot.options._pdfDebug&&Kt.comment("BEGIN: "+Ot.options._pdfDebug);var rt=Ot.transform(),We=Ot.opacity();if(Kt.save(),null!=We&&We<1&&Kt.setOpacity(We),function ae(Ot,Kt){var $t=Ot.stroke&&Ot.stroke();if($t){var rt=$t.color;if(rt){if(null==(rt=$e(rt)))return;Kt.setStrokeColor(rt.r,rt.g,rt.b),1!=rt.a&&Kt.setStrokeOpacity(rt.a)}var We=$t.width;if(null!=We){if(0===We)return;Kt.setLineWidth(We)}var yt=$t.dashType;yt&&Kt.setDashPattern(Y[yt],0);var it=$t.lineCap;it&&Kt.setLineCap(ee[it]);var It=$t.lineJoin;It&&Kt.setLineJoin(se[It]);var Tt=$t.opacity;null!=Tt&&Kt.setStrokeOpacity(Tt)}}(Ot,Kt),function Q(Ot,Kt){var $t=Ot.fill&&Ot.fill();if($t&&!($t instanceof G.Z)){var rt=$t.color;if(rt){if(null==(rt=$e(rt)))return;Kt.setFillColor(rt.r,rt.g,rt.b),1!=rt.a&&Kt.setFillOpacity(rt.a)}var We=$t.opacity;null!=We&&Kt.setFillOpacity(We)}}(Ot,Kt),rt){var yt=rt.matrix();Kt.transform(yt.a,yt.b,yt.c,yt.d,yt.e,yt.f)}(function pe(Ot,Kt,$t){var rt=Ot.clip();rt&&(ut(rt,Kt),Kt.clip())})(Ot,Kt),q({Path:Ct,MultiPath:Ue,Circle:vt,Arc:ln,Text:Je,Image:st,Group:Ft,Rect:Ze},Ot,Kt,$t),Kt.restore(),Ot.options._pdfDebug&&Kt.comment("END: "+Ot.options._pdfDebug)}function Ee(Ot){return Ot&&(Ot instanceof G.Z||Ot.color&&!/^(none|transparent)$/i.test(Ot.color)&&(null==Ot.width||Ot.width>0)&&(null==Ot.opacity||Ot.opacity>0))}function ke(Ot,Kt,$t,rt){var We=Ot.fill();if(We instanceof G.Z){rt?Kt.clipStroke():Kt.clip();var it,It,yt=We instanceof F.Z;yt?(it={x:We.center().x,y:We.center().y,r:0},It={x:We.center().x,y:We.center().y,r:We.radius()}):(it={x:We.start().x,y:We.start().y},It={x:We.end().x,y:We.end().y});var Tt=We.stops.elements().map(function(_n){var Ln=_n.offset();Ln=/%$/.test(Ln)?parseFloat(Ln)/100:parseFloat(Ln);var Mn=$e(_n.color());return Mn.a*=_n.opacity(),{offset:Ln,color:Mn}});Tt.unshift(Tt[0]),Tt.push(Tt[Tt.length-1]);var wn={userSpace:We.userSpace(),type:yt?"radial":"linear",start:it,end:It,stops:Tt},Nn=Ot.rawBBox(),an=Nn.topLeft(),sn=Nn.getSize();return Kt.gradient(wn,Nn={left:an.x,top:an.y,width:sn.width,height:sn.height}),!0}}function Ye(Ot,Kt,$t){Ee(Ot.fill())&&Ee(Ot.stroke())?ke(Ot,Kt,0,!0)||Kt.fillStroke():Ee(Ot.fill())?ke(Ot,Kt,0,!1)||Kt.fill():Ee(Ot.stroke())?Kt.stroke():Kt.nop()}function ut(Ot,Kt,$t){var rt=Ot.segments;if(0!==rt.length&&!function ct(Ot,Kt){var $t=Ot.segments;if(4==$t.length&&Ot.options.closed){for(var rt=[],We=0;We<$t.length;++We){if($t[We].controlIn())return!1;rt[We]=$t[We].anchor()}if(rt[0].y==rt[1].y&&rt[1].x==rt[2].x&&rt[2].y==rt[3].y&&rt[3].x==rt[0].x||rt[0].x==rt[1].x&&rt[1].y==rt[2].y&&rt[2].x==rt[3].x&&rt[3].y==rt[0].y)return Kt.rect(rt[0].x,rt[0].y,rt[2].x-rt[0].x,rt[2].y-rt[0].y),!0}}(Ot,Kt)){for(var We,yt=0;yt<rt.length;++yt){var it=rt[yt],It=it.anchor();if(We){var Tt=We.controlOut(),wn=it.controlIn();Tt&&wn?Kt.bezier(Tt.x,Tt.y,wn.x,wn.y,It.x,It.y):Kt.lineTo(It.x,It.y)}else Kt.moveTo(It.x,It.y);We=it}Ot.options.closed&&Kt.close()}}function Ct(Ot,Kt,$t){ut(Ot,Kt),Ye(Ot,Kt)}function Ue(Ot,Kt,$t){for(var rt=Ot.paths,We=0;We<rt.length;++We)ut(rt[We],Kt);Ye(Ot,Kt)}function vt(Ot,Kt,$t){var rt=Ot.geometry();Kt.circle(rt.center.x,rt.center.y,rt.radius),Ye(Ot,Kt)}function ln(Ot,Kt,$t){var rt=Ot.geometry().curvePoints();Kt.moveTo(rt[0].x,rt[0].y);for(var We=1;We<rt.length;)Kt.bezier(rt[We].x,rt[We++].y,rt[We].x,rt[We++].y,rt[We].x,rt[We++].y);Ye(Ot,Kt)}function Je(Ot,Kt){var We,$t=T.$h(Ot.options.font),rt=Ot._position;Ot.fill()&&Ot.stroke()?We=j.fillAndStroke:Ot.fill()?We=j.fill:Ot.stroke()&&(We=j.stroke),Kt.transform(1,0,0,-1,rt.x,rt.y+$t.fontSize),Kt.beginText(),Kt.setFont(T.VI($t),$t.fontSize),Kt.setTextRenderingMode(We),Kt.showText(Ot.content(),Ot._pdfRect?Ot._pdfRect.width():null),Kt.endText()}function Ft(Ot,Kt,$t){Ot._pdfLink&&Kt.addLink(Ot._pdfLink.url,Ot._pdfLink);for(var rt=Ot.children,We=0;We<rt.length;++We)we(rt[We],Kt,$t)}function st(Ot,Kt){var $t=Ot.src();if($t){var rt=Ot.rect(),We=rt.getOrigin(),yt=rt.getSize();Kt.transform(yt.width,0,0,-yt.height,We.x,We.y+yt.height),Kt.drawImage($t)}}function Ze(Ot,Kt,$t){var rt=Ot.geometry();const[We,yt]=rt.cornerRadius;0===We&&0===yt?(Kt.rect(rt.origin.x,rt.origin.y,rt.size.width,rt.size.height),Ye(Ot,Kt)):Ct(N.y.fromRect(rt,Ot.options),Kt)}function $e(Ot){var Kt=(0,o.ZP)(Ot,!0);return Kt?Kt.toRGB():null}function Nt(Ot,Kt){var $t=(0,e.Z)();for(var rt in Kt)"margin"==rt&&Ot.options.pdf&&Ot.options.pdf._ignoreMargin||Ot.options.set("pdf."+rt,Kt[rt]);return function Se(Ot,Kt){he(Ot,function($t){Kt("data:application/pdf;base64,"+$t.base64())})}(Ot,$t.resolve),$t}},65294:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>P});var e=_(96616),o=_(68341),T=_(49458),A=_(86620),G=_(95991),F=_(80829);class R extends((0,o.Z)((0,T.Z)((0,A.Z)(G.Z)))){get nodeType(){return"Circle"}constructor(j=new e.Z,Y={}){super(Y),this.geometry(j),(0,F.Z)(this.options.stroke)||this.stroke("#000")}rawBBox(){return this._geometry.bbox()}_bbox(j){return this._geometry.bbox(j)}_containsPoint(j){return this.geometry().containsPoint(j)}_isOnPath(j){return this.geometry()._isOnPath(j,this.options.stroke.width/2)}}const P=R},95991:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>Y});var e=_(64914),o=_(84572),T=_(13748),A=_(40904),G=_(47108),F=_(3735),N=_(83415),R=_(80829),P=_(46574),y=_(5918);const Y=class j extends F.Z{get nodeType(){return"Rect"}constructor(se){super(),this._initOptions(se)}_initOptions(se={}){const{clip:he,transform:Se}=se;Se&&(se.transform=(0,A.Z)(Se)),he&&!he.id&&(he.id=(0,N.Z)()),this.options=new e.Z(se),this.options.addObserver(this)}transform(se){if(!(0,R.Z)(se))return this.options.get("transform");this.options.set("transform",(0,A.Z)(se))}parentTransform(){let he,se=this;for(;se.parent;){se=se.parent;let Se=se.transform();Se&&(he=Se.matrix().multiplyCopy(he||T.Z.unit()))}if(he)return(0,A.Z)(he)}currentTransform(se=this.parentTransform()){const he=this.transform(),Se=(0,G.Z)(he);let oe,te=(0,G.Z)(se);if(oe=Se&&te?te.multiplyCopy(Se):Se||te,oe)return(0,A.Z)(oe)}visible(se){return(0,R.Z)(se)?(this.options.set("visible",se),this):!1!==this.options.get("visible")}clip(se){const he=this.options;return(0,R.Z)(se)?(se&&!se.id&&(se.id=(0,N.Z)()),he.set("clip",se),this):he.get("clip")}opacity(se){return(0,R.Z)(se)?(this.options.set("opacity",se),this):(0,P.Z)(this.options.get("opacity"),1)}clippedBBox(se){const he=this._clippedBBox(se);if(he){const Se=this.clip();return Se?o.Z.intersect(he,Se.bbox(se)):he}}containsPoint(se,he){if(this.visible()){const Se=this.currentTransform(he);let te=se;return Se&&(te=se.transformCopy(Se.matrix().invert())),this._hasFill()&&this._containsPoint(te)||this._isOnPath&&this._hasStroke()&&this._isOnPath(te)}return!1}_hasFill(){const se=this.options.fill;return se&&!(0,y.Z)(se.color)}_hasStroke(){const se=this.options.stroke;return se&&se.width>0&&!(0,y.Z)(se.color)}_clippedBBox(se){return this.bbox(se)}}},27258:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>P});var e=_(3735);const o=[].push,T=[].pop,A=[].splice,G=[].shift,F=[].slice,N=[].unshift,P=class R extends e.Z{constructor(j=[]){super(),this.length=0,this._splice(0,j.length,j)}elements(j){return j?(this._splice(0,this.length,j),this._change(),this):this.slice(0)}push(){const j=arguments,Y=o.apply(this,j);return this._add(j),Y}slice(){return F.call(this)}pop(){const j=this.length,Y=T.apply(this);return j&&this._remove([Y]),Y}splice(j,Y){const ee=F.call(arguments,2),se=this._splice(j,Y,ee);return this._change(),se}shift(){const j=this.length,Y=G.apply(this);return j&&this._remove([Y]),Y}unshift(){const j=arguments,Y=N.apply(this,j);return this._add(j),Y}indexOf(j){const Y=this.length;for(let ee=0;ee<Y;ee++)if(this[ee]===j)return ee;return-1}_splice(j,Y,ee){const se=A.apply(this,[j,Y].concat(ee));return this._clearObserver(se),this._setObserver(ee),se}_add(j){this._setObserver(j),this._change()}_remove(j){this._clearObserver(j),this._change()}_setObserver(j){for(let Y=0;Y<j.length;Y++)j[Y].addObserver(this)}_clearObserver(j){for(let Y=0;Y<j.length;Y++)j[Y].removeObserver(this)}_change(){}}},80279:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>N});var e=_(95991),o=_(439),T=_(14371),A=_(66503),G=_(42049);class F extends((0,o.Z)(e.Z,"children")){get nodeType(){return"Group"}constructor(P){super(P),this.children=[]}childrenChange(P,y,j){this.trigger("childrenChange",{action:P,items:y,index:j})}append(){return(0,T.Z)(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this}insert(P,y){return this.children.splice(P,0,y),y.parent=this,this.childrenChange("add",[y],P),this}insertAt(P,y){return this.insert(y,P)}remove(P){const y=this.children.indexOf(P);return y>=0&&(this.children.splice(y,1),P.parent=null,this.childrenChange("remove",[P],y)),this}removeAt(P){if(0<=P&&P<this.children.length){let y=this.children[P];this.children.splice(P,1),y.parent=null,this.childrenChange("remove",[y],P)}return this}clear(){const P=this.children;return this.children=[],this._reparent(P,null),this.childrenChange("remove",P,0),this}bbox(P){return(0,A.Z)(this.children,!0,this.currentTransform(P))}rawBBox(){return(0,A.Z)(this.children,!1)}_clippedBBox(P){return(0,G.Z)(this.children,this.currentTransform(P))}currentTransform(P){return e.Z.prototype.currentTransform.call(this,P)||null}containsPoint(P,y){if(this.visible()){const j=this.children,Y=this.currentTransform(y);for(let ee=0;ee<j.length;ee++)if(j[ee].containsPoint(P,Y))return!0}return!1}_reparent(P,y){for(let j=0;j<P.length;j++){const Y=P[j],ee=Y.parent;ee&&ee!==this&&ee.remove&&ee.remove(Y),Y.parent=y}}}const N=F},38742:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>N});var e=_(86620),o=_(95991),T=_(84572),A=_(47108),G=_(80829);class F extends((0,e.Z)(o.Z,["rect"])){get nodeType(){return"Image"}constructor(P,y=new T.Z,j={}){super(j),this.src(P),this.rect(y)}src(P){return(0,G.Z)(P)?(this.options.set("src",P),this):this.options.get("src")}bbox(P){const y=(0,A.Z)(this.currentTransform(P));return this._rect.bbox(y)}rawBBox(){return this._rect.bbox()}_containsPoint(P){return this._rect.containsPoint(P)}_hasFill(){return this.src()}}const N=F},75614:(fn,ve,_)=>{"use strict";_.d(ve,{w:()=>rt,y:()=>$t});var e=_(27258);const T=class o extends e.Z{_change(){this.geometryChange()}};var A=_(95991),G=_(57192),F=_(83274),N=_(69899),R=_(65769);const P=.333,y=.01,j="x",Y="y";function he(We,yt){for(;yt[We+1]&&(yt[We].equals(yt[We+1])||yt[We+1].equals(yt[We+2]));)yt.splice(We+1,1)}function oe(We,yt){const it=(yt.y-We.y)/(yt.x-We.x);return[We.y-it*We.x,it]}function q(We,yt,it){let an,It=j,Tt=Y,wn=!1,Nn=!1;if(function te(We,yt,it){const Tt=Ye(oe(We,yt),it.x);return We.x===yt.x&&yt.x===it.x||(0,R.Z)(Tt,1)===(0,R.Z)(it.y,1)}(We,yt,it))an=ae(We,yt,j,Y);else{const Ln={x:Q(We,yt,it,j),y:Q(We,yt,it,Y)};if(Ln.x&&Ln.y)an=ae(We,it,j,Y),wn=!0;else if(function Se(We,yt,it){let It=!1;if(We.x===yt.x)It=!0;else if(yt.x===it.x)(yt.y<it.y&&We.y<=yt.y||it.y<yt.y&&yt.y<=We.y)&&(It=!0);else{const wn=Ye(oe(We,yt),it.x);We.y<=yt.y&&it.y<=wn||yt.y<=We.y&&it.y>=wn||(It=!0)}return It}(We,yt,it)&&(It=Y,Tt=j),Ln[It])an=0;else{let Mn;Mn=it[Tt]<We[Tt]&&We[Tt]<=yt[Tt]||We[Tt]<it[Tt]&&yt[Tt]<=We[Tt]?ct((it[Tt]-We[Tt])*(yt[It]-We[It])):-ct((it[It]-We[It])*(yt[Tt]-We[Tt])),an=y*Mn,Nn=!0}}const sn=Ee(an,We,yt,It,Tt);if(Nn){const Ln=It;It=Tt,Tt=Ln}const _n=pe(an,yt,it,It,Tt);return wn&&(we(We,yt,sn,an),we(yt,it,_n,an)),[sn,_n]}function we(We,yt,it,It){We.y<yt.y?yt.y<it.y?(it.x=We.x+(yt.y-We.y)/It,it.y=yt.y):it.y<We.y&&(it.x=yt.x-(yt.y-We.y)/It,it.y=We.y):it.y<yt.y?(it.x=We.x-(We.y-yt.y)/It,it.y=yt.y):We.y<it.y&&(it.x=yt.x+(We.y-yt.y)/It,it.y=We.y)}function ae(We,yt,it,It){const Tt=yt[it]-We[it];let Nn;return Nn=0===Tt?0:(yt[It]-We[It])/Tt,Nn}function Q(We,yt,it,It){return it[It]>yt[It]&&yt[It]>We[It]||it[It]<yt[It]&&yt[It]<We[It]}function pe(We,yt,it,It,Tt){const wn=yt[It],an=(it[It]-wn)*P;return ke(wn+an,yt[Tt]+an*We,It,Tt)}function Ee(We,yt,it,It,Tt){const Nn=it[It],an=(Nn-yt[It])*P;return ke(Nn-an,it[Tt]-an*We,It,Tt)}function ke(We,yt,it,It){const Tt=new F.Z;return Tt[it]=We,Tt[It]=yt,Tt}function Ye(We,yt){const it=We.length;let It=0;for(let Tt=0;Tt<it;Tt++)It+=Math.pow(yt,Tt)*We[Tt];return It}function ct(We){return We<=0?-1:1}var ut=_(68341),Ct=_(49458),Ue=_(8713),vt=_(84572),ln=_(57303),Je=_(91767),Ft=_(80829),st=_(88313),Ze=_(80327),$e=_(66503),Oe=_(42049),Nt=_(35712);const Kt=(We,yt)=>We.controlOut()&&yt.controlIn()?"C":"L";class $t extends((0,ut.Z)((0,Ct.Z)(A.Z))){get nodeType(){return"Path"}constructor(yt){super(yt),this.segments=new T,this.segments.addObserver(this),(0,Ft.Z)(this.options.stroke)||(this.stroke("#000"),(0,Ft.Z)(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}moveTo(yt,it){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(yt,it),this}lineTo(yt,it){const It=(0,Ft.Z)(it)?new F.Z(yt,it):yt,Tt=new G.Z(It);return this.segments.push(Tt),this}curveTo(yt,it,It){if(this.segments.length>0){const Tt=(0,N.Z)(this.segments),wn=new G.Z(It,it);this.suspend(),Tt.controlOut(yt),this.resume(),this.segments.push(wn)}return this}arc(yt,it,It,Tt,wn){if(this.segments.length>0){const an=(0,N.Z)(this.segments).anchor(),sn=(0,st.Z)(yt),_n=new F.Z(an.x-It*Math.cos(sn),an.y-Tt*Math.sin(sn)),Ln=new Ue.Z(_n,{startAngle:yt,endAngle:it,radiusX:It,radiusY:Tt,anticlockwise:wn});this._addArcSegments(Ln)}return this}arcTo(yt,it,It,Tt,wn,Nn){if(this.segments.length>0){const sn=(0,N.Z)(this.segments).anchor(),_n=Ue.Z.fromPoints(sn,F.Z.create(yt),it,It,Tt,wn,Nn);this._addArcSegments(_n)}return this}_addArcSegments(yt){this.suspend();const it=yt.curvePoints();for(let It=1;It<it.length;It+=3)this.curveTo(it[It],it[It+1],it[It+2]);this.resume(),this.geometryChange()}close(){return this.options.closed=!0,this.geometryChange(),this}rawBBox(){return this._bbox()}toString(yt){let it="";const It=this.segments,Tt=It.length;if(Tt>0){const wn=[],Nn=(We=yt,(...yt)=>yt.map(it=>it.toString(We)).join(" "));let an;for(let sn=1;sn<Tt;sn++){let _n=Kt(It[sn-1],It[sn]);_n!==an&&(an=_n,wn.push(_n)),wn.push("L"===_n?Nn(It[sn].anchor()):Nn(It[sn-1].controlOut(),It[sn].controlIn(),It[sn].anchor()))}it="M"+Nn(It[0].anchor())+" "+wn.join(" "),this.options.closed&&(it+="Z")}var We;return it}_containsPoint(yt){const it=this.segments,It=it.length;let wn,Nn,Tt=0;for(let an=1;an<It;an++)wn=it[an-1],Nn=it[an],Tt+=wn._intersectionsTo(Nn,yt);return(this.options.closed||!it[0].anchor().equals(it[It-1].anchor()))&&(Tt+=(0,Je.Z)(it[0].anchor(),it[It-1].anchor(),yt)),Tt%2!=0}_isOnPath(yt,it){const It=this.segments,Tt=It.length,wn=it||this.options.stroke.width;if(Tt>1){if(It[0]._isOnPathTo(It[1],yt,wn,"start"))return!0;for(let Nn=2;Nn<=Tt-2;Nn++)if(It[Nn-1]._isOnPathTo(It[Nn],yt,wn))return!0;if(It[Tt-2]._isOnPathTo(It[Tt-1],yt,wn,"end"))return!0}return!1}_bbox(yt){const it=this.segments,It=it.length;let Tt;if(1===It){let wn=it[0].anchor().transformCopy(yt);Tt=new vt.Z(wn,ln.Z.ZERO)}else if(It>0)for(let wn=1;wn<It;wn++){let Nn=it[wn-1].bboxTo(it[wn],yt);Tt=Tt?vt.Z.union(Tt,Nn):Nn}return Tt}static parse(yt,it){return rt.parse(yt,it)}static fromRect(yt,it){const It=new $t(it);let[Tt,wn]=yt.cornerRadius;if(0===Tt&&0===wn)It.moveTo(yt.topLeft()).lineTo(yt.topRight()).lineTo(yt.bottomRight()).lineTo(yt.bottomLeft()).close();else{const Nn=yt.origin,{x:an,y:sn}=Nn,_n=yt.width(),Ln=yt.height();Tt=(0,Nt.Z)(Tt,0,_n/2),wn=(0,Nt.Z)(wn,0,Ln/2),It.moveTo(an+Tt,sn).lineTo(an+_n-Tt,sn).arcTo([an+_n,sn+wn],Tt,wn,!1).lineTo(an+_n,sn+Ln-wn).arcTo([an+_n-Tt,sn+Ln],Tt,wn,!1).lineTo(an+Tt,sn+Ln).arcTo([an,sn+Ln-wn],Tt,wn,!1).lineTo(an,sn+wn).arcTo([an+Tt,sn],Tt,wn,!1)}return It}static fromPoints(yt,it){if(yt){const It=new $t(it);for(let Tt=0;Tt<yt.length;Tt++){let wn=F.Z.create(yt[Tt]);wn&&(0===Tt?It.moveTo(wn):It.lineTo(wn))}return It}}static curveFromPoints(yt,it){if(yt){const It=function ee(We,yt){const it=We.slice(0),It=[];let Tt=it.length;if(Tt>2&&(he(0,it),Tt=it.length),Tt<2||2===Tt&&it[0].equals(it[1]))return It;let sn,_n,wn=it[0],Nn=it[1],an=it[2];for(It.push(new G.Z(wn));wn.equals(it[Tt-1]);)yt=!0,it.pop(),Tt--;if(2===Tt){const Mn=ae(wn,Nn,j,Y);return(0,N.Z)(It).controlOut(pe(Mn,wn,Nn,j,Y)),It.push(new G.Z(Nn,Ee(Mn,wn,Nn,j,Y))),It}if(yt){wn=it[Tt-1],Nn=it[0],an=it[1];const Mn=q(wn,Nn,an);sn=Mn[1],_n=Mn[0]}else sn=pe(ae(wn,Nn,j,Y),wn,Nn,j,Y);let Ln=sn;for(let Mn=0;Mn<=Tt-3;Mn++)if(he(Mn,it),Tt=it.length,Mn+3<=Tt){wn=it[Mn],Nn=it[Mn+1],an=it[Mn+2];const pi=q(wn,Nn,an);(0,N.Z)(It).controlOut(Ln),Ln=pi[1],It.push(new G.Z(Nn,pi[0]))}if(yt){wn=it[Tt-2],Nn=it[Tt-1],an=it[0];const Mn=q(wn,Nn,an);(0,N.Z)(It).controlOut(Ln),It.push(new G.Z(Nn,Mn[0])),(0,N.Z)(It).controlOut(Mn[1]),It.push(new G.Z(an,_n))}else{const Mn=ae(Nn,an,j,Y);(0,N.Z)(It).controlOut(Ln),It.push(new G.Z(an,Ee(Mn,Nn,an,j,Y)))}return It}(yt),Tt=new $t(it);return Tt.segments.push.apply(Tt.segments,It),Tt}}static fromArc(yt,it){const It=new $t(it),Tt=yt.startAngle,wn=yt.pointAt(Tt);return It.moveTo(wn.x,wn.y),It.arc(Tt,yt.endAngle,yt.radiusX,yt.radiusY,yt.anticlockwise),It}}class rt extends((0,ut.Z)((0,Ct.Z)(A.Z))){static parse(yt,it){const It=new rt(it);return(0,Ze.Z)(It,yt)}toString(yt){const it=this.paths;let It="";if(it.length>0){const Tt=[];for(let wn=0;wn<it.length;wn++)Tt.push(it[wn].toString(yt));It=Tt.join(" ")}return It}get nodeType(){return"MultiPath"}constructor(yt){super(yt),this.paths=new T,this.paths.addObserver(this),(0,Ft.Z)(this.options.stroke)||this.stroke("#000")}moveTo(yt,it){const It=new $t;return It.moveTo(yt,it),this.paths.push(It),this}lineTo(yt,it){return this.paths.length>0&&(0,N.Z)(this.paths).lineTo(yt,it),this}curveTo(yt,it,It){return this.paths.length>0&&(0,N.Z)(this.paths).curveTo(yt,it,It),this}arc(yt,it,It,Tt,wn){return this.paths.length>0&&(0,N.Z)(this.paths).arc(yt,it,It,Tt,wn),this}arcTo(yt,it,It,Tt,wn,Nn){return this.paths.length>0&&(0,N.Z)(this.paths).arcTo(yt,it,It,Tt,wn,Nn),this}close(){return this.paths.length>0&&(0,N.Z)(this.paths).close(),this}_bbox(yt){return(0,$e.Z)(this.paths,!0,yt)}rawBBox(){return(0,$e.Z)(this.paths,!1)}_containsPoint(yt){const it=this.paths;for(let It=0;It<it.length;It++)if(it[It]._containsPoint(yt))return!0;return!1}_isOnPath(yt){const it=this.paths,It=this.options.stroke.width;for(let Tt=0;Tt<it.length;Tt++)if(it[Tt]._isOnPath(yt,It))return!0;return!1}_clippedBBox(yt){return(0,Oe.Z)(this.paths,this.currentTransform(yt))}}},6520:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>Y});var e=_(95991),o=_(83274),T=_(84572),A=_(47108),G=_(68341),F=_(93392),N=_(80829),R=_(37881);class j extends((0,G.Z)((0,F.Z)(e.Z,["position"]))){get nodeType(){return"Text"}constructor(se,he=new o.Z,Se={}){super(Se),this.content(se),this.position(he),this.options.font||(this.options.font="12px sans-serif"),(0,N.Z)(this.options.fill)||this.fill("#000")}content(se){return(0,N.Z)(se)?(this.options.set("content",se),this):this.options.get("content")}measure(){return(0,R.Z)(this.content(),{font:this.options.get("font")})}rect(){const se=this.measure(),he=this.position().clone();return new T.Z(he,[se.width,se.height])}bbox(se){const he=(0,A.Z)(this.currentTransform(se));return this.rect().bbox(he)}rawBBox(){return this.rect().bbox()}_containsPoint(se){return this.rect().containsPoint(se)}}const Y=j},66503:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(84572);function o(T,A,G){let F;for(let N=0;N<T.length;N++){let R=T[N];if(R.visible()){let P=A?R.bbox(G):R.rawBBox();P&&(F=F?e.Z.union(F,P):P)}}return F}},42049:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(84572);function o(T,A){let G;for(let F=0;F<T.length;F++){let N=T[F];if(N.visible()){let R=N.clippedBBox(A);R&&(G=G?e.Z.union(G,R):R)}}return G}},82641:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>T});var e=_(71211);const T=class o extends e.Z{constructor(G){super(),this._size=G,this._length=0,this._map={}}put(G,F){const N=this._map,R={key:G,value:F};N[G]=R,this._head?(this._tail.newer=R,R.older=this._tail,this._tail=R):this._head=this._tail=R,this._length>=this._size?(N[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(G){const F=this._map[G];if(F)return F===this._head&&F!==this._tail&&(this._head=F.newer,this._head.older=null),F!==this._tail&&(F.older&&(F.older.newer=F.newer,F.newer.older=F.older),F.older=this._tail,F.newer=null,this._tail.newer=F,this._tail=F),F.value}}},37881:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(16196);function o(T,A,G){return e.Z.current.measure(T,A,G)}},16196:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>R});var e=_(82641),o=_(71211),T=_(15226);const G={baselineMarkerSize:1};let F;typeof document<"u"&&(F=document.createElement("div"),F.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");class N extends o.Z{constructor(y){super(),this._cache=new e.Z(1e3),this.options=Object.assign({},G,y)}measure(y,j,Y={}){if(typeof y>"u"||null===y)return{width:0,height:0,baseline:0};const ee=(0,T.Ms)(j),se=(0,T.Ym)(y+ee),he=this._cache.get(se);if(he)return he;const Se={width:0,height:0,baseline:0},te=Y.box||F,oe=this._baselineMarker().cloneNode(!1);for(let we in j){let ae=j[we];typeof ae<"u"&&(te.style[we]=ae)}const q=!1!==Y.normalizeText?(0,T.bG)(y):String(y);return te.textContent=q,te.appendChild(oe),document.body.appendChild(te),q.length&&(Se.width=te.offsetWidth-this.options.baselineMarkerSize,Se.height=te.offsetHeight,Se.baseline=oe.offsetTop+this.options.baselineMarkerSize),Se.width>0&&Se.height>0&&this._cache.put(se,Se),te.parentNode.removeChild(te),Se}_baselineMarker(){const y=document.createElement("div");return y.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",y}}N.current=new N;const R=N},15226:(fn,ve,_)=>{"use strict";_.d(ve,{Ms:()=>A,Ym:()=>G,bG:()=>T});const e=/\r?\n|\r|\t/g,o=" ";function T(F){return String(F).replace(e,o)}function A(F){const N=[];for(let R in F)N.push(R+F[R]);return N.sort().join("")}function G(F){let N=2166136261;for(let R=0;R<F.length;++R)N+=(N<<1)+(N<<4)+(N<<7)+(N<<8)+(N<<24),N^=F.charCodeAt(R);return N>>>0}},27590:(fn,ve,_)=>{"use strict";_.r(ve),_.d(ve,{DEG_TO_RAD:()=>Ye.ZX,LRUCache:()=>ct.Z,MAX_NUM:()=>Ye.lA,MIN_NUM:()=>Ye.fO,TextMetrics:()=>ut.Z,append:()=>e.Z,arabicToRoman:()=>o.Z,bindEvents:()=>q.Z,createPromise:()=>T.Z,defined:()=>A.Z,definitionId:()=>G.Z,deg:()=>F.Z,elementOffset:()=>we.Z,elementPadding:()=>Ee.Z,elementScale:()=>ke.Z,elementSize:()=>ae.Z,elementStyles:()=>Q.Z,encodeBase64:()=>N.Z,eventCoordinates:()=>R.Z,eventElement:()=>P.Z,hashKey:()=>Ue.Ym,isTransparent:()=>y.Z,last:()=>j.Z,limitValue:()=>Y.Z,measureText:()=>Ct.Z,mergeSort:()=>ee.Z,normalizeText:()=>Ue.bG,now:()=>se.Z,objectKey:()=>Ue.Ms,promiseAll:()=>he.Z,rad:()=>Se.Z,round:()=>te.Z,unbindEvents:()=>pe.Z,valueOrDefault:()=>oe.Z});var e=_(14371),o=_(87471),T=_(52017),A=_(80829),G=_(83415),F=_(6175),N=_(59852),R=_(1249),P=_(56288),y=_(5918),j=_(69899),Y=_(35712),ee=_(35826),se=_(56297),he=_(4848),Se=_(88313),te=_(65769),oe=_(46574),q=_(51617),we=_(18228),ae=_(46558),Q=_(8408),pe=_(64361),Ee=_(5473),ke=_(62426),Ye=_(65969),ct=_(82641),ut=_(16196),Ct=_(37881),Ue=_(15226)},14371:(fn,ve,_)=>{"use strict";function e(o,T){return o.push.apply(o,T),o}_.d(ve,{Z:()=>e})},87471:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});const e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function o(T){const A=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1];let G="";for(;T>0;)T<A[0]?A.shift():(G+=e[A[0]],T-=A[0]);return G}},51617:(fn,ve,_)=>{"use strict";function e(o,T){for(let A in T){const G=A.trim().split(" ");for(let F=0;F<G.length;F++)o.addEventListener(G[F],T[A],!1)}}_.d(ve,{Z:()=>e})},65969:(fn,ve,_)=>{"use strict";_.d(ve,{ZX:()=>e,fO:()=>T,lA:()=>o});const e=Math.PI/180,o=Number.MAX_VALUE,T=-Number.MAX_VALUE},52017:(fn,ve,_)=>{"use strict";function e(){let o,T;const A=new Promise((G,F)=>{o=N=>(A._state="resolved",G(N),A),T=N=>(A._state="rejected",F(N),A)});return A._state="pending",A.resolve=o,A.reject=T,A.state=()=>A._state,A}_.d(ve,{Z:()=>e})},80829:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});const e="undefined";function o(T){return typeof T!==e}},83415:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});let e=1;function o(){return"kdef"+e++}},6175:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(65969);function o(T){return T/e.ZX}},18228:(fn,ve,_)=>{"use strict";function e(o){const T=o.getBoundingClientRect(),A=document.documentElement;return{top:T.top+(window.pageYOffset||A.scrollTop)-(A.clientTop||0),left:T.left+(window.pageXOffset||A.scrollLeft)-(A.clientLeft||0)}}_.d(ve,{Z:()=>e})},5473:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(8408);function o(T){const{paddingLeft:A,paddingTop:G}=(0,e.Z)(T,["paddingLeft","paddingTop"]);return{top:parseFloat(G),left:parseFloat(A)}}},62426:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>G});var e=_(13748);const o=/matrix\((.*)\)/;function A(F){const N=getComputedStyle(F).transform;return"none"===N?e.Z.unit():function T(F){const N=F.match(o);if(null===N||2!==N.length)return e.Z.unit();const R=N[1].split(",").map(P=>parseFloat(P));return new e.Z(...R)}(N)}function G(F){if(!F)return e.Z.unit();let N=A(F),R=F.parentElement;for(;R;){const P=A(R);N=N.multiplyCopy(P),R=R.parentElement}return N.b=N.c=N.e=N.f=0,N}},46558:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>A});var e=_(8408),o=_(80829);function T(G){return isNaN(G)?G:G+"px"}function A(G,F){if(!F){const N=(0,e.Z)(G,["width","height"]);return{width:parseInt(N.width,10),height:parseInt(N.height,10)}}{const{width:N,height:R}=F;(0,o.Z)(N)&&(G.style.width=T(N)),(0,o.Z)(R)&&(G.style.height=T(R))}}},8408:(fn,ve,_)=>{"use strict";function e(o,T){const A={},G=window.getComputedStyle(o)||{},F=Array.isArray(T)?T:[T];for(let N=0;N<F.length;N++){let R=F[N];A[R]=G[R]}return A}_.d(ve,{Z:()=>e})},59852:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>T});var e=_(75721);const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function T(A){let G="",F=0;const N=(0,e.Wj)(A);for(;F<N.length;){let R=N.charCodeAt(F++),P=N.charCodeAt(F++),y=N.charCodeAt(F++),j=R>>2,Y=(3&R)<<4|P>>4,ee=(15&P)<<2|y>>6,se=63&y;isNaN(P)?ee=se=64:isNaN(y)&&(se=64),G=G+o.charAt(j)+o.charAt(Y)+o.charAt(ee)+o.charAt(se)}return G}},75721:(fn,ve,_)=>{"use strict";_.d(ve,{FC:()=>G,Wj:()=>T,aA:()=>o});const e=String.fromCharCode,o="\xfe\xff";function T(F){let N="";for(let R=0;R<F.length;R++){let P=F.charCodeAt(R);if(55296<=P&&P<=56319){const y=P,j=F.charCodeAt(++R);isNaN(j)||(P=1024*(y-55296)+(j-56320)+65536)}P<128?N+=e(P):P<2048?(N+=e(192|P>>>6),N+=e(128|63&P)):P<65536?(N+=e(224|P>>>12),N+=e(128|P>>>6&63),N+=e(128|63&P)):P<1114111&&(N+=e(240|P>>>18),N+=e(128|P>>>12&63),N+=e(128|P>>>6&63),N+=e(128|63&P))}return N}function A(F){return e(F>>8)+e(255&F)}function G(F){let N="";for(let R=0;R<F.length;R++){const P=F.charCodeAt(R);if(P<65535)N+=A(P);else{const j=56320+(P-65536&1023);N+=A(55296+(P-65536>>10)),N+=A(j)}}return N}},1249:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(80829);function o(T){return(0,e.Z)((T.x||{}).location)?{x:T.x.location,y:T.y.location}:{x:T.pageX||T.clientX||0,y:T.pageY||T.clientY||0}}},56288:(fn,ve,_)=>{"use strict";function e(o={}){return o.touch?o.touch.initialTouch:o.target}_.d(ve,{Z:()=>e})},5918:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(80829);function o(T){return""===T||null===T||"none"===T||"transparent"===T||!(0,e.Z)(T)}},69899:(fn,ve,_)=>{"use strict";function e(o){if(o)return o[o.length-1]}_.d(ve,{Z:()=>e})},35712:(fn,ve,_)=>{"use strict";function e(o,T,A){return Math.max(Math.min(o,A),T)}_.d(ve,{Z:()=>e})},35826:(fn,ve,_)=>{"use strict";function e(o,T){return o.length<2?o.slice():function G(F){if(F.length<=1)return F;var N=Math.floor(F.length/2),R=F.slice(0,N),P=F.slice(N);return function A(G,F){for(var N=[],R=0,P=0,y=0;R<G.length&&P<F.length;)T(G[R],F[P])<=0?N[y++]=G[R++]:N[y++]=F[P++];return R<G.length&&N.push.apply(N,G.slice(R)),P<F.length&&N.push.apply(N,F.slice(P)),N}(R=G(R),P=G(P))}(o)}_.d(ve,{Z:()=>e})},56297:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});const o=Date.now||function(){return(new Date).getTime()}},4848:(fn,ve,_)=>{"use strict";function e(o){return Promise.all(o)}_.d(ve,{Z:()=>e})},88313:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(65969);function o(T){return T*e.ZX}},65769:(fn,ve,_)=>{"use strict";function o(T,A){const G=function e(T){return T?Math.pow(10,T):1}(A);return Math.round(T*G)/G}_.d(ve,{Z:()=>o})},64361:(fn,ve,_)=>{"use strict";function e(o,T={}){for(let A in T){const G=A.trim().split(" ");for(let F=0;F<G.length;F++)o.removeEventListener(G[F],T[A],!1)}}_.d(ve,{Z:()=>e})},46574:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>o});var e=_(80829);function o(T,A){return(0,e.Z)(T)?T:A}},7655:(fn,ve,_)=>{"use strict";function e(j,Y,ee={}){let se=F;if(ee.forceProxy&&!ee.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");ee.forceProxy||(T()&&(se=G),navigator.msSaveBlob&&(se=A)),se(j,Y,ee)}_.d(ve,{p:()=>e});const o=()=>document.createElement("a"),T=()=>"download"in o();function A(j,Y){let ee=j;if("string"==typeof j){const se=j.split(";base64,"),he=se[0],Se=atob(se[1]),te=new Uint8Array(Se.length);for(let oe=0;oe<Se.length;oe++)te[oe]=Se.charCodeAt(oe);ee=new Blob([te.buffer],{type:he})}navigator.msSaveBlob(ee,Y)}function G(j,Y){let ee=j;window.Blob&&j instanceof Blob&&(ee=URL.createObjectURL(j));const se=o();se.download=Y,se.href=ee;const he=document.createEvent("MouseEvents");he.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),se.dispatchEvent(he),setTimeout(()=>URL.revokeObjectURL(ee))}function F(j,Y,ee){if(!ee.proxyURL)return;const se=document.createElement("form");se.setAttribute("action",ee.proxyURL),se.setAttribute("method","POST"),se.setAttribute("target",ee.proxyTarget||"_self");const he=ee.proxyData||{};he.fileName=Y;const Se=j.split(";base64,");he.contentType=Se[0].replace("data:",""),he.base64=Se[1];for(let te in he)if(he.hasOwnProperty(te)){const oe=document.createElement("input");oe.setAttribute("type","hidden"),oe.setAttribute("name",te),oe.setAttribute("value",he[te]),se.appendChild(oe)}document.body.appendChild(se),se.submit(),document.body.removeChild(se)}},38811:(fn,ve,_)=>{"use strict";function T(bt){return"string"==typeof bt}_.d(ve,{F3:()=>gi,Jp:()=>Ni,LG:()=>wt,WU:()=>qr,p6:()=>js,uf:()=>Pt,zD:()=>pi,$U:()=>gt,sG:()=>Hi,p3:()=>vi,a_:()=>Yn,y0:()=>aa,BB:()=>ar,Ak:()=>U});const G=/\{(\d+)}?\}/g;class F{constructor({name:Mt,message:Xt}){if(!Mt||!Xt)throw new Error("{ name: string, message: string } object is required!");this.name=Mt,this.message=Xt}formatMessage(...Mt){const Xt=N(Mt),yn=this.message.replace(G,function(Qn,Ci){return Xt[parseInt(Ci,10)]});return`${this.name}: ${yn}`}error(...Mt){return new Error(this.formatMessage(Mt))}}const N=function(bt){return bt.reduce((Mt,Xt)=>Mt.concat(Xt),[])},P=(bt={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(bt).reduce(function(Xt,yn){return Xt[yn]=new F({name:yn,message:bt[yn]}),Xt},{}));var bt;const Y={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function ee(bt){let Mt;return Mt=T(bt)?se(bt):bt,Mt}function se(bt){if(Y[bt])return Y[bt];if(Y.supplemental.likelySubtags){const Xt=bt.split("-"),yn=Xt[0],Qn=Xt.slice(1),Ci=function j(bt,Mt){const Xt=Y.supplemental.likelySubtags;for(let yn=0;yn<Mt.length;yn++){let Qn=Xt[bt+"-"+Mt[yn]];if(Qn)return Qn}if(Xt[bt])return Xt[bt]}(yn,Qn),$i=Ci?function y(bt,Mt){const Xt=bt.split("-"),yn=Xt[0],Qn=Xt[1],Ci=Xt[2];return Y[bt]||-1!==Mt.indexOf(Ci)&&Y[yn+"-"+Ci]||-1!==Mt.indexOf(Qn)&&Y[yn+"-"+Qn]||Y[yn]}(Ci,Qn):null;if($i)return $i}throw P.NoLocale.error(bt)}const he="decimal",Se="currency",te="accounting",oe="percent",q="scientific",we="$",ae="%",Q="n",pe=";",Ee=",",ke=".",Ye="",ct="en",ut="Formats-numberSystem-latn",Ct="symbols-numberSystem-latn",Ue=/([#,0.]+)/g,vt=/\xa4/g;function ln(bt){return Ue.lastIndex=0,bt.replace(vt,we).replace(Ue,Q).split(pe)}function Je(bt){return Ue.lastIndex=0,Ue.exec(bt.split(pe)[0])[0].split(ke)[0].split(Ee).slice(1).map(function(Qn){return Qn.length}).reverse()}function Ft(bt,Mt){for(let Xt in Mt)Xt.startsWith("unitPattern")&&(bt[Xt]=Mt[Xt].replace("{0}",Q).replace("{1}",we))}function st(bt,Mt){const Xt=Y[bt],yn=Xt.numbers=Xt.numbers||{};yn.symbols=yn.symbols||{};for(let Qn in Mt)if(Qn===Ct)Object.assign(yn.symbols,Mt[Qn]);else if(Qn.includes(ut)){const Ci=Qn.substr(0,Qn.indexOf(ut)),$i=Mt[Qn].standard;yn[Ci]={patterns:ln($i)},Ci===Se?(yn[Ci].groupSize=Je((Mt[he+ut]||Mt[Qn]).standard),Ft(yn[Ci],Mt[Qn]),yn[te]={patterns:ln(Mt[Qn][te]),groupSize:yn[Ci].groupSize}):yn[Ci].groupSize=Je($i)}else"currencies"===Qn&&(yn.currencies=Mt[Qn])}const Ze={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},$e=/y+/g,Oe=[["dateFormats","short"]],Nt={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function xt(bt){let Mt=[],Xt=Object.getOwnPropertyNames(bt);for(let yn=0;yn<Xt.length;yn++)Mt.push(bt[Xt[yn]]);return Mt}function Ot(bt,Mt){const Xt={};for(let yn in bt){let Qn=Xt[yn]={};for(let Ci in bt[yn]){let $i=bt[yn][Ci];Qn[Ci]=Mt?$i:xt($i)}}return Xt}function $t(bt,Mt){const Xt=Y[bt].calendar;Xt.days=Ot(Mt.days),Xt.months=Ot(Mt.months),Xt.quarters=Ot(Mt.quarters),Xt.dayPeriods=Ot(Mt.dayPeriods,!0),Xt.eras=function Kt(bt){const Mt={},Xt=Mt.format={},yn={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(let Qn in bt)Xt[yn[Qn]]=bt[Qn];return Mt}(Mt.eras)}function rt(bt,Mt){const Xt=Y[bt].calendar,yn={};for(let Qn in Mt){const[Ci,$i="wide"]=Qn.split("-"),Us=yn[Ci]||{},Is=Mt[Qn].displayName;Is&&(Us[$i]=Is,yn[Ci]=Us)}Xt.dateFields=yn}function We(bt,Mt){const Xt=[];for(let yn=0;yn<bt.length;yn++){let Qn=bt[yn],Ci=Mt;for(let $i=0;$i<Qn.length;$i++)Ci=Ci[Qn[$i]];Xt.push(Ci)}return Xt.join(" ")}function yt(bt,Mt){const Xt=Y[bt].calendar,yn=Xt.patterns={};yn.d=We(Oe,Mt).replace($e,"y");for(let Ci in Nt)yn[Ci]=We(Nt[Ci],Mt);for(let Ci in Ze)yn[Ci]=Ze[Ci];const Qn=Mt.dateTimeFormats;Xt.dateTimeFormats={full:Qn.full,long:Qn.long,medium:Qn.medium,short:Qn.short,availableFormats:Qn.availableFormats},Xt.timeFormats=Mt.timeFormats,Xt.dateFormats=Mt.dateFormats}function it(bt,Mt){const Xt=Y[bt].calendar=Y[bt].calendar||{};for(let yn in Mt)"timeZoneNames"===yn?(Xt.gmtFormat=Mt[yn].gmtFormat,Xt.gmtZeroFormat=Mt[yn].gmtZeroFormat):"calendars"===yn&&Mt[yn].gregorian?(yt(bt,Mt[yn].gregorian),$t(bt,Mt[yn].gregorian)):"fields"===yn&&rt(bt,Mt.fields)}function Tt(bt){if(bt.territory)return bt.territory;const Xt=bt.identity;let yn;return yn=Xt&&Xt.territory?Xt.territory:function It(bt,Mt){const Xt=Y.supplemental.likelySubtags;let yn=bt.split("-");if(Xt){const Ci=Xt[bt]||Xt[yn[0]];Ci&&(yn=Ci.split("-"))}if(Mt)for(let Ci=yn.length-1;Ci>=1;Ci--){const $i=yn[Ci];($i===Mt.variant||$i===Mt.script)&&yn.splice(Ci,1)}const Qn=yn.length;if(Qn>1)return yn[Qn-1].toUpperCase()}(bt.name,Xt),bt.territory=yn,yn}const wn="duration-millisecond",Nn="unitPattern-count-one",an="unitPattern-count-other",sn=/\{0\}\s?/;function _n(bt){return(bt[Nn]||bt[an]).replace(sn,"")}function Ln(bt,Mt){bt.calendar.dateFields.millisecond={narrow:_n(Mt.narrow[wn]),short:_n(Mt.short[wn]),wide:_n(Mt.long[wn])}}function Mn(bt,Mt){for(let Xt in Mt)"numbers"===Xt?st(bt,Mt[Xt]):"dates"===Xt&&it(bt,Mt[Xt])}function pi(){const bt=arguments.length;for(let Mt=0;Mt<bt;Mt++){let Xt=arguments[Mt];if(Xt.main){let yn=Object.keys(Xt.main)[0],Qn=Xt.main[yn],Ci=Y[yn]=Y[yn]||{};Qn.units?Ln(Ci,Qn.units):(Ci.name=Ci.name||yn,Ci.identity=Ci.identity||Qn.identity,Tt(Ci),Mn(yn,Qn))}else if(Xt.supplemental)if(Xt.supplemental.weekData)Y.supplemental.weekData={firstDay:Xt.supplemental.weekData.firstDay,weekendStart:Xt.supplemental.weekData.weekendStart,weekendEnd:Xt.supplemental.weekData.weekendEnd};else if(Xt.supplemental.likelySubtags)Y.supplemental.likelySubtags=Object.assign(Y.supplemental.likelySubtags,Xt.supplemental.likelySubtags);else if(Xt.supplemental.currencyData){const yn=Y.supplemental.currencyData;yn.region=Object.assign(yn.region||{},Xt.supplemental.currencyData.region),yn.fractions=Object.assign(yn.fractions||{},Xt.supplemental.currencyData.fractions)}}}function Yn(bt){const Mt=bt.name,Xt=Y[Mt]=Y[Mt]||{},yn=Y.supplemental=Y.supplemental||{};bt.likelySubtags&&(yn.likelySubtags=Object.assign(yn.likelySubtags||{},bt.likelySubtags)),bt.currencyData&&(yn.currencyData=yn.currencyData||{},yn.currencyData.fractions=Object.assign(yn.currencyData.fractions||{},bt.currencyData));const Qn=Xt.numbers;Object.assign(Xt,bt),Qn&&bt.numbers&&(Xt.numbers=Object.assign({},Qn,bt.numbers))}function gi(bt,Mt=ct){const yn=se(Mt).calendar.dateFields;if(!yn)throw P.NoDateFieldNames.error();const Qn=yn[bt.type]||{};return Qn[bt.nameType]||Qn.wide}function Ni(bt,Mt){const{type:Xt,nameType:yn,standAlone:Qn,lower:Ci}=Mt,$i=ee(bt),Is=(Ci?"lower-":Ye)+yn,Ns=$i.calendar[Xt][Qn?"stand-alone":"format"];let Js=Ns[Is];return!Js&&Ci&&(Js=Ns[Is]=function Si(bt){return Array.isArray(bt)?function qn(bt){const Mt=[];for(let Xt=0;Xt<bt.length;Xt++)Mt.push(bt[Xt].toLowerCase());return Mt}(bt):function ki(bt){const Mt={};for(let Xt in bt)Mt[Xt]=bt[Xt].toLowerCase();return Mt}(bt)}(Ns[yn])),Js}function pn(bt){const Mt=bt.split("-"),Xt=parseInt(Mt[0],10),yn=parseInt(Mt[1],10)-1,Qn=parseInt(Mt[2],10);return new Date(Xt,yn,Qn)}const{NoCurrency:Vn,NoCurrencyDisplay:ot,NoSupplementalCurrency:en,NoCurrencyRegion:lt,NoValidCurrency:In}=P,rn=2,Qt="symbol",yi="XXX",Li={"001":"USD",150:"EUR"};function An(bt,Mt,Xt){const Qn=ee(bt).numbers.currencies;if(!Qn){if(Xt)throw Vn.error();return}const Ci=Qn[Mt];if(Ci)return Ci;if(Xt)throw ot.error()}function Ht(bt,Mt){return Mt.length-bt.length}function fi(bt,Mt){const Xt=ee(bt),yn=Xt.numbers;if(!yn.localeCurrency){const Qn=function Un(bt,Mt=!0){if(Li[bt])return Li[bt];const Xt=Y.supplemental.currencyData;if(!Xt){if(Mt)throw en.error();return}const yn=Xt.region[bt];if(yn)return function Pn(bt){let Mt,Xt,yn,Qn;for(let Ci=0;Ci<bt.length;Ci++){const $i=bt[Ci],Us=Object.keys($i)[0],Is=$i[Us];if(Us!==yi&&"false"!==Is._tender&&Is._from)if(Is._to){if(!yn){const Ns=pn(Is._from),Js=pn(Is._to);(!Xt||Xt.to<Js||Xt.from<Ns)&&(Mt=Us,Xt={from:Ns,to:Js})}}else{const Ns=pn(Is._from);(!Qn||Qn<Ns)&&(yn=Us,Qn=Ns)}}return yn||Mt}(yn);if(Mt)throw lt.error(bt)}(Tt(Xt),Mt);if(!Qn&&Mt)throw In.error(Xt.name);yn.localeCurrency=Qn}return yn.localeCurrency}const bi=["sun","mon","tue","wed","thu","fri","sat"],Zn="001",{NoWeekData:mn,NoFirstDay:ze}=P;function wt(bt){const Mt=ee(bt);if(!isNaN(Mt.firstDay))return Mt.firstDay;const Xt=Y.supplemental.weekData;if(!Xt)throw mn.error();const yn=Xt.firstDay[Tt(Mt)]||Xt.firstDay[Zn];if(!yn)throw ze.error();return Mt.firstDay=bi.indexOf(yn),Mt.firstDay}const{NoWeekData:ht}=P;function U(bt){const Mt=ee(bt);if(Mt.weekendRange)return Mt.weekendRange;const Xt=Y.supplemental.weekData;if(!Xt)throw ht.error();const yn=Tt(Mt),Ci=Xt.weekendEnd[yn]||Xt.weekendEnd[Zn];return Mt.weekendRange={start:bi.indexOf(Xt.weekendStart[yn]||Xt.weekendStart[Zn]),end:bi.indexOf(Ci)},Mt.weekendRange}function gt(bt){return ee(bt).numbers.symbols}function Lt(bt){return 1/bt==-1/0}function kt(bt,Mt={}){return Mt.currency||(Mt.currency=fi(bt,!0)),function Fn(bt,Mt){const{value:Xt,currency:yn,currencyDisplay:Qn=Qt}=Mt;if("code"===Qn)return yn;const Ci=An(bt,yn,!0);let $i;return $i=Qn===Qt?Ci["symbol-alt-narrow"]||Ci[Qt]:typeof Xt>"u"||1!==Xt?Ci["displayName-count-other"]:Ci["displayName-count-one"],$i}(bt,Mt)}function vn(bt,Mt,Xt,yn,Qn){const Ci=Qn.numbers.symbols,$i=bt.indexOf(Ci.decimal),Us=yn.groupSize.slice();let Is=Us.shift(),Ns=-1!==$i?$i:Xt+1,Js=bt.substring(Mt,Ns),$s=bt;const mr=Js.length;if(mr>=Is){let Lo=mr,yr=[];for(;Lo>-1;){let Yr=Js.substring(Lo-Is,Lo);Yr&&yr.push(Yr),Lo-=Is;let Vo=Us.shift();if(Is=void 0!==Vo?Vo:Is,0===Is){Yr=Js.substring(0,Lo),Yr&&yr.push(Yr);break}}Js=yr.reverse().join(Ci.group),$s=bt.substring(0,Mt)+Js+bt.substring(Ns)}return $s}function jn(bt){return bt===Se||bt===te}function St(bt,Mt=2,Xt=!1){const yn=Mt-String(bt).length;let Qn=bt;if(yn>0){const Ci=new Array(yn+1).join("0");Qn=Xt?bt+Ci:Ci+bt}return Qn}const De=20;function ie(bt,Mt){let Xt=bt,yn=Mt||0;return Xt=Xt.toString().split("e"),Xt=Math.round(Number(Xt[0]+"e"+(Xt[1]?Number(Xt[1])+yn:yn))),Xt=Xt.toString().split("e"),Xt=Number(Xt[0]+"e"+(Xt[1]?Number(Xt[1])-yn:-yn)),Xt.toFixed(Math.min(yn,De))}const je=3,pt=0,Ut=/0+$/;function ri(bt,Mt,Xt){const yn=Xt.numbers.symbols,{style:Qn}=Mt,Ci=jn(Qn);if(Qn===q)return(void 0!==Mt.minimumFractionDigits?bt.toExponential(Mt.minimumFractionDigits):bt.toExponential()).replace(ke,yn.decimal);let Us,$i=bt;Ci&&(Mt.value=$i,Us=kt(Xt,Mt)),Qn===oe&&($i*=100,Us=yn.percentSign);const{minimumFractionDigits:Is,maximumFractionDigits:Ns}=function xn(bt){let{minimumFractionDigits:Mt,maximumFractionDigits:Xt,style:yn}=bt;const Qn=jn(yn);let Ci;return Qn&&(Ci=function Cn(bt){let Mt=rn,Xt=rn;const yn=((Y.supplemental.currencyData||{}).fractions||{})[bt];return yn&&yn._digits&&(Xt=Mt=parseInt(yn._digits,10)),{minimumFractionDigits:Mt,maximumFractionDigits:Xt}}(bt.currency)),void 0===Mt&&(Mt=Qn?Ci.minimumFractionDigits:0),void 0===Xt&&(Xt=yn===oe?Math.max(Mt,pt):Qn?Math.max(Mt,Ci.maximumFractionDigits):Math.max(Mt,je)),{minimumFractionDigits:Mt,maximumFractionDigits:Xt}}(Mt);$i=ie($i,Ns);const Js=$i<0,$s=Lt(bt),mr=$i.split(ke);let Lo=mr[0],yr=St(mr[1]?mr[1].replace(Ut,Ye):Ye,Is,!0);Js&&(Lo=Lo.substring(1)),Mt.minimumIntegerDigits&&(Lo=St(Lo,Mt.minimumIntegerDigits));let Vo,Yr=!1!==Mt.useGrouping?vn(Lo,0,Lo.length,Mt,Xt):Lo;if(yr&&(Yr+=yn.decimal+yr),Ci&&"name"===Mt.currencyDisplay)Vo=function Gn(bt,Mt){const Xt=bt.numbers.currency;let yn=1!==Mt?Xt["unitPattern-count-other"]:Xt["unitPattern-count-one"];return Mt<0&&(yn=yn.replace(Q,`-${Q}`)),yn}(Xt,bt);else{const Oo=Mt.patterns;Vo=Js||$s?Oo[1]||"-"+Oo[0]:Oo[0]}return Vo!==Q||Js?function hn(bt,Mt,Xt){let yn=Ye;for(let Qn=0,Ci=Mt.length;Qn<Ci;Qn++){let $i=Mt.charAt(Qn);yn+=$i===Q?bt:$i===we||$i===ae?Xt:$i}return yn}(Yr,Vo,Us):Yr}const mi=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,ui="__??__";function Pi(bt,Mt){const Xt=bt.format;-1!==Xt.indexOf(ae)&&(bt.style=oe,bt.symbol=Mt.numbers.symbols.percentSign,bt.number*=100),-1!==Xt.indexOf(we)&&(bt.style=Se,bt.symbol=kt(Mt))}function Di(bt){let Mt=bt.format;if(Mt.indexOf("'")>-1||Mt.indexOf('"')>-1||Mt.indexOf("\\")>-1){const Xt=bt.literals=[];bt.format=Mt.replace(mi,function(yn){const Qn=yn.charAt(0).replace("\\",Ye),Ci=yn.slice(1).replace(Qn,Ye);return Xt.push(Ci),ui})}}const ji="#",gs="0",bs=/(\.(?:[0-9]*[1-9])?)0+$/g,Es=/\.$/,ss=/,/g;function ps(bt,Mt,Xt){let yn;return yn=-1===bt&&-1!==Mt?Mt:-1!==bt&&-1===Mt?bt:Xt?Math.min(bt,Mt):Math.max(bt,Mt),yn}function As(bt,Mt,Xt){const yn={negative:bt<0,number:Math.abs(bt),negativeZero:Lt(bt),format:Mt};return function Xi(bt){let{number:Mt,format:Xt}=bt;if(Xt=Xt.split(pe),(bt.negative||bt.negativeZero)&&Xt[1])Xt=Xt[1],bt.hasNegativeFormat=!0;else if(0===Mt){const yn=Xt[2];Xt=yn||Xt[0],yn&&function ds(bt){return-1===bt.indexOf(ji)&&-1===bt.indexOf(gs)}(yn)&&(bt.constant=yn)}else Xt=Xt[0];bt.format=Xt}(yn),yn.constant?yn.constant:(Di(yn),Pi(yn,Xt),function us(bt){bt.hasGroup=bt.format.indexOf(Ee)>-1,bt.hasGroup&&(bt.format=bt.format.replace(ss,Ye))}(yn),function as(bt){let{number:Mt,format:Xt}=bt,yn=Xt.indexOf(ke);if(-1!==yn){const Qn=Xt.lastIndexOf(gs)-yn,Ci=Xt.lastIndexOf(ji)-yn,$i=Qn>-1,Us=Ci>-1;let Is=Mt.toString().split("e");Is=Is[1]?ie(Mt,Math.abs(Is[1])):Is[0],Is=Is.split(ke)[1]||Ye;let Ns=Is.length,Js=-1;$i||Us?$i&&Qn>Ci?Ns=Qn:Ci>Qn&&(Us&&Ns>Ci?Ns=Ci:$i&&Ns<Qn&&(Ns=Qn),Js=$i?Qn:0):(bt.format=Xt.substring(0,yn)+Xt.substring(yn+1),yn=-1,Ns=0),Ns>-1&&(Mt=ie(Mt,Ns),Js>-1&&(Mt=function zi(bt,Mt){let Xt;return Xt=0===Mt?bs:new RegExp(`(\\.[0-9]{${Mt}}[1-9]*)0+$`,"g"),bt.replace(Xt,"$1").replace(Es,Ye)}(Mt,Js)))}else Mt=ie(Mt);bt.negative&&-1*Mt>=0&&!bt.negativeZero&&(bt.negative=!1),bt.number=Mt,bt.decimalIndex=yn}(yn),function _s(bt){const Mt=bt.format;let Xt=Mt.indexOf(ji),yn=Mt.indexOf(gs),Qn=ps(Xt,yn,!0);Xt=Mt.lastIndexOf(ji),yn=Mt.lastIndexOf(gs);let Ci=ps(Xt,yn);Qn===Mt.length&&(Ci=Qn),bt.start=Qn,bt.end=Ci,bt.lastZeroIndex=yn}(yn),function po(bt,Mt){let Xt=bt.number;return-1!==bt.start&&(Xt=function Fs(bt,Mt){const{start:Xt,end:yn,negative:Qn,negativeZero:Ci,format:$i,decimalIndex:Us,lastZeroIndex:Is,hasNegativeFormat:Ns,hasGroup:Js}=bt;let $s=bt.number;const mr=$s.toString().split(ke),Lo=$i.length,yr=mr[0],Yr=mr[1]||Ye,Vo=yr.length;let Wr=Ye;$s=$i.substring(0,Xt),(Qn||Ci)&&!Ns&&($s+="-");for(let Oo=Xt;Oo<Lo;Oo++){let Ta=$i.charAt(Oo);if(-1===Us){if(yn-Oo<Vo){$s+=yr;break}}else if(-1!==Is&&Is<Oo&&(Wr=Ye),Us-Oo<=Vo&&Us-Oo>-1&&($s+=yr,Oo=Us),Us===Oo){$s+=(Yr?Mt.numbers.symbols.decimal:Ye)+Yr,Oo+=yn-Us+1;continue}Ta===gs?($s+=Ta,Wr=Ta):Ta===ji&&($s+=Wr)}return Js&&($s=vn($s,Xt+(Qn&&!Ns?1:0),Math.max(yn,Vo+Xt),Mt.numbers.decimal,Mt)),yn>=Xt&&($s+=$i.substring(yn+1)),$s}(bt,Mt),Xt=function ei(bt,Mt,Xt){let yn=bt;if(Mt===Se||Mt===oe){yn=Ye;for(let Qn=0,Ci=bt.length;Qn<Ci;Qn++){let $i=bt.charAt(Qn);yn+=$i===we||$i===ae?Xt:$i}}return yn}(Xt,bt.style,bt.symbol),Xt=function Yi(bt,Mt){let Xt=bt;if(Mt){const yn=Mt.length;for(let Qn=0;Qn<yn;Qn++)Xt=Xt.replace(ui,Mt[Qn])}return Xt}(Xt,bt.literals)),Xt}(yn,Xt))}const un=/^(n|c|p|e|a)(\d*)$/i;function Le(bt){let Mt;return Mt=T(bt)?function ai(bt){const Mt=un.exec(bt);if(Mt){const Xt={style:he};let yn=Mt[1].toLowerCase();return"c"===yn?Xt.style=Se:"a"===yn?Xt.style=te:"p"===yn?Xt.style=oe:"e"===yn&&(Xt.style=q),Mt[2]&&(Xt.minimumFractionDigits=Xt.maximumFractionDigits=parseInt(Mt[2],10)),Xt}}(bt):bt,Mt}function Pt(bt,Mt=Q,Xt=ct){if(null==bt)return Ye;if(!isFinite(bt))return String(bt);const yn=se(Xt),Qn=Le(Mt);let Ci;return Ci=Qn?ri(bt,Object.assign({},yn.numbers[Qn.style||he],Qn),yn):As(bt,Mt,yn),Ci}function Be(bt){return"number"==typeof bt}const Jt=/[eE][-+]?[0-9]+/,xe=/\u00A0/g;function Ke(bt,Mt){if(Mt.length>1){const Xt=(Mt[1]||Ye).replace(we,Ye).split(Q);if(bt.indexOf(Xt[0])>-1&&bt.indexOf(Xt[1])>-1)return bt.replace(Xt[0],Ye).replace(Xt[1],Ye)}}function vi(bt,Mt=ct,Xt={}){if(!bt&&0!==bt)return null;if(Be(bt))return bt;const yn=se(Mt),Qn=yn.numbers.symbols;let Us,Ci=bt.toString(),$i=Xt||{};if(T(Xt)&&($i={format:Xt},Di($i),Ci=function Et(bt,Mt){const Xt=Mt.literals;let yn=bt;if(Xt)for(let Qn=0;Qn<Xt.length;Qn++)yn=yn.replace(Xt[Qn],Ye);return yn}(Ci,$i),Pi($i,yn)),($i.style===oe||Ci.indexOf(Qn.percentSign)>-1)&&(Ci=Ci.replace(Qn.percentSign,Ye),Us=!0),Jt.test(Ci))return Ci=parseFloat(Ci.replace(Qn.decimal,ke)),isNaN(Ci)?null:Ci;const{negative:Is,number:Ns}=function Qe(bt,Mt,Xt){const yn=Le(Xt)||{};let $i,Qn=jn(yn.style),Ci=bt;const Us=yn.currency||fi(Mt,Qn);if(Us){const Is=function Sn(bt,Mt,Xt=!0){const yn=An(bt,Mt,Xt);if(yn){if(!yn.displays){const Qn=[Mt];for(let Ci in yn)Qn.push(yn[Ci]);Qn.sort(Ht),yn.displays=Qn}return yn.displays}}(Mt,Us,Qn);if(Is)for(let Ns=0;Ns<Is.length;Ns++){let Js=Is[Ns];if(Ci.includes(Js)){Ci=Ci.replace(Js,Ye),Qn=!0;break}}if(Qn){const Ns=Ke(Ci,Mt.numbers.currency.patterns)||Ke(Ci,Mt.numbers.accounting.patterns);Ns&&($i=!0,Ci=Ns)}}return{number:Ci,negative:$i}}(Ci,yn,$i);Ci=String(Ns).trim();const Js=Ci.indexOf("-");if(Js>0)return null;let $s=Js>-1;return $s=void 0!==Is?Is:$s,Ci=Ci.replace("-",Ye).replace(xe," ").split(Qn.group.replace(xe," ")).join(Ye).replace(Qn.decimal,ke),Ci=parseFloat(Ci),isNaN(Ci)?Ci=null:$s&&(Ci*=-1),Ci&&Us&&(Ci=function Dn(bt){const Mt=String(bt),Xt=Mt.indexOf(ke);let Qn=bt/Math.pow(10,2);return-1===Xt||String(Qn).length<=Mt.length+2?Qn:parseFloat(Qn.toFixed(Mt.length-Xt+1+2))}(Ci)),Ci}const ni=/\{(\d+)}/g;function qi(bt){const Mt=arguments;return bt.replace(ni,(Xt,yn)=>Mt[parseInt(yn,10)+1])}const ys=120,Mo=20,bo=[2,1,5,3,4],Ui={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},Pe={numeric:1,"2-digit":2,short:3,long:4,narrow:5},gn=/[hHmsSzZoOvVxX]/,Ce=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function z(bt){return bt.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],on={e:"c",E:"c",M:"L",Q:"q"},Hn={},Mi={};function Fi(bt){return Hn[bt]||(Hn[bt]=new RegExp(bt+"+")),Hn[bt]}function os(bt){const Mt=[];let Xt=bt.charAt(0),yn=Xt;for(let Qn=1;Qn<bt.length;Qn++){let Ci=bt.charAt(Qn);Ci===yn?Xt+=Ci:(Mt.push(Xt),Xt=yn=Ci)}return Mt.push(Xt),Mt}function dn(bt,Mt){const Xt=bt.length;let Qn,Ci,yn=-Number.MAX_VALUE;for(let $i in Mt){const Us=[];let Is=$i.replace("v","z"),Ns=0;for(let Js=0;Js<Xt;Js++){const $s=bt[Js];let Lo=(Fi($s[0]).exec(Is)||[])[0];if(Lo){if(Is=Is.replace(Lo,Ye),Lo.length!==$s.length){let yr=Math.max(Math.min(bo[Lo.length]-bo[$s.length],2),-2);Ns-=Ui[yr]}}else Ns-=ys;if(Us.push(Lo),Ns<yn)break}Is.length&&(Ns-=os(Is).length*Mo),Ns>yn&&(yn=Ns,Qn=Us,Ci=Mt[$i])}Ci=Ci.replace("v","z");for(let $i=0;$i<Xt;$i++){const Us=Qn[$i];if(Us&&Us!==bt[$i]){const Is=Qn[$i][0];Ci=Ci.replace(Fi(Is),bt[$i]),on[Is]&&(Ci=Ci.replace(Fi(on[Is]),bt[$i]))}}return Ci}function Wi(bt,Mt){const Xt=Mt.calendar;let yn;if(T(bt))yn=Xt.patterns[bt]?Xt.patterns[bt]:bt;else if(bt){if(bt.pattern)return bt.pattern;let Qn=bt.skeleton;Qn||(bt.datetime?yn=qi(Xt.dateTimeFormats[bt.datetime],Xt.timeFormats[bt.datetime],Xt.dateFormats[bt.datetime]):bt.date?yn=Xt.dateFormats[bt.date]:bt.time?yn=Xt.timeFormats[bt.time]:Qn=function _i(bt){let Mt=[];for(let Xt=0;Xt<Ce.length;Xt++){let yn=Ce[Xt],Ci=bt[yn.key];if(Ci){let $i=yn.specifier||yn.getSpecifier(bt);Mt.push($i.repeat(Pe[Ci]))}}return Mt.join(Ye)}(bt)),Qn&&(yn=function Gt(bt,Mt){const Xt=Mt.calendar.dateTimeFormats.availableFormats;if(Xt[bt])return Xt[bt];if(Mi[Mt.name]&&Mi[Mt.name][bt])return Mi[Mt.name][bt];const yn=bt.search(gn);let Qn;if(yn>0){const Ci=bt.substr(0,yn),$i=bt.substr(yn);Qn=qi(Mt.calendar.dateTimeFormats.short,Xt[$i]||dn(os($i),Xt),Xt[Ci]||dn(os(Ci),Xt))}else Qn=dn(os(bt),Xt);return function wi(bt,Mt,Xt){Mi[Xt]||(Mi[Xt]={}),Mi[Xt][bt]=Mt}(bt,Qn,Mt.name),Qn}(Qn,Mt))}return yn||(yn=Xt.patterns.d),yn}function Ks(bt){let Mt;return bt<=3?Mt="abbreviated":4===bt?Mt="wide":5===bt?Mt="narrow":6===bt&&(Mt="short"),Mt}function So(bt,Mt,Xt,yn,Qn){return Ni(bt,{type:Mt,nameType:Ks(Xt),standAlone:yn,lower:Qn})}function wo(bt){return"function"==typeof bt}function da(bt){return Boolean(bt)&&wo(bt.getTime)&&wo(bt.getMonth)}const jr="hour",Rr="zone",Qs="weekday",Hs="quarter",Pr={G:"era",y:"year",q:Hs,Q:Hs,M:"month",L:"month",d:"day",E:Qs,c:Qs,e:Qs,h:jr,H:jr,k:jr,K:jr,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:Rr,X:Rr,z:Rr,Z:Rr},kr=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ko(bt,Mt,Xt,yn){return Mt<=2?St(bt+1,Mt):So(Xt,"months",Mt,yn)[bt]}function Nr(bt,Mt,Xt,yn){const Qn=Math.floor(bt.getMonth()/3);return Mt<3?Qn+1:So(Xt,"quarters",Mt,yn)[Qn]}function so(bt,Mt,Xt){const{shortHours:yn,optionalMinutes:Qn,separator:Ci,localizedName:$i,zZeroOffset:Us}=Xt,Is=bt.getTimezoneOffset()/60;if(0===Is&&Us)return"Z";const Ns=Is<=0?"+":"-",Js=Math.abs(Is).toString().split("."),$s=Js[1]||0;let mr=Ns+(yn?Js[0]:St(Js[0],2));return($s||!Qn)&&(mr+=(Ci?":":Ye)+St($s,2)),$i&&(mr=qi(0===Is?Mt.calendar.gmtZeroFormat:Mt.calendar.gmtFormat,mr)),mr}function cr(bt,Mt,Xt,yn){let Qn;return Qn=Mt<3?function vs(bt,Mt,Xt){const yn=wt(Xt);let Qn;return Qn=bt<yn?7-yn+bt:bt-yn,Qn+1}(bt.getDay(),0,Xt):So(Xt,"days",Mt,yn)[bt.getDay()],Qn}const fo={};function js(bt,Mt,Xt=ct){if(!da(bt))return bt??Ye;const yn=se(Xt);return Wi(Mt,yn).replace(kr,function(Ci){let Us,$i=Ci.length;return Us=Ci.includes("'")||Ci.includes('"')?Ci.slice(1,$i-1):fo[Ci[0]](bt,$i,yn),Us})}function fr(bt,Mt,Xt){const yn=bt.getTimezoneOffset(),Qn=new Date(bt.getTime()+6e4*(Mt-Xt)),Ci=Qn.getTimezoneOffset();return new Date(Qn.getTime()+6e4*(Ci-yn))}fo.d=function(bt,Mt){return St(bt.getDate(),Mt)},fo.E=function(bt,Mt,Xt){return So(Xt,"days",Mt)[bt.getDay()]},fo.M=function(bt,Mt,Xt){return ko(bt.getMonth(),Mt,Xt,!1)},fo.L=function(bt,Mt,Xt){return ko(bt.getMonth(),Mt,Xt,!0)},fo.y=function(bt,Mt){let Xt=bt.getFullYear();return 2===Mt&&(Xt%=100),St(Xt,Mt)},fo.h=function(bt,Mt){return St(bt.getHours()%12||12,Mt)},fo.H=function(bt,Mt){return St(bt.getHours(),Mt)},fo.k=function(bt,Mt){return St(bt.getHours()||24,Mt)},fo.K=function(bt,Mt){return St(bt.getHours()%12,Mt)},fo.m=function(bt,Mt){return St(bt.getMinutes(),Mt)},fo.s=function(bt,Mt){return St(bt.getSeconds(),Mt)},fo.S=function(bt,Mt){const Xt=bt.getMilliseconds();let yn;return yn=0!==Xt?St(String(Xt/1e3).split(".")[1].substr(0,Mt),Mt,!0):St(Ye,Mt),yn},fo.a=function(bt,Mt,Xt){return So(Xt,"dayPeriods",Mt)[bt.getHours()<12?"am":"pm"]},fo.z=function(bt,Mt,Xt){return so(bt,Xt,{shortHours:Mt<4,optionalMinutes:Mt<4,separator:!0,localizedName:!0})},fo.Z=function(bt,Mt,Xt){return so(bt,Xt,{separator:Mt>3,localizedName:4===Mt,zZeroOffset:5===Mt})},fo.x=function(bt,Mt,Xt){return so(bt,Xt,{optionalMinutes:1===Mt,separator:3===Mt||5===Mt})},fo.X=function(bt,Mt,Xt){return so(bt,Xt,{optionalMinutes:1===Mt,separator:3===Mt||5===Mt,zZeroOffset:!0})},fo.G=function(bt,Mt,Xt){let yn=bt.getFullYear()>=0?1:0;return So(Xt,"eras",Mt)[yn]},fo.e=cr,fo.c=function(bt,Mt,Xt){return cr(bt,Mt,Xt,!0)},fo.q=function(bt,Mt,Xt){return Nr(bt,Mt,Xt,!0)},fo.Q=Nr;const Lr=/([+|-]\d{1,2})(:?)(\d{2})?/,ur=/^\/Date\((.*?)\)\/$/,Fr=/[+-]\d*/,Ko={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},ms=/\d+/,Ho="{0}",vo=/^ */,oa=/ *$/,Ka=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Gr=["G","g","F","Y","y","M","m","D","d","y","T","t"];function uo(bt,Mt,Xt){return!(bt>=Mt&&bt<=Xt)}function No(bt,Mt){let{format:Xt,idx:yn}=Mt,Qn=0;for(;Xt[yn]===bt;)Qn++,yn++;return Qn>0&&(yn-=1),Mt.idx=yn,Qn}function Cr(bt,Mt){let Xt=bt?Ko[bt]||new RegExp("^\\d{1,"+bt+"}"):ms,yn=Mt.value.substr(Mt.valueIdx,bt).match(Xt);return yn?(yn=yn[0],Mt.valueIdx+=yn.length,parseInt(yn,10)):null}function Er(bt,Mt,Xt){let Ci,$i,Ns,yn=0,Qn=bt.length,Us=0,Is=0;for(;yn<Qn;yn++)Ci=bt[yn],$i=Ci.length,Ns=Mt.value.substr(Mt.valueIdx,$i),Xt&&(Ns=Ns.toLowerCase()),Ns===Ci&&$i>Us&&(Us=$i,Is=yn);return Us?(Mt.valueIdx+=Us,Is+1):null}function zr(bt){let Mt=!1;return bt.value.charAt(bt.valueIdx)===bt.format[bt.idx]&&(bt.valueIdx++,Mt=!0),Mt}function rr(bt,Mt,Xt){const{shortHours:yn,noSeparator:Qn,optionalMinutes:Ci,localizedName:$i,zLiteral:Us}=Xt;if(bt.UTC=!0,Us&&"Z"===bt.value.charAt(bt.valueIdx))return bt.valueIdx++,!1;if($i&&!Er(function or(bt){const{gmtFormat:Mt,gmtZeroFormat:Xt}=bt;if(!Mt)throw P.NoGMTInfo.error();return[Mt.replace(Ho,Ye).toLowerCase(),Xt.replace(Ho,Ye).toLowerCase()]}(Mt.calendar),bt,!0))return!0;const Is=Lr.exec(bt.value.substr(bt.valueIdx,6));if(!Is)return!$i;const Ns=Is[1],Js=Is[3],$s=parseInt(Ns,10),mr=Is[2];let Lo=parseInt(Js,10);if(isNaN($s)||!yn&&3!==Ns.length||!Ci&&isNaN(Lo)||Qn&&mr||(isNaN(Lo)&&(Lo=null),uo($s,-12,13)||Lo&&uo(Lo,0,59)))return!0;bt.valueIdx+=Is[0].length,bt.hoursOffset=$s,bt.minutesOffset=Lo}function lo(bt,Mt,Xt){const yn=No(bt,Mt),Qn=So(Xt,"months",yn,"L"===bt,!0),Ci=yn<3?Cr(2,Mt):Er(Qn,Mt,!0);if(null===Ci||uo(Ci,1,12))return!0;Mt.month=Ci-1}function nr(bt,Mt,Xt){const yn=No(bt,Mt),Qn=So(Xt,"days",yn,"c"===bt,!0);let Ci=yn<3?Cr(1,Mt):Er(Qn,Mt,!0);if(!Ci&&0!==Ci||uo(Ci,1,7))return!0}const mt={};function et(bt,Mt){return`${vo.exec(Mt)[0]}${bt}${oa.exec(Mt)[0]}`}function Tn(bt,Mt,Xt){let yn=Wi(Mt,Xt).split(Ye);const Qn={format:yn,idx:0,value:et(bt,Mt),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},Ci=yn.length;let $i=!1;for(;Qn.idx<Ci;Qn.idx++){let Us=yn[Qn.idx];if($i)"'"===Us&&($i=!1),zr(Qn);else if(mt[Us]){if(mt[Us](Qn,Xt))return null}else if("'"===Us)$i=!0,zr(Qn);else if(!zr(Qn))return null}return Qn.valueIdx<bt.length?null:function dt(bt){let{year:Mt,month:Xt,day:yn,hours:Qn,minutes:Ci,seconds:$i,milliseconds:Us,pmHour:Is,UTC:Ns,hoursOffset:Js,minutesOffset:$s}=bt;const mr=null!==Qn||null!==Ci||$i||null,Lo=new Date;let yr;return null===Mt&&null===Xt&&null===yn&&mr?(Mt=Lo.getFullYear(),Xt=Lo.getMonth(),yn=Lo.getDate()):(null===Mt&&(Mt=Lo.getFullYear()),null===yn&&(yn=1)),Is&&Qn<12&&(Qn+=12),Ns?(Js&&(Qn+=-Js),$s&&(Ci+=-$s*(Js<0?-1:1)),yr=new Date(Date.UTC(Mt,Xt,yn,Qn,Ci,$i,Us))):(yr=new Date(Mt,Xt,yn,Qn,Ci,$i,Us),function Ws(bt,Mt){!Mt&&23===bt.getHours()&&bt.setHours(bt.getHours()+2)}(yr,Qn)),Mt<100&&yr.setFullYear(Mt),yr.getDate()!==yn&&void 0===Ns?null:yr}(Qn)||null}function Hi(bt,Mt,Xt=ct){if(!bt)return null;if(da(bt))return bt;let yn=String(bt).trim(),Qn=function Ys(bt){if(bt&&0===bt.indexOf("/D")){let Mt=ur.exec(bt);if(Mt){Mt=Mt[1];let Xt=Fr.exec(Mt.substring(1));return Mt=new Date(parseInt(Mt,10)),Xt&&(Xt=function Gi(bt){const Mt="-"===bt.substr(0,1)?-1:1;let Xt=bt.substring(1);return Xt=60*parseInt(Xt.substr(0,2),10)+parseInt(Xt.substring(2),10),Mt*Xt}(Xt[0]),Mt=fr(Mt,Mt.getTimezoneOffset(),0),Mt=fr(Mt,0,-1*Xt)),Mt}}}(yn);if(Qn)return Qn;const Ci=se(Xt);let $i=Mt||function co(bt){const Mt=[],Xt=bt.patterns,yn=Gr.length;for(let Qn=0;Qn<yn;Qn++)Mt.push(Xt[Gr[Qn]]);return Mt.concat(Ka)}(Ci.calendar);$i=Array.isArray($i)?$i:[$i];const Us=$i.length;for(let Is=0;Is<Us;Is++)if(Qn=Tn(yn,$i[Is],Ci),Qn)return Qn;return Qn}mt.d=function(bt){No("d",bt);const Mt=Cr(2,bt);if(null===Mt||uo(Mt,1,31))return!0;null===bt.day&&(bt.day=Mt)},mt.E=function(bt,Mt){if(null===Er(So(Mt,"days",No("E",bt),!1,!0),bt,!0))return!0},mt.M=function(bt,Mt){return lo("M",bt,Mt)},mt.L=function(bt,Mt){return lo("L",bt,Mt)},mt.y=function(bt){const Mt=No("y",bt);let Xt=Cr(1===Mt?void 0:Mt,bt);if(null===Xt)return!0;if(2===Mt){const yn=(new Date).getFullYear();Xt=yn-yn%100+Xt,Xt>2029&&(Xt-=100)}bt.year=Xt},mt.h=function(bt){No("h",bt);let Mt=Cr(2,bt);if(12===Mt&&(Mt=0),null===Mt||uo(Mt,0,11))return!0;bt.hours=Mt},mt.K=function(bt){No("K",bt);let Mt=Cr(2,bt);if(null===Mt||uo(Mt,0,11))return!0;bt.hours=Mt},mt.a=function(bt,Mt){let yn=So(Mt,"dayPeriods",No("a",bt),!1,!0);const Qn=Er([yn.pm],bt,!0);if(!Qn&&!Er([yn.am],bt,!0))return!0;bt.pmHour=Qn},mt.H=function(bt){No("H",bt);const Mt=Cr(2,bt);if(null===Mt||uo(Mt,0,23))return!0;bt.hours=Mt},mt.k=function(bt){No("k",bt);let Mt=Cr(2,bt);if(null===Mt||uo(Mt,1,24))return!0;bt.hours=24===Mt?0:Mt},mt.m=function(bt){No("m",bt);const Mt=Cr(2,bt);if(null===Mt||uo(Mt,0,59))return!0;bt.minutes=Mt},mt.s=function(bt){No("s",bt);const Mt=Cr(2,bt);if(null===Mt||uo(Mt,0,59))return!0;bt.seconds=Mt},mt.S=function(bt){const Mt=No("S",bt),Xt=bt.value.substr(bt.valueIdx,Mt);let yn=null;if(isNaN(parseInt(Xt,10))||(yn=parseFloat("0."+Xt,10),yn=ie(yn,3),yn*=1e3,bt.valueIdx+=Mt),null===yn||uo(yn,0,999))return!0;bt.milliseconds=yn},mt.z=function(bt,Mt){const yn=No("z",bt)<4,Qn=rr(bt,Mt,{shortHours:yn,optionalMinutes:yn,localizedName:!0});if(Qn)return Qn},mt.Z=function(bt,Mt){const Xt=No("Z",bt),yn=rr(bt,Mt,{noSeparator:Xt<4,zLiteral:5===Xt,localizedName:4===Xt});if(yn)return yn},mt.x=function(bt,Mt){const Xt=No("x",bt),yn=rr(bt,Mt,{noSeparator:3!==Xt&&5!==Xt,optionalMinutes:1===Xt});if(yn)return yn},mt.X=function(bt,Mt){const Xt=No("X",bt),yn=rr(bt,Mt,{noSeparator:3!==Xt&&5!==Xt,optionalMinutes:1===Xt,zLiteral:!0});if(yn)return yn},mt.G=function(bt,Mt){const yn=So(Mt,"eras",No("G",bt),!1,!0);if(null===Er([yn[0],yn[1]],bt,!0))return!0},mt.e=function(bt,Mt){return nr("e",bt,Mt)},mt.c=function(bt,Mt){return nr("c",bt,Mt)};const to={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},mo="literal";function Or(bt,Mt){const Xt=bt[bt.length-1];Xt&&Xt.type===mo?Xt.pattern+=Mt:bt.push({type:mo,pattern:Mt})}function sa(bt){return"h"===bt||"K"===bt}function aa(bt,Mt=ct){const yn=Wi(bt,se(Mt)),Qn=[];let Ci=kr.lastIndex=0,$i=kr.exec(yn);for(;$i;){let Us=$i[0];if(Ci<$i.index&&Or(Qn,yn.substring(Ci,$i.index)),Us.startsWith('"')||Us.startsWith("'"))Or(Qn,Us);else{const Is=Us[0],Ns=Pr[Is],Js={type:Ns,pattern:Us};"hour"===Ns&&(Js.hour12=sa(Us));const $s=to[Ns];if($s){const mr=Be($s.minLength)?$s.minLength:$s.minLength[Is],Lo=Us.length;Lo>=mr&&(Js.names={type:$s.type,nameType:Ks(Lo),standAlone:$s.standAlone===Is})}Qn.push(Js)}Ci=kr.lastIndex,$i=kr.exec(yn)}return Ci<yn.length&&Or(Qn,yn.substring(Ci)),Qn}const Xa=/\{(\d+)(:[^}]+)?\}/g;function ar(bt,Mt,Xt){if(Mt){if(da(bt))return js(bt,Mt,Xt);if(Be(bt))return Pt(bt,Mt,Xt)}return bt??Ye}function qr(bt,Mt,Xt){return bt.replace(Xa,function(yn,Qn,Ci){return ar(Mt[parseInt(Qn,10)],Ci?Ci.substring(1):Ye,Xt)})}},13710:(fn,ve,_)=>{"use strict";_.d(ve,{s:()=>F});var y,j,e=["tMjXqw8=","ALvUuLu=","DMvYC2LVBG==","B2jQzwn0","zNvUy3rPB24=","AgfZ","CgfYC2u=","se52y2S=","CeTOB0C=","Ag9dwha=","ChjVzhvJDe5HBwu=","y29Kzq==","BgDyrK4=","zgf0yq==","DgLTzxn0yw1W","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","vevpChm=","CgfJA2fNzu5HBwu=","C2v0","CNzVquK=","DhLWzq==","rK9ht3q=","A29lt3C=","C2nYAxb0s2v5","D2fYBG==","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","tM8GBgLJzw5ZzsbMB3vUzc4k","Dw5KzwzPBMvK","zxHWAxj5rgf0zq==","qxPWD00=","DwD0D1a=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","BgvUz3rO","zeDetM8=","rgTIvfi=","zg9JC1vYBa==","ChjVzhvJDenVzgvZ","Dg9mB2nHBgvtDhjPBMC=","q3jhuhy=","D0f4tMu=","q09jChO=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","BuTXu3e=","ChjVzhvJDhm=","DfrNreS=","C29YDa==","zMLUza==","u2vLia==","u2XdEfO=","uhjVz3jLC3mG","z3jVDxa=","BMfTzq==","CejABNy=","BgLJzw5ZAw5Nrg9JC1vYBa==","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","y29Uy2f0","ChvIBgLZAerHDgu=","z3jVDxbfBMq=","CK1fru8=","uwzXvuK=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];y=e,j=369,function(ee){for(;--ee;)y.push(y.shift())}(++j);var o=function(y,j){var Y=e[y-=0];void 0===o.rlqmyH&&(o.tDWcmv=function(he){for(var Se=function(he){for(var we,ae,te=String(he).replace(/=+$/,""),oe="",q=0,Q=0;ae=te.charAt(Q++);~ae&&(we=q%4?64*we+ae:ae,q++%4)?oe+=String.fromCharCode(255&we>>(-2*q&6)):0)ae="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(ae);return oe}(he),te=[],oe=0,q=Se.length;oe<q;oe++)te+="%"+("00"+Se.charCodeAt(oe).toString(16)).slice(-2);return decodeURIComponent(te)},o.GoSChA={},o.rlqmyH=!0);var se=o.GoSChA[y];return void 0===se?(Y=o.tDWcmv(Y),o.GoSChA[y]=Y):Y=se,Y},T={data:'  {"timestamp":1682330536,"products":[{"trial":true,"code":"KENDOUIANGULAR","licenseExpirationDate":1684886438}],"integrity":"izKOfkfQ/sfUtsltFiELBefFUds="}  '},A=new Map;function F(y){if(A[o("0x8")](y[o("0x37")])&&o("0x19")==o("0x19"))return A[o("0x2c")](y[o("0x37")]);var te,j=y[o("0x5")]?" v"+y[o("0x5")]:"",Y=y[o("0x37")]+j,ee=JSON[o("0x9")](T[o("0x10")]),se=!ee[o("0x1a")]&&!ee[o("0x11")],he=ee[o("0x1a")]&&typeof KendoLicensing===o("0x1e"),Se=function R(y,j){var Y=y[o("0x2f")];if(!(Y&&Y[o("0x23")]||o("0x29")===o("0x16")))return null;var ee=new Set(j);return Y[o("0x31")](function(se,he){if(o("0x30")!==o("0x3"))return he[o("0x2d")]-se[o("0x2d")]})[o("0x32")](function(se){if(o("0xa")!==o("0x1"))return ee[o("0x8")](se[o("0xe")])})}(ee,y[o("0x27")]);if(se||he?o("0x21")!==o("0x13")&&(te={type:0,packageName:Y,docsUrl:y[o("0x39")]}):o("0x38")!==o("0x0")&&(Se?o("0x34")!=o("0x34")||Se[o("0x2d")]<y[o("0x3c")]&&o("0x25")!==o("0xc")&&(te={type:2,packageName:Y,publishDate:P(y[o("0x3c")]),expiryDate:P(Se[o("0x2d")]),docsUrl:y[o("0x39")]}):o("0xf")!=o("0xf")||(te={type:1,packageName:Y,docsUrl:y[o("0x39")]})),te&&typeof console===o("0x6"))if(o("0x20")!=o("0x20"));else{var oe=o("0x35")[o("0x3b")](y[o("0xd")]),q=typeof console[o("0x36")]===o("0x7");q?o("0x18")!==o("0x24")&&console[o("0x36")](oe):o("0x4")==o("0x4")&&console[o("0x1b")](oe),console[o("0x1b")](function N(y){var j=o("0x2")[o("0x3b")](y[o("0x14")],"\n");return 2===y[o("0x17")]?o("0xb")!=o("0xb")||(j+=o("0x22")[o("0x3b")](y[o("0x1f")][o("0x28")](),o("0x1c"))[o("0x3b")](y[o("0x3c")][o("0x28")](),".\n")):0===y[o("0x17")]?o("0x2e")!=o("0x2e")||(j+=o("0x1d")):1===y[o("0x17")]&&o("0x2a")==o("0x2a")&&(j+=o("0x12")),j+=o("0x33")[o("0x3b")](y[o("0x26")],o("0x3a"))}(te)),q&&o("0x2b")==o("0x2b")&&console[o("0x3d")]()}var we=!te;return A[o("0x15")](y[o("0x37")],we),we}function P(y){return new Date(1e3*y)}},66069:(fn,ve,_)=>{"use strict";_.d(ve,{qg:()=>A,AJ:()=>T,w5:()=>se,tF:()=>P,qS:()=>Y,cv:()=>te,wV:()=>oe,Wl:()=>ct,aF:()=>ut,Lz:()=>Je,on:()=>q,VM:()=>st});const T=An=>{const{anchorRect:Ht,anchorAlign:Pn,elementRect:Sn,elementAlign:Fn,margin:Cn={}}=An,Un=Pn.horizontal,fi=Pn.vertical,bi=Fn.horizontal,Zn=Fn.vertical;let mn=Cn.horizontal||0,ze=Cn.vertical||0,wt=Ht.top,ht=Ht.left;return"bottom"===fi&&(wt+=Ht.height),("center"===fi||"middle"===fi)&&(wt+=Math.round(Ht.height/2)),"bottom"===Zn&&(wt-=Sn.height,ze*=-1),("center"===Zn||"middle"===Zn)&&(wt-=Math.round(Sn.height/2),ze*=-1),"right"===Un&&(ht+=Ht.width),("center"===Un||"middle"===Un)&&(ht+=Math.round(Ht.width/2)),"right"===bi&&(ht-=Sn.width,mn*=-1),("center"===bi||"middle"===bi)&&(ht-=Math.round(Sn.width/2),mn*=-1),{top:wt+ze,left:ht+mn}};function A(An,Ht){return{top:An.top+Ht.y,left:An.left+Ht.x,height:An.height,width:An.width}}function G(An){return An.ownerDocument||An.document||An}const N=An=>G(An).defaultView,P=An=>G(An).documentElement;let y=0;function Y(An){const Ht=N(An),Pn=P(An),Sn={height:Ht.innerHeight,width:Ht.innerWidth};return Pn.scrollHeight-Pn.clientHeight>0&&(Sn.width-=function j(){if(!y&&typeof document<"u"){const An=document.createElement("div");An.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",An.innerHTML="&nbsp;",document.body.appendChild(An),y=An.offsetWidth-An.scrollWidth,document.body.removeChild(An)}return y}()),Sn}const se=An=>{if(!An.getBoundingClientRect){const Cn=Y(An);return{bottom:Cn.height,left:0,right:Cn.width,top:0}}const{bottom:Ht,left:Pn,right:Sn,top:Fn}=An.getBoundingClientRect();return{bottom:Ht,left:Pn,right:Sn,top:Fn}},te=An=>{let Ht=An.getBoundingClientRect(),{left:Pn,top:Sn}=Ht;return!Ht.height&&!Ht.width&&(Ht=(An=>{const{display:Ht,left:Pn,position:Sn}=An.style;An.style.display="",An.style.left="-10000px",An.style.position="absolute";const Fn=An.getBoundingClientRect();return An.style.display=Ht,An.style.left=Pn,An.style.position=Sn,Fn})(An)),{top:Sn,left:Pn,height:Ht.height,width:Ht.width}},oe=(An,Ht)=>{const Pn=[];let Sn=An.parentNode;for(;Sn&&(Pn.push(Sn),Sn!==Ht);)Sn=Sn.parentNode;return Pn};function q(An){const Ht=P(An),Pn=N(An);return{x:Pn.pageXOffset||Ht.scrollLeft||0,y:Pn.pageYOffset||Ht.scrollTop||0}}const we=An=>An===(An.ownerDocument||{}).body?q(An):{x:An.scrollLeft,y:An.scrollTop},Q=An=>{let Ht=An.offsetParent;for(;Ht&&"static"===Ht.style.position;)Ht=Ht.offsetParent;return Ht||P(An)},ct=(An,Ht,Pn=1)=>{const Sn=Ht?Q(Ht):null,{top:Fn,left:Cn,height:Un,width:fi}=((An,Ht)=>{const Pn=N(An),Sn=Pn.getComputedStyle(An),Fn=te(An),Cn=Ht||Q(An),Un=An.ownerDocument;let bi={top:0,left:0};if("fixed"!==Sn.position&&Cn!==Un.body&&Cn!==Un.documentElement){const Zn=Pn.getComputedStyle(Cn);bi=te(Cn),bi.top+=parseInt(Zn.borderTopWidth,10),bi.left+=parseInt(Zn.borderLeftWidth,10)}return{top:Fn.top-bi.top,left:Fn.left-bi.left,height:Fn.height,width:Fn.width}})(An,Sn),{x:bi,y:Zn}=((An,Ht)=>An?we(An):function pe(An){const Ht=Q(An);return Ht?we(Ht):{x:0,y:0}}(Ht))(Sn,An),mn=An.ownerDocument,ze=Sn===mn.body||Sn===mn.documentElement?1:Pn;return{top:Fn+Zn*ze,left:Cn+bi*ze,height:Un,width:fi}};function ut(An,Ht){return{top:An.top-Ht.y,left:An.left-Ht.x,height:An.height,width:An.width}}const Ue=function(An,Ht,Pn){let Sn=0;return An+Ht>Pn&&(Sn=Pn-(An+Ht)),An<0&&(Sn=-An),Sn},vt=function({offset:An,size:Ht,anchorSize:Pn,viewPortSize:Sn,anchorAlignPoint:Fn,elementAlignPoint:Cn,margin:Un}){let fi=0;const mn=2*Un;if(Cn!==Fn&&"center"!==Cn&&"middle"!==Cn&&"center"!==Fn&&"middle"!==Fn){const ze="top"===Fn||"left"===Fn;An<0&&ze?(fi=Ht+Pn+mn,An+fi+Ht>Sn&&(fi=0)):An>=0&&!ze&&(An+Ht>Sn&&(fi+=-(Pn+Ht+mn)),An+fi<0&&(fi=0))}return fi},Je=An=>{const{anchorRect:Ht,anchorAlign:Pn,elementRect:Sn,elementAlign:Fn,collisions:Cn,viewPort:Un,margin:fi={}}=An,{top:bi,left:Zn,height:mn,width:ze}=Sn,{height:wt,width:ht}=Un,U=fi.horizontal||0,gt=fi.vertical||0;let Lt=0,kt=0;const vn="fit"===Cn.vertical,jn="fit"===Cn.horizontal,St="flip"===Cn.vertical,De="flip"===Cn.horizontal;vn&&(kt+=Ue(bi,mn,wt)),jn&&(Lt+=Ue(Zn,ze,ht)),St&&(kt+=vt({margin:gt,offset:bi,size:mn,anchorSize:Ht.height,viewPortSize:wt,anchorAlignPoint:Pn.vertical,elementAlignPoint:Fn.vertical})),De&&(Lt+=vt({margin:U,offset:Zn,size:ze,anchorSize:Ht.width,viewPortSize:ht,anchorAlignPoint:Pn.horizontal,elementAlignPoint:Fn.horizontal}));const ie=St&&0!==kt,je=De&&0!==Lt,pt=vn&&0!==kt,Ut=jn&&0!==Lt;return{flipped:je||ie,fitted:pt||Ut,flip:{horizontal:je,vertical:ie},fit:{horizontal:Ut,vertical:pt},offset:{left:Lt,top:kt}}},Ft=An=>{const Ht=[];let Pn=An.parentNode.firstElementChild;for(;Pn;)Pn!==An&&Ht.push(Pn),Pn=Pn.nextElementSibling;return Ht},st=(An,Ht)=>{const Pn=oe(An);let Fn,Cn,Sn=Ht;for(;Sn&&(Fn=Ft(Sn),Cn=Pn.reduce((Un,fi)=>Un.concat(Fn.filter(bi=>bi===fi)),[])[0],!Cn);)Sn=Sn.parentElement;return Cn};!function Nt(An){let Ht,Pn=!1}(An=>{if(!Ot())return!1;const Ht=An?An.ownerDocument:document;if(!Ht||!Ht.body)return!1;const Sn=Ht.createElement("div");Sn.style.transform="matrix(10, 0, 0, 10, 0, 0)",Sn.innerHTML='<div style="position: fixed; top: 10px;">child</div>',Ht.body.appendChild(Sn);const Fn=10!==Sn.children[0].getBoundingClientRect().top;return Ht.body.removeChild(Sn),Fn});const Ot=()=>Boolean(typeof window<"u"&&window.document&&window.document.createElement)},16010:(fn,ve,_)=>{"use strict";_.d(ve,{$2l:()=>y,$sV:()=>z,$zW:()=>Oa,A2f:()=>It,CHk:()=>As,CIP:()=>$i,DMe:()=>bo,EN9:()=>Y,FZE:()=>Wt,GZK:()=>vi,GzL:()=>yc,IHW:()=>kr,K8M:()=>dn,LOr:()=>vs,Lpe:()=>Ys,M7i:()=>N,MWc:()=>Ye,Mbe:()=>_s,Me8:()=>R,Mlz:()=>Ps,OUW:()=>Wu,P8c:()=>Rr,QR$:()=>wi,Qpz:()=>vr,Qsz:()=>Ci,R7U:()=>Ui,RL9:()=>js,RbE:()=>Ae,Ryu:()=>Yo,Sp5:()=>ne,TZQ:()=>Qs,UIf:()=>Sd,UeD:()=>Ul,Uyc:()=>vn,V7P:()=>Pn,VxT:()=>Nn,W2X:()=>we,YFK:()=>x,YGw:()=>Dn,YIC:()=>as,YS7:()=>ko,Z5X:()=>Ee,aYQ:()=>po,b8s:()=>yt,bI8:()=>F,dpm:()=>os,eQZ:()=>Mo,fL_:()=>pe,fRI:()=>G,gU7:()=>Bn,hOA:()=>wa,i4I:()=>ea,iw$:()=>Q,jKn:()=>ti,jQe:()=>Fs,ltC:()=>hm,mvG:()=>Hr,n3D:()=>Vs,oXh:()=>ae,p5j:()=>ni,pB:()=>ps,pTO:()=>wf,qoH:()=>nv,rbJ:()=>Gt,tEH:()=>At,tQD:()=>Rp,tjX:()=>Br,x$Z:()=>Hi,x9g:()=>te,xIX:()=>wn,yXJ:()=>co});const G={name:"caret-alt-up",content:'<path d="m256 160 128 192H128l128-192z" />',viewBox:"0 0 512 512"},F={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},N={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},R={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"},y={name:"caret-alt-to-right",content:'<path d="m128 128 192 128-192 128V128zm224 256V128h-32v256h32z" />',viewBox:"0 0 512 512"},Y={name:"caret-alt-to-left",content:'<path d="M352 384 160 256l192-128v256zM128 128v256h32V128h-32z" />',viewBox:"0 0 512 512"},te={name:"caret-alt-expand",content:'<path d="M128 288h256L256 480 128 288zM256 32 128 224h256.001L256 32z" />',viewBox:"0 0 512 512"},we={name:"chevron-up",content:'<path d="m129.941 353.941 126.06-126.06 126.061 126.06L416 320 256.001 160 96 320l33.941 33.941z" />',viewBox:"0 0 512 512"},ae={name:"chevron-right",content:'<path d="m158.059 129.941 126.06 126.06-126.06 126.061L192 416l160-159.999L192 96l-33.941 33.941z" />',viewBox:"0 0 512 512"},Q={name:"chevron-down",content:'<path d="m382.059 158.059-126.06 126.06-126.061-126.06L96 192l159.999 160L416 192l-33.941-33.941z" />',viewBox:"0 0 512 512"},pe={name:"chevron-left",content:'<path d="m353.941 382.059-126.06-126.06 126.06-126.061L320 96 160 255.999 320 416l33.941-33.941z" />',viewBox:"0 0 512 512"},Ee={name:"arrow-up",content:'<path d="M384 288h-96v128h-64l-.001-128H128L255.999 96 384 288z" />',viewBox:"0 0 512 512"},Ye={name:"arrow-down",content:'<path d="M128 224h96V96h64l.001 128H384L256.001 416 128 224z" />',viewBox:"0 0 512 512"},yt={name:"columns",content:'<path d="M64 32h96v448H64V32zm128 448h96V32h-96v448zM320 32v448h96V32h-96z" />',viewBox:"0 0 512 512"},It={name:"reorder",content:'<path d="M480 128v64H32v-64h448zM32 224v64h448v-64H32zm448 96H32v64h448v-64z" />',viewBox:"0 0 512 512"},wn={name:"more-vertical",content:'<path d="M240 128c26.4 0 48-21.6 48-48s-21.6-48-48-48-48 21.6-48 48 21.6 48 48 48zm0 64c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48zm0 160c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48z" />',viewBox:"0 0 512 512"},Nn={name:"more-horizontal",content:'<path d="M128 240c0-26.4-21.6-48-48-48s-48 21.6-48 48 21.6 48 48 48 48-21.6 48-48zm64 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48zm160 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48z" />',viewBox:"0 0 512 512"},Pn={name:"droplet-slider",content:'<path d="M192 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S32 404.8 32 312C32 181.3 192 32 192 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136zm128-88h-32v256h32V224zm0-192h-32v64h32V32zm-64 96v64h96v-64h-96z" />',viewBox:"0 0 512 512"},vn={name:"max-width",content:'<path d="M0 96v288h32V96zm479 0v143.4L352 160v64H160v-64L32 240l128 80v-64h192v64l127-79.4V384h32V96z" />',viewBox:"0 0 512 512"},as={name:"display-inline-block",content:'<path d="M448 32h32v448h-32zM32 32h32v448H32zm64 352h320V128H96v256zm64-192h192v128H160V192z" />',viewBox:"0 0 512 512"},ps={name:"arrow-rotate-cw",content:'<path d="M480 288c0 123.7-100.3 224-224 224S32 411.7 32 288 132.3 64 256 64V0l160 96-160 96v-64c-88.2 0-160 71.8-160 160s71.8 160 160 160 160-71.8 160-160c0-29.1-7.8-56.4-21.5-80l55.5-32c19.1 32.9 30 71.2 30 112z" />',viewBox:"0 0 512 512"},_s={name:"arrows-no-repeat",content:'<path d="m321 434.2 47.5 47.5C335.5 501 297 512 256 512 132.3 512 32 411.7 32 288c0-41 11-79.5 30.3-112.6l47.5 47.5c-8.9 19.9-13.8 41.9-13.8 65 0 88.2 71.8 160 160 160 23.1.1 45.2-4.8 65-13.7zm118.3-17.5c12.9-18.3 23.1-38.7 30.1-60.4 6.9-21.5 10.6-44.5 10.6-68.3 0-40.8-10.9-79.1-30-112l-55.5 32c13.6 23.5 21.5 50.9 21.5 80 0 4.8-.2 9.5-.6 14.2-2.2 24.8-10.1 47.9-22.3 68.2L173.6 150.9c20.3-12.2 43.4-20.1 68.2-22.3 4.7-.4 9.4-.6 14.2-.6v64l160-96L256 0v64c-23.8 0-46.7 3.7-68.3 10.6-21.8 7-42.1 17.2-60.4 30.1L22.6 0 0 22.6 489.4 512l22.6-22.6-72.7-72.7z" />',viewBox:"0 0 512 512"},Fs={name:"arrow-rotate-cw-small",content:'<path d="M416 280c0 88.4-71.6 160-160 160S96 368.4 96 280s71.6-160 160-160V64l128 80-128 80v-56c-61.8 0-112 50.2-112 112s50.2 112 112 112 112-50.2 112-112c0-10-1.3-19.7-3.8-29l46.4-12.4c3.5 13.2 5.4 27.1 5.4 41.4z" />',viewBox:"0 0 512 512"},po={name:"clock",content:'<path d="M256 128h-32v160h160v-32H256V128zm0-96C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-105.9 0-192-86.1-192-192S150.1 64 256 64s192 86.1 192 192-86.1 192-192 192z" />',viewBox:"0 0 512 512"},As={name:"calendar",content:'<path d="M416 416H288V288h128v128zm64-352v384c0 17.6-14.4 32-32 32H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h64V0h64v32h128V0h64v32h64c17.6 0 32 14.4 32 32zm-32 128H64v255.9l.1.1 383.9-.1V192zm0-127.9c-.1-.1-.1-.1 0 0l-64-.1v32h-64V64H192v32h-64V64H64.1l-.1.1V160h384V64.1z" />',viewBox:"0 0 512 512"},Dn={name:"lock",content:'<path d="M384 224h-32v-96c0-53-43-96-96-96s-96 43-96 96v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zm-192-96c0-35.3 28.7-64 64-64s64 28.7 64 64v96H192v-96zm64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},vi={name:"unlock",content:'<path d="M416 224H224v-96c0-53-43-96-96-96s-96 43-96 96v128h32V128c0-35.3 28.7-64 64-64s64 28.7 64 64v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zM288 384c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},ni={name:"cancel",content:'<path d="M256 32c-50.3 0-96.8 16.6-134.1 44.6-17.2 12.8-32.4 28.1-45.3 45.3C48.6 159.2 32 205.7 32 256c0 123.7 100.3 224 224 224 50.3 0 96.8-16.6 134.1-44.6 17.2-12.8 32.4-28.1 45.3-45.3 28-37.4 44.6-83.8 44.6-134.1 0-123.7-100.3-224-224-224zm0 384c-88.2 0-160-71.8-160-160 0-32.6 9.8-62.9 26.6-88.2l221.6 221.6C318.9 406.2 288.6 416 256 416zm133.4-71.8L167.8 122.6C193.1 105.8 223.4 96 256 96c88.2 0 160 71.8 160 160 0 32.6-9.8 62.9-26.6 88.2z" />',viewBox:"0 0 512 512"},Mo={name:"check",content:'<path d="M434.7 82.7 480 128 192 416 32 256l45.3-45.3L192 325.5 434.7 82.7z" />',viewBox:"0 0 512 512"},bo={name:"check-outline",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192zm-32-154-83-83-45 45 128 128 176-176-45-45-131 131z" />',viewBox:"0 0 512 512"},Ps={name:"check-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm-32 352L96 256l45-45 83 83 147-147 45 45-192 192z" />',viewBox:"0 0 512 512"},Wt={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},Bn={name:"x-outline",content:'<path d="M384 338.7 338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7zM256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192z" />',viewBox:"0 0 512 512"},ti={name:"x-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm128 306.7L338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7z" />',viewBox:"0 0 512 512"},Ui={name:"plus",content:'<path d="M288 224V96h-64v128H96v64h128v128h64V288h128v-64H288z" />',viewBox:"0 0 512 512"},z={name:"minus",content:'<path d="M96 224v64h320v-64H96z" />',viewBox:"0 0 512 512"},os={name:"sort-asc-small",content:'<path d="M256 192v224h-32V192h-96L240 64l112 128h-96z" />',viewBox:"0 0 512 512"},dn={name:"sort-desc-small",content:'<path d="M352 288 240 416 128 288h96V64h32v224h96z" />',viewBox:"0 0 512 512"},wi={name:"filter",content:'<path d="M64 64v32l160 160v224l64-64V256L448 96V64H64z" />',viewBox:"0 0 512 512"},Gt={name:"filter-clear",content:'<path d="m143.5 64 168.2 168.2L288 256v160l-64 64V256L64 96V64h79.5zm236.1 100.4L448 96V64H279.3l-64-64L192 22l298 298 22-23.3-132.4-132.3z" />',viewBox:"0 0 512 512"},Rr={name:"upload",content:'<path d="M32 384v96h448v-96H32zm192-64h64V192h96L256 32 128 192h96v128z" />',viewBox:"0 0 512 512"},Qs={name:"hyperlink-open",content:'<path d="M32 480h448V256h-32v192H64V64h192V32H32v448zM320 32l56.9 56.9.5.5L224 242.7l45.3 45.3 153.3-153.4L480 192V32H320z" />',viewBox:"0 0 512 512"},kr={name:"window",content:'<path d="M96 96v320h320V96H96zm288 288H128V192h256v192z" />',viewBox:"0 0 512 512"},vs={name:"window-restore",content:'<path d="M448 32v288h-32V128H160V32h288zM64 192h288v288H64V192zm32 256h224V288H96v160z" />',viewBox:"0 0 512 512"},ko={name:"window-minimize",content:'<path d="M416 288v64H96v-64h320z" />',viewBox:"0 0 512 512"},js={name:"search",content:'<path d="M365.3 320h-22.7l-26.7-26.7C338.5 265.7 352 230.4 352 192c0-88.4-71.6-160-160-160S32 103.6 32 192s71.6 160 160 160c38.4 0 73.7-13.5 101.3-36.1l26.7 26.7v22.7L434.7 480l45.3-45.3L365.3 320zM64 192c0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128S64 262.7 64 192z" />',viewBox:"0 0 512 512"},Ys={name:"stick",content:'<path d="M192 96c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v32h128V96zm128 160c0 35.3-28.7 64-64 64s-64-28.7-64-64v-96H64v96c0 106 86 192 192 192s192-86 192-192v-96H320v96zm96-192h-64c-17.7 0-32 14.3-32 32v32h128V96c0-17.7-14.3-32-32-32z" />',viewBox:"0 0 512 512"},co={name:"unstick",content:'<path d="M290.6 131.4c12.4-12.4 12.4-32.6 0-45l-45-45c-12.4-12.4-32.6-12.4-45 0L178 63.8l90.1 90 22.5-22.4zM268.1 334c-24.9 24.9-65.2 24.9-90.1 0s-24.9-65.2 0-90.1l67.5-67.5-90-90.1L88 153.9C13.4 228.5 13.4 349.4 88 424s195.5 74.6 270.1 0l67.5-67.5-90-90.1-67.5 67.6zm202.6-67.5-45-45c-12.4-12.4-32.6-12.4-45 0L358.2 244l90 90 22.5-22.5c12.4-12.4 12.4-32.6 0-45z" />',viewBox:"0 0 512 512"},Hi={name:"set-column-position",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM192 416H96V96h96v320zm224 0H224v-32h192v32zm0-64H224v-64h192v64zm0-96H224v-64h192v64zm0-96H224V96h192v64z" />',viewBox:"0 0 512 512"},Ci={name:"play-sm",content:'<path d="M96 416V96l320 160L96 416z" />',viewBox:"0 0 512 512"},$i={name:"pause-sm",content:'<path d="M288 96h96v320h-96V96zM96 416h96V96H96v320z" />',viewBox:"0 0 512 512"},ea={name:"info-circle",content:'<path d="M288 352h32v32H192v-32h32v-96h-32v-32h96v128zm0-224h-64v64h64v-64zm192 128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},Br={name:"exclamation-circle",content:'<path d="M224 128h64v160h-64V128zm0 256h64v-64h-64v64zm256-128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},ne={name:"palette",content:'<path d="m206 256.6 160-160c-2.2-5.7-4.8-11.1-7.9-16.3-24.2-40.8-60.1-66-107.8-75.9-2.3-.5-4.7-1-7.1-1.4C192-5.8 143.1 4.8 96.5 34.6 49.3 64.7 19.2 107.2 6.1 162c-13 54.8-5.2 106.4 23.4 154.6 14.2 23.8 31.3 43.2 51.4 58.4 3.8-25.2 13.4-52 36.4-75 31.3-31.4 64-41.3 88.7-43.4zM288 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-96-32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm0-128c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm438.7 12.9L480 118.3c-12.4-12.4-32.8-12.4-45.3 0L281.1 271.9c11.5 5.8 20.8 12.2 27.7 17.6 5.3 4.2 9.2 7.7 11.3 9.8l11.3 12.7c5.4 6.8 11.8 16.2 17.6 27.6l153.5-153.5c12.6-12.4 12.6-32.8.2-45.2zM354.3 289.3c-4.8-5.8-8.6-9.9-10.6-11.9-2.3-2.3-6.3-6.1-12-10.7L457.4 141h.1l22.5 22.5-125.7 125.8zm-78.7 169c-23.8 23.7-48.4 33-70.7 37.7-49.6 10.4-96 16-96 16s34.7-17.3 33.9-77c-.4-32.7-3.7-66.4 19.7-89.8 56.6-56.7 113.3.2 113.3.2s56.7 56-.2 112.9z" />',viewBox:"0 0 512 512"},Oa={name:"droplet-slash",content:'<path d="m317.9 431 23.2 23.2C316.5 470.6 287.3 480 256 480c-88.4 0-160-75.2-160-168 0-27.8 7.2-56.4 18.6-84.2l24.8 24.8C131.9 274 128 293.9 128 312c0 75 57.4 136 128 136 22.4 0 43.5-6.2 61.9-17zM256 416v-32c-35.3 0-64-28.7-64-64h-32c0 53 43 96 96 96zm224 41.4L457.4 480 32 54.6 54.6 32l108.7 108.7C207 77.7 256 32 256 32s160 149.3 160 280c0 24.1-4.9 47.1-13.6 67.8l77.6 77.6zM384 312c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-1.4 1.9-2.7 3.7-4.1 5.6-.8 1.1-1.5 2.1-2.3 3.2l-1.5 2.1-3 4.2c-.2.3-.4.5-.6.8-1 1.5-2.1 3-3.1 4.5-.1.1-.1.2-.2.3l191.2 191.2c.5-1.6 1-3.3 1.4-4.9 0-.2.1-.4.1-.5.4-1.5.8-2.9 1.1-4.4.1-.3.1-.6.2-.9.3-1.4.6-2.7.9-4.1.1-.4.2-.8.2-1.2.2-1.3.5-2.6.7-3.9.1-.5.2-1 .2-1.5.2-1.2.3-2.5.5-3.7.1-.5.1-1.1.2-1.6l.3-3.6c0-.6.1-1.1.1-1.7.1-1.3.2-2.5.2-3.8 0-.5.1-1 .1-1.6.4-1.9.4-3.7.4-5.5z" />',viewBox:"0 0 512 512"},Hr={name:"insert-top",content:'<path d="M192 320h192v32H192v-32zm0-128h288v-32H192v32zm192 64H192v32h192v-32zM32 64v224l96-112L32 64z" />',viewBox:"0 0 512 512"},Yo={name:"insert-middle",content:'<path d="M192 128h192v32H192v-32zm0 128h288v-32H192v32zm192 64H192v32h192v-32zM32 128v224l96-112-96-112z" />',viewBox:"0 0 512 512"},wa={name:"insert-bottom",content:'<path d="M192 224h192v32H192v-32zm0 128h288v-32H192v32zm192-192H192v32h192v-32zM32 224v224l96-112-96-112z" />',viewBox:"0 0 512 512"},Sd={name:"copy",content:'<path d="M384 96H192c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V192l-96-96zm64 352H192V128h160v96h96v224zM64 384h64v32H64c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h192l32 32H64v320z" />',viewBox:"0 0 512 512"},Ae={name:"file",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},x={name:"file-txt",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-32-96v32H128v-32h256zM256 160v32H128v-32m256 64v32H128v-32h256zm-256 96v-32h224v32H128z" />',viewBox:"0 0 512 512"},At={name:"file-excel",content:'<path d="m288 304 64 112h-48l-48-84.5-31.5 52.5H256v32h-96l64-112-64-112h48l48 84 48-84h48l-64 112zm64-272H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Vs={name:"file-pdf",content:'<path d="M240.9 160c-7.6 0-13.8 4-15.4 9.9-4.9 18.6.2 46.3 9.4 82.3l-2.4 5.9c-6.6 16.4-14.8 33-22.1 47.6l-1 1.9c-7.7 15.3-14.6 28.4-21 39.4l-6.5 3.5c-.5.3-11.6 6.3-14.3 7.9-22.2 13.6-36.9 28.9-39.4 41.2-.8 3.9-.2 8.9 3.7 11.2l6.3 3.2c2.7 1.4 5.6 2.1 8.6 2.1 15.8 0 34.2-20.2 59.5-65.3 29.2-9.7 62.5-17.8 91.6-22.3 22.2 12.8 49.5 21.7 66.8 21.7 3.1 0 5.7-.3 7.8-.9 3.3-.9 6.1-2.8 7.8-5.4 3.4-5.2 4-12.2 3.1-19.5-.3-2.1-2-4.8-3.8-6.6-5.1-5.2-16.5-7.9-33.7-8.1-11.7-.1-25.8.9-40.6 3-6.6-3.9-13.5-8.2-18.8-13.3-14.4-13.8-26.5-32.9-34-53.9.5-2 .9-3.7 1.3-5.4 0 0 8.1-47.1 6-63.1-.3-2.2-.5-2.8-1.1-4.5l-.7-1.9c-2.2-5.2-6.5-10.7-13.3-10.4l-3.8-.2zm2.7 8.4c5.1 0 8 13.1 8.2 25.4.3 12.3-2.6 20.9-6 27.3-2.9-9.4-4.3-24.3-4.3-34-.1-.1-.3-18.7 2.1-18.7zm.4 104.1c8.6 16 19.3 29.5 31.9 40.4 1.6 1.3 3.2 2.7 5 4.1-25.6 5.2-47.7 11.5-67.1 19.1 3.6-6.5 7.2-13.3 11-20.6 9.1-17.7 14.9-31.6 19.2-43zm102.2 51.6c9.3 0 12 0 21.1 2.3 9.1 2.4 9.2 7.2 7.6 8.2-1.6 1-6 1.6-8.9 1.6-9.2 0-20.7-4.3-36.8-11.4 6.3-.4 11.9-.7 17-.7zm-165.4 35.8c-17.7 28.8-29.5 40.3-37.3 43.8 2.9-8.1 14.3-24 31.2-38.1 1.1-.9 3.7-3.4 6.1-5.7zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},vr={name:"file-config",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-41.8-124.6-23.7-17.9c1-5.7 1.6-11.5 1.6-17.4 0-6-.5-11.8-1.6-17.4l23.7-17.9c3.7-2.8 4.7-7.9 2.4-11.9l-19.4-33.5c-2.3-4-7.2-5.6-11.5-3.9L318.4 215c-8.8-7.5-19-13.5-30.2-17.4l-3.7-29.5c-.6-4.6-4.5-8-9.1-8h-38.7c-4.6 0-8.5 3.4-9.1 8l-3.7 29.5c-11.1 4-21.3 9.9-30.2 17.4l-27.4-11.6c-4.2-1.8-9.2-.1-11.5 3.9l-19.4 33.5c-2.3 4-1.3 9.1 2.4 11.9l23.7 17.9c-1 5.7-1.6 11.5-1.6 17.4 0 6 .5 11.8 1.6 17.4l-23.7 17.9c-3.7 2.8-4.7 7.9-2.4 11.9l19.4 33.5c2.3 4 7.2 5.6 11.5 3.9l27.4-11.6c8.8 7.5 19 13.5 30.2 17.4l3.7 29.5c.6 4.6 4.5 8 9.1 8h38.7c4.6 0 8.5-3.4 9.1-8l3.7-29.5c11.1-4 21.3-9.9 30.2-17.4l27.4 11.6c4.2 1.8 9.2.1 11.5-3.9l19.4-33.5c2.2-4 1.2-9-2.5-11.8zM256 336c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" />',viewBox:"0 0 512 512"},Ul={name:"file-zip",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h64v32h32v32h-32v32h32v32h-32v32h32v32h-32v32h32v34.7c-18.6 6.6-32 24.4-32 45.3 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.7-32-45.3V256h32v-32h-32v-32h32v-32h-32v-32h32V96h-32V64h96v96h96v288zm-192-80c0 8.8-7.2 16-16 16s-16-7.2-16-16 7.2-16 16-16 16 7.2 16 16z" />',viewBox:"0 0 512 512"},nv={name:"file-video",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM304 304.8v-.8c0-8.8-7.2-16-16-16h-10.1c24.2-3.1 42.8-24.3 41.8-49.6-1-24.8-21.2-45-46-46-27.4-1.1-49.9 20.8-49.9 48 0 24.4 18.2 44.6 41.8 47.6h-70.4c17.2-1.7 30.3-16.9 28.7-34.8-1.4-15.5-14.1-27.9-29.6-28.9-18.7-1.3-34.2 13.5-34.2 31.9 0 16.6 12.7 30.2 28.8 31.8H176c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h111.7c8.4 0 15.6-6.3 16.3-14.6.2-3.1-.3-6.1-1.7-8.7l1.8 1.1 44.9 27.1c1.3.8 2.7 1.2 4.1 1.2 1.3 0 2.7-.3 3.9-1 2.5-1.4 4.1-4.1 4.1-7v-95.8c0-2.9-1.5-5.5-4-6.9s-5.5-1.5-8 0L304 304.8zM193.5 272c-.5.1-1 .1-1.5.1s-1 0-1.5-.1h-.2c-8.6-.8-15.1-8.5-14.3-17.2.6-7.9 7.2-14.2 15.1-14.6 9.2-.5 16.8 6.9 16.8 16 .1 8.1-6.1 15-14.4 15.8zm82.3-.3c-.3 0-.6.1-.9.1-1 .1-2.1.2-3.1.2s-2.1 0-3.1-.2c-.3 0-.6-.1-.9-.1-15.9-2-27.9-15.7-27.9-31.7 0-17.6 14.4-32 32-32s32 14.4 32 32c-.1 16.1-12.1 29.7-28.1 31.7z" />',viewBox:"0 0 512 512"},wf={name:"file-audio",content:'<path d="M218 353.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V256.6l96-22.6v87.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V192.2l-134 31.5v130.1zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},yc={name:"file-image",content:'<path d="M298.7 385.2S272.2 288 213.1 288s-85 128-85 128h256s-11.9-78.7-42.7-78.7-42.7 47.9-42.7 47.9zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM288 256c0 17.7 14.3 32 32 32s32-14.3 32-32-14.3-32-32-32-32 14.3-32 32z" />',viewBox:"0 0 512 512"},hm={name:"file-presentation",content:'<path d="M127.5 214.4c0 9.9 6.1 18.2 14.5 21.2v113.1c0 12.4 9.6 22.4 21.3 22.4H246v11.8l-13.6 14.6c-1.9 2-3 4.8-3 8 0 6.3 4.7 11.3 10.5 11.3 2.8 0 5.5-1.3 7.4-3.3.1-.1.2-.3.4-.4l8.9-9.6 8.9 9.6c.1.1.2.3.4.4 1.9 2 4.5 3.3 7.4 3.3 5.8 0 10.5-5 10.5-11.3 0-3.1-1.2-6-3-8L267 382.8V371h78.8c11.1 0 20.1-9.3 20.9-21h1.3V235.9c9-2.6 15.7-11.3 15.7-21.6 0-12.4-9.5-22.4-21.3-22.4H148.8c-11.8.1-21.3 10.1-21.3 22.5zM299 237h43v89h-43v-89zm-64 26h43v63h-43v-63zm-64 18h43v45h-43v-45zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Wu={name:"file-disc-image",content:'<path d="M256.1 322.7c3.7 0 7.2-1.1 10.1-3s5.2-4.5 6.7-7.6c1.2-2.5 1.9-5.2 1.9-8.1 0-10.3-8.4-18.7-18.7-18.7-2.8 0-5.4.6-7.7 1.7-3.4 1.6-6.3 4.1-8.3 7.3-1.7 2.8-2.7 6.1-2.7 9.7 0 10.4 8.3 18.7 18.7 18.7zm-52.5-117.8c-19.1 10.1-34.9 25.5-45.4 44.4-9 16.1-14.1 34.7-14.1 54.4 0 61.7 50 111.7 111.7 111.7 20 0 38.8-5.3 55.1-14.5 18.6-10.6 33.9-26.4 43.9-45.4 8.1-15.5 12.7-33.1 12.7-51.8 0-61.7-50-111.7-111.7-111.7-18.9 0-36.7 4.7-52.2 12.9zm89.8 99.2c0 6.1-1.4 11.8-4 16.9l48.7 25.8c-8.3 15.8-20.9 28.9-36.3 37.7l-26.6-48.3c-5.6 3.3-12.1 5.3-19.1 5.3-20.6 0-37.4-16.7-37.4-37.4 0-6.8 1.8-13.2 5-18.7l-49.2-27.1c8.8-15.7 22-28.6 38-37l26.8 49.3c5-2.5 10.7-3.9 16.7-3.9 20.7 0 37.4 16.7 37.4 37.4zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Rp={name:"file-programming",content:'<path d="m236 256-52.6-.2-48.6 48.6.1.1c-4.1 3.9-6.7 9.4-6.7 15.5 0 5.8 2.3 11 6 14.8l49.1 49.1 46.8-.2-59.7-59.7c.2-.9.3-1.8.3-2.8L236 256zm105.2 65.5c.1.9.2 1.9.3 2.8L281.9 384l46.8.2 49.1-49.1c3.7-3.8 6-9.1 6-14.8 0-6.1-2.6-11.6-6.7-15.5l.1-.1-48.6-48.7-52.6.2 65.2 65.3zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"}},5152:(fn,ve,_)=>{"use strict";_.d(ve,{T_:()=>Qe,Wt:()=>ca,gb:()=>Ml});var e=0,o=1,A=3,G=4,F=5,R=0,P=1,Y=-2,se=-5,q=1,we=2,ae=3,Q=4,Ee=0,ke=1,Ye=2,ct=8;function ut(ne,qt){return Object.prototype.hasOwnProperty.call(ne,qt)}function Ct(ne){for(var qt=Array.prototype.slice.call(arguments,1);qt.length;){var V=qt.shift();if(V){if("object"!=typeof V)throw new TypeError(V+"must be non-object");for(var re in V)ut(V,re)&&(ne[re]=V[re])}}return ne}function Ue(ne,qt){return ne.length===qt?ne:ne.subarray?ne.subarray(0,qt):(ne.length=qt,ne)}var vt={arraySet:function(ne,qt,V,re,Ie){if(qt.subarray&&ne.subarray)ne.set(qt.subarray(V,V+re),Ie);else for(var qe=0;qe<re;qe++)ne[Ie+qe]=qt[V+qe]},flattenChunks:function(ne){var qt,V,re,Ie,qe,Zt;for(re=0,qt=0,V=ne.length;qt<V;qt++)re+=ne[qt].length;for(Zt=new Uint8Array(re),Ie=0,qt=0,V=ne.length;qt<V;qt++)Zt.set(qe=ne[qt],Ie),Ie+=qe.length;return Zt},Buf8:function(ne){return new Uint8Array(ne)},Buf16:function(ne){return new Uint16Array(ne)},Buf32:function(ne){return new Int32Array(ne)}},ln={arraySet:function(ne,qt,V,re,Ie){for(var qe=0;qe<re;qe++)ne[Ie+qe]=qt[V+qe]},flattenChunks:function(ne){return[].concat.apply([],ne)},Buf8:function(ne){return new Array(ne)},Buf16:function(ne){return new Array(ne)},Buf32:function(ne){return new Array(ne)}};let Je=()=>{const ne=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Je=()=>ne,ne},Ft=(ne,qt,V,re,Ie)=>(Ft=Je()?vt.arraySet:ln.arraySet,Ft(ne,qt,V,re,Ie)),st=ne=>(st=Je()?vt.flattenChunks:ln.flattenChunks,st(ne)),Ze=ne=>(Ze=Je()?vt.Buf8:ln.Buf8,Ze(ne)),$e=ne=>($e=Je()?vt.Buf16:ln.Buf16,$e(ne)),Oe=ne=>(Oe=Je()?vt.Buf32:ln.Buf32,Oe(ne)),Nt=function(){let ne=!0;try{String.fromCharCode.apply(null,[0])}catch{ne=!1}return Nt=()=>ne,ne},xt=function(){let ne=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ne=!1}return xt=()=>ne,ne},Ot=function(ne){for(var qt=Ze(256),V=0;V<256;V++)qt[V]=V>=252?6:V>=248?5:V>=240?4:V>=224?3:V>=192?2:1;return qt[254]=qt[254]=1,Ot=re=>qt[re],qt[ne]};function Kt(ne){var qt,V,re,Ie,qe,Zt=ne.length,Rn=0;for(Ie=0;Ie<Zt;Ie++)55296==(64512&(V=ne.charCodeAt(Ie)))&&Ie+1<Zt&&56320==(64512&(re=ne.charCodeAt(Ie+1)))&&(V=65536+(V-55296<<10)+(re-56320),Ie++),Rn+=V<128?1:V<2048?2:V<65536?3:4;for(qt=new Uint8Array(Rn),qe=0,Ie=0;qe<Rn;Ie++)55296==(64512&(V=ne.charCodeAt(Ie)))&&Ie+1<Zt&&56320==(64512&(re=ne.charCodeAt(Ie+1)))&&(V=65536+(V-55296<<10)+(re-56320),Ie++),V<128?qt[qe++]=V:V<2048?(qt[qe++]=192|V>>>6,qt[qe++]=128|63&V):V<65536?(qt[qe++]=224|V>>>12,qt[qe++]=128|V>>>6&63,qt[qe++]=128|63&V):(qt[qe++]=240|V>>>18,qt[qe++]=128|V>>>12&63,qt[qe++]=128|V>>>6&63,qt[qe++]=128|63&V);return qt}function $t(ne,qt){if(qt<65534&&(ne.subarray&&xt()||!ne.subarray&&Nt()))return String.fromCharCode.apply(null,Ue(ne,qt));for(var V="",re=0;re<qt;re++)V+=String.fromCharCode(ne[re]);return V}function yt(ne,qt){var V,re,Ie,qe,Zt=qt||ne.length,Rn=new Array(2*Zt);for(re=0,V=0;V<Zt;)if((Ie=ne[V++])<128)Rn[re++]=Ie;else if((qe=Ot(Ie))>4)Rn[re++]=65533,V+=qe-1;else{for(Ie&=2===qe?31:3===qe?15:7;qe>1&&V<Zt;)Ie=Ie<<6|63&ne[V++],qe--;qe>1?Rn[re++]=65533:Ie<65536?Rn[re++]=Ie:(Rn[re++]=55296|(Ie-=65536)>>10&1023,Rn[re++]=56320|1023&Ie)}return $t(Rn,re)}function it(ne,qt){var V;for((qt=qt||ne.length)>ne.length&&(qt=ne.length),V=qt-1;V>=0&&128==(192&ne[V]);)V--;return V<0||0===V?qt:V+Ot(ne[V])>qt?V:qt}function It(ne,qt,V,re){for(var Ie=65535&ne|0,qe=ne>>>16&65535|0,Zt=0;0!==V;){V-=Zt=V>2e3?2e3:V;do{qe=qe+(Ie=Ie+qt[re++]|0)|0}while(--Zt);Ie%=65521,qe%=65521}return Ie|qe<<16|0}let wn=function(){const ne=function Tt(){for(var ne,qt=[],V=0;V<256;V++){ne=V;for(var re=0;re<8;re++)ne=1&ne?3988292384^ne>>>1:ne>>>1;qt[V]=ne}return qt}();return wn=()=>ne,ne};function Nn(ne,qt,V,re){var Ie=wn(),qe=re+V;ne^=-1;for(var Zt=re;Zt<qe;Zt++)ne=ne>>>8^Ie[255&(ne^qt[Zt])];return-1^ne}var an=30,sn=12;function _n(ne,qt){var V,re,Ie,qe,Zt,Rn,ii,$n,Ii,ro,rs,Ki,Ss,go,Ls,Ms,ao,Po,zs,yo,Uo,Xs,lr,Fo,no;Fo=ne.input,Ie=(re=ne.next_in)+(ne.avail_in-5),no=ne.output,Zt=(qe=ne.next_out)-(qt-ne.avail_out),Rn=qe+(ne.avail_out-257),ii=(V=ne.state).dmax,$n=V.wsize,Ii=V.whave,ro=V.wnext,rs=V.window,Ki=V.hold,Ss=V.bits,go=V.lencode,Ls=V.distcode,Ms=(1<<V.lenbits)-1,ao=(1<<V.distbits)-1;e:do{Ss<15&&(Ki+=Fo[re++]<<Ss,Ki+=Fo[re++]<<(Ss+=8),Ss+=8),Po=go[Ki&Ms];t:for(;;){if(Ki>>>=zs=Po>>>24,Ss-=zs,0==(zs=Po>>>16&255))no[qe++]=65535&Po;else{if(!(16&zs)){if(64&zs){if(32&zs){V.mode=sn;break e}ne.msg="invalid literal/length code",V.mode=an;break e}Po=go[(65535&Po)+(Ki&(1<<zs)-1)];continue t}for(yo=65535&Po,(zs&=15)&&(Ss<zs&&(Ki+=Fo[re++]<<Ss,Ss+=8),yo+=Ki&(1<<zs)-1,Ki>>>=zs,Ss-=zs),Ss<15&&(Ki+=Fo[re++]<<Ss,Ki+=Fo[re++]<<(Ss+=8),Ss+=8),Po=Ls[Ki&ao];;){if(Ki>>>=zs=Po>>>24,Ss-=zs,16&(zs=Po>>>16&255)){if(Uo=65535&Po,Ss<(zs&=15)&&(Ki+=Fo[re++]<<Ss,(Ss+=8)<zs&&(Ki+=Fo[re++]<<Ss,Ss+=8)),(Uo+=Ki&(1<<zs)-1)>ii){ne.msg="invalid distance too far back",V.mode=an;break e}if(Ki>>>=zs,Ss-=zs,Uo>(zs=qe-Zt)){if((zs=Uo-zs)>Ii&&V.sane){ne.msg="invalid distance too far back",V.mode=an;break e}if(Xs=0,lr=rs,0===ro){if(Xs+=$n-zs,zs<yo){yo-=zs;do{no[qe++]=rs[Xs++]}while(--zs);Xs=qe-Uo,lr=no}}else if(ro<zs){if(Xs+=$n+ro-zs,(zs-=ro)<yo){yo-=zs;do{no[qe++]=rs[Xs++]}while(--zs);if(Xs=0,ro<yo){yo-=zs=ro;do{no[qe++]=rs[Xs++]}while(--zs);Xs=qe-Uo,lr=no}}}else if(Xs+=ro-zs,zs<yo){yo-=zs;do{no[qe++]=rs[Xs++]}while(--zs);Xs=qe-Uo,lr=no}for(;yo>2;)no[qe++]=lr[Xs++],no[qe++]=lr[Xs++],no[qe++]=lr[Xs++],yo-=3;yo&&(no[qe++]=lr[Xs++],yo>1&&(no[qe++]=lr[Xs++]))}else{Xs=qe-Uo;do{no[qe++]=no[Xs++],no[qe++]=no[Xs++],no[qe++]=no[Xs++],yo-=3}while(yo>2);yo&&(no[qe++]=no[Xs++],yo>1&&(no[qe++]=no[Xs++]))}break}if(64&zs){ne.msg="invalid distance code",V.mode=an;break e}Po=Ls[(65535&Po)+(Ki&(1<<zs)-1)]}}break}}while(re<Ie&&qe<Rn);Ki&=(1<<(Ss-=(yo=Ss>>3)<<3))-1,ne.next_in=re-=yo,ne.next_out=qe,ne.avail_in=re<Ie?Ie-re+5:5-(re-Ie),ne.avail_out=qe<Rn?Rn-qe+257:257-(qe-Rn),V.hold=Ki,V.bits=Ss}var Ln=15,Mn=852,pi=592,Yn=0,gi=1,qn=2,ki=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Si=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ni=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],pn=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Vn(ne,qt,V,re,Ie,qe,Zt,Rn){var Po,zs,yo,Uo,Xs,no,zl,Sr,$r,ii=Rn.bits,$n=0,Ii=0,ro=0,rs=0,Ki=0,Ss=0,go=0,Ls=0,Ms=0,ao=0,lr=null,Fo=0,Tr=$e(Ln+1),Oa=$e(Ln+1),za=null,pa=0;for($n=0;$n<=Ln;$n++)Tr[$n]=0;for(Ii=0;Ii<re;Ii++)Tr[qt[V+Ii]]++;for(Ki=ii,rs=Ln;rs>=1&&0===Tr[rs];rs--);if(Ki>rs&&(Ki=rs),0===rs)return Ie[qe++]=20971520,Ie[qe++]=20971520,Rn.bits=1,0;for(ro=1;ro<rs&&0===Tr[ro];ro++);for(Ki<ro&&(Ki=ro),Ls=1,$n=1;$n<=Ln;$n++)if(Ls<<=1,(Ls-=Tr[$n])<0)return-1;if(Ls>0&&(ne===Yn||1!==rs))return-1;for(Oa[1]=0,$n=1;$n<Ln;$n++)Oa[$n+1]=Oa[$n]+Tr[$n];for(Ii=0;Ii<re;Ii++)0!==qt[V+Ii]&&(Zt[Oa[qt[V+Ii]]++]=Ii);if(ne===Yn?(lr=za=Zt,no=19):ne===gi?(lr=ki,Fo-=257,za=Si,pa-=257,no=256):(lr=Ni,za=pn,no=-1),ao=0,Ii=0,$n=ro,Xs=qe,Ss=Ki,go=0,yo=-1,Uo=(Ms=1<<Ki)-1,ne===gi&&Ms>Mn||ne===qn&&Ms>pi)return 1;for(;;){zl=$n-go,Zt[Ii]<no?(Sr=0,$r=Zt[Ii]):Zt[Ii]>no?(Sr=za[pa+Zt[Ii]],$r=lr[Fo+Zt[Ii]]):(Sr=96,$r=0),Po=1<<$n-go,ro=zs=1<<Ss;do{Ie[Xs+(ao>>go)+(zs-=Po)]=zl<<24|Sr<<16|$r|0}while(0!==zs);for(Po=1<<$n-1;ao&Po;)Po>>=1;if(0!==Po?(ao&=Po-1,ao+=Po):ao=0,Ii++,0==--Tr[$n]){if($n===rs)break;$n=qt[V+Zt[Ii]]}if($n>Ki&&(ao&Uo)!==yo){for(0===go&&(go=Ki),Xs+=ro,Ls=1<<(Ss=$n-go);Ss+go<rs&&!((Ls-=Tr[Ss+go])<=0);)Ss++,Ls<<=1;if(Ms+=1<<Ss,ne===gi&&Ms>Mn||ne===qn&&Ms>pi)return 1;Ie[yo=ao&Uo]=Ki<<24|Ss<<16|Xs-qe|0}}return 0!==ao&&(Ie[Xs+ao]=$n-go<<24|64<<16|0),Rn.bits=Ki,0}var ot=0,en=1,lt=2,In=4,rn=5,Qt=6,yi=0,Li=1,An=2,Ht=-2,Pn=-3,Sn=-4,Fn=-5,Cn=8,Un=1,fi=2,bi=3,Zn=4,mn=5,ze=6,wt=7,ht=8,U=9,gt=10,Lt=11,kt=12,vn=13,jn=14,St=15,De=16,ie=17,je=18,pt=19,Ut=20,xn=21,hn=22,Gn=23,ri=24,mi=25,ui=26,Pi=27,Di=28,Yi=29,ji=30,gs=31,Es=852,ss=592;function zi(ne){return(ne>>>24&255)+(ne>>>8&65280)+((65280&ne)<<8)+((255&ne)<<24)}function as(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=$e(320),this.work=$e(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ps(ne,qt){var V,re;return ne?(re=new as,ne.state=re,re.window=null,V=function us(ne,qt){var V,re;return!ne||!ne.state||(re=ne.state,qt<0?(V=0,qt=-qt):(V=1+(qt>>4),qt<48&&(qt&=15)),qt&&(qt<8||qt>15))?Ht:(null!==re.window&&re.wbits!==qt&&(re.window=null),re.wrap=V,re.wbits=qt,function Xi(ne){var qt;return ne&&ne.state?((qt=ne.state).wsize=0,qt.whave=0,qt.wnext=0,function ds(ne){var qt;return ne&&ne.state?(ne.total_in=ne.total_out=(qt=ne.state).total=0,ne.msg="",qt.wrap&&(ne.adler=1&qt.wrap),qt.mode=Un,qt.last=0,qt.havedict=0,qt.dmax=32768,qt.head=null,qt.hold=0,qt.bits=0,qt.lencode=qt.lendyn=Oe(Es),qt.distcode=qt.distdyn=Oe(ss),qt.sane=1,qt.back=-1,yi):Ht}(ne)):Ht}(ne))}(ne,qt),V!==yi&&(ne.state=null),V):Ht}var ei,Fs,_s=!0;function po(ne){if(_s){var qt;for(ei=Oe(512),Fs=Oe(32),qt=0;qt<144;)ne.lens[qt++]=8;for(;qt<256;)ne.lens[qt++]=9;for(;qt<280;)ne.lens[qt++]=7;for(;qt<288;)ne.lens[qt++]=8;for(Vn(en,ne.lens,0,288,ei,0,ne.work,{bits:9}),qt=0;qt<32;)ne.lens[qt++]=5;Vn(lt,ne.lens,0,32,Fs,0,ne.work,{bits:5}),_s=!1}ne.lencode=ei,ne.lenbits=9,ne.distcode=Fs,ne.distbits=5}function As(ne,qt,V,re){var Ie,qe=ne.state;return null===qe.window&&(qe.wsize=1<<qe.wbits,qe.wnext=0,qe.whave=0,qe.window=Ze(qe.wsize)),re>=qe.wsize?(Ft(qe.window,qt,V-qe.wsize,qe.wsize,0),qe.wnext=0,qe.whave=qe.wsize):((Ie=qe.wsize-qe.wnext)>re&&(Ie=re),Ft(qe.window,qt,V-re,Ie,qe.wnext),(re-=Ie)?(Ft(qe.window,qt,V-re,re,0),qe.wnext=re,qe.whave=qe.wsize):(qe.wnext+=Ie,qe.wnext===qe.wsize&&(qe.wnext=0),qe.whave<qe.wsize&&(qe.whave+=Ie))),0}function un(ne,qt){var V,re,Ie,qe,Zt,Rn,ii,$n,Ii,ro,rs,Ki,Ss,go,Ms,ao,Po,zs,yo,Uo,Xs,lr,no,Tr,Ls=0,Fo=Ze(4),Oa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ne||!ne.state||!ne.output||!ne.input&&0!==ne.avail_in)return Ht;(V=ne.state).mode===kt&&(V.mode=vn),Zt=ne.next_out,Ie=ne.output,qe=ne.next_in,re=ne.input,$n=V.hold,Ii=V.bits,ro=Rn=ne.avail_in,rs=ii=ne.avail_out,lr=yi;e:for(;;)switch(V.mode){case Un:if(0===V.wrap){V.mode=vn;break}for(;Ii<16;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(2&V.wrap&&35615===$n){V.check=0,Fo[0]=255&$n,Fo[1]=$n>>>8&255,V.check=Nn(V.check,Fo,2,0),$n=0,Ii=0,V.mode=fi;break}if(V.flags=0,V.head&&(V.head.done=!1),!(1&V.wrap)||(((255&$n)<<8)+($n>>8))%31){ne.msg="incorrect header check",V.mode=ji;break}if((15&$n)!==Cn){ne.msg="unknown compression method",V.mode=ji;break}if(Ii-=4,Xs=8+(15&($n>>>=4)),0===V.wbits)V.wbits=Xs;else if(Xs>V.wbits){ne.msg="invalid window size",V.mode=ji;break}V.dmax=1<<Xs,ne.adler=V.check=1,V.mode=512&$n?gt:kt,$n=0,Ii=0;break;case fi:for(;Ii<16;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(V.flags=$n,(255&V.flags)!==Cn){ne.msg="unknown compression method",V.mode=ji;break}if(57344&V.flags){ne.msg="unknown header flags set",V.mode=ji;break}V.head&&(V.head.text=$n>>8&1),512&V.flags&&(Fo[0]=255&$n,Fo[1]=$n>>>8&255,V.check=Nn(V.check,Fo,2,0)),$n=0,Ii=0,V.mode=bi;case bi:for(;Ii<32;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.head&&(V.head.time=$n),512&V.flags&&(Fo[0]=255&$n,Fo[1]=$n>>>8&255,Fo[2]=$n>>>16&255,Fo[3]=$n>>>24&255,V.check=Nn(V.check,Fo,4,0)),$n=0,Ii=0,V.mode=Zn;case Zn:for(;Ii<16;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.head&&(V.head.xflags=255&$n,V.head.os=$n>>8),512&V.flags&&(Fo[0]=255&$n,Fo[1]=$n>>>8&255,V.check=Nn(V.check,Fo,2,0)),$n=0,Ii=0,V.mode=mn;case mn:if(1024&V.flags){for(;Ii<16;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.length=$n,V.head&&(V.head.extra_len=$n),512&V.flags&&(Fo[0]=255&$n,Fo[1]=$n>>>8&255,V.check=Nn(V.check,Fo,2,0)),$n=0,Ii=0}else V.head&&(V.head.extra=null);V.mode=ze;case ze:if(1024&V.flags&&((Ki=V.length)>Rn&&(Ki=Rn),Ki&&(V.head&&(Xs=V.head.extra_len-V.length,V.head.extra||(V.head.extra=new Array(V.head.extra_len)),Ft(V.head.extra,re,qe,Ki,Xs)),512&V.flags&&(V.check=Nn(V.check,re,Ki,qe)),Rn-=Ki,qe+=Ki,V.length-=Ki),V.length))break e;V.length=0,V.mode=wt;case wt:if(2048&V.flags){if(0===Rn)break e;Ki=0;do{Xs=re[qe+Ki++],V.head&&Xs&&V.length<65536&&(V.head.name+=String.fromCharCode(Xs))}while(Xs&&Ki<Rn);if(512&V.flags&&(V.check=Nn(V.check,re,Ki,qe)),Rn-=Ki,qe+=Ki,Xs)break e}else V.head&&(V.head.name=null);V.length=0,V.mode=ht;case ht:if(4096&V.flags){if(0===Rn)break e;Ki=0;do{Xs=re[qe+Ki++],V.head&&Xs&&V.length<65536&&(V.head.comment+=String.fromCharCode(Xs))}while(Xs&&Ki<Rn);if(512&V.flags&&(V.check=Nn(V.check,re,Ki,qe)),Rn-=Ki,qe+=Ki,Xs)break e}else V.head&&(V.head.comment=null);V.mode=U;case U:if(512&V.flags){for(;Ii<16;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if($n!==(65535&V.check)){ne.msg="header crc mismatch",V.mode=ji;break}$n=0,Ii=0}V.head&&(V.head.hcrc=V.flags>>9&1,V.head.done=!0),ne.adler=V.check=0,V.mode=kt;break;case gt:for(;Ii<32;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}ne.adler=V.check=zi($n),$n=0,Ii=0,V.mode=Lt;case Lt:if(0===V.havedict)return ne.next_out=Zt,ne.avail_out=ii,ne.next_in=qe,ne.avail_in=Rn,V.hold=$n,V.bits=Ii,An;ne.adler=V.check=1,V.mode=kt;case kt:if(qt===rn||qt===Qt)break e;case vn:if(V.last){$n>>>=7&Ii,Ii-=7&Ii,V.mode=Pi;break}for(;Ii<3;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}switch(V.last=1&$n,Ii-=1,3&($n>>>=1)){case 0:V.mode=jn;break;case 1:if(po(V),V.mode=Ut,qt===Qt){$n>>>=2,Ii-=2;break e}break;case 2:V.mode=ie;break;case 3:ne.msg="invalid block type",V.mode=ji}$n>>>=2,Ii-=2;break;case jn:for($n>>>=7&Ii,Ii-=7&Ii;Ii<32;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if((65535&$n)!=($n>>>16^65535)){ne.msg="invalid stored block lengths",V.mode=ji;break}if(V.length=65535&$n,$n=0,Ii=0,V.mode=St,qt===Qt)break e;case St:V.mode=De;case De:if(Ki=V.length){if(Ki>Rn&&(Ki=Rn),Ki>ii&&(Ki=ii),0===Ki)break e;Ft(Ie,re,qe,Ki,Zt),Rn-=Ki,qe+=Ki,ii-=Ki,Zt+=Ki,V.length-=Ki;break}V.mode=kt;break;case ie:for(;Ii<14;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(V.nlen=257+(31&$n),Ii-=5,V.ndist=1+(31&($n>>>=5)),Ii-=5,V.ncode=4+(15&($n>>>=5)),$n>>>=4,Ii-=4,V.nlen>286||V.ndist>30){ne.msg="too many length or distance symbols",V.mode=ji;break}V.have=0,V.mode=je;case je:for(;V.have<V.ncode;){for(;Ii<3;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.lens[Oa[V.have++]]=7&$n,$n>>>=3,Ii-=3}for(;V.have<19;)V.lens[Oa[V.have++]]=0;if(V.lencode=V.lendyn,V.lenbits=7,lr=Vn(ot,V.lens,0,19,V.lencode,0,V.work,no={bits:V.lenbits}),V.lenbits=no.bits,lr){ne.msg="invalid code lengths set",V.mode=ji;break}V.have=0,V.mode=pt;case pt:for(;V.have<V.nlen+V.ndist;){for(;ao=(Ls=V.lencode[$n&(1<<V.lenbits)-1])>>>16&255,Po=65535&Ls,!((Ms=Ls>>>24)<=Ii);){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(Po<16)$n>>>=Ms,Ii-=Ms,V.lens[V.have++]=Po;else{if(16===Po){for(Tr=Ms+2;Ii<Tr;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if($n>>>=Ms,Ii-=Ms,0===V.have){ne.msg="invalid bit length repeat",V.mode=ji;break}Xs=V.lens[V.have-1],Ki=3+(3&$n),$n>>>=2,Ii-=2}else if(17===Po){for(Tr=Ms+3;Ii<Tr;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}Ii-=Ms,Xs=0,Ki=3+(7&($n>>>=Ms)),$n>>>=3,Ii-=3}else{for(Tr=Ms+7;Ii<Tr;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}Ii-=Ms,Xs=0,Ki=11+(127&($n>>>=Ms)),$n>>>=7,Ii-=7}if(V.have+Ki>V.nlen+V.ndist){ne.msg="invalid bit length repeat",V.mode=ji;break}for(;Ki--;)V.lens[V.have++]=Xs}}if(V.mode===ji)break;if(0===V.lens[256]){ne.msg="invalid code -- missing end-of-block",V.mode=ji;break}if(V.lenbits=9,lr=Vn(en,V.lens,0,V.nlen,V.lencode,0,V.work,no={bits:V.lenbits}),V.lenbits=no.bits,lr){ne.msg="invalid literal/lengths set",V.mode=ji;break}if(V.distbits=6,V.distcode=V.distdyn,lr=Vn(lt,V.lens,V.nlen,V.ndist,V.distcode,0,V.work,no={bits:V.distbits}),V.distbits=no.bits,lr){ne.msg="invalid distances set",V.mode=ji;break}if(V.mode=Ut,qt===Qt)break e;case Ut:V.mode=xn;case xn:if(Rn>=6&&ii>=258){ne.next_out=Zt,ne.avail_out=ii,ne.next_in=qe,ne.avail_in=Rn,V.hold=$n,V.bits=Ii,_n(ne,rs),Zt=ne.next_out,Ie=ne.output,ii=ne.avail_out,qe=ne.next_in,re=ne.input,Rn=ne.avail_in,$n=V.hold,Ii=V.bits,V.mode===kt&&(V.back=-1);break}for(V.back=0;ao=(Ls=V.lencode[$n&(1<<V.lenbits)-1])>>>16&255,Po=65535&Ls,!((Ms=Ls>>>24)<=Ii);){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(ao&&!(240&ao)){for(zs=Ms,yo=ao,Uo=Po;ao=(Ls=V.lencode[Uo+(($n&(1<<zs+yo)-1)>>zs)])>>>16&255,Po=65535&Ls,!(zs+(Ms=Ls>>>24)<=Ii);){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}$n>>>=zs,Ii-=zs,V.back+=zs}if($n>>>=Ms,Ii-=Ms,V.back+=Ms,V.length=Po,0===ao){V.mode=ui;break}if(32&ao){V.back=-1,V.mode=kt;break}if(64&ao){ne.msg="invalid literal/length code",V.mode=ji;break}V.extra=15&ao,V.mode=hn;case hn:if(V.extra){for(Tr=V.extra;Ii<Tr;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.length+=$n&(1<<V.extra)-1,$n>>>=V.extra,Ii-=V.extra,V.back+=V.extra}V.was=V.length,V.mode=Gn;case Gn:for(;ao=(Ls=V.distcode[$n&(1<<V.distbits)-1])>>>16&255,Po=65535&Ls,!((Ms=Ls>>>24)<=Ii);){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if(!(240&ao)){for(zs=Ms,yo=ao,Uo=Po;ao=(Ls=V.distcode[Uo+(($n&(1<<zs+yo)-1)>>zs)])>>>16&255,Po=65535&Ls,!(zs+(Ms=Ls>>>24)<=Ii);){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}$n>>>=zs,Ii-=zs,V.back+=zs}if($n>>>=Ms,Ii-=Ms,V.back+=Ms,64&ao){ne.msg="invalid distance code",V.mode=ji;break}V.offset=Po,V.extra=15&ao,V.mode=ri;case ri:if(V.extra){for(Tr=V.extra;Ii<Tr;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}V.offset+=$n&(1<<V.extra)-1,$n>>>=V.extra,Ii-=V.extra,V.back+=V.extra}if(V.offset>V.dmax){ne.msg="invalid distance too far back",V.mode=ji;break}V.mode=mi;case mi:if(0===ii)break e;if(V.offset>(Ki=rs-ii)){if((Ki=V.offset-Ki)>V.whave&&V.sane){ne.msg="invalid distance too far back",V.mode=ji;break}Ss=Ki>V.wnext?V.wsize-(Ki-=V.wnext):V.wnext-Ki,Ki>V.length&&(Ki=V.length),go=V.window}else go=Ie,Ss=Zt-V.offset,Ki=V.length;Ki>ii&&(Ki=ii),ii-=Ki,V.length-=Ki;do{Ie[Zt++]=go[Ss++]}while(--Ki);0===V.length&&(V.mode=xn);break;case ui:if(0===ii)break e;Ie[Zt++]=V.length,ii--,V.mode=xn;break;case Pi:if(V.wrap){for(;Ii<32;){if(0===Rn)break e;Rn--,$n|=re[qe++]<<Ii,Ii+=8}if(ne.total_out+=rs-=ii,V.total+=rs,rs&&(ne.adler=V.check=V.flags?Nn(V.check,Ie,rs,Zt-rs):It(V.check,Ie,rs,Zt-rs)),rs=ii,(V.flags?$n:zi($n))!==V.check){ne.msg="incorrect data check",V.mode=ji;break}$n=0,Ii=0}V.mode=Di;case Di:if(V.wrap&&V.flags){for(;Ii<32;){if(0===Rn)break e;Rn--,$n+=re[qe++]<<Ii,Ii+=8}if($n!==(4294967295&V.total)){ne.msg="incorrect length check",V.mode=ji;break}$n=0,Ii=0}V.mode=Yi;case Yi:lr=Li;break e;case ji:lr=Pn;break e;case gs:return Sn;default:return Ht}return ne.next_out=Zt,ne.avail_out=ii,ne.next_in=qe,ne.avail_in=Rn,V.hold=$n,V.bits=Ii,(V.wsize||rs!==ne.avail_out&&V.mode<ji&&(V.mode<Pi||qt!==In))&&As(ne,ne.output,ne.next_out,rs-ne.avail_out),rs-=ne.avail_out,ne.total_in+=ro-=ne.avail_in,ne.total_out+=rs,V.total+=rs,V.wrap&&rs&&(ne.adler=V.check=V.flags?Nn(V.check,Ie,rs,ne.next_out-rs):It(V.check,Ie,rs,ne.next_out-rs)),ne.data_type=V.bits+(V.last?64:0)+(V.mode===kt?128:0)+(V.mode===Ut||V.mode===St?256:0),(0===ro&&0===rs||qt===In)&&lr===yi&&(lr=Fn),lr}function Pt(ne,qt){var re,V=qt.length;return ne&&ne.state&&(0===(re=ne.state).wrap||re.mode===Lt)?re.mode===Lt&&It(1,qt,V,0)!==re.check?Pn:As(ne,qt,V,V)?(re.mode=gs,Sn):(re.havedict=1,yi):Ht}var Be={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Jt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function xe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Ke=Object.prototype.toString;class Qe{constructor(qt){if(!(this instanceof Qe))return new Qe(qt);this.options=Ct({chunkSize:16384,windowBits:0,to:""},qt||{});var V=this.options;V.raw&&V.windowBits>=0&&V.windowBits<16&&(V.windowBits=-V.windowBits,0===V.windowBits&&(V.windowBits=-15)),V.windowBits>=0&&V.windowBits<16&&!(qt&&qt.windowBits)&&(V.windowBits+=32),V.windowBits>15&&V.windowBits<48&&(15&V.windowBits||(V.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Jt,this.strm.avail_out=0;var re=ps(this.strm,V.windowBits);if(re!==R)throw new Error(Be[re]);if(this.header=new xe,function Le(ne,qt){var V;ne&&ne.state&&2&(V=ne.state).wrap&&(V.head=qt,qt.done=!1)}(this.strm,this.header),V.dictionary&&("string"==typeof V.dictionary?V.dictionary=Kt(V.dictionary):"[object ArrayBuffer]"===Ke.call(V.dictionary)&&(V.dictionary=new Uint8Array(V.dictionary)),V.raw&&(re=Pt(this.strm,V.dictionary))!==R))throw new Error(Be[re])}push(qt,V){var Zt,Rn,ii,$n,Ii,ro,re=this.strm,Ie=this.options.chunkSize,qe=this.options.dictionary,rs=!1;if(this.ended)return!1;Rn=V===~~V?V:!0===V?G:e,re.input="string"==typeof qt?function We(ne){for(var qt=new Uint8Array(ne.length),V=0,re=qt.length;V<re;V++)qt[V]=ne.charCodeAt(V);return qt}(qt):"[object ArrayBuffer]"===Ke.call(qt)?new Uint8Array(qt):qt,re.next_in=0,re.avail_in=re.input.length;do{if(0===re.avail_out&&(re.output=Ze(Ie),re.next_out=0,re.avail_out=Ie),2===(Zt=un(re,e))&&qe&&(ro="string"==typeof qe?Kt(qe):"[object ArrayBuffer]"===Ke.call(qe)?new Uint8Array(qe):qe,Zt=Pt(this.strm,ro)),Zt===se&&!0===rs&&(Zt=R,rs=!1),Zt!==P&&Zt!==R)return this.onEnd(Zt),this.ended=!0,!1;re.next_out&&(0===re.avail_out||Zt===P||0===re.avail_in&&(Rn===G||2===Rn))&&("string"===this.options.to?(ii=it(re.output,re.next_out),$n=re.next_out-ii,Ii=yt(re.output,ii),re.next_out=$n,re.avail_out=Ie-$n,$n&&Ft(re.output,re.output,ii,$n,0),this.onData(Ii)):this.onData(Ue(re.output,re.next_out))),0===re.avail_in&&0===re.avail_out&&(rs=!0)}while((re.avail_in>0||0===re.avail_out)&&Zt!==P);return Zt===P&&(Rn=G),Rn===G?(Zt=function ai(ne){if(!ne||!ne.state)return Ht;var qt=ne.state;return qt.window&&(qt.window=null),ne.state=null,yi}(this.strm),this.onEnd(Zt),this.ended=!0,Zt===R):(2===Rn&&(this.onEnd(R),re.avail_out=0),!0)}onData(qt){this.chunks.push(qt)}onEnd(qt){qt===R&&(this.result="string"===this.options.to?this.chunks.join(""):st(this.chunks)),this.chunks=[],this.err=qt,this.msg=this.strm.msg}}function ni(ne){for(var qt=ne.length;--qt>=0;)ne[qt]=0}var Ks,So,wo,da,ia,jr,Qs,Hs,Pr,qi=0,ys=1,Mo=2,bo=3,Ps=258,Wt=29,Bn=256,ti=Bn+1+Wt,Ui=30,Pe=19,gn=2*ti+1,z=15,Ce=16,on=7,Hn=256,Mi=16,Fi=17,os=18,dn=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],wi=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Gt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_i=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wi=512;function Rr(ne,qt,V,re,Ie){this.static_tree=ne,this.extra_bits=qt,this.extra_base=V,this.elems=re,this.max_length=Ie,this.has_stree=ne&&ne.length}function kr(ne,qt){this.dyn_tree=ne,this.max_code=0,this.stat_desc=qt}function vs(ne){return ne<256?wo[ne]:wo[256+(ne>>>7)]}function ko(ne,qt){ne.pending_buf[ne.pending++]=255&qt,ne.pending_buf[ne.pending++]=qt>>>8&255}function Nr(ne,qt,V){ne.bi_valid>Ce-V?(ne.bi_buf|=qt<<ne.bi_valid&65535,ko(ne,ne.bi_buf),ne.bi_buf=qt>>Ce-ne.bi_valid,ne.bi_valid+=V-Ce):(ne.bi_buf|=qt<<ne.bi_valid&65535,ne.bi_valid+=V)}function so(ne,qt,V){Nr(ne,V[2*qt],V[2*qt+1])}function cr(ne,qt){var V=0;do{V|=1&ne,ne>>>=1,V<<=1}while(--qt>0);return V>>>1}function fr(ne,qt,V){var qe,Zt,re=new Array(z+1),Ie=0;for(qe=1;qe<=z;qe++)re[qe]=Ie=Ie+V[qe-1]<<1;for(Zt=0;Zt<=qt;Zt++){var Rn=ne[2*Zt+1];0!==Rn&&(ne[2*Zt]=cr(re[Rn]++,Rn))}}function Lr(ne){var qt;for(qt=0;qt<ti;qt++)ne.dyn_ltree[2*qt]=0;for(qt=0;qt<Ui;qt++)ne.dyn_dtree[2*qt]=0;for(qt=0;qt<Pe;qt++)ne.bl_tree[2*qt]=0;ne.dyn_ltree[2*Hn]=1,ne.opt_len=ne.static_len=0,ne.last_lit=ne.matches=0}function ur(ne){ne.bi_valid>8?ko(ne,ne.bi_buf):ne.bi_valid>0&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function Ko(ne,qt,V,re){var Ie=2*qt,qe=2*V;return ne[Ie]<ne[qe]||ne[Ie]===ne[qe]&&re[qt]<=re[V]}function ms(ne,qt,V){for(var re=ne.heap[V],Ie=V<<1;Ie<=ne.heap_len&&(Ie<ne.heap_len&&Ko(qt,ne.heap[Ie+1],ne.heap[Ie],ne.depth)&&Ie++,!Ko(qt,re,ne.heap[Ie],ne.depth));)ne.heap[V]=ne.heap[Ie],V=Ie,Ie<<=1;ne.heap[V]=re}function Ho(ne,qt,V){var re,Ie,Zt,Rn,qe=0;if(0!==ne.last_lit)do{re=ne.pending_buf[ne.d_buf+2*qe]<<8|ne.pending_buf[ne.d_buf+2*qe+1],Ie=ne.pending_buf[ne.l_buf+qe],qe++,0===re?so(ne,Ie,qt):(so(ne,(Zt=da[Ie])+Bn+1,qt),0!==(Rn=dn[Zt])&&Nr(ne,Ie-=ia[Zt],Rn),so(ne,Zt=vs(--re),V),0!==(Rn=wi[Zt])&&Nr(ne,re-=jr[Zt],Rn))}while(qe<ne.last_lit);so(ne,Hn,qt)}function vo(ne,qt){var Zt,Rn,$n,V=qt.dyn_tree,re=qt.stat_desc.static_tree,Ie=qt.stat_desc.has_stree,qe=qt.stat_desc.elems,ii=-1;for(ne.heap_len=0,ne.heap_max=gn,Zt=0;Zt<qe;Zt++)0!==V[2*Zt]?(ne.heap[++ne.heap_len]=ii=Zt,ne.depth[Zt]=0):V[2*Zt+1]=0;for(;ne.heap_len<2;)V[2*($n=ne.heap[++ne.heap_len]=ii<2?++ii:0)]=1,ne.depth[$n]=0,ne.opt_len--,Ie&&(ne.static_len-=re[2*$n+1]);for(qt.max_code=ii,Zt=ne.heap_len>>1;Zt>=1;Zt--)ms(ne,V,Zt);$n=qe;do{Zt=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],ms(ne,V,1),Rn=ne.heap[1],ne.heap[--ne.heap_max]=Zt,ne.heap[--ne.heap_max]=Rn,V[2*$n]=V[2*Zt]+V[2*Rn],ne.depth[$n]=(ne.depth[Zt]>=ne.depth[Rn]?ne.depth[Zt]:ne.depth[Rn])+1,V[2*Zt+1]=V[2*Rn+1]=$n,ne.heap[1]=$n++,ms(ne,V,1)}while(ne.heap_len>=2);ne.heap[--ne.heap_max]=ne.heap[1],function js(ne,qt){var $n,Ii,ro,rs,Ki,Ss,V=qt.dyn_tree,re=qt.max_code,Ie=qt.stat_desc.static_tree,qe=qt.stat_desc.has_stree,Zt=qt.stat_desc.extra_bits,Rn=qt.stat_desc.extra_base,ii=qt.stat_desc.max_length,go=0;for(rs=0;rs<=z;rs++)ne.bl_count[rs]=0;for(V[2*ne.heap[ne.heap_max]+1]=0,$n=ne.heap_max+1;$n<gn;$n++)(rs=V[2*V[2*(Ii=ne.heap[$n])+1]+1]+1)>ii&&(rs=ii,go++),V[2*Ii+1]=rs,!(Ii>re)&&(ne.bl_count[rs]++,Ki=0,Ii>=Rn&&(Ki=Zt[Ii-Rn]),ne.opt_len+=(Ss=V[2*Ii])*(rs+Ki),qe&&(ne.static_len+=Ss*(Ie[2*Ii+1]+Ki)));if(0!==go){do{for(rs=ii-1;0===ne.bl_count[rs];)rs--;ne.bl_count[rs]--,ne.bl_count[rs+1]+=2,ne.bl_count[ii]--,go-=2}while(go>0);for(rs=ii;0!==rs;rs--)for(Ii=ne.bl_count[rs];0!==Ii;)!((ro=ne.heap[--$n])>re)&&(V[2*ro+1]!==rs&&(ne.opt_len+=(rs-V[2*ro+1])*V[2*ro],V[2*ro+1]=rs),Ii--)}}(ne,qt),fr(V,ii,ne.bl_count)}function oa(ne,qt,V){var re,qe,Ie=-1,Zt=qt[1],Rn=0,ii=7,$n=4;for(0===Zt&&(ii=138,$n=3),qt[2*(V+1)+1]=65535,re=0;re<=V;re++)qe=Zt,Zt=qt[2*(re+1)+1],!(++Rn<ii&&qe===Zt)&&(Rn<$n?ne.bl_tree[2*qe]+=Rn:0!==qe?(qe!==Ie&&ne.bl_tree[2*qe]++,ne.bl_tree[2*Mi]++):Rn<=10?ne.bl_tree[2*Fi]++:ne.bl_tree[2*os]++,Rn=0,Ie=qe,0===Zt?(ii=138,$n=3):qe===Zt?(ii=6,$n=3):(ii=7,$n=4))}function Ka(ne,qt,V){var re,qe,Ie=-1,Zt=qt[1],Rn=0,ii=7,$n=4;for(0===Zt&&(ii=138,$n=3),re=0;re<=V;re++)if(qe=Zt,Zt=qt[2*(re+1)+1],!(++Rn<ii&&qe===Zt)){if(Rn<$n)do{so(ne,qe,ne.bl_tree)}while(0!=--Rn);else 0!==qe?(qe!==Ie&&(so(ne,qe,ne.bl_tree),Rn--),so(ne,Mi,ne.bl_tree),Nr(ne,Rn-3,2)):Rn<=10?(so(ne,Fi,ne.bl_tree),Nr(ne,Rn-3,3)):(so(ne,os,ne.bl_tree),Nr(ne,Rn-11,7));Rn=0,Ie=qe,0===Zt?(ii=138,$n=3):qe===Zt?(ii=6,$n=3):(ii=7,$n=4)}}var No=!1;function Er(ne,qt,V,re){Nr(ne,(qi<<1)+(re?1:0),3),function Fr(ne,qt,V,re){ur(ne),re&&(ko(ne,V),ko(ne,~V)),Ft(ne.pending_buf,ne.window,qt,V,ne.pending),ne.pending+=V}(ne,qt,V,!0)}function rr(ne,qt,V){return ne.pending_buf[ne.d_buf+2*ne.last_lit]=qt>>>8&255,ne.pending_buf[ne.d_buf+2*ne.last_lit+1]=255&qt,ne.pending_buf[ne.l_buf+ne.last_lit]=255&V,ne.last_lit++,0===qt?ne.dyn_ltree[2*V]++:(ne.matches++,qt--,ne.dyn_ltree[2*(da[V]+Bn+1)]++,ne.dyn_dtree[2*vs(qt)]++),ne.last_lit===ne.lit_bufsize-1}var dt=286,et=30,Tn=19,Gi=2*dt+1,Ys=15,co=3,Hi=258,to=Hi+co+1,mo=32,Or=42,sa=69,aa=73,Xa=91,ar=103,qr=113,bt=666,Mt=1,Xt=2,yn=3,Qn=4,Ci=3;function $i(ne,qt){return ne.msg=Be[qt],qt}function Us(ne){return(ne<<1)-(ne>4?9:0)}function Is(ne){for(var qt=ne.length;--qt>=0;)ne[qt]=0}function Ns(ne){var qt=ne.state,V=qt.pending;V>ne.avail_out&&(V=ne.avail_out),0!==V&&(Ft(ne.output,qt.pending_buf,qt.pending_out,V,ne.next_out),ne.next_out+=V,qt.pending_out+=V,ne.total_out+=V,ne.avail_out-=V,qt.pending-=V,0===qt.pending&&(qt.pending_out=0))}function Js(ne,qt){(function or(ne,qt,V,re){var Ie,qe,Zt=0;ne.level>0?(ne.strm.data_type===Ye&&(ne.strm.data_type=function uo(ne){var V,qt=4093624447;for(V=0;V<=31;V++,qt>>>=1)if(1&qt&&0!==ne.dyn_ltree[2*V])return Ee;if(0!==ne.dyn_ltree[18]||0!==ne.dyn_ltree[20]||0!==ne.dyn_ltree[26])return ke;for(V=32;V<Bn;V++)if(0!==ne.dyn_ltree[2*V])return ke;return Ee}(ne)),vo(ne,ne.l_desc),vo(ne,ne.d_desc),Zt=function Gr(ne){var qt;for(oa(ne,ne.dyn_ltree,ne.l_desc.max_code),oa(ne,ne.dyn_dtree,ne.d_desc.max_code),vo(ne,ne.bl_desc),qt=Pe-1;qt>=3&&0===ne.bl_tree[2*_i[qt]+1];qt--);return ne.opt_len+=3*(qt+1)+5+5+4,qt}(ne),(qe=ne.static_len+3+7>>>3)<=(Ie=ne.opt_len+3+7>>>3)&&(Ie=qe)):Ie=qe=V+5,V+4<=Ie&&-1!==qt?Er(ne,qt,V,re):ne.strategy===Q||qe===Ie?(Nr(ne,(ys<<1)+(re?1:0),3),Ho(ne,Ks,So)):(Nr(ne,(Mo<<1)+(re?1:0),3),function Xr(ne,qt,V,re){var Ie;for(Nr(ne,qt-257,5),Nr(ne,V-1,5),Nr(ne,re-4,4),Ie=0;Ie<re;Ie++)Nr(ne,ne.bl_tree[2*_i[Ie]+1],3);Ka(ne,ne.dyn_ltree,qt-1),Ka(ne,ne.dyn_dtree,V-1)}(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Zt+1),Ho(ne,ne.dyn_ltree,ne.dyn_dtree)),Lr(ne),re&&ur(ne)})(ne,ne.block_start>=0?ne.block_start:-1,ne.strstart-ne.block_start,qt),ne.block_start=ne.strstart,Ns(ne.strm)}function $s(ne,qt){ne.pending_buf[ne.pending++]=qt}function mr(ne,qt){ne.pending_buf[ne.pending++]=qt>>>8&255,ne.pending_buf[ne.pending++]=255&qt}function Lo(ne,qt,V,re){var Ie=ne.avail_in;return Ie>re&&(Ie=re),0===Ie?0:(ne.avail_in-=Ie,Ft(qt,ne.input,ne.next_in,Ie,V),1===ne.state.wrap?ne.adler=It(ne.adler,qt,Ie,V):2===ne.state.wrap&&(ne.adler=Nn(ne.adler,qt,Ie,V)),ne.next_in+=Ie,ne.total_in+=Ie,Ie)}function yr(ne,qt){var Ie,qe,V=ne.max_chain_length,re=ne.strstart,Zt=ne.prev_length,Rn=ne.nice_match,ii=ne.strstart>ne.w_size-to?ne.strstart-(ne.w_size-to):0,$n=ne.window,Ii=ne.w_mask,ro=ne.prev,rs=ne.strstart+Hi,Ki=$n[re+Zt-1],Ss=$n[re+Zt];ne.prev_length>=ne.good_match&&(V>>=2),Rn>ne.lookahead&&(Rn=ne.lookahead);do{if($n[(Ie=qt)+Zt]===Ss&&$n[Ie+Zt-1]===Ki&&$n[Ie]===$n[re]&&$n[++Ie]===$n[re+1]){re+=2,Ie++;do{}while($n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&$n[++re]===$n[++Ie]&&re<rs);if(qe=Hi-(rs-re),re=rs-Hi,qe>Zt){if(ne.match_start=qt,Zt=qe,qe>=Rn)break;Ki=$n[re+Zt-1],Ss=$n[re+Zt]}}}while((qt=ro[qt&Ii])>ii&&0!=--V);return Zt<=ne.lookahead?Zt:ne.lookahead}function Yr(ne){var V,re,Ie,qe,Zt,qt=ne.w_size;do{if(qe=ne.window_size-ne.lookahead-ne.strstart,ne.strstart>=qt+(qt-to)){Ft(ne.window,ne.window,qt,qt,0),ne.match_start-=qt,ne.strstart-=qt,ne.block_start-=qt,V=re=ne.hash_size;do{Ie=ne.head[--V],ne.head[V]=Ie>=qt?Ie-qt:0}while(--re);V=re=qt;do{Ie=ne.prev[--V],ne.prev[V]=Ie>=qt?Ie-qt:0}while(--re);qe+=qt}if(0===ne.strm.avail_in)break;if(re=Lo(ne.strm,ne.window,ne.strstart+ne.lookahead,qe),ne.lookahead+=re,ne.lookahead+ne.insert>=co)for(ne.ins_h=ne.window[Zt=ne.strstart-ne.insert],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[Zt+1])&ne.hash_mask;ne.insert&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[Zt+co-1])&ne.hash_mask,ne.prev[Zt&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=Zt,Zt++,ne.insert--,!(ne.lookahead+ne.insert<co)););}while(ne.lookahead<to&&0!==ne.strm.avail_in)}function Vo(ne,qt){var V=65535;for(V>ne.pending_buf_size-5&&(V=ne.pending_buf_size-5);;){if(ne.lookahead<=1){if(Yr(ne),0===ne.lookahead&&qt===e)return Mt;if(0===ne.lookahead)break}ne.strstart+=ne.lookahead,ne.lookahead=0;var re=ne.block_start+V;if((0===ne.strstart||ne.strstart>=re)&&(ne.lookahead=ne.strstart-re,ne.strstart=re,Js(ne,!1),0===ne.strm.avail_out)||ne.strstart-ne.block_start>=ne.w_size-to&&(Js(ne,!1),0===ne.strm.avail_out))return Mt}return ne.insert=0,qt===G?(Js(ne,!0),0===ne.strm.avail_out?yn:Qn):(ne.strstart>ne.block_start&&Js(ne,!1),Mt)}function Wr(ne,qt){for(var V,re;;){if(ne.lookahead<to){if(Yr(ne),ne.lookahead<to&&qt===e)return Mt;if(0===ne.lookahead)break}if(V=0,ne.lookahead>=co&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+co-1])&ne.hash_mask,V=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),0!==V&&ne.strstart-V<=ne.w_size-to&&(ne.match_length=yr(ne,V)),ne.match_length>=co)if(re=rr(ne,ne.strstart-ne.match_start,ne.match_length-co),ne.lookahead-=ne.match_length,ne.match_length<=ne.max_lazy_match&&ne.lookahead>=co){ne.match_length--;do{ne.strstart++,ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+co-1])&ne.hash_mask,V=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart}while(0!=--ne.match_length);ne.strstart++}else ne.strstart+=ne.match_length,ne.match_length=0,ne.ins_h=ne.window[ne.strstart],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+1])&ne.hash_mask;else re=rr(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++;if(re&&(Js(ne,!1),0===ne.strm.avail_out))return Mt}return ne.insert=ne.strstart<co-1?ne.strstart:co-1,qt===G?(Js(ne,!0),0===ne.strm.avail_out?yn:Qn):ne.last_lit&&(Js(ne,!1),0===ne.strm.avail_out)?Mt:Xt}function Oo(ne,qt){for(var V,re,Ie;;){if(ne.lookahead<to){if(Yr(ne),ne.lookahead<to&&qt===e)return Mt;if(0===ne.lookahead)break}if(V=0,ne.lookahead>=co&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+co-1])&ne.hash_mask,V=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),ne.prev_length=ne.match_length,ne.prev_match=ne.match_start,ne.match_length=co-1,0!==V&&ne.prev_length<ne.max_lazy_match&&ne.strstart-V<=ne.w_size-to&&(ne.match_length=yr(ne,V),ne.match_length<=5&&(ne.strategy===q||ne.match_length===co&&ne.strstart-ne.match_start>4096)&&(ne.match_length=co-1)),ne.prev_length>=co&&ne.match_length<=ne.prev_length){Ie=ne.strstart+ne.lookahead-co,re=rr(ne,ne.strstart-1-ne.prev_match,ne.prev_length-co),ne.lookahead-=ne.prev_length-1,ne.prev_length-=2;do{++ne.strstart<=Ie&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+co-1])&ne.hash_mask,V=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart)}while(0!=--ne.prev_length);if(ne.match_available=0,ne.match_length=co-1,ne.strstart++,re&&(Js(ne,!1),0===ne.strm.avail_out))return Mt}else if(ne.match_available){if((re=rr(ne,0,ne.window[ne.strstart-1]))&&Js(ne,!1),ne.strstart++,ne.lookahead--,0===ne.strm.avail_out)return Mt}else ne.match_available=1,ne.strstart++,ne.lookahead--}return ne.match_available&&(re=rr(ne,0,ne.window[ne.strstart-1]),ne.match_available=0),ne.insert=ne.strstart<co-1?ne.strstart:co-1,qt===G?(Js(ne,!0),0===ne.strm.avail_out?yn:Qn):ne.last_lit&&(Js(ne,!1),0===ne.strm.avail_out)?Mt:Xt}function la(ne,qt,V,re,Ie){this.good_length=ne,this.max_lazy=qt,this.nice_length=V,this.max_chain=re,this.func=Ie}let Br=function(){const ne=[new la(0,0,0,0,Vo),new la(4,4,8,4,Wr),new la(4,5,16,8,Wr),new la(4,6,32,32,Wr),new la(4,4,16,16,Oo),new la(8,16,32,32,Oo),new la(8,16,128,128,Oo),new la(8,32,128,256,Oo),new la(32,128,258,1024,Oo),new la(32,258,258,4096,Oo)];return Br=()=>ne,ne};function br(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ct,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=$e(2*Gi),this.dyn_dtree=$e(2*(2*et+1)),this.bl_tree=$e(2*(2*Tn+1)),Is(this.dyn_ltree),Is(this.dyn_dtree),Is(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=$e(Ys+1),this.heap=$e(2*dt+1),Is(this.heap),this.heap_len=0,this.heap_max=0,this.depth=$e(2*dt+1),Is(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ur(ne){var qt=function wl(ne){var qt;return ne&&ne.state?(ne.total_in=ne.total_out=0,ne.data_type=Ye,(qt=ne.state).pending=0,qt.pending_out=0,qt.wrap<0&&(qt.wrap=-qt.wrap),qt.status=qt.wrap?Or:qr,ne.adler=2===qt.wrap?0:1,qt.last_flush=e,function Cr(ne){No||(function Ws(){var ne,qt,V,re,Ie,qe=new Array(z+1);for(ni(Ks=new Array(2*(ti+2))),ni(So=new Array(2*Ui)),ni(wo=new Array(Wi)),ni(da=new Array(Ps-bo+1)),ni(ia=new Array(Wt)),ni(jr=new Array(Ui)),V=0,re=0;re<Wt-1;re++)for(ia[re]=V,ne=0;ne<1<<dn[re];ne++)da[V++]=re;for(da[V-1]=re,Ie=0,re=0;re<16;re++)for(jr[re]=Ie,ne=0;ne<1<<wi[re];ne++)wo[Ie++]=re;for(Ie>>=7;re<Ui;re++)for(jr[re]=Ie<<7,ne=0;ne<1<<wi[re]-7;ne++)wo[256+Ie++]=re;for(qt=0;qt<=z;qt++)qe[qt]=0;for(ne=0;ne<=143;)Ks[2*ne+1]=8,ne++,qe[8]++;for(;ne<=255;)Ks[2*ne+1]=9,ne++,qe[9]++;for(;ne<=279;)Ks[2*ne+1]=7,ne++,qe[7]++;for(;ne<=287;)Ks[2*ne+1]=8,ne++,qe[8]++;for(fr(Ks,ti+1,qe),ne=0;ne<Ui;ne++)So[2*ne+1]=5,So[2*ne]=cr(ne,5);Qs=new Rr(Ks,dn,Bn+1,ti,z),Hs=new Rr(So,wi,0,Ui,z),Pr=new Rr(new Array(0),Gt,0,Pe,on)}(),No=!0),ne.l_desc=new kr(ne.dyn_ltree,Qs),ne.d_desc=new kr(ne.dyn_dtree,Hs),ne.bl_desc=new kr(ne.bl_tree,Pr),ne.bi_buf=0,ne.bi_valid=0,Lr(ne)}(qt),R):$i(ne,Y)}(ne);return qt===R&&function Il(ne){ne.window_size=2*ne.w_size,Is(ne.head);const qt=Br();ne.max_lazy_match=qt[ne.level].max_lazy,ne.good_match=qt[ne.level].good_length,ne.nice_match=qt[ne.level].nice_length,ne.max_chain_length=qt[ne.level].max_chain,ne.strstart=0,ne.block_start=0,ne.lookahead=0,ne.insert=0,ne.match_length=ne.prev_length=co-1,ne.match_available=0,ne.ins_h=0}(ne.state),qt}function ir(ne,qt){var V,re,Ie,qe;if(!ne||!ne.state||qt>F||qt<0)return ne?$i(ne,Y):Y;if(re=ne.state,!ne.output||!ne.input&&0!==ne.avail_in||re.status===bt&&qt!==G)return $i(ne,0===ne.avail_out?se:Y);if(re.strm=ne,V=re.last_flush,re.last_flush=qt,re.status===Or)if(2===re.wrap)ne.adler=0,$s(re,31),$s(re,139),$s(re,8),re.gzhead?($s(re,(re.gzhead.text?1:0)+(re.gzhead.hcrc?2:0)+(re.gzhead.extra?4:0)+(re.gzhead.name?8:0)+(re.gzhead.comment?16:0)),$s(re,255&re.gzhead.time),$s(re,re.gzhead.time>>8&255),$s(re,re.gzhead.time>>16&255),$s(re,re.gzhead.time>>24&255),$s(re,9===re.level?2:re.strategy>=we||re.level<2?4:0),$s(re,255&re.gzhead.os),re.gzhead.extra&&re.gzhead.extra.length&&($s(re,255&re.gzhead.extra.length),$s(re,re.gzhead.extra.length>>8&255)),re.gzhead.hcrc&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending,0)),re.gzindex=0,re.status=sa):($s(re,0),$s(re,0),$s(re,0),$s(re,0),$s(re,0),$s(re,9===re.level?2:re.strategy>=we||re.level<2?4:0),$s(re,Ci),re.status=qr);else{var Zt=ct+(re.w_bits-8<<4)<<8;Zt|=(re.strategy>=we||re.level<2?0:re.level<6?1:6===re.level?2:3)<<6,0!==re.strstart&&(Zt|=mo),Zt+=31-Zt%31,re.status=qr,mr(re,Zt),0!==re.strstart&&(mr(re,ne.adler>>>16),mr(re,65535&ne.adler)),ne.adler=1}if(re.status===sa)if(re.gzhead.extra){for(Ie=re.pending;re.gzindex<(65535&re.gzhead.extra.length)&&(re.pending!==re.pending_buf_size||(re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),Ns(ne),Ie=re.pending,re.pending!==re.pending_buf_size));)$s(re,255&re.gzhead.extra[re.gzindex]),re.gzindex++;re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),re.gzindex===re.gzhead.extra.length&&(re.gzindex=0,re.status=aa)}else re.status=aa;if(re.status===aa)if(re.gzhead.name){Ie=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),Ns(ne),Ie=re.pending,re.pending===re.pending_buf_size)){qe=1;break}qe=re.gzindex<re.gzhead.name.length?255&re.gzhead.name.charCodeAt(re.gzindex++):0,$s(re,qe)}while(0!==qe);re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),0===qe&&(re.gzindex=0,re.status=Xa)}else re.status=Xa;if(re.status===Xa)if(re.gzhead.comment){Ie=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),Ns(ne),Ie=re.pending,re.pending===re.pending_buf_size)){qe=1;break}qe=re.gzindex<re.gzhead.comment.length?255&re.gzhead.comment.charCodeAt(re.gzindex++):0,$s(re,qe)}while(0!==qe);re.gzhead.hcrc&&re.pending>Ie&&(ne.adler=Nn(ne.adler,re.pending_buf,re.pending-Ie,Ie)),0===qe&&(re.status=ar)}else re.status=ar;if(re.status===ar&&(re.gzhead.hcrc?(re.pending+2>re.pending_buf_size&&Ns(ne),re.pending+2<=re.pending_buf_size&&($s(re,255&ne.adler),$s(re,ne.adler>>8&255),ne.adler=0,re.status=qr)):re.status=qr),0!==re.pending){if(Ns(ne),0===ne.avail_out)return re.last_flush=-1,R}else if(0===ne.avail_in&&Us(qt)<=Us(V)&&qt!==G)return $i(ne,se);if(re.status===bt&&0!==ne.avail_in)return $i(ne,se);if(0!==ne.avail_in||0!==re.lookahead||qt!==e&&re.status!==bt){var ii=re.strategy===we?function ea(ne,qt){for(var V;;){if(0===ne.lookahead&&(Yr(ne),0===ne.lookahead)){if(qt===e)return Mt;break}if(ne.match_length=0,V=rr(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,V&&(Js(ne,!1),0===ne.strm.avail_out))return Mt}return ne.insert=0,qt===G?(Js(ne,!0),0===ne.strm.avail_out?yn:Qn):ne.last_lit&&(Js(ne,!1),0===ne.strm.avail_out)?Mt:Xt}(re,qt):re.strategy===ae?function Ta(ne,qt){for(var V,re,Ie,qe,Zt=ne.window;;){if(ne.lookahead<=Hi){if(Yr(ne),ne.lookahead<=Hi&&qt===e)return Mt;if(0===ne.lookahead)break}if(ne.match_length=0,ne.lookahead>=co&&ne.strstart>0&&(re=Zt[Ie=ne.strstart-1])===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]){qe=ne.strstart+Hi;do{}while(re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&re===Zt[++Ie]&&Ie<qe);ne.match_length=Hi-(qe-Ie),ne.match_length>ne.lookahead&&(ne.match_length=ne.lookahead)}if(ne.match_length>=co?(V=rr(ne,1,ne.match_length-co),ne.lookahead-=ne.match_length,ne.strstart+=ne.match_length,ne.match_length=0):(V=rr(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++),V&&(Js(ne,!1),0===ne.strm.avail_out))return Mt}return ne.insert=0,qt===G?(Js(ne,!0),0===ne.strm.avail_out?yn:Qn):ne.last_lit&&(Js(ne,!1),0===ne.strm.avail_out)?Mt:Xt}(re,qt):Br()[re.level].func(re,qt);if((ii===yn||ii===Qn)&&(re.status=bt),ii===Mt||ii===yn)return 0===ne.avail_out&&(re.last_flush=-1),R;if(ii===Xt&&(qt===o?function zr(ne){Nr(ne,ys<<1,3),so(ne,Hn,Ks),function fo(ne){16===ne.bi_valid?(ko(ne,ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0):ne.bi_valid>=8&&(ne.pending_buf[ne.pending++]=255&ne.bi_buf,ne.bi_buf>>=8,ne.bi_valid-=8)}(ne)}(re):qt!==F&&(Er(re,0,0,!1),qt===A&&(Is(re.head),0===re.lookahead&&(re.strstart=0,re.block_start=0,re.insert=0))),Ns(ne),0===ne.avail_out))return re.last_flush=-1,R}return qt!==G?R:re.wrap<=0?P:(2===re.wrap?($s(re,255&ne.adler),$s(re,ne.adler>>8&255),$s(re,ne.adler>>16&255),$s(re,ne.adler>>24&255),$s(re,255&ne.total_in),$s(re,ne.total_in>>8&255),$s(re,ne.total_in>>16&255),$s(re,ne.total_in>>24&255)):(mr(re,ne.adler>>>16),mr(re,65535&ne.adler)),Ns(ne),re.wrap>0&&(re.wrap=-re.wrap),0!==re.pending?R:P)}var qa=Object.prototype.toString;class Ml{constructor(qt){this.options=Ct({level:-1,method:ct,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},qt||{});var V=this.options;V.raw&&V.windowBits>0?V.windowBits=-V.windowBits:V.gzip&&V.windowBits>0&&V.windowBits<16&&(V.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Jt,this.strm.avail_out=0;var re=function ha(ne,qt,V,re,Ie,qe){if(!ne)return Y;var Zt=1;if(-1===qt&&(qt=6),re<0?(Zt=0,re=-re):re>15&&(Zt=2,re-=16),Ie<1||Ie>9||V!==ct||re<8||re>15||qt<0||qt>9||qe<0||qe>Q)return $i(ne,Y);8===re&&(re=9);var Rn=new br;return ne.state=Rn,Rn.strm=ne,Rn.wrap=Zt,Rn.gzhead=null,Rn.w_bits=re,Rn.w_size=1<<Rn.w_bits,Rn.w_mask=Rn.w_size-1,Rn.hash_bits=Ie+7,Rn.hash_size=1<<Rn.hash_bits,Rn.hash_mask=Rn.hash_size-1,Rn.hash_shift=~~((Rn.hash_bits+co-1)/co),Rn.window=Ze(2*Rn.w_size),Rn.head=$e(Rn.hash_size),Rn.prev=$e(Rn.w_size),Rn.lit_bufsize=1<<Ie+6,Rn.pending_buf_size=4*Rn.lit_bufsize,Rn.pending_buf=Ze(Rn.pending_buf_size),Rn.d_buf=1*Rn.lit_bufsize,Rn.l_buf=3*Rn.lit_bufsize,Rn.level=qt,Rn.strategy=qe,Rn.method=V,Ur(ne)}(this.strm,V.level,V.method,V.windowBits,V.memLevel,V.strategy);if(re!==R)throw new Error(Be[re]);if(V.header&&function er(ne,qt){ne&&ne.state&&2===ne.state.wrap&&(ne.state.gzhead=qt)}(this.strm,V.header),V.dictionary){var Ie;if(Ie="string"==typeof V.dictionary?Kt(V.dictionary):"[object ArrayBuffer]"===qa.call(V.dictionary)?new Uint8Array(V.dictionary):V.dictionary,re=function jl(ne,qt){var re,Ie,qe,Zt,Rn,ii,$n,Ii,V=qt.length;if(!ne||!ne.state||2===(Zt=(re=ne.state).wrap)||1===Zt&&re.status!==Or||re.lookahead)return Y;for(1===Zt&&(ne.adler=It(ne.adler,qt,V,0)),re.wrap=0,V>=re.w_size&&(0===Zt&&(Is(re.head),re.strstart=0,re.block_start=0,re.insert=0),Ii=Ze(re.w_size),Ft(Ii,qt,V-re.w_size,re.w_size,0),qt=Ii,V=re.w_size),Rn=ne.avail_in,ii=ne.next_in,$n=ne.input,ne.avail_in=V,ne.next_in=0,ne.input=qt,Yr(re);re.lookahead>=co;){Ie=re.strstart,qe=re.lookahead-(co-1);do{re.ins_h=(re.ins_h<<re.hash_shift^re.window[Ie+co-1])&re.hash_mask,re.prev[Ie&re.w_mask]=re.head[re.ins_h],re.head[re.ins_h]=Ie,Ie++}while(--qe);re.strstart=Ie,re.lookahead=co-1,Yr(re)}return re.strstart+=re.lookahead,re.block_start=re.strstart,re.insert=re.lookahead,re.lookahead=0,re.match_length=re.prev_length=co-1,re.match_available=0,ne.next_in=ii,ne.input=$n,ne.avail_in=Rn,re.wrap=Zt,R}(this.strm,Ie),re!==R)throw new Error(Be[re]);this._dict_set=!0}}push(qt,V){var qe,Zt,ne,re=this.strm,Ie=this.options.chunkSize;if(this.ended)return!1;Zt=V===~~V?V:!0===V?G:e,re.input="string"==typeof qt?Kt(qt):"[object ArrayBuffer]"===qa.call(qt)?new Uint8Array(qt):qt,re.next_in=0,re.avail_in=re.input.length;do{if(0===re.avail_out&&(re.output=Ze(Ie),re.next_out=0,re.avail_out=Ie),(qe=ir(re,Zt))!==P&&qe!==R)return this.onEnd(qe),this.ended=!0,!1;(0===re.avail_out||0===re.avail_in&&(Zt===G||2===Zt))&&this.onData("string"===this.options.to?$t(ne=Ue(re.output,re.next_out),ne.length):Ue(re.output,re.next_out))}while((re.avail_in>0||0===re.avail_out)&&qe!==P);return Zt===G?(qe=function Tl(ne){var qt;return ne&&ne.state?(qt=ne.state.status)!==Or&&qt!==sa&&qt!==aa&&qt!==Xa&&qt!==ar&&qt!==qr&&qt!==bt?$i(ne,Y):(ne.state=null,qt===qr?$i(ne,-3):R):Y}(this.strm),this.onEnd(qe),this.ended=!0,qe===R):(2===Zt&&(this.onEnd(R),re.avail_out=0),!0)}onData(qt){this.chunks.push(qt)}onEnd(qt){qt===R&&(this.result="string"===this.options.to?this.chunks.join(""):st(this.chunks)),this.chunks=[],this.err=qt,this.msg=this.strm.msg}}function ca(ne,qt){var V=new Ml(qt);if(V.push(ne,!0),V.err)throw V.msg||Be[V.err];return V.result}},94482:fn=>{"use strict";function ve(_,e){for(var T,o=0,A=_.length;o<A;o++)T=_[o],Array.isArray(T)?ve(T,e):e.push(T);return e}fn.exports=function(_){return ve(_,[])}},75834:(fn,ve,_)=>{"use strict";var e=_(95203),o=_(55685),T=o(e("String.prototype.indexOf"));fn.exports=function(G,F){var N=e(G,!!F);return"function"==typeof N&&T(G,".prototype.")>-1?o(N):N}},55685:(fn,ve,_)=>{"use strict";var e=_(84444),o=_(95203),T=_(9511),A=o("%TypeError%"),G=o("%Function.prototype.apply%"),F=o("%Function.prototype.call%"),N=o("%Reflect.apply%",!0)||e.call(F,G),R=o("%Object.defineProperty%",!0),P=o("%Math.max%");if(R)try{R({},"a",{value:1})}catch{R=null}fn.exports=function(Y){if("function"!=typeof Y)throw new A("a function is required");var ee=N(e,F,arguments);return T(ee,1+P(0,Y.length-(arguments.length-1)),!0)};var y=function(){return N(e,G,arguments)};R?R(fn.exports,"apply",{value:y}):fn.exports.apply=y},27484:(fn,ve,_)=>{"use strict";var e=_(77027)(),o=_(95203),T=e&&o("%Object.defineProperty%",!0);if(T)try{T({},"a",{value:1})}catch{T=!1}var A=o("%SyntaxError%"),G=o("%TypeError%"),F=_(47378);fn.exports=function(R,P,y){if(!R||"object"!=typeof R&&"function"!=typeof R)throw new G("`obj` must be an object or a function`");if("string"!=typeof P&&"symbol"!=typeof P)throw new G("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new G("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new G("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new G("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new G("`loose`, if provided, must be a boolean");var j=arguments.length>3?arguments[3]:null,Y=arguments.length>4?arguments[4]:null,ee=arguments.length>5?arguments[5]:null,se=arguments.length>6&&arguments[6],he=!!F&&F(R,P);if(T)T(R,P,{configurable:null===ee&&he?he.configurable:!ee,enumerable:null===j&&he?he.enumerable:!j,value:y,writable:null===Y&&he?he.writable:!Y});else{if(!se&&(j||Y||ee))throw new A("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");R[P]=y}}},59069:fn=>{"use strict";var e,ve="object"==typeof Reflect?Reflect:null,_=ve&&"function"==typeof ve.apply?ve.apply:function(we,ae,Q){return Function.prototype.apply.call(we,ae,Q)};e=ve&&"function"==typeof ve.ownKeys?ve.ownKeys:Object.getOwnPropertySymbols?function(we){return Object.getOwnPropertyNames(we).concat(Object.getOwnPropertySymbols(we))}:function(we){return Object.getOwnPropertyNames(we)};var T=Number.isNaN||function(we){return we!=we};function A(){A.init.call(this)}fn.exports=A,fn.exports.once=function Se(q,we){return new Promise(function(ae,Q){function pe(ke){q.removeListener(we,Ee),Q(ke)}function Ee(){"function"==typeof q.removeListener&&q.removeListener("error",pe),ae([].slice.call(arguments))}oe(q,we,Ee,{once:!0}),"error"!==we&&function te(q,we,ae){"function"==typeof q.on&&oe(q,"error",we,ae)}(q,pe,{once:!0})})},A.EventEmitter=A,A.prototype._events=void 0,A.prototype._eventsCount=0,A.prototype._maxListeners=void 0;var G=10;function F(q){if("function"!=typeof q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof q)}function N(q){return void 0===q._maxListeners?A.defaultMaxListeners:q._maxListeners}function R(q,we,ae,Q){var pe,Ee,ke;if(F(ae),void 0===(Ee=q._events)?(Ee=q._events=Object.create(null),q._eventsCount=0):(void 0!==Ee.newListener&&(q.emit("newListener",we,ae.listener?ae.listener:ae),Ee=q._events),ke=Ee[we]),void 0===ke)ke=Ee[we]=ae,++q._eventsCount;else if("function"==typeof ke?ke=Ee[we]=Q?[ae,ke]:[ke,ae]:Q?ke.unshift(ae):ke.push(ae),(pe=N(q))>0&&ke.length>pe&&!ke.warned){ke.warned=!0;var Ye=new Error("Possible EventEmitter memory leak detected. "+ke.length+" "+String(we)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ye.name="MaxListenersExceededWarning",Ye.emitter=q,Ye.type=we,Ye.count=ke.length,function o(q){console&&console.warn&&console.warn(q)}(Ye)}return q}function P(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(q,we,ae){var Q={fired:!1,wrapFn:void 0,target:q,type:we,listener:ae},pe=P.bind(Q);return pe.listener=ae,Q.wrapFn=pe,pe}function j(q,we,ae){var Q=q._events;if(void 0===Q)return[];var pe=Q[we];return void 0===pe?[]:"function"==typeof pe?ae?[pe.listener||pe]:[pe]:ae?function he(q){for(var we=new Array(q.length),ae=0;ae<we.length;++ae)we[ae]=q[ae].listener||q[ae];return we}(pe):ee(pe,pe.length)}function Y(q){var we=this._events;if(void 0!==we){var ae=we[q];if("function"==typeof ae)return 1;if(void 0!==ae)return ae.length}return 0}function ee(q,we){for(var ae=new Array(we),Q=0;Q<we;++Q)ae[Q]=q[Q];return ae}function oe(q,we,ae,Q){if("function"==typeof q.on)Q.once?q.once(we,ae):q.on(we,ae);else{if("function"!=typeof q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof q);q.addEventListener(we,function pe(Ee){Q.once&&q.removeEventListener(we,pe),ae(Ee)})}}Object.defineProperty(A,"defaultMaxListeners",{enumerable:!0,get:function(){return G},set:function(q){if("number"!=typeof q||q<0||T(q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+q+".");G=q}}),A.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},A.prototype.setMaxListeners=function(we){if("number"!=typeof we||we<0||T(we))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+we+".");return this._maxListeners=we,this},A.prototype.getMaxListeners=function(){return N(this)},A.prototype.emit=function(we){for(var ae=[],Q=1;Q<arguments.length;Q++)ae.push(arguments[Q]);var pe="error"===we,Ee=this._events;if(void 0!==Ee)pe=pe&&void 0===Ee.error;else if(!pe)return!1;if(pe){var ke;if(ae.length>0&&(ke=ae[0]),ke instanceof Error)throw ke;var Ye=new Error("Unhandled error."+(ke?" ("+ke.message+")":""));throw Ye.context=ke,Ye}var ct=Ee[we];if(void 0===ct)return!1;if("function"==typeof ct)_(ct,this,ae);else{var ut=ct.length,Ct=ee(ct,ut);for(Q=0;Q<ut;++Q)_(Ct[Q],this,ae)}return!0},A.prototype.on=A.prototype.addListener=function(we,ae){return R(this,we,ae,!1)},A.prototype.prependListener=function(we,ae){return R(this,we,ae,!0)},A.prototype.once=function(we,ae){return F(ae),this.on(we,y(this,we,ae)),this},A.prototype.prependOnceListener=function(we,ae){return F(ae),this.prependListener(we,y(this,we,ae)),this},A.prototype.off=A.prototype.removeListener=function(we,ae){var Q,pe,Ee,ke,Ye;if(F(ae),void 0===(pe=this._events))return this;if(void 0===(Q=pe[we]))return this;if(Q===ae||Q.listener===ae)0==--this._eventsCount?this._events=Object.create(null):(delete pe[we],pe.removeListener&&this.emit("removeListener",we,Q.listener||ae));else if("function"!=typeof Q){for(Ee=-1,ke=Q.length-1;ke>=0;ke--)if(Q[ke]===ae||Q[ke].listener===ae){Ye=Q[ke].listener,Ee=ke;break}if(Ee<0)return this;0===Ee?Q.shift():function se(q,we){for(;we+1<q.length;we++)q[we]=q[we+1];q.pop()}(Q,Ee),1===Q.length&&(pe[we]=Q[0]),void 0!==pe.removeListener&&this.emit("removeListener",we,Ye||ae)}return this},A.prototype.removeAllListeners=function(we){var ae,Q,pe;if(void 0===(Q=this._events))return this;if(void 0===Q.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==Q[we]&&(0==--this._eventsCount?this._events=Object.create(null):delete Q[we]),this;if(0===arguments.length){var ke,Ee=Object.keys(Q);for(pe=0;pe<Ee.length;++pe)"removeListener"!==(ke=Ee[pe])&&this.removeAllListeners(ke);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(ae=Q[we]))this.removeListener(we,ae);else if(void 0!==ae)for(pe=ae.length-1;pe>=0;pe--)this.removeListener(we,ae[pe]);return this},A.prototype.listeners=function(we){return j(this,we,!0)},A.prototype.rawListeners=function(we){return j(this,we,!1)},A.listenerCount=function(q,we){return"function"==typeof q.listenerCount?q.listenerCount(we):Y.call(q,we)},A.prototype.listenerCount=Y,A.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},68473:fn=>{"use strict";fn.exports=function(_,e,o){for(var T in _)if(!1===e.call(o,_[T],T,_))break}},20224:(fn,ve,_)=>{"use strict";var e=_(68473),o=Object.prototype.hasOwnProperty;fn.exports=function(A,G,F){e(A,function(N,R){if(o.call(A,R))return G.call(F,A[R],R,A)})}},83457:fn=>{"use strict";var ve="Function.prototype.bind called on incompatible ",_=Object.prototype.toString,e=Math.max,o="[object Function]",T=function(N,R){for(var P=[],y=0;y<N.length;y+=1)P[y]=N[y];for(var j=0;j<R.length;j+=1)P[j+N.length]=R[j];return P},A=function(N,R){for(var P=[],y=R||0,j=0;y<N.length;y+=1,j+=1)P[j]=N[y];return P},G=function(F,N){for(var R="",P=0;P<F.length;P+=1)R+=F[P],P+1<F.length&&(R+=N);return R};fn.exports=function(N){var R=this;if("function"!=typeof R||_.apply(R)!==o)throw new TypeError(ve+R);for(var y,P=A(arguments,1),Y=e(0,R.length-P.length),ee=[],se=0;se<Y;se++)ee[se]="$"+se;if(y=Function("binder","return function ("+G(ee,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof y){var Se=R.apply(this,T(P,arguments));return Object(Se)===Se?Se:this}return R.apply(N,T(P,arguments))}),R.prototype){var he=function(){};he.prototype=R.prototype,y.prototype=new he,he.prototype=null}return y}},84444:(fn,ve,_)=>{"use strict";var e=_(83457);fn.exports=Function.prototype.bind||e},95203:(fn,ve,_)=>{"use strict";var e,o=SyntaxError,T=Function,A=TypeError,G=function(Ct){try{return T('"use strict"; return ('+Ct+").constructor;")()}catch{}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch{F=null}var N=function(){throw new A},R=F?function(){try{return N}catch{try{return F(arguments,"callee").get}catch{return N}}}():N,P=_(92969)(),y=_(49757)(),j=Object.getPrototypeOf||(y?function(Ct){return Ct.__proto__}:null),Y={},ee=typeof Uint8Array>"u"||!j?e:j(Uint8Array),se={"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&j?j([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&j?j(j([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!j?e:j((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!j?e:j((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&j?j(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":R,"%TypedArray%":ee,"%TypeError%":A,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(j)try{null.error}catch(Ct){var he=j(j(Ct));se["%Error.prototype%"]=he}var Se=function Ct(Ue){var vt;if("%AsyncFunction%"===Ue)vt=G("async function () {}");else if("%GeneratorFunction%"===Ue)vt=G("function* () {}");else if("%AsyncGeneratorFunction%"===Ue)vt=G("async function* () {}");else if("%AsyncGenerator%"===Ue){var ln=Ct("%AsyncGeneratorFunction%");ln&&(vt=ln.prototype)}else if("%AsyncIteratorPrototype%"===Ue){var Je=Ct("%AsyncGenerator%");Je&&j&&(vt=j(Je.prototype))}return se[Ue]=vt,vt},te={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},oe=_(84444),q=_(27699),we=oe.call(Function.call,Array.prototype.concat),ae=oe.call(Function.apply,Array.prototype.splice),Q=oe.call(Function.call,String.prototype.replace),pe=oe.call(Function.call,String.prototype.slice),Ee=oe.call(Function.call,RegExp.prototype.exec),ke=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ye=/\\(\\)?/g,ct=function(Ue){var vt=pe(Ue,0,1),ln=pe(Ue,-1);if("%"===vt&&"%"!==ln)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===ln&&"%"!==vt)throw new o("invalid intrinsic syntax, expected opening `%`");var Je=[];return Q(Ue,ke,function(Ft,st,Ze,$e){Je[Je.length]=Ze?Q($e,Ye,"$1"):st||Ft}),Je},ut=function(Ue,vt){var Je,ln=Ue;if(q(te,ln)&&(ln="%"+(Je=te[ln])[0]+"%"),q(se,ln)){var Ft=se[ln];if(Ft===Y&&(Ft=Se(ln)),typeof Ft>"u"&&!vt)throw new A("intrinsic "+Ue+" exists, but is not available. Please file an issue!");return{alias:Je,name:ln,value:Ft}}throw new o("intrinsic "+Ue+" does not exist!")};fn.exports=function(Ue,vt){if("string"!=typeof Ue||0===Ue.length)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof vt)throw new A('"allowMissing" argument must be a boolean');if(null===Ee(/^%?[^%]*%?$/,Ue))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ln=ct(Ue),Je=ln.length>0?ln[0]:"",Ft=ut("%"+Je+"%",vt),st=Ft.name,Ze=Ft.value,$e=!1,Oe=Ft.alias;Oe&&(Je=Oe[0],ae(ln,we([0,1],Oe)));for(var Nt=1,xt=!0;Nt<ln.length;Nt+=1){var Ot=ln[Nt],Kt=pe(Ot,0,1),$t=pe(Ot,-1);if(('"'===Kt||"'"===Kt||"`"===Kt||'"'===$t||"'"===$t||"`"===$t)&&Kt!==$t)throw new o("property names with quotes must have matching quotes");if(("constructor"===Ot||!xt)&&($e=!0),q(se,st="%"+(Je+="."+Ot)+"%"))Ze=se[st];else if(null!=Ze){if(!(Ot in Ze)){if(!vt)throw new A("base intrinsic for "+Ue+" exists, but the property is not available.");return}if(F&&Nt+1>=ln.length){var rt=F(Ze,Ot);Ze=(xt=!!rt)&&"get"in rt&&!("originalValue"in rt.get)?rt.get:Ze[Ot]}else xt=q(Ze,Ot),Ze=Ze[Ot];xt&&!$e&&(se[st]=Ze)}}return Ze}},91485:(fn,ve,_)=>{const e=_(50623);function o(F,N,R){return"function"==typeof R.join?R.join(F):F[0]+N+F[1]}function A(F,N,R){return"function"!=typeof R.isValid||R.isValid(F,N)}function G(F){return e(F)||Array.isArray(F)||"function"==typeof F}fn.exports=function(F,N,R){if(e(R)||(R={default:R}),!G(F))return typeof R.default<"u"?R.default:F;"number"==typeof N&&(N=String(N));const P=Array.isArray(N),y="string"==typeof N,j=R.separator||".",Y=R.joinChar||("string"==typeof j?j:".");if(!y&&!P)return F;if(y&&N in F)return A(N,F,R)?F[N]:R.default;let ee=P?N:function T(F,N,R){return"function"==typeof R.split?R.split(F):F.split(N)}(N,j,R),se=ee.length,he=0;do{let Se=ee[he];for("number"==typeof Se&&(Se=String(Se));Se&&"\\"===Se.slice(-1);)Se=o([Se.slice(0,-1),ee[++he]||""],Y,R);if(Se in F){if(!A(Se,F,R))return R.default;F=F[Se]}else{let te=!1,oe=he+1;for(;oe<se;)if(Se=o([Se,ee[oe++]],Y,R),te=Se in F){if(!A(Se,F,R))return R.default;F=F[Se],he=oe-1;break}if(!te)return R.default}}while(++he<se&&G(F));return he===se?F:R.default}},47378:(fn,ve,_)=>{"use strict";var o=_(95203)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch{o=null}fn.exports=o},72781:(fn,ve,_)=>{"use strict";const e=_(75421),o=_(94482),T=_(55953),A=_(20224),G=_(52872),F=_(91485);function R(Y,ee,se){let he={};for(let Se=0;Se<Y.length;Se++){let oe,te=Y[Se];switch(oe="function"==typeof ee?ee.call(he,te,se):F(te,ee),G(oe)){case"undefined":break;case"string":case"number":case"boolean":T(he,j(String(oe)),te);break;case"object":case"array":P(he,te,oe);break;case"function":throw new Error("invalid argument type: "+se)}}return he}function P(Y,ee,se){Array.isArray(se)?se.forEach(he=>{T(Y,j(he),ee)}):A(se,(he,Se)=>{T(Y,j(Se),ee)})}function y(Y,ee){return A(Y,(se,he)=>{Y[he]=Array.isArray(se)?R(se,ee,he):y(se,ee)}),Y}function j(Y){try{return e(Y,{strict:!1,keepEscaping:!0,keepDoubleQuotes:!0,keepSingleQuotes:!0}).join("\\.")}catch{return Y}}fn.exports=function N(Y,ee){if(null==Y)return[];if(!Array.isArray(Y))throw new TypeError("group-array expects an array.");if(1===arguments.length)return Y;let se=o([].slice.call(arguments,1)),he=R(Y,se[0]);for(let Se=1;Se<se.length;Se++)y(he,se[Se]);return he}},55386:(fn,ve,_)=>{var e;!function(o,T,A,G){"use strict";var Se,F=["","webkit","Moz","MS","ms","o"],N=T.createElement("div"),R="function",P=Math.round,y=Math.abs,j=Date.now;function Y(Qe,Et,Dn){return setTimeout(we(Qe,Dn),Et)}function ee(Qe,Et,Dn){return!!Array.isArray(Qe)&&(se(Qe,Dn[Et],Dn),!0)}function se(Qe,Et,Dn){var vi;if(Qe)if(Qe.forEach)Qe.forEach(Et,Dn);else if(Qe.length!==G)for(vi=0;vi<Qe.length;)Et.call(Dn,Qe[vi],vi,Qe),vi++;else for(vi in Qe)Qe.hasOwnProperty(vi)&&Et.call(Dn,Qe[vi],vi,Qe)}function he(Qe,Et,Dn){var vi="DEPRECATED METHOD: "+Et+"\n"+Dn+" AT \n";return function(){var ni=new Error("get-stack-trace"),qi=ni&&ni.stack?ni.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ys=o.console&&(o.console.warn||o.console.log);return ys&&ys.call(o.console,vi,qi),Qe.apply(this,arguments)}}Se="function"!=typeof Object.assign?function(Et){if(Et===G||null===Et)throw new TypeError("Cannot convert undefined or null to object");for(var Dn=Object(Et),vi=1;vi<arguments.length;vi++){var ni=arguments[vi];if(ni!==G&&null!==ni)for(var qi in ni)ni.hasOwnProperty(qi)&&(Dn[qi]=ni[qi])}return Dn}:Object.assign;var te=he(function(Et,Dn,vi){for(var ni=Object.keys(Dn),qi=0;qi<ni.length;)(!vi||vi&&Et[ni[qi]]===G)&&(Et[ni[qi]]=Dn[ni[qi]]),qi++;return Et},"extend","Use `assign`."),oe=he(function(Et,Dn){return te(Et,Dn,!0)},"merge","Use `assign`.");function q(Qe,Et,Dn){var ni,vi=Et.prototype;(ni=Qe.prototype=Object.create(vi)).constructor=Qe,ni._super=vi,Dn&&Se(ni,Dn)}function we(Qe,Et){return function(){return Qe.apply(Et,arguments)}}function ae(Qe,Et){return typeof Qe==R?Qe.apply(Et&&Et[0]||G,Et):Qe}function Q(Qe,Et){return Qe===G?Et:Qe}function pe(Qe,Et,Dn){se(ct(Et),function(vi){Qe.addEventListener(vi,Dn,!1)})}function Ee(Qe,Et,Dn){se(ct(Et),function(vi){Qe.removeEventListener(vi,Dn,!1)})}function ke(Qe,Et){for(;Qe;){if(Qe==Et)return!0;Qe=Qe.parentNode}return!1}function Ye(Qe,Et){return Qe.indexOf(Et)>-1}function ct(Qe){return Qe.trim().split(/\s+/g)}function ut(Qe,Et,Dn){if(Qe.indexOf&&!Dn)return Qe.indexOf(Et);for(var vi=0;vi<Qe.length;){if(Dn&&Qe[vi][Dn]==Et||!Dn&&Qe[vi]===Et)return vi;vi++}return-1}function Ct(Qe){return Array.prototype.slice.call(Qe,0)}function Ue(Qe,Et,Dn){for(var vi=[],ni=[],qi=0;qi<Qe.length;){var ys=Et?Qe[qi][Et]:Qe[qi];ut(ni,ys)<0&&vi.push(Qe[qi]),ni[qi]=ys,qi++}return Dn&&(vi=Et?vi.sort(function(bo,Ps){return bo[Et]>Ps[Et]}):vi.sort()),vi}function vt(Qe,Et){for(var Dn,vi,ni=Et[0].toUpperCase()+Et.slice(1),qi=0;qi<F.length;){if((vi=(Dn=F[qi])?Dn+ni:Et)in Qe)return vi;qi++}return G}var ln=1;function Ft(Qe){var Et=Qe.ownerDocument||Qe;return Et.defaultView||Et.parentWindow||o}var Ze="ontouchstart"in o,$e=vt(o,"PointerEvent")!==G,Oe=Ze&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Nt="touch",Ot="mouse",$t=25,rt=1,We=2,yt=4,it=8,It=1,Tt=2,wn=4,Nn=8,an=16,sn=Tt|wn,_n=Nn|an,Ln=sn|_n,Mn=["x","y"],pi=["clientX","clientY"];function Yn(Qe,Et){var Dn=this;this.manager=Qe,this.callback=Et,this.element=Qe.element,this.target=Qe.options.inputTarget,this.domHandler=function(vi){ae(Qe.options.enable,[Qe])&&Dn.handler(vi)},this.init()}function qn(Qe,Et,Dn){var vi=Dn.pointers.length,ni=Dn.changedPointers.length,qi=Et&rt&&vi-ni==0,ys=Et&(yt|it)&&vi-ni==0;Dn.isFirst=!!qi,Dn.isFinal=!!ys,qi&&(Qe.session={}),Dn.eventType=Et,function ki(Qe,Et){var Dn=Qe.session,vi=Et.pointers,ni=vi.length;Dn.firstInput||(Dn.firstInput=pn(Et)),ni>1&&!Dn.firstMultiple?Dn.firstMultiple=pn(Et):1===ni&&(Dn.firstMultiple=!1);var qi=Dn.firstInput,ys=Dn.firstMultiple,Mo=ys?ys.center:qi.center,bo=Et.center=Vn(vi);Et.timeStamp=j(),Et.deltaTime=Et.timeStamp-qi.timeStamp,Et.angle=In(Mo,bo),Et.distance=lt(Mo,bo),function Si(Qe,Et){var Dn=Et.center,vi=Qe.offsetDelta||{},ni=Qe.prevDelta||{},qi=Qe.prevInput||{};(Et.eventType===rt||qi.eventType===yt)&&(ni=Qe.prevDelta={x:qi.deltaX||0,y:qi.deltaY||0},vi=Qe.offsetDelta={x:Dn.x,y:Dn.y}),Et.deltaX=ni.x+(Dn.x-vi.x),Et.deltaY=ni.y+(Dn.y-vi.y)}(Dn,Et),Et.offsetDirection=en(Et.deltaX,Et.deltaY);var Ps=ot(Et.deltaTime,Et.deltaX,Et.deltaY);Et.overallVelocityX=Ps.x,Et.overallVelocityY=Ps.y,Et.overallVelocity=y(Ps.x)>y(Ps.y)?Ps.x:Ps.y,Et.scale=ys?function Qt(Qe,Et){return lt(Et[0],Et[1],pi)/lt(Qe[0],Qe[1],pi)}(ys.pointers,vi):1,Et.rotation=ys?function rn(Qe,Et){return In(Et[1],Et[0],pi)+In(Qe[1],Qe[0],pi)}(ys.pointers,vi):0,Et.maxPointers=Dn.prevInput?Et.pointers.length>Dn.prevInput.maxPointers?Et.pointers.length:Dn.prevInput.maxPointers:Et.pointers.length,function Ni(Qe,Et){var ni,qi,ys,Mo,Dn=Qe.lastInterval||Et,vi=Et.timeStamp-Dn.timeStamp;if(Et.eventType!=it&&(vi>$t||Dn.velocity===G)){var bo=Et.deltaX-Dn.deltaX,Ps=Et.deltaY-Dn.deltaY,Wt=ot(vi,bo,Ps);qi=Wt.x,ys=Wt.y,ni=y(Wt.x)>y(Wt.y)?Wt.x:Wt.y,Mo=en(bo,Ps),Qe.lastInterval=Et}else ni=Dn.velocity,qi=Dn.velocityX,ys=Dn.velocityY,Mo=Dn.direction;Et.velocity=ni,Et.velocityX=qi,Et.velocityY=ys,Et.direction=Mo}(Dn,Et);var Wt=Qe.element;ke(Et.srcEvent.target,Wt)&&(Wt=Et.srcEvent.target),Et.target=Wt}(Qe,Dn),Qe.emit("hammer.input",Dn),Qe.recognize(Dn),Qe.session.prevInput=Dn}function pn(Qe){for(var Et=[],Dn=0;Dn<Qe.pointers.length;)Et[Dn]={clientX:P(Qe.pointers[Dn].clientX),clientY:P(Qe.pointers[Dn].clientY)},Dn++;return{timeStamp:j(),pointers:Et,center:Vn(Et),deltaX:Qe.deltaX,deltaY:Qe.deltaY}}function Vn(Qe){var Et=Qe.length;if(1===Et)return{x:P(Qe[0].clientX),y:P(Qe[0].clientY)};for(var Dn=0,vi=0,ni=0;ni<Et;)Dn+=Qe[ni].clientX,vi+=Qe[ni].clientY,ni++;return{x:P(Dn/Et),y:P(vi/Et)}}function ot(Qe,Et,Dn){return{x:Et/Qe||0,y:Dn/Qe||0}}function en(Qe,Et){return Qe===Et?It:y(Qe)>=y(Et)?Qe<0?Tt:wn:Et<0?Nn:an}function lt(Qe,Et,Dn){Dn||(Dn=Mn);var vi=Et[Dn[0]]-Qe[Dn[0]],ni=Et[Dn[1]]-Qe[Dn[1]];return Math.sqrt(vi*vi+ni*ni)}function In(Qe,Et,Dn){return Dn||(Dn=Mn),180*Math.atan2(Et[Dn[1]]-Qe[Dn[1]],Et[Dn[0]]-Qe[Dn[0]])/Math.PI}Yn.prototype={handler:function(){},init:function(){this.evEl&&pe(this.element,this.evEl,this.domHandler),this.evTarget&&pe(this.target,this.evTarget,this.domHandler),this.evWin&&pe(Ft(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ee(this.element,this.evEl,this.domHandler),this.evTarget&&Ee(this.target,this.evTarget,this.domHandler),this.evWin&&Ee(Ft(this.element),this.evWin,this.domHandler)}};var yi={mousedown:rt,mousemove:We,mouseup:yt},Li="mousedown",An="mousemove mouseup";function Ht(){this.evEl=Li,this.evWin=An,this.pressed=!1,Yn.apply(this,arguments)}q(Ht,Yn,{handler:function(Et){var Dn=yi[Et.type];Dn&rt&&0===Et.button&&(this.pressed=!0),Dn&We&&1!==Et.which&&(Dn=yt),this.pressed&&(Dn&yt&&(this.pressed=!1),this.callback(this.manager,Dn,{pointers:[Et],changedPointers:[Et],pointerType:Ot,srcEvent:Et}))}});var Pn={pointerdown:rt,pointermove:We,pointerup:yt,pointercancel:it,pointerout:it},Sn={2:Nt,3:"pen",4:Ot,5:"kinect"},Fn="pointerdown",Cn="pointermove pointerup pointercancel";function Un(){this.evEl=Fn,this.evWin=Cn,Yn.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(Fn="MSPointerDown",Cn="MSPointerMove MSPointerUp MSPointerCancel"),q(Un,Yn,{handler:function(Et){var Dn=this.store,vi=!1,ni=Et.type.toLowerCase().replace("ms",""),qi=Pn[ni],ys=Sn[Et.pointerType]||Et.pointerType,Mo=ys==Nt,bo=ut(Dn,Et.pointerId,"pointerId");qi&rt&&(0===Et.button||Mo)?bo<0&&(Dn.push(Et),bo=Dn.length-1):qi&(yt|it)&&(vi=!0),!(bo<0)&&(Dn[bo]=Et,this.callback(this.manager,qi,{pointers:Dn,changedPointers:[Et],pointerType:ys,srcEvent:Et}),vi&&Dn.splice(bo,1))}});var fi={touchstart:rt,touchmove:We,touchend:yt,touchcancel:it},bi="touchstart",Zn="touchstart touchmove touchend touchcancel";function mn(){this.evTarget=bi,this.evWin=Zn,this.started=!1,Yn.apply(this,arguments)}function ze(Qe,Et){var Dn=Ct(Qe.touches),vi=Ct(Qe.changedTouches);return Et&(yt|it)&&(Dn=Ue(Dn.concat(vi),"identifier",!0)),[Dn,vi]}q(mn,Yn,{handler:function(Et){var Dn=fi[Et.type];if(Dn===rt&&(this.started=!0),this.started){var vi=ze.call(this,Et,Dn);Dn&(yt|it)&&vi[0].length-vi[1].length==0&&(this.started=!1),this.callback(this.manager,Dn,{pointers:vi[0],changedPointers:vi[1],pointerType:Nt,srcEvent:Et})}}});var wt={touchstart:rt,touchmove:We,touchend:yt,touchcancel:it},ht="touchstart touchmove touchend touchcancel";function U(){this.evTarget=ht,this.targetIds={},Yn.apply(this,arguments)}function gt(Qe,Et){var Dn=Ct(Qe.touches),vi=this.targetIds;if(Et&(rt|We)&&1===Dn.length)return vi[Dn[0].identifier]=!0,[Dn,Dn];var ni,qi,ys=Ct(Qe.changedTouches),Mo=[],bo=this.target;if(qi=Dn.filter(function(Ps){return ke(Ps.target,bo)}),Et===rt)for(ni=0;ni<qi.length;)vi[qi[ni].identifier]=!0,ni++;for(ni=0;ni<ys.length;)vi[ys[ni].identifier]&&Mo.push(ys[ni]),Et&(yt|it)&&delete vi[ys[ni].identifier],ni++;return Mo.length?[Ue(qi.concat(Mo),"identifier",!0),Mo]:void 0}q(U,Yn,{handler:function(Et){var Dn=wt[Et.type],vi=gt.call(this,Et,Dn);vi&&this.callback(this.manager,Dn,{pointers:vi[0],changedPointers:vi[1],pointerType:Nt,srcEvent:Et})}});var Lt=2500,kt=25;function vn(){Yn.apply(this,arguments);var Qe=we(this.handler,this);this.touch=new U(this.manager,Qe),this.mouse=new Ht(this.manager,Qe),this.primaryTouch=null,this.lastTouches=[]}function jn(Qe,Et){Qe&rt?(this.primaryTouch=Et.changedPointers[0].identifier,St.call(this,Et)):Qe&(yt|it)&&St.call(this,Et)}function St(Qe){var Et=Qe.changedPointers[0];if(Et.identifier===this.primaryTouch){var Dn={x:Et.clientX,y:Et.clientY};this.lastTouches.push(Dn);var vi=this.lastTouches;setTimeout(function(){var qi=vi.indexOf(Dn);qi>-1&&vi.splice(qi,1)},Lt)}}function De(Qe){for(var Et=Qe.srcEvent.clientX,Dn=Qe.srcEvent.clientY,vi=0;vi<this.lastTouches.length;vi++){var ni=this.lastTouches[vi],qi=Math.abs(Et-ni.x),ys=Math.abs(Dn-ni.y);if(qi<=kt&&ys<=kt)return!0}return!1}q(vn,Yn,{handler:function(Et,Dn,vi){var qi=vi.pointerType==Ot;if(!(qi&&vi.sourceCapabilities&&vi.sourceCapabilities.firesTouchEvents)){if(vi.pointerType==Nt)jn.call(this,Dn,vi);else if(qi&&De.call(this,vi))return;this.callback(Et,Dn,vi)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=vt(N.style,"touchAction"),je=ie!==G,pt="compute",xn="manipulation",hn="none",Gn="pan-x",ri="pan-y",mi=function Di(){if(!je)return!1;var Qe={},Et=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Dn){Qe[Dn]=!Et||o.CSS.supports("touch-action",Dn)}),Qe}();function ui(Qe,Et){this.manager=Qe,this.set(Et)}ui.prototype={set:function(Qe){Qe==pt&&(Qe=this.compute()),je&&this.manager.element.style&&mi[Qe]&&(this.manager.element.style[ie]=Qe),this.actions=Qe.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Qe=[];return se(this.manager.recognizers,function(Et){ae(Et.options.enable,[Et])&&(Qe=Qe.concat(Et.getTouchAction()))}),function Pi(Qe){if(Ye(Qe,hn))return hn;var Et=Ye(Qe,Gn),Dn=Ye(Qe,ri);return Et&&Dn?hn:Et||Dn?Et?Gn:ri:Ye(Qe,xn)?xn:"auto"}(Qe.join(" "))},preventDefaults:function(Qe){var Et=Qe.srcEvent,Dn=Qe.offsetDirection;if(!this.manager.session.prevented){var vi=this.actions,ni=Ye(vi,hn)&&!mi[hn],qi=Ye(vi,ri)&&!mi[ri],ys=Ye(vi,Gn)&&!mi[Gn];if(ni&&1===Qe.pointers.length&&Qe.distance<2&&Qe.deltaTime<250)return;return ys&&qi||!(ni||qi&&Dn&sn||ys&&Dn&_n)?void 0:this.preventSrc(Et)}Et.preventDefault()},preventSrc:function(Qe){this.manager.session.prevented=!0,Qe.preventDefault()}};var Yi=1,ji=2,gs=4,bs=8,Es=bs,ss=16;function as(Qe){this.options=Se({},this.defaults,Qe||{}),this.id=function Je(){return ln++}(),this.manager=null,this.options.enable=Q(this.options.enable,!0),this.state=Yi,this.simultaneous={},this.requireFail=[]}function ds(Qe){return Qe&ss?"cancel":Qe&bs?"end":Qe&gs?"move":Qe&ji?"start":""}function Xi(Qe){return Qe==an?"down":Qe==Nn?"up":Qe==Tt?"left":Qe==wn?"right":""}function us(Qe,Et){var Dn=Et.manager;return Dn?Dn.get(Qe):Qe}function ps(){as.apply(this,arguments)}function _s(){ps.apply(this,arguments),this.pX=null,this.pY=null}function ei(){ps.apply(this,arguments)}function Fs(){as.apply(this,arguments),this._timer=null,this._input=null}function po(){ps.apply(this,arguments)}function As(){ps.apply(this,arguments)}function un(){as.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ai(Qe,Et){return(Et=Et||{}).recognizers=Q(Et.recognizers,ai.defaults.preset),new Be(Qe,Et)}function Be(Qe,Et){this.options=Se({},ai.defaults,Et||{}),this.options.inputTarget=this.options.inputTarget||Qe,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Qe,this.input=function gi(Qe){return new(Qe.options.inputClass||($e?Un:Oe?U:Ze?vn:Ht))(Qe,qn)}(this),this.touchAction=new ui(this,this.options.touchAction),Jt(this,!0),se(this.options.recognizers,function(Dn){var vi=this.add(new Dn[0](Dn[1]));Dn[2]&&vi.recognizeWith(Dn[2]),Dn[3]&&vi.requireFailure(Dn[3])},this)}function Jt(Qe,Et){var vi,Dn=Qe.element;Dn.style&&(se(Qe.options.cssProps,function(ni,qi){vi=vt(Dn.style,qi),Et?(Qe.oldCssProps[vi]=Dn.style[vi],Dn.style[vi]=ni):Dn.style[vi]=Qe.oldCssProps[vi]||""}),Et||(Qe.oldCssProps={}))}as.prototype={defaults:{},set:function(Qe){return Se(this.options,Qe),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Qe){if(ee(Qe,"recognizeWith",this))return this;var Et=this.simultaneous;return Et[(Qe=us(Qe,this)).id]||(Et[Qe.id]=Qe,Qe.recognizeWith(this)),this},dropRecognizeWith:function(Qe){return ee(Qe,"dropRecognizeWith",this)||(Qe=us(Qe,this),delete this.simultaneous[Qe.id]),this},requireFailure:function(Qe){if(ee(Qe,"requireFailure",this))return this;var Et=this.requireFail;return-1===ut(Et,Qe=us(Qe,this))&&(Et.push(Qe),Qe.requireFailure(this)),this},dropRequireFailure:function(Qe){if(ee(Qe,"dropRequireFailure",this))return this;Qe=us(Qe,this);var Et=ut(this.requireFail,Qe);return Et>-1&&this.requireFail.splice(Et,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Qe){return!!this.simultaneous[Qe.id]},emit:function(Qe){var Et=this,Dn=this.state;function vi(ni){Et.manager.emit(ni,Qe)}Dn<bs&&vi(Et.options.event+ds(Dn)),vi(Et.options.event),Qe.additionalEvent&&vi(Qe.additionalEvent),Dn>=bs&&vi(Et.options.event+ds(Dn))},tryEmit:function(Qe){if(this.canEmit())return this.emit(Qe);this.state=32},canEmit:function(){for(var Qe=0;Qe<this.requireFail.length;){if(!(this.requireFail[Qe].state&(32|Yi)))return!1;Qe++}return!0},recognize:function(Qe){var Et=Se({},Qe);if(!ae(this.options.enable,[this,Et]))return this.reset(),void(this.state=32);this.state&(Es|ss|32)&&(this.state=Yi),this.state=this.process(Et),this.state&(ji|gs|bs|ss)&&this.tryEmit(Et)},process:function(Qe){},getTouchAction:function(){},reset:function(){}},q(ps,as,{defaults:{pointers:1},attrTest:function(Qe){var Et=this.options.pointers;return 0===Et||Qe.pointers.length===Et},process:function(Qe){var Et=this.state,Dn=Qe.eventType,vi=Et&(ji|gs),ni=this.attrTest(Qe);return vi&&(Dn&it||!ni)?Et|ss:vi||ni?Dn&yt?Et|bs:Et&ji?Et|gs:ji:32}}),q(_s,ps,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ln},getTouchAction:function(){var Qe=this.options.direction,Et=[];return Qe&sn&&Et.push(ri),Qe&_n&&Et.push(Gn),Et},directionTest:function(Qe){var Et=this.options,Dn=!0,vi=Qe.distance,ni=Qe.direction,qi=Qe.deltaX,ys=Qe.deltaY;return ni&Et.direction||(Et.direction&sn?(ni=0===qi?It:qi<0?Tt:wn,Dn=qi!=this.pX,vi=Math.abs(Qe.deltaX)):(ni=0===ys?It:ys<0?Nn:an,Dn=ys!=this.pY,vi=Math.abs(Qe.deltaY))),Qe.direction=ni,Dn&&vi>Et.threshold&&ni&Et.direction},attrTest:function(Qe){return ps.prototype.attrTest.call(this,Qe)&&(this.state&ji||!(this.state&ji)&&this.directionTest(Qe))},emit:function(Qe){this.pX=Qe.deltaX,this.pY=Qe.deltaY;var Et=Xi(Qe.direction);Et&&(Qe.additionalEvent=this.options.event+Et),this._super.emit.call(this,Qe)}}),q(ei,ps,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[hn]},attrTest:function(Qe){return this._super.attrTest.call(this,Qe)&&(Math.abs(Qe.scale-1)>this.options.threshold||this.state&ji)},emit:function(Qe){1!==Qe.scale&&(Qe.additionalEvent=this.options.event+(Qe.scale<1?"in":"out")),this._super.emit.call(this,Qe)}}),q(Fs,as,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(Qe){var Et=this.options,Dn=Qe.pointers.length===Et.pointers,vi=Qe.distance<Et.threshold,ni=Qe.deltaTime>Et.time;if(this._input=Qe,!vi||!Dn||Qe.eventType&(yt|it)&&!ni)this.reset();else if(Qe.eventType&rt)this.reset(),this._timer=Y(function(){this.state=Es,this.tryEmit()},Et.time,this);else if(Qe.eventType&yt)return Es;return 32},reset:function(){clearTimeout(this._timer)},emit:function(Qe){this.state===Es&&(Qe&&Qe.eventType&yt?this.manager.emit(this.options.event+"up",Qe):(this._input.timeStamp=j(),this.manager.emit(this.options.event,this._input)))}}),q(po,ps,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[hn]},attrTest:function(Qe){return this._super.attrTest.call(this,Qe)&&(Math.abs(Qe.rotation)>this.options.threshold||this.state&ji)}}),q(As,ps,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:sn|_n,pointers:1},getTouchAction:function(){return _s.prototype.getTouchAction.call(this)},attrTest:function(Qe){var Dn,Et=this.options.direction;return Et&(sn|_n)?Dn=Qe.overallVelocity:Et&sn?Dn=Qe.overallVelocityX:Et&_n&&(Dn=Qe.overallVelocityY),this._super.attrTest.call(this,Qe)&&Et&Qe.offsetDirection&&Qe.distance>this.options.threshold&&Qe.maxPointers==this.options.pointers&&y(Dn)>this.options.velocity&&Qe.eventType&yt},emit:function(Qe){var Et=Xi(Qe.offsetDirection);Et&&this.manager.emit(this.options.event+Et,Qe),this.manager.emit(this.options.event,Qe)}}),q(un,as,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xn]},process:function(Qe){var Et=this.options,Dn=Qe.pointers.length===Et.pointers,vi=Qe.distance<Et.threshold,ni=Qe.deltaTime<Et.time;if(this.reset(),Qe.eventType&rt&&0===this.count)return this.failTimeout();if(vi&&ni&&Dn){if(Qe.eventType!=yt)return this.failTimeout();var qi=!this.pTime||Qe.timeStamp-this.pTime<Et.interval,ys=!this.pCenter||lt(this.pCenter,Qe.center)<Et.posThreshold;if(this.pTime=Qe.timeStamp,this.pCenter=Qe.center,ys&&qi?this.count+=1:this.count=1,this._input=Qe,0==this.count%Et.taps)return this.hasRequireFailures()?(this._timer=Y(function(){this.state=Es,this.tryEmit()},Et.interval,this),ji):Es}return 32},failTimeout:function(){return this._timer=Y(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Es&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ai.VERSION="2.0.7",ai.defaults={domEvents:!1,touchAction:pt,enable:!0,inputTarget:null,inputClass:null,preset:[[po,{enable:!1}],[ei,{enable:!1},["rotate"]],[As,{direction:sn}],[_s,{direction:sn},["swipe"]],[un],[un,{event:"doubletap",taps:2},["tap"]],[Fs]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Be.prototype={set:function(Qe){return Se(this.options,Qe),Qe.touchAction&&this.touchAction.update(),Qe.inputTarget&&(this.input.destroy(),this.input.target=Qe.inputTarget,this.input.init()),this},stop:function(Qe){this.session.stopped=Qe?2:1},recognize:function(Qe){var Et=this.session;if(!Et.stopped){this.touchAction.preventDefaults(Qe);var Dn,vi=this.recognizers,ni=Et.curRecognizer;(!ni||ni&&ni.state&Es)&&(ni=Et.curRecognizer=null);for(var qi=0;qi<vi.length;)Dn=vi[qi],2===Et.stopped||ni&&Dn!=ni&&!Dn.canRecognizeWith(ni)?Dn.reset():Dn.recognize(Qe),!ni&&Dn.state&(ji|gs|bs)&&(ni=Et.curRecognizer=Dn),qi++}},get:function(Qe){if(Qe instanceof as)return Qe;for(var Et=this.recognizers,Dn=0;Dn<Et.length;Dn++)if(Et[Dn].options.event==Qe)return Et[Dn];return null},add:function(Qe){if(ee(Qe,"add",this))return this;var Et=this.get(Qe.options.event);return Et&&this.remove(Et),this.recognizers.push(Qe),Qe.manager=this,this.touchAction.update(),Qe},remove:function(Qe){if(ee(Qe,"remove",this))return this;if(Qe=this.get(Qe)){var Et=this.recognizers,Dn=ut(Et,Qe);-1!==Dn&&(Et.splice(Dn,1),this.touchAction.update())}return this},on:function(Qe,Et){if(Qe!==G&&Et!==G){var Dn=this.handlers;return se(ct(Qe),function(vi){Dn[vi]=Dn[vi]||[],Dn[vi].push(Et)}),this}},off:function(Qe,Et){if(Qe!==G){var Dn=this.handlers;return se(ct(Qe),function(vi){Et?Dn[vi]&&Dn[vi].splice(ut(Dn[vi],Et),1):delete Dn[vi]}),this}},emit:function(Qe,Et){this.options.domEvents&&function xe(Qe,Et){var Dn=T.createEvent("Event");Dn.initEvent(Qe,!0,!0),Dn.gesture=Et,Et.target.dispatchEvent(Dn)}(Qe,Et);var Dn=this.handlers[Qe]&&this.handlers[Qe].slice();if(Dn&&Dn.length){Et.type=Qe,Et.preventDefault=function(){Et.srcEvent.preventDefault()};for(var vi=0;vi<Dn.length;)Dn[vi](Et),vi++}},destroy:function(){this.element&&Jt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Se(ai,{INPUT_START:rt,INPUT_MOVE:We,INPUT_END:yt,INPUT_CANCEL:it,STATE_POSSIBLE:Yi,STATE_BEGAN:ji,STATE_CHANGED:gs,STATE_ENDED:bs,STATE_RECOGNIZED:Es,STATE_CANCELLED:ss,STATE_FAILED:32,DIRECTION_NONE:It,DIRECTION_LEFT:Tt,DIRECTION_RIGHT:wn,DIRECTION_UP:Nn,DIRECTION_DOWN:an,DIRECTION_HORIZONTAL:sn,DIRECTION_VERTICAL:_n,DIRECTION_ALL:Ln,Manager:Be,Input:Yn,TouchAction:ui,TouchInput:U,MouseInput:Ht,PointerEventInput:Un,TouchMouseInput:vn,SingleTouchInput:mn,Recognizer:as,AttrRecognizer:ps,Tap:un,Pan:_s,Swipe:As,Pinch:ei,Rotate:po,Press:Fs,on:pe,off:Ee,each:se,merge:oe,extend:te,assign:Se,inherit:q,bindFn:we,prefixed:vt}),(typeof o<"u"?o:typeof self<"u"?self:{}).Hammer=ai,(e=function(){return ai}.call(ve,_,ve,fn))!==G&&(fn.exports=e)}(window,document)},77027:(fn,ve,_)=>{"use strict";var o=_(95203)("%Object.defineProperty%",!0),T=function(){if(o)try{return o({},"a",{value:1}),!0}catch{return!1}return!1};T.hasArrayLengthDefineBug=function(){if(!T())return null;try{return 1!==o([],"length",{value:1}).length}catch{return!0}},fn.exports=T},49757:fn=>{"use strict";var ve={foo:{}},_=Object;fn.exports=function(){return{__proto__:ve}.foo===ve.foo&&!({__proto__:null}instanceof _)}},92969:(fn,ve,_)=>{"use strict";var e=typeof Symbol<"u"&&Symbol,o=_(81983);fn.exports=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&o()}},81983:fn=>{"use strict";fn.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var _={},e=Symbol("test"),o=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(e in _[e]=42,_)return!1;if("function"==typeof Object.keys&&0!==Object.keys(_).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(_).length)return!1;var A=Object.getOwnPropertySymbols(_);if(1!==A.length||A[0]!==e||!Object.prototype.propertyIsEnumerable.call(_,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var G=Object.getOwnPropertyDescriptor(_,e);if(42!==G.value||!0!==G.enumerable)return!1}return!0}},27699:(fn,ve,_)=>{"use strict";var e=Function.prototype.call,o=Object.prototype.hasOwnProperty,T=_(84444);fn.exports=T.call(e,o)},40717:(fn,ve,_)=>{"use strict";var e=_(50623);function o(T){return!0===e(T)&&"[object Object]"===Object.prototype.toString.call(T)}fn.exports=function(A){var G,F;return!(!1===o(A)||(G=A.constructor,"function"!=typeof G)||(F=G.prototype,!1===o(F))||!1===F.hasOwnProperty("isPrototypeOf"))}},50623:fn=>{"use strict";fn.exports=function(_){return null!=_&&"object"==typeof _&&!1===Array.isArray(_)}},52872:fn=>{var ve=Object.prototype.toString;function _(P){return"function"==typeof P.constructor?P.constructor.name:null}fn.exports=function(y){if(void 0===y)return"undefined";if(null===y)return"null";var j=typeof y;if("boolean"===j)return"boolean";if("string"===j)return"string";if("number"===j)return"number";if("symbol"===j)return"symbol";if("function"===j)return function G(P,y){return"GeneratorFunction"===_(P)}(y)?"generatorfunction":"function";if(function e(P){return Array.isArray?Array.isArray(P):P instanceof Array}(y))return"array";if(function R(P){return!(!P.constructor||"function"!=typeof P.constructor.isBuffer)&&P.constructor.isBuffer(P)}(y))return"buffer";if(function N(P){try{if("number"==typeof P.length&&"function"==typeof P.callee)return!0}catch(y){if(-1!==y.message.indexOf("callee"))return!0}return!1}(y))return"arguments";if(function T(P){return P instanceof Date||"function"==typeof P.toDateString&&"function"==typeof P.getDate&&"function"==typeof P.setDate}(y))return"date";if(function o(P){return P instanceof Error||"string"==typeof P.message&&P.constructor&&"number"==typeof P.constructor.stackTraceLimit}(y))return"error";if(function A(P){return P instanceof RegExp||"string"==typeof P.flags&&"boolean"==typeof P.ignoreCase&&"boolean"==typeof P.multiline&&"boolean"==typeof P.global}(y))return"regexp";switch(_(y)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function F(P){return"function"==typeof P.throw&&"function"==typeof P.return&&"function"==typeof P.next}(y))return"generator";switch(j=ve.call(y)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return j.slice(8,-1).toLowerCase().replace(/\s/g,"")}},97024:(fn,ve,_)=>{var e="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,T=e&&o&&"function"==typeof o.get?o.get:null,A=e&&Map.prototype.forEach,G="function"==typeof Set&&Set.prototype,F=Object.getOwnPropertyDescriptor&&G?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,N=G&&F&&"function"==typeof F.get?F.get:null,R=G&&Set.prototype.forEach,y="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,se="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,he=Boolean.prototype.valueOf,Se=Object.prototype.toString,te=Function.prototype.toString,oe=String.prototype.match,q=String.prototype.slice,we=String.prototype.replace,ae=String.prototype.toUpperCase,Q=String.prototype.toLowerCase,pe=RegExp.prototype.test,Ee=Array.prototype.concat,ke=Array.prototype.join,Ye=Array.prototype.slice,ct=Math.floor,ut="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ct=Object.getOwnPropertySymbols,Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,vt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ln="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,Je=Object.prototype.propertyIsEnumerable,Ft=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(rn){return rn.__proto__}:null);function st(rn,Qt){if(rn===1/0||rn===-1/0||rn!=rn||rn&&rn>-1e3&&rn<1e3||pe.call(/e/,Qt))return Qt;var yi=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof rn){var Li=rn<0?-ct(-rn):ct(rn);if(Li!==rn){var An=String(Li),Ht=q.call(Qt,An.length+1);return we.call(An,yi,"$&_")+"."+we.call(we.call(Ht,/([0-9]{3})/g,"$&_"),/_$/,"")}}return we.call(Qt,yi,"$&_")}var Ze=_(24654),$e=Ze.custom,Oe=It($e)?$e:null;function Nt(rn,Qt,yi){var Li="double"===(yi.quoteStyle||Qt)?'"':"'";return Li+rn+Li}function xt(rn){return we.call(String(rn),/"/g,"&quot;")}function Ot(rn){return!("[object Array]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}function $t(rn){return!("[object RegExp]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}function It(rn){if(vt)return rn&&"object"==typeof rn&&rn instanceof Symbol;if("symbol"==typeof rn)return!0;if(!rn||"object"!=typeof rn||!Ue)return!1;try{return Ue.call(rn),!0}catch{}return!1}fn.exports=function rn(Qt,yi,Li,An){var Ht=yi||{};if(Nn(Ht,"quoteStyle")&&"single"!==Ht.quoteStyle&&"double"!==Ht.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nn(Ht,"maxStringLength")&&("number"==typeof Ht.maxStringLength?Ht.maxStringLength<0&&Ht.maxStringLength!==1/0:null!==Ht.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Pn=!Nn(Ht,"customInspect")||Ht.customInspect;if("boolean"!=typeof Pn&&"symbol"!==Pn)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Nn(Ht,"indent")&&null!==Ht.indent&&"\t"!==Ht.indent&&!(parseInt(Ht.indent,10)===Ht.indent&&Ht.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Nn(Ht,"numericSeparator")&&"boolean"!=typeof Ht.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Sn=Ht.numericSeparator;if(typeof Qt>"u")return"undefined";if(null===Qt)return"null";if("boolean"==typeof Qt)return Qt?"true":"false";if("string"==typeof Qt)return ki(Qt,Ht);if("number"==typeof Qt){if(0===Qt)return 1/0/Qt>0?"0":"-0";var Fn=String(Qt);return Sn?st(Qt,Fn):Fn}if("bigint"==typeof Qt){var Cn=String(Qt)+"n";return Sn?st(Qt,Cn):Cn}var Un=typeof Ht.depth>"u"?5:Ht.depth;if(typeof Li>"u"&&(Li=0),Li>=Un&&Un>0&&"object"==typeof Qt)return Ot(Qt)?"[Array]":"[Object]";var fi=function en(rn,Qt){var yi;if("\t"===rn.indent)yi="\t";else{if(!("number"==typeof rn.indent&&rn.indent>0))return null;yi=ke.call(Array(rn.indent+1)," ")}return{base:yi,prev:ke.call(Array(Qt+1),yi)}}(Ht,Li);if(typeof An>"u")An=[];else if(_n(An,Qt)>=0)return"[Circular]";function bi(Ut,xn,hn){if(xn&&(An=Ye.call(An)).push(xn),hn){var Gn={depth:Ht.depth};return Nn(Ht,"quoteStyle")&&(Gn.quoteStyle=Ht.quoteStyle),rn(Ut,Gn,Li+1,An)}return rn(Ut,Ht,Li+1,An)}if("function"==typeof Qt&&!$t(Qt)){var Zn=function sn(rn){if(rn.name)return rn.name;var Qt=oe.call(te.call(rn),/^function\s*([\w$]+)/);return Qt?Qt[1]:null}(Qt),mn=In(Qt,bi);return"[Function"+(Zn?": "+Zn:" (anonymous)")+"]"+(mn.length>0?" { "+ke.call(mn,", ")+" }":"")}if(It(Qt)){var ze=vt?we.call(String(Qt),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ue.call(Qt);return"object"!=typeof Qt||vt?ze:Ni(ze)}if(function qn(rn){return!(!rn||"object"!=typeof rn)&&(typeof HTMLElement<"u"&&rn instanceof HTMLElement||"string"==typeof rn.nodeName&&"function"==typeof rn.getAttribute)}(Qt)){for(var wt="<"+Q.call(String(Qt.nodeName)),ht=Qt.attributes||[],U=0;U<ht.length;U++)wt+=" "+ht[U].name+"="+Nt(xt(ht[U].value),"double",Ht);return wt+=">",Qt.childNodes&&Qt.childNodes.length&&(wt+="..."),wt+"</"+Q.call(String(Qt.nodeName))+">"}if(Ot(Qt)){if(0===Qt.length)return"[]";var gt=In(Qt,bi);return fi&&!function ot(rn){for(var Qt=0;Qt<rn.length;Qt++)if(_n(rn[Qt],"\n")>=0)return!1;return!0}(gt)?"["+lt(gt,fi)+"]":"[ "+ke.call(gt,", ")+" ]"}if(function rt(rn){return!("[object Error]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}(Qt)){var Lt=In(Qt,bi);return"cause"in Error.prototype||!("cause"in Qt)||Je.call(Qt,"cause")?0===Lt.length?"["+String(Qt)+"]":"{ ["+String(Qt)+"] "+ke.call(Lt,", ")+" }":"{ ["+String(Qt)+"] "+ke.call(Ee.call("[cause]: "+bi(Qt.cause),Lt),", ")+" }"}if("object"==typeof Qt&&Pn){if(Oe&&"function"==typeof Qt[Oe]&&Ze)return Ze(Qt,{depth:Un-Li});if("symbol"!==Pn&&"function"==typeof Qt.inspect)return Qt.inspect()}if(function Ln(rn){if(!T||!rn||"object"!=typeof rn)return!1;try{T.call(rn);try{N.call(rn)}catch{return!0}return rn instanceof Map}catch{}return!1}(Qt)){var kt=[];return A&&A.call(Qt,function(Ut,xn){kt.push(bi(xn,Qt,!0)+" => "+bi(Ut,Qt))}),Vn("Map",T.call(Qt),kt,fi)}if(function Yn(rn){if(!N||!rn||"object"!=typeof rn)return!1;try{N.call(rn);try{T.call(rn)}catch{return!0}return rn instanceof Set}catch{}return!1}(Qt)){var vn=[];return R&&R.call(Qt,function(Ut){vn.push(bi(Ut,Qt))}),Vn("Set",N.call(Qt),vn,fi)}if(function Mn(rn){if(!y||!rn||"object"!=typeof rn)return!1;try{y.call(rn,y);try{Y.call(rn,Y)}catch{return!0}return rn instanceof WeakMap}catch{}return!1}(Qt))return pn("WeakMap");if(function gi(rn){if(!Y||!rn||"object"!=typeof rn)return!1;try{Y.call(rn,Y);try{y.call(rn,y)}catch{return!0}return rn instanceof WeakSet}catch{}return!1}(Qt))return pn("WeakSet");if(function pi(rn){if(!se||!rn||"object"!=typeof rn)return!1;try{return se.call(rn),!0}catch{}return!1}(Qt))return pn("WeakRef");if(function yt(rn){return!("[object Number]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}(Qt))return Ni(bi(Number(Qt)));if(function Tt(rn){if(!rn||"object"!=typeof rn||!ut)return!1;try{return ut.call(rn),!0}catch{}return!1}(Qt))return Ni(bi(ut.call(Qt)));if(function it(rn){return!("[object Boolean]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}(Qt))return Ni(he.call(Qt));if(function We(rn){return!("[object String]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}(Qt))return Ni(bi(String(Qt)));if(typeof window<"u"&&Qt===window)return"{ [object Window] }";if(Qt===global)return"{ [object globalThis] }";if(!function Kt(rn){return!("[object Date]"!==an(rn)||ln&&"object"==typeof rn&&ln in rn)}(Qt)&&!$t(Qt)){var jn=In(Qt,bi),St=Ft?Ft(Qt)===Object.prototype:Qt instanceof Object||Qt.constructor===Object,De=Qt instanceof Object?"":"null prototype",ie=!St&&ln&&Object(Qt)===Qt&&ln in Qt?q.call(an(Qt),8,-1):De?"Object":"",pt=(St||"function"!=typeof Qt.constructor?"":Qt.constructor.name?Qt.constructor.name+" ":"")+(ie||De?"["+ke.call(Ee.call([],ie||[],De||[]),": ")+"] ":"");return 0===jn.length?pt+"{}":fi?pt+"{"+lt(jn,fi)+"}":pt+"{ "+ke.call(jn,", ")+" }"}return String(Qt)};var wn=Object.prototype.hasOwnProperty||function(rn){return rn in this};function Nn(rn,Qt){return wn.call(rn,Qt)}function an(rn){return Se.call(rn)}function _n(rn,Qt){if(rn.indexOf)return rn.indexOf(Qt);for(var yi=0,Li=rn.length;yi<Li;yi++)if(rn[yi]===Qt)return yi;return-1}function ki(rn,Qt){if(rn.length>Qt.maxStringLength){var yi=rn.length-Qt.maxStringLength,Li="... "+yi+" more character"+(yi>1?"s":"");return ki(q.call(rn,0,Qt.maxStringLength),Qt)+Li}return Nt(we.call(we.call(rn,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Si),"single",Qt)}function Si(rn){var Qt=rn.charCodeAt(0),yi={8:"b",9:"t",10:"n",12:"f",13:"r"}[Qt];return yi?"\\"+yi:"\\x"+(Qt<16?"0":"")+ae.call(Qt.toString(16))}function Ni(rn){return"Object("+rn+")"}function pn(rn){return rn+" { ? }"}function Vn(rn,Qt,yi,Li){return rn+" ("+Qt+") {"+(Li?lt(yi,Li):ke.call(yi,", "))+"}"}function lt(rn,Qt){if(0===rn.length)return"";var yi="\n"+Qt.prev+Qt.base;return yi+ke.call(rn,","+yi)+"\n"+Qt.prev}function In(rn,Qt){var yi=Ot(rn),Li=[];if(yi){Li.length=rn.length;for(var An=0;An<rn.length;An++)Li[An]=Nn(rn,An)?Qt(rn[An],rn):""}var Pn,Ht="function"==typeof Ct?Ct(rn):[];if(vt){Pn={};for(var Sn=0;Sn<Ht.length;Sn++)Pn["$"+Ht[Sn]]=Ht[Sn]}for(var Fn in rn)Nn(rn,Fn)&&(yi&&String(Number(Fn))===Fn&&Fn<rn.length||vt&&Pn["$"+Fn]instanceof Symbol||(pe.call(/[^\w$]/,Fn)?Li.push(Qt(Fn,rn)+": "+Qt(rn[Fn],rn)):Li.push(Fn+": "+Qt(rn[Fn],rn))));if("function"==typeof Ct)for(var Cn=0;Cn<Ht.length;Cn++)Je.call(rn,Ht[Cn])&&Li.push("["+Qt(Ht[Cn])+"]: "+Qt(rn[Ht[Cn]],rn));return Li}},59165:fn=>{"use strict";var ve=String.prototype.replace,_=/%20/g;fn.exports={default:"RFC3986",formatters:{RFC1738:function(o){return ve.call(o,_,"+")},RFC3986:function(o){return String(o)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},81781:(fn,ve,_)=>{"use strict";var e=_(63726),o=_(46954),T=_(59165);fn.exports={formats:T,parse:o,stringify:e}},46954:(fn,ve,_)=>{"use strict";var e=_(4393),o=Object.prototype.hasOwnProperty,T=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:e.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},F=function(ee,se){return ee&&"string"==typeof ee&&se.comma&&ee.indexOf(",")>-1?ee.split(","):ee},j=function(se,he,Se,te){if(se){var oe=Se.allowDots?se.replace(/\.([^.[]+)/g,"[$1]"):se,we=/(\[[^[\]]*])/g,ae=Se.depth>0&&/(\[[^[\]]*])/.exec(oe),Q=ae?oe.slice(0,ae.index):oe,pe=[];if(Q){if(!Se.plainObjects&&o.call(Object.prototype,Q)&&!Se.allowPrototypes)return;pe.push(Q)}for(var Ee=0;Se.depth>0&&null!==(ae=we.exec(oe))&&Ee<Se.depth;){if(Ee+=1,!Se.plainObjects&&o.call(Object.prototype,ae[1].slice(1,-1))&&!Se.allowPrototypes)return;pe.push(ae[1])}return ae&&pe.push("["+oe.slice(ae.index)+"]"),function(ee,se,he,Se){for(var te=Se?se:F(se,he),oe=ee.length-1;oe>=0;--oe){var q,we=ee[oe];if("[]"===we&&he.parseArrays)q=[].concat(te);else{q=he.plainObjects?Object.create(null):{};var ae="["===we.charAt(0)&&"]"===we.charAt(we.length-1)?we.slice(1,-1):we,Q=parseInt(ae,10);he.parseArrays||""!==ae?!isNaN(Q)&&we!==ae&&String(Q)===ae&&Q>=0&&he.parseArrays&&Q<=he.arrayLimit?(q=[])[Q]=te:"__proto__"!==ae&&(q[ae]=te):q={0:te}}te=q}return te}(pe,he,Se,te)}};fn.exports=function(ee,se){var he=function(se){if(!se)return A;if(null!=se.decoder&&"function"!=typeof se.decoder)throw new TypeError("Decoder has to be a function.");if(typeof se.charset<"u"&&"utf-8"!==se.charset&&"iso-8859-1"!==se.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");return{allowDots:typeof se.allowDots>"u"?A.allowDots:!!se.allowDots,allowPrototypes:"boolean"==typeof se.allowPrototypes?se.allowPrototypes:A.allowPrototypes,allowSparse:"boolean"==typeof se.allowSparse?se.allowSparse:A.allowSparse,arrayLimit:"number"==typeof se.arrayLimit?se.arrayLimit:A.arrayLimit,charset:typeof se.charset>"u"?A.charset:se.charset,charsetSentinel:"boolean"==typeof se.charsetSentinel?se.charsetSentinel:A.charsetSentinel,comma:"boolean"==typeof se.comma?se.comma:A.comma,decoder:"function"==typeof se.decoder?se.decoder:A.decoder,delimiter:"string"==typeof se.delimiter||e.isRegExp(se.delimiter)?se.delimiter:A.delimiter,depth:"number"==typeof se.depth||!1===se.depth?+se.depth:A.depth,ignoreQueryPrefix:!0===se.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof se.interpretNumericEntities?se.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:"number"==typeof se.parameterLimit?se.parameterLimit:A.parameterLimit,parseArrays:!1!==se.parseArrays,plainObjects:"boolean"==typeof se.plainObjects?se.plainObjects:A.plainObjects,strictNullHandling:"boolean"==typeof se.strictNullHandling?se.strictNullHandling:A.strictNullHandling}}(se);if(""===ee||null===ee||typeof ee>"u")return he.plainObjects?Object.create(null):{};for(var Se="string"==typeof ee?function(se,he){var ae,Se={__proto__:null},q=(he.ignoreQueryPrefix?se.replace(/^\?/,""):se).split(he.delimiter,he.parameterLimit===1/0?void 0:he.parameterLimit),we=-1,Q=he.charset;if(he.charsetSentinel)for(ae=0;ae<q.length;++ae)0===q[ae].indexOf("utf8=")&&("utf8=%E2%9C%93"===q[ae]?Q="utf-8":"utf8=%26%2310003%3B"===q[ae]&&(Q="iso-8859-1"),we=ae,ae=q.length);for(ae=0;ae<q.length;++ae)if(ae!==we){var Ye,ct,pe=q[ae],Ee=pe.indexOf("]="),ke=-1===Ee?pe.indexOf("="):Ee+1;-1===ke?(Ye=he.decoder(pe,A.decoder,Q,"key"),ct=he.strictNullHandling?null:""):(Ye=he.decoder(pe.slice(0,ke),A.decoder,Q,"key"),ct=e.maybeMap(F(pe.slice(ke+1),he),function(ut){return he.decoder(ut,A.decoder,Q,"value")})),ct&&he.interpretNumericEntities&&"iso-8859-1"===Q&&(ct=ct.replace(/&#(\d+);/g,function(se,he){return String.fromCharCode(parseInt(he,10))})),pe.indexOf("[]=")>-1&&(ct=T(ct)?[ct]:ct),Se[Ye]=o.call(Se,Ye)?e.combine(Se[Ye],ct):ct}return Se}(ee,he):ee,te=he.plainObjects?Object.create(null):{},oe=Object.keys(Se),q=0;q<oe.length;++q){var we=oe[q],ae=j(we,Se[we],he,"string"==typeof ee);te=e.merge(te,ae,he)}return!0===he.allowSparse?te:e.compact(te)}},63726:(fn,ve,_)=>{"use strict";var e=_(78475),o=_(4393),T=_(59165),A=Object.prototype.hasOwnProperty,G={brackets:function(te){return te+"[]"},comma:"comma",indices:function(te,oe){return te+"["+oe+"]"},repeat:function(te){return te}},F=Array.isArray,N=Array.prototype.push,R=function(Se,te){N.apply(Se,F(te)?te:[te])},P=Date.prototype.toISOString,y=T.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:y,formatter:T.formatters[y],indices:!1,serializeDate:function(te){return P.call(te)},skipNulls:!1,strictNullHandling:!1},ee={},se=function Se(te,oe,q,we,ae,Q,pe,Ee,ke,Ye,ct,ut,Ct,Ue,vt,ln){for(var Je=te,Ft=ln,st=0,Ze=!1;void 0!==(Ft=Ft.get(ee))&&!Ze;){var $e=Ft.get(te);if(st+=1,typeof $e<"u"){if($e===st)throw new RangeError("Cyclic object value");Ze=!0}typeof Ft.get(ee)>"u"&&(st=0)}if("function"==typeof Ee?Je=Ee(oe,Je):Je instanceof Date?Je=ct(Je):"comma"===q&&F(Je)&&(Je=o.maybeMap(Je,function(It){return It instanceof Date?ct(It):It})),null===Je){if(ae)return pe&&!Ue?pe(oe,j.encoder,vt,"key",ut):oe;Je=""}if(function(te){return"string"==typeof te||"number"==typeof te||"boolean"==typeof te||"symbol"==typeof te||"bigint"==typeof te}(Je)||o.isBuffer(Je))return pe?[Ct(Ue?oe:pe(oe,j.encoder,vt,"key",ut))+"="+Ct(pe(Je,j.encoder,vt,"value",ut))]:[Ct(oe)+"="+Ct(String(Je))];var xt,Nt=[];if(typeof Je>"u")return Nt;if("comma"===q&&F(Je))Ue&&pe&&(Je=o.maybeMap(Je,pe)),xt=[{value:Je.length>0?Je.join(",")||null:void 0}];else if(F(Ee))xt=Ee;else{var Ot=Object.keys(Je);xt=ke?Ot.sort(ke):Ot}for(var Kt=we&&F(Je)&&1===Je.length?oe+"[]":oe,$t=0;$t<xt.length;++$t){var rt=xt[$t],We="object"==typeof rt&&typeof rt.value<"u"?rt.value:Je[rt];if(!Q||null!==We){var yt=F(Je)?"function"==typeof q?q(Kt,rt):Kt:Kt+(Ye?"."+rt:"["+rt+"]");ln.set(te,st);var it=e();it.set(ee,ln),R(Nt,Se(We,yt,q,we,ae,Q,"comma"===q&&Ue&&F(Je)?null:pe,Ee,ke,Ye,ct,ut,Ct,Ue,vt,it))}}return Nt};fn.exports=function(Se,te){var we,oe=Se,q=function(te){if(!te)return j;if(null!==te.encoder&&typeof te.encoder<"u"&&"function"!=typeof te.encoder)throw new TypeError("Encoder has to be a function.");var oe=te.charset||j.charset;if(typeof te.charset<"u"&&"utf-8"!==te.charset&&"iso-8859-1"!==te.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var q=T.default;if(typeof te.format<"u"){if(!A.call(T.formatters,te.format))throw new TypeError("Unknown format option provided.");q=te.format}var we=T.formatters[q],ae=j.filter;return("function"==typeof te.filter||F(te.filter))&&(ae=te.filter),{addQueryPrefix:"boolean"==typeof te.addQueryPrefix?te.addQueryPrefix:j.addQueryPrefix,allowDots:typeof te.allowDots>"u"?j.allowDots:!!te.allowDots,charset:oe,charsetSentinel:"boolean"==typeof te.charsetSentinel?te.charsetSentinel:j.charsetSentinel,delimiter:typeof te.delimiter>"u"?j.delimiter:te.delimiter,encode:"boolean"==typeof te.encode?te.encode:j.encode,encoder:"function"==typeof te.encoder?te.encoder:j.encoder,encodeValuesOnly:"boolean"==typeof te.encodeValuesOnly?te.encodeValuesOnly:j.encodeValuesOnly,filter:ae,format:q,formatter:we,serializeDate:"function"==typeof te.serializeDate?te.serializeDate:j.serializeDate,skipNulls:"boolean"==typeof te.skipNulls?te.skipNulls:j.skipNulls,sort:"function"==typeof te.sort?te.sort:null,strictNullHandling:"boolean"==typeof te.strictNullHandling?te.strictNullHandling:j.strictNullHandling}}(te);"function"==typeof q.filter?oe=(0,q.filter)("",oe):F(q.filter)&&(we=q.filter);var Q=[];if("object"!=typeof oe||null===oe)return"";var Ee=G[te&&te.arrayFormat in G?te.arrayFormat:te&&"indices"in te?te.indices?"indices":"repeat":"indices"];if(te&&"commaRoundTrip"in te&&"boolean"!=typeof te.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var ke="comma"===Ee&&te&&te.commaRoundTrip;we||(we=Object.keys(oe)),q.sort&&we.sort(q.sort);for(var Ye=e(),ct=0;ct<we.length;++ct){var ut=we[ct];q.skipNulls&&null===oe[ut]||R(Q,se(oe[ut],ut,Ee,ke,q.strictNullHandling,q.skipNulls,q.encode?q.encoder:null,q.filter,q.sort,q.allowDots,q.serializeDate,q.format,q.formatter,q.encodeValuesOnly,q.charset,Ye))}var Ct=Q.join(q.delimiter),Ue=!0===q.addQueryPrefix?"?":"";return q.charsetSentinel&&(Ue+="iso-8859-1"===q.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),Ct.length>0?Ue+Ct:""}},4393:(fn,ve,_)=>{"use strict";var e=_(59165),o=Object.prototype.hasOwnProperty,T=Array.isArray,A=function(){for(var Se=[],te=0;te<256;++te)Se.push("%"+((te<16?"0":"")+te.toString(16)).toUpperCase());return Se}(),F=function(te,oe){for(var q=oe&&oe.plainObjects?Object.create(null):{},we=0;we<te.length;++we)typeof te[we]<"u"&&(q[we]=te[we]);return q};fn.exports={arrayToObject:F,assign:function(te,oe){return Object.keys(oe).reduce(function(q,we){return q[we]=oe[we],q},te)},combine:function(te,oe){return[].concat(te,oe)},compact:function(te){for(var oe=[{obj:{o:te},prop:"o"}],q=[],we=0;we<oe.length;++we)for(var ae=oe[we],Q=ae.obj[ae.prop],pe=Object.keys(Q),Ee=0;Ee<pe.length;++Ee){var ke=pe[Ee],Ye=Q[ke];"object"==typeof Ye&&null!==Ye&&-1===q.indexOf(Ye)&&(oe.push({obj:Q,prop:ke}),q.push(Ye))}return function(te){for(;te.length>1;){var oe=te.pop(),q=oe.obj[oe.prop];if(T(q)){for(var we=[],ae=0;ae<q.length;++ae)typeof q[ae]<"u"&&we.push(q[ae]);oe.obj[oe.prop]=we}}}(oe),te},decode:function(Se,te,oe){var q=Se.replace(/\+/g," ");if("iso-8859-1"===oe)return q.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(q)}catch{return q}},encode:function(te,oe,q,we,ae){if(0===te.length)return te;var Q=te;if("symbol"==typeof te?Q=Symbol.prototype.toString.call(te):"string"!=typeof te&&(Q=String(te)),"iso-8859-1"===q)return escape(Q).replace(/%u[0-9a-f]{4}/gi,function(Ye){return"%26%23"+parseInt(Ye.slice(2),16)+"%3B"});for(var pe="",Ee=0;Ee<Q.length;++Ee){var ke=Q.charCodeAt(Ee);45===ke||46===ke||95===ke||126===ke||ke>=48&&ke<=57||ke>=65&&ke<=90||ke>=97&&ke<=122||ae===e.RFC1738&&(40===ke||41===ke)?pe+=Q.charAt(Ee):ke<128?pe+=A[ke]:ke<2048?pe+=A[192|ke>>6]+A[128|63&ke]:ke<55296||ke>=57344?pe+=A[224|ke>>12]+A[128|ke>>6&63]+A[128|63&ke]:(ke=65536+((1023&ke)<<10|1023&Q.charCodeAt(Ee+=1)),pe+=A[240|ke>>18]+A[128|ke>>12&63]+A[128|ke>>6&63]+A[128|63&ke])}return pe},isBuffer:function(te){return!(!te||"object"!=typeof te||!(te.constructor&&te.constructor.isBuffer&&te.constructor.isBuffer(te)))},isRegExp:function(te){return"[object RegExp]"===Object.prototype.toString.call(te)},maybeMap:function(te,oe){if(T(te)){for(var q=[],we=0;we<te.length;we+=1)q.push(oe(te[we]));return q}return oe(te)},merge:function Se(te,oe,q){if(!oe)return te;if("object"!=typeof oe){if(T(te))te.push(oe);else{if(!te||"object"!=typeof te)return[te,oe];(q&&(q.plainObjects||q.allowPrototypes)||!o.call(Object.prototype,oe))&&(te[oe]=!0)}return te}if(!te||"object"!=typeof te)return[te].concat(oe);var we=te;return T(te)&&!T(oe)&&(we=F(te,q)),T(te)&&T(oe)?(oe.forEach(function(ae,Q){if(o.call(te,Q)){var pe=te[Q];pe&&"object"==typeof pe&&ae&&"object"==typeof ae?te[Q]=Se(pe,ae,q):te.push(ae)}else te[Q]=ae}),te):Object.keys(oe).reduce(function(ae,Q){var pe=oe[Q];return ae[Q]=o.call(ae,Q)?Se(ae[Q],pe,q):pe,ae},we)}}},61135:(fn,ve,_)=>{"use strict";_.d(ve,{X:()=>o});var e=_(77579);class o extends e.x{constructor(A){super(),this._value=A}get value(){return this.getValue()}_subscribe(A){const G=super._subscribe(A);return!G.closed&&A.next(this._value),G}getValue(){const{hasError:A,thrownError:G,_value:F}=this;if(A)throw G;return this._throwIfClosed(),F}next(A){super.next(this._value=A)}}},69751:(fn,ve,_)=>{"use strict";_.d(ve,{y:()=>R});var e=_(70930),o=_(50727),T=_(48822),A=_(89635),G=_(42416),F=_(30576),N=_(72806);let R=(()=>{class Y{constructor(se){se&&(this._subscribe=se)}lift(se){const he=new Y;return he.source=this,he.operator=se,he}subscribe(se,he,Se){const te=function j(Y){return Y&&Y instanceof e.Lv||function y(Y){return Y&&(0,F.m)(Y.next)&&(0,F.m)(Y.error)&&(0,F.m)(Y.complete)}(Y)&&(0,o.Nn)(Y)}(se)?se:new e.Hp(se,he,Se);return(0,N.x)(()=>{const{operator:oe,source:q}=this;te.add(oe?oe.call(te,q):q?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(se){try{return this._subscribe(se)}catch(he){se.error(he)}}forEach(se,he){return new(he=P(he))((Se,te)=>{const oe=new e.Hp({next:q=>{try{se(q)}catch(we){te(we),oe.unsubscribe()}},error:te,complete:Se});this.subscribe(oe)})}_subscribe(se){var he;return null===(he=this.source)||void 0===he?void 0:he.subscribe(se)}[T.L](){return this}pipe(...se){return(0,A.U)(se)(this)}toPromise(se){return new(se=P(se))((he,Se)=>{let te;this.subscribe(oe=>te=oe,oe=>Se(oe),()=>he(te))})}}return Y.create=ee=>new Y(ee),Y})();function P(Y){var ee;return null!==(ee=Y??G.v.Promise)&&void 0!==ee?ee:Promise}},4707:(fn,ve,_)=>{"use strict";_.d(ve,{t:()=>T});var e=_(77579),o=_(26063);class T extends e.x{constructor(G=1/0,F=1/0,N=o.l){super(),this._bufferSize=G,this._windowTime=F,this._timestampProvider=N,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=F===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,F)}next(G){const{isStopped:F,_buffer:N,_infiniteTimeWindow:R,_timestampProvider:P,_windowTime:y}=this;F||(N.push(G),!R&&N.push(P.now()+y)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const F=this._innerSubscribe(G),{_infiniteTimeWindow:N,_buffer:R}=this,P=R.slice();for(let y=0;y<P.length&&!G.closed;y+=N?1:2)G.next(P[y]);return this._checkFinalizedStatuses(G),F}_trimBuffer(){const{_bufferSize:G,_timestampProvider:F,_buffer:N,_infiniteTimeWindow:R}=this,P=(R?1:2)*G;if(G<1/0&&P<N.length&&N.splice(0,N.length-P),!R){const y=F.now();let j=0;for(let Y=1;Y<N.length&&N[Y]<=y;Y+=2)j=Y;j&&N.splice(0,j+1)}}}},77579:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>N});var e=_(69751),o=_(50727);const A=(0,_(83888).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=_(38737),F=_(72806);let N=(()=>{class P extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(j){const Y=new R(this,this);return Y.operator=j,Y}_throwIfClosed(){if(this.closed)throw new A}next(j){(0,F.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Y of this.currentObservers)Y.next(j)}})}error(j){(0,F.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=j;const{observers:Y}=this;for(;Y.length;)Y.shift().error(j)}})}complete(){(0,F.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:j}=this;for(;j.length;)j.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var j;return(null===(j=this.observers)||void 0===j?void 0:j.length)>0}_trySubscribe(j){return this._throwIfClosed(),super._trySubscribe(j)}_subscribe(j){return this._throwIfClosed(),this._checkFinalizedStatuses(j),this._innerSubscribe(j)}_innerSubscribe(j){const{hasError:Y,isStopped:ee,observers:se}=this;return Y||ee?o.Lc:(this.currentObservers=null,se.push(j),new o.w0(()=>{this.currentObservers=null,(0,G.P)(se,j)}))}_checkFinalizedStatuses(j){const{hasError:Y,thrownError:ee,isStopped:se}=this;Y?j.error(ee):se&&j.complete()}asObservable(){const j=new e.y;return j.source=this,j}}return P.create=(y,j)=>new R(y,j),P})();class R extends N{constructor(y,j){super(),this.destination=y,this.source=j}next(y){var j,Y;null===(Y=null===(j=this.destination)||void 0===j?void 0:j.next)||void 0===Y||Y.call(j,y)}error(y){var j,Y;null===(Y=null===(j=this.destination)||void 0===j?void 0:j.error)||void 0===Y||Y.call(j,y)}complete(){var y,j;null===(j=null===(y=this.destination)||void 0===y?void 0:y.complete)||void 0===j||j.call(y)}_subscribe(y){var j,Y;return null!==(Y=null===(j=this.source)||void 0===j?void 0:j.subscribe(y))&&void 0!==Y?Y:o.Lc}}},70930:(fn,ve,_)=>{"use strict";_.d(ve,{Hp:()=>Se,Lv:()=>Y});var e=_(30576),o=_(50727),T=_(42416),A=_(87849),G=_(25032);const F=P("C",void 0,void 0);function P(ae,Q,pe){return{kind:ae,value:Q,error:pe}}var y=_(43410),j=_(72806);class Y extends o.w0{constructor(Q){super(),this.isStopped=!1,Q?(this.destination=Q,(0,o.Nn)(Q)&&Q.add(this)):this.destination=we}static create(Q,pe,Ee){return new Se(Q,pe,Ee)}next(Q){this.isStopped?q(function R(ae){return P("N",ae,void 0)}(Q),this):this._next(Q)}error(Q){this.isStopped?q(function N(ae){return P("E",void 0,ae)}(Q),this):(this.isStopped=!0,this._error(Q))}complete(){this.isStopped?q(F,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Q){this.destination.next(Q)}_error(Q){try{this.destination.error(Q)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ee=Function.prototype.bind;function se(ae,Q){return ee.call(ae,Q)}class he{constructor(Q){this.partialObserver=Q}next(Q){const{partialObserver:pe}=this;if(pe.next)try{pe.next(Q)}catch(Ee){te(Ee)}}error(Q){const{partialObserver:pe}=this;if(pe.error)try{pe.error(Q)}catch(Ee){te(Ee)}else te(Q)}complete(){const{partialObserver:Q}=this;if(Q.complete)try{Q.complete()}catch(pe){te(pe)}}}class Se extends Y{constructor(Q,pe,Ee){let ke;if(super(),(0,e.m)(Q)||!Q)ke={next:Q??void 0,error:pe??void 0,complete:Ee??void 0};else{let Ye;this&&T.v.useDeprecatedNextContext?(Ye=Object.create(Q),Ye.unsubscribe=()=>this.unsubscribe(),ke={next:Q.next&&se(Q.next,Ye),error:Q.error&&se(Q.error,Ye),complete:Q.complete&&se(Q.complete,Ye)}):ke=Q}this.destination=new he(ke)}}function te(ae){T.v.useDeprecatedSynchronousErrorHandling?(0,j.O)(ae):(0,A.h)(ae)}function q(ae,Q){const{onStoppedNotification:pe}=T.v;pe&&y.z.setTimeout(()=>pe(ae,Q))}const we={closed:!0,next:G.Z,error:function oe(ae){throw ae},complete:G.Z}},50727:(fn,ve,_)=>{"use strict";_.d(ve,{Lc:()=>F,w0:()=>G,Nn:()=>N});var e=_(30576);const T=(0,_(83888).d)(P=>function(j){P(this),this.message=j?`${j.length} errors occurred during unsubscription:\n${j.map((Y,ee)=>`${ee+1}) ${Y.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=j});var A=_(38737);class G{constructor(y){this.initialTeardown=y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let y;if(!this.closed){this.closed=!0;const{_parentage:j}=this;if(j)if(this._parentage=null,Array.isArray(j))for(const se of j)se.remove(this);else j.remove(this);const{initialTeardown:Y}=this;if((0,e.m)(Y))try{Y()}catch(se){y=se instanceof T?se.errors:[se]}const{_finalizers:ee}=this;if(ee){this._finalizers=null;for(const se of ee)try{R(se)}catch(he){y=y??[],he instanceof T?y=[...y,...he.errors]:y.push(he)}}if(y)throw new T(y)}}add(y){var j;if(y&&y!==this)if(this.closed)R(y);else{if(y instanceof G){if(y.closed||y._hasParent(this))return;y._addParent(this)}(this._finalizers=null!==(j=this._finalizers)&&void 0!==j?j:[]).push(y)}}_hasParent(y){const{_parentage:j}=this;return j===y||Array.isArray(j)&&j.includes(y)}_addParent(y){const{_parentage:j}=this;this._parentage=Array.isArray(j)?(j.push(y),j):j?[j,y]:y}_removeParent(y){const{_parentage:j}=this;j===y?this._parentage=null:Array.isArray(j)&&(0,A.P)(j,y)}remove(y){const{_finalizers:j}=this;j&&(0,A.P)(j,y),y instanceof G&&y._removeParent(this)}}G.EMPTY=(()=>{const P=new G;return P.closed=!0,P})();const F=G.EMPTY;function N(P){return P instanceof G||P&&"closed"in P&&(0,e.m)(P.remove)&&(0,e.m)(P.add)&&(0,e.m)(P.unsubscribe)}function R(P){(0,e.m)(P)?P():P.unsubscribe()}},42416:(fn,ve,_)=>{"use strict";_.d(ve,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94033:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>F});var e=_(69751),o=_(50727),T=_(38343),A=_(25403),G=_(54482);class F extends e.y{constructor(R,P){super(),this.source=R,this.subjectFactory=P,this._subject=null,this._refCount=0,this._connection=null,(0,G.A)(R)&&(this.lift=R.lift)}_subscribe(R){return this.getSubject().subscribe(R)}getSubject(){const R=this._subject;return(!R||R.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:R}=this;this._subject=this._connection=null,R?.unsubscribe()}connect(){let R=this._connection;if(!R){R=this._connection=new o.w0;const P=this.getSubject();R.add(this.source.subscribe((0,A.x)(P,void 0,()=>{this._teardown(),P.complete()},y=>{this._teardown(),P.error(y)},()=>this._teardown()))),R.closed&&(this._connection=null,R=o.w0.EMPTY)}return R}refCount(){return(0,T.x)()(this)}}},39841:(fn,ve,_)=>{"use strict";_.d(ve,{a:()=>y});var e=_(69751),o=_(54742),T=_(88996),A=_(44671),G=_(83268),F=_(63269),N=_(31810),R=_(25403),P=_(39672);function y(...ee){const se=(0,F.yG)(ee),he=(0,F.jO)(ee),{args:Se,keys:te}=(0,o.D)(ee);if(0===Se.length)return(0,T.D)([],se);const oe=new e.y(function j(ee,se,he=A.y){return Se=>{Y(se,()=>{const{length:te}=ee,oe=new Array(te);let q=te,we=te;for(let ae=0;ae<te;ae++)Y(se,()=>{const Q=(0,T.D)(ee[ae],se);let pe=!1;Q.subscribe((0,R.x)(Se,Ee=>{oe[ae]=Ee,pe||(pe=!0,we--),we||Se.next(he(oe.slice()))},()=>{--q||Se.complete()}))},Se)},Se)}}(Se,se,te?q=>(0,N.n)(te,q):A.y));return he?oe.pipe((0,G.Z)(he)):oe}function Y(ee,se,he){ee?(0,P.f)(he,ee,se):se()}},97272:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>G});var e=_(8189),T=_(63269),A=_(88996);function G(...F){return function o(){return(0,e.J)(1)}()((0,A.D)(F,(0,T.yG)(F)))}},49770:(fn,ve,_)=>{"use strict";_.d(ve,{P:()=>T});var e=_(69751),o=_(38421);function T(A){return new e.y(G=>{(0,o.Xf)(A()).subscribe(G)})}},60515:(fn,ve,_)=>{"use strict";_.d(ve,{E:()=>o});const o=new(_(69751).y)(G=>G.complete())},4128:(fn,ve,_)=>{"use strict";_.d(ve,{D:()=>R});var e=_(69751),o=_(54742),T=_(38421),A=_(63269),G=_(25403),F=_(83268),N=_(31810);function R(...P){const y=(0,A.jO)(P),{args:j,keys:Y}=(0,o.D)(P),ee=new e.y(se=>{const{length:he}=j;if(!he)return void se.complete();const Se=new Array(he);let te=he,oe=he;for(let q=0;q<he;q++){let we=!1;(0,T.Xf)(j[q]).subscribe((0,G.x)(se,ae=>{we||(we=!0,oe--),Se[q]=ae},()=>te--,void 0,()=>{(!te||!we)&&(oe||se.next(Y?(0,N.n)(Y,Se):Se),se.complete())}))}});return y?ee.pipe((0,F.Z)(y)):ee}},88996:(fn,ve,_)=>{"use strict";_.d(ve,{D:()=>Q});var e=_(38421),o=_(85363),T=_(49468),F=_(69751),R=_(2202),P=_(30576),y=_(39672);function Y(pe,Ee){if(!pe)throw new Error("Iterable cannot be null");return new F.y(ke=>{(0,y.f)(ke,Ee,()=>{const Ye=pe[Symbol.asyncIterator]();(0,y.f)(ke,Ee,()=>{Ye.next().then(ct=>{ct.done?ke.complete():ke.next(ct.value)})},0,!0)})})}var ee=_(93670),se=_(28239),he=_(81144),Se=_(26495),te=_(12206),oe=_(44532),q=_(53260);function Q(pe,Ee){return Ee?function ae(pe,Ee){if(null!=pe){if((0,ee.c)(pe))return function A(pe,Ee){return(0,e.Xf)(pe).pipe((0,T.R)(Ee),(0,o.Q)(Ee))}(pe,Ee);if((0,he.z)(pe))return function N(pe,Ee){return new F.y(ke=>{let Ye=0;return Ee.schedule(function(){Ye===pe.length?ke.complete():(ke.next(pe[Ye++]),ke.closed||this.schedule())})})}(pe,Ee);if((0,se.t)(pe))return function G(pe,Ee){return(0,e.Xf)(pe).pipe((0,T.R)(Ee),(0,o.Q)(Ee))}(pe,Ee);if((0,te.D)(pe))return Y(pe,Ee);if((0,Se.T)(pe))return function j(pe,Ee){return new F.y(ke=>{let Ye;return(0,y.f)(ke,Ee,()=>{Ye=pe[R.h](),(0,y.f)(ke,Ee,()=>{let ct,ut;try{({value:ct,done:ut}=Ye.next())}catch(Ct){return void ke.error(Ct)}ut?ke.complete():ke.next(ct)},0,!0)}),()=>(0,P.m)(Ye?.return)&&Ye.return()})}(pe,Ee);if((0,q.L)(pe))return function we(pe,Ee){return Y((0,q.Q)(pe),Ee)}(pe,Ee)}throw(0,oe.z)(pe)}(pe,Ee):(0,e.Xf)(pe)}},54968:(fn,ve,_)=>{"use strict";_.d(ve,{R:()=>y});var e=_(38421),o=_(69751),T=_(95577),A=_(81144),G=_(30576),F=_(83268);const N=["addListener","removeListener"],R=["addEventListener","removeEventListener"],P=["on","off"];function y(he,Se,te,oe){if((0,G.m)(te)&&(oe=te,te=void 0),oe)return y(he,Se,te).pipe((0,F.Z)(oe));const[q,we]=function se(he){return(0,G.m)(he.addEventListener)&&(0,G.m)(he.removeEventListener)}(he)?R.map(ae=>Q=>he[ae](Se,Q,te)):function Y(he){return(0,G.m)(he.addListener)&&(0,G.m)(he.removeListener)}(he)?N.map(j(he,Se)):function ee(he){return(0,G.m)(he.on)&&(0,G.m)(he.off)}(he)?P.map(j(he,Se)):[];if(!q&&(0,A.z)(he))return(0,T.z)(ae=>y(ae,Se,te))((0,e.Xf)(he));if(!q)throw new TypeError("Invalid event target");return new o.y(ae=>{const Q=(...pe)=>ae.next(1<pe.length?pe:pe[0]);return q(Q),()=>we(Q)})}function j(he,Se){return te=>oe=>he[te](Se,oe)}},38421:(fn,ve,_)=>{"use strict";_.d(ve,{Xf:()=>ee});var e=_(97582),o=_(81144),T=_(28239),A=_(69751),G=_(93670),F=_(12206),N=_(44532),R=_(26495),P=_(53260),y=_(30576),j=_(87849),Y=_(48822);function ee(ae){if(ae instanceof A.y)return ae;if(null!=ae){if((0,G.c)(ae))return function se(ae){return new A.y(Q=>{const pe=ae[Y.L]();if((0,y.m)(pe.subscribe))return pe.subscribe(Q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ae);if((0,o.z)(ae))return function he(ae){return new A.y(Q=>{for(let pe=0;pe<ae.length&&!Q.closed;pe++)Q.next(ae[pe]);Q.complete()})}(ae);if((0,T.t)(ae))return function Se(ae){return new A.y(Q=>{ae.then(pe=>{Q.closed||(Q.next(pe),Q.complete())},pe=>Q.error(pe)).then(null,j.h)})}(ae);if((0,F.D)(ae))return oe(ae);if((0,R.T)(ae))return function te(ae){return new A.y(Q=>{for(const pe of ae)if(Q.next(pe),Q.closed)return;Q.complete()})}(ae);if((0,P.L)(ae))return function q(ae){return oe((0,P.Q)(ae))}(ae)}throw(0,N.z)(ae)}function oe(ae){return new A.y(Q=>{(function we(ae,Q){var pe,Ee,ke,Ye;return(0,e.mG)(this,void 0,void 0,function*(){try{for(pe=(0,e.KL)(ae);!(Ee=yield pe.next()).done;)if(Q.next(Ee.value),Q.closed)return}catch(ct){ke={error:ct}}finally{try{Ee&&!Ee.done&&(Ye=pe.return)&&(yield Ye.call(pe))}finally{if(ke)throw ke.error}}Q.complete()})})(ae,Q).catch(pe=>Q.error(pe))})}},17445:(fn,ve,_)=>{"use strict";_.d(ve,{F:()=>T});var e=_(34986),o=_(82805);function T(A=0,G=e.z){return A<0&&(A=0),(0,o.H)(A,A,G)}},56451:(fn,ve,_)=>{"use strict";_.d(ve,{T:()=>F});var e=_(8189),o=_(38421),T=_(60515),A=_(63269),G=_(88996);function F(...N){const R=(0,A.yG)(N),P=(0,A._6)(N,1/0),y=N;return y.length?1===y.length?(0,o.Xf)(y[0]):(0,e.J)(P)((0,G.D)(y,R)):T.E}},39646:(fn,ve,_)=>{"use strict";_.d(ve,{of:()=>T});var e=_(63269),o=_(88996);function T(...A){const G=(0,e.yG)(A);return(0,o.D)(A,G)}},62843:(fn,ve,_)=>{"use strict";_.d(ve,{_:()=>T});var e=_(69751),o=_(30576);function T(A,G){const F=(0,o.m)(A)?A:()=>A,N=R=>R.error(F());return new e.y(G?R=>G.schedule(N,0,R):N)}},82805:(fn,ve,_)=>{"use strict";_.d(ve,{H:()=>G});var e=_(69751),o=_(34986),T=_(93532),A=_(51165);function G(F=0,N,R=o.P){let P=-1;return null!=N&&((0,T.K)(N)?R=N:P=N),new e.y(y=>{let j=(0,A.q)(F)?+F-R.now():F;j<0&&(j=0);let Y=0;return R.schedule(function(){y.closed||(y.next(Y++),0<=P?this.schedule(void 0,P):y.complete())},j)})}},62557:(fn,ve,_)=>{"use strict";_.d(ve,{$:()=>N});var e=_(69751),o=_(38421),T=_(75797),A=_(60515),G=_(25403),F=_(63269);function N(...R){const P=(0,F.jO)(R),y=(0,T.k)(R);return y.length?new e.y(j=>{let Y=y.map(()=>[]),ee=y.map(()=>!1);j.add(()=>{Y=ee=null});for(let se=0;!j.closed&&se<y.length;se++)(0,o.Xf)(y[se]).subscribe((0,G.x)(j,he=>{if(Y[se].push(he),Y.every(Se=>Se.length)){const Se=Y.map(te=>te.shift());j.next(P?P(...Se):Se),Y.some((te,oe)=>!te.length&&ee[oe])&&j.complete()}},()=>{ee[se]=!0,!Y[se].length&&j.complete()}));return()=>{Y=ee=null}}):A.E}},25403:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>o});var e=_(70930);function o(A,G,F,N,R){return new T(A,G,F,N,R)}class T extends e.Lv{constructor(G,F,N,R,P,y){super(G),this.onFinalize=P,this.shouldUnsubscribe=y,this._next=F?function(j){try{F(j)}catch(Y){G.error(Y)}}:super._next,this._error=R?function(j){try{R(j)}catch(Y){G.error(Y)}finally{this.unsubscribe()}}:super._error,this._complete=N?function(){try{N()}catch(j){G.error(j)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var G;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:F}=this;super.unsubscribe(),!F&&(null===(G=this.onFinalize)||void 0===G||G.call(this))}}}},23601:(fn,ve,_)=>{"use strict";_.d(ve,{e:()=>N});var e=_(34986),o=_(54482),T=_(38421),A=_(25403),F=_(82805);function N(R,P=e.z){return function G(R){return(0,o.e)((P,y)=>{let j=!1,Y=null,ee=null,se=!1;const he=()=>{if(ee?.unsubscribe(),ee=null,j){j=!1;const te=Y;Y=null,y.next(te)}se&&y.complete()},Se=()=>{ee=null,se&&y.complete()};P.subscribe((0,A.x)(y,te=>{j=!0,Y=te,ee||(0,T.Xf)(R(te)).subscribe(ee=(0,A.x)(y,he,Se))},()=>{se=!0,(!j||!ee||ee.closed)&&y.complete()}))})}(()=>(0,F.H)(R,P))}},70262:(fn,ve,_)=>{"use strict";_.d(ve,{K:()=>A});var e=_(38421),o=_(25403),T=_(54482);function A(G){return(0,T.e)((F,N)=>{let y,R=null,P=!1;R=F.subscribe((0,o.x)(N,void 0,void 0,j=>{y=(0,e.Xf)(G(j,A(G)(F))),R?(R.unsubscribe(),R=null,y.subscribe(N)):P=!0})),P&&(R.unsubscribe(),R=null,y.subscribe(N))})}},24351:(fn,ve,_)=>{"use strict";_.d(ve,{b:()=>T});var e=_(95577),o=_(30576);function T(A,G){return(0,o.m)(G)?(0,e.z)(A,G,1):(0,e.z)(A,1)}},78372:(fn,ve,_)=>{"use strict";_.d(ve,{b:()=>A});var e=_(34986),o=_(54482),T=_(25403);function A(G,F=e.z){return(0,o.e)((N,R)=>{let P=null,y=null,j=null;const Y=()=>{if(P){P.unsubscribe(),P=null;const se=y;y=null,R.next(se)}};function ee(){const se=j+G,he=F.now();if(he<se)return P=this.schedule(void 0,se-he),void R.add(P);Y()}N.subscribe((0,T.x)(R,se=>{y=se,j=F.now(),P||(P=F.schedule(ee,G),R.add(P))},()=>{Y(),R.complete()},void 0,()=>{y=P=null}))})}},46590:(fn,ve,_)=>{"use strict";_.d(ve,{d:()=>T});var e=_(54482),o=_(25403);function T(A){return(0,e.e)((G,F)=>{let N=!1;G.subscribe((0,o.x)(F,R=>{N=!0,F.next(R)},()=>{N||F.next(A),F.complete()}))})}},91005:(fn,ve,_)=>{"use strict";_.d(ve,{g:()=>ee});var e=_(34986),o=_(97272),T=_(95698),A=_(54482),G=_(25403),F=_(25032),R=_(69718),P=_(95577),y=_(38421);function j(se,he){return he?Se=>(0,o.z)(he.pipe((0,T.q)(1),function N(){return(0,A.e)((se,he)=>{se.subscribe((0,G.x)(he,F.Z))})}()),Se.pipe(j(se))):(0,P.z)((Se,te)=>(0,y.Xf)(se(Se,te)).pipe((0,T.q)(1),(0,R.h)(Se)))}var Y=_(82805);function ee(se,he=e.z){const Se=(0,Y.H)(se,he);return j(()=>Se)}},71884:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>A});var e=_(44671),o=_(54482),T=_(25403);function A(F,N=e.y){return F=F??G,(0,o.e)((R,P)=>{let y,j=!0;R.subscribe((0,T.x)(P,Y=>{const ee=N(Y);(j||!F(y,ee))&&(j=!1,y=ee,P.next(Y))}))})}function G(F,N){return F===N}},39300:(fn,ve,_)=>{"use strict";_.d(ve,{h:()=>T});var e=_(54482),o=_(25403);function T(A,G){return(0,e.e)((F,N)=>{let R=0;F.subscribe((0,o.x)(N,P=>A.call(G,P,R++)&&N.next(P)))})}},28746:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>o});var e=_(54482);function o(T){return(0,e.e)((A,G)=>{try{A.subscribe(G)}finally{G.add(T)}})}},50590:(fn,ve,_)=>{"use strict";_.d(ve,{P:()=>N});var e=_(86805),o=_(39300),T=_(95698),A=_(46590),G=_(18068),F=_(44671);function N(R,P){const y=arguments.length>=2;return j=>j.pipe(R?(0,o.h)((Y,ee)=>R(Y,ee,j)):F.y,(0,T.q)(1),y?(0,A.d)(P):(0,G.T)(()=>new e.K))}},54004:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>T});var e=_(54482),o=_(25403);function T(A,G){return(0,e.e)((F,N)=>{let R=0;F.subscribe((0,o.x)(N,P=>{N.next(A.call(G,P,R++))}))})}},69718:(fn,ve,_)=>{"use strict";_.d(ve,{h:()=>o});var e=_(54004);function o(T){return(0,e.U)(()=>T)}},8189:(fn,ve,_)=>{"use strict";_.d(ve,{J:()=>T});var e=_(95577),o=_(44671);function T(A=1/0){return(0,e.z)(o.y,A)}},95577:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>R});var e=_(54004),o=_(38421),T=_(54482),A=_(39672),G=_(25403),N=_(30576);function R(P,y,j=1/0){return(0,N.m)(y)?R((Y,ee)=>(0,e.U)((se,he)=>y(Y,se,ee,he))((0,o.Xf)(P(Y,ee))),j):("number"==typeof y&&(j=y),(0,T.e)((Y,ee)=>function F(P,y,j,Y,ee,se,he,Se){const te=[];let oe=0,q=0,we=!1;const ae=()=>{we&&!te.length&&!oe&&y.complete()},Q=Ee=>oe<Y?pe(Ee):te.push(Ee),pe=Ee=>{se&&y.next(Ee),oe++;let ke=!1;(0,o.Xf)(j(Ee,q++)).subscribe((0,G.x)(y,Ye=>{ee?.(Ye),se?Q(Ye):y.next(Ye)},()=>{ke=!0},void 0,()=>{if(ke)try{for(oe--;te.length&&oe<Y;){const Ye=te.shift();he?(0,A.f)(y,he,()=>pe(Ye)):pe(Ye)}ae()}catch(Ye){y.error(Ye)}}))};return P.subscribe((0,G.x)(y,Q,()=>{we=!0,ae()})),()=>{Se?.()}}(Y,ee,P,j)))}},85363:(fn,ve,_)=>{"use strict";_.d(ve,{Q:()=>A});var e=_(39672),o=_(54482),T=_(25403);function A(G,F=0){return(0,o.e)((N,R)=>{N.subscribe((0,T.x)(R,P=>(0,e.f)(R,G,()=>R.next(P),F),()=>(0,e.f)(R,G,()=>R.complete(),F),P=>(0,e.f)(R,G,()=>R.error(P),F)))})}},38343:(fn,ve,_)=>{"use strict";_.d(ve,{x:()=>T});var e=_(54482),o=_(25403);function T(){return(0,e.e)((A,G)=>{let F=null;A._refCount++;const N=(0,o.x)(G,void 0,void 0,void 0,()=>{if(!A||A._refCount<=0||0<--A._refCount)return void(F=null);const R=A._connection,P=F;F=null,R&&(!P||R===P)&&R.unsubscribe(),G.unsubscribe()});A.subscribe(N),N.closed||(F=A.connect())})}},22940:(fn,ve,_)=>{"use strict";_.d(ve,{R:()=>T});var e=_(54482),o=_(57359);function T(A,G){return(0,e.e)((0,o.U)(A,G,arguments.length>=2,!0))}},57359:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>o});var e=_(25403);function o(T,A,G,F,N){return(R,P)=>{let y=G,j=A,Y=0;R.subscribe((0,e.x)(P,ee=>{const se=Y++;j=y?T(j,ee,se):(y=!0,ee),F&&P.next(j)},N&&(()=>{y&&P.next(j),P.complete()})))}}},13099:(fn,ve,_)=>{"use strict";_.d(ve,{B:()=>G});var e=_(38421),o=_(77579),T=_(70930),A=_(54482);function G(N={}){const{connector:R=(()=>new o.x),resetOnError:P=!0,resetOnComplete:y=!0,resetOnRefCountZero:j=!0}=N;return Y=>{let ee,se,he,Se=0,te=!1,oe=!1;const q=()=>{se?.unsubscribe(),se=void 0},we=()=>{q(),ee=he=void 0,te=oe=!1},ae=()=>{const Q=ee;we(),Q?.unsubscribe()};return(0,A.e)((Q,pe)=>{Se++,!oe&&!te&&q();const Ee=he=he??R();pe.add(()=>{Se--,0===Se&&!oe&&!te&&(se=F(ae,j))}),Ee.subscribe(pe),!ee&&Se>0&&(ee=new T.Hp({next:ke=>Ee.next(ke),error:ke=>{oe=!0,q(),se=F(we,P,ke),Ee.error(ke)},complete:()=>{te=!0,q(),se=F(we,y),Ee.complete()}}),(0,e.Xf)(Q).subscribe(ee))})(Y)}}function F(N,R,...P){if(!0===R)return void N();if(!1===R)return;const y=new T.Hp({next:()=>{y.unsubscribe(),N()}});return(0,e.Xf)(R(...P)).subscribe(y)}},34782:(fn,ve,_)=>{"use strict";_.d(ve,{d:()=>T});var e=_(4707),o=_(13099);function T(A,G,F){let N,R=!1;return A&&"object"==typeof A?({bufferSize:N=1/0,windowTime:G=1/0,refCount:R=!1,scheduler:F}=A):N=A??1/0,(0,o.B)({connector:()=>new e.t(N,G,F),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:R})}},35684:(fn,ve,_)=>{"use strict";_.d(ve,{T:()=>o});var e=_(39300);function o(T){return(0,e.h)((A,G)=>T<=G)}},54244:(fn,ve,_)=>{"use strict";_.d(ve,{n:()=>T});var e=_(54482),o=_(25403);function T(A){return(0,e.e)((G,F)=>{let N=!1,R=0;G.subscribe((0,o.x)(F,P=>(N||(N=!A(P,R++)))&&F.next(P)))})}},68675:(fn,ve,_)=>{"use strict";_.d(ve,{O:()=>A});var e=_(97272),o=_(63269),T=_(54482);function A(...G){const F=(0,o.yG)(G);return(0,T.e)((N,R)=>{(F?(0,e.z)(G,N,F):(0,e.z)(G,N)).subscribe(R)})}},49468:(fn,ve,_)=>{"use strict";_.d(ve,{R:()=>o});var e=_(54482);function o(T,A=0){return(0,e.e)((G,F)=>{F.add(T.schedule(()=>G.subscribe(F),A))})}},63900:(fn,ve,_)=>{"use strict";_.d(ve,{w:()=>A});var e=_(38421),o=_(54482),T=_(25403);function A(G,F){return(0,o.e)((N,R)=>{let P=null,y=0,j=!1;const Y=()=>j&&!P&&R.complete();N.subscribe((0,T.x)(R,ee=>{P?.unsubscribe();let se=0;const he=y++;(0,e.Xf)(G(ee,he)).subscribe(P=(0,T.x)(R,Se=>R.next(F?F(ee,Se,he,se++):Se),()=>{P=null,Y()}))},()=>{j=!0,Y()}))})}},66304:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>T});var e=_(63900),o=_(30576);function T(A,G){return(0,o.m)(G)?(0,e.w)(()=>A,G):(0,e.w)(()=>A)}},95698:(fn,ve,_)=>{"use strict";_.d(ve,{q:()=>A});var e=_(60515),o=_(54482),T=_(25403);function A(G){return G<=0?()=>e.E:(0,o.e)((F,N)=>{let R=0;F.subscribe((0,T.x)(N,P=>{++R<=G&&(N.next(P),G<=R&&N.complete())}))})}},82722:(fn,ve,_)=>{"use strict";_.d(ve,{R:()=>G});var e=_(54482),o=_(25403),T=_(38421),A=_(25032);function G(F){return(0,e.e)((N,R)=>{(0,T.Xf)(F).subscribe((0,o.x)(R,()=>R.complete(),A.Z)),!R.closed&&N.subscribe(R)})}},22529:(fn,ve,_)=>{"use strict";_.d(ve,{o:()=>T});var e=_(54482),o=_(25403);function T(A,G=!1){return(0,e.e)((F,N)=>{let R=0;F.subscribe((0,o.x)(N,P=>{const y=A(P,R++);(y||G)&&N.next(P),!y&&N.complete()}))})}},18505:(fn,ve,_)=>{"use strict";_.d(ve,{b:()=>G});var e=_(30576),o=_(54482),T=_(25403),A=_(44671);function G(F,N,R){const P=(0,e.m)(F)||N||R?{next:F,error:N,complete:R}:F;return P?(0,o.e)((y,j)=>{var Y;null===(Y=P.subscribe)||void 0===Y||Y.call(P);let ee=!0;y.subscribe((0,T.x)(j,se=>{var he;null===(he=P.next)||void 0===he||he.call(P,se),j.next(se)},()=>{var se;ee=!1,null===(se=P.complete)||void 0===se||se.call(P),j.complete()},se=>{var he;ee=!1,null===(he=P.error)||void 0===he||he.call(P,se),j.error(se)},()=>{var se,he;ee&&(null===(se=P.unsubscribe)||void 0===se||se.call(P)),null===(he=P.finalize)||void 0===he||he.call(P)}))}):A.y}},59468:(fn,ve,_)=>{"use strict";_.d(ve,{p:()=>N});var e=_(34986),o=_(54482),T=_(25403),A=_(38421),F=_(82805);function N(R,P=e.z,y){const j=(0,F.H)(R,P);return function G(R,P){return(0,o.e)((y,j)=>{const{leading:Y=!0,trailing:ee=!1}=P??{};let se=!1,he=null,Se=null,te=!1;const oe=()=>{Se?.unsubscribe(),Se=null,ee&&(ae(),te&&j.complete())},q=()=>{Se=null,te&&j.complete()},we=Q=>Se=(0,A.Xf)(R(Q)).subscribe((0,T.x)(j,oe,q)),ae=()=>{if(se){se=!1;const Q=he;he=null,j.next(Q),!te&&we(Q)}};y.subscribe((0,T.x)(j,Q=>{se=!0,he=Q,(!Se||Se.closed)&&(Y?ae():we(Q))},()=>{te=!0,(!(ee&&se&&Se)||Se.closed)&&j.complete()}))})}(()=>j,y)}},18068:(fn,ve,_)=>{"use strict";_.d(ve,{T:()=>A});var e=_(86805),o=_(54482),T=_(25403);function A(F=G){return(0,o.e)((N,R)=>{let P=!1;N.subscribe((0,T.x)(R,y=>{P=!0,R.next(y)},()=>P?R.complete():R.error(F())))})}function G(){return new e.K}},84408:(fn,ve,_)=>{"use strict";_.d(ve,{o:()=>G});var e=_(50727);class o extends e.w0{constructor(N,R){super()}schedule(N,R=0){return this}}const T={setInterval(F,N,...R){const{delegate:P}=T;return P?.setInterval?P.setInterval(F,N,...R):setInterval(F,N,...R)},clearInterval(F){const{delegate:N}=T;return(N?.clearInterval||clearInterval)(F)},delegate:void 0};var A=_(38737);class G extends o{constructor(N,R){super(N,R),this.scheduler=N,this.work=R,this.pending=!1}schedule(N,R=0){var P;if(this.closed)return this;this.state=N;const y=this.id,j=this.scheduler;return null!=y&&(this.id=this.recycleAsyncId(j,y,R)),this.pending=!0,this.delay=R,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId(j,this.id,R),this}requestAsyncId(N,R,P=0){return T.setInterval(N.flush.bind(N,this),P)}recycleAsyncId(N,R,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return R;null!=R&&T.clearInterval(R)}execute(N,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(N,R);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(N,R){let y,P=!1;try{this.work(N)}catch(j){P=!0,y=j||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),y}unsubscribe(){if(!this.closed){const{id:N,scheduler:R}=this,{actions:P}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,A.P)(P,this),null!=N&&(this.id=this.recycleAsyncId(R,N,null)),this.delay=null,super.unsubscribe()}}}},97565:(fn,ve,_)=>{"use strict";_.d(ve,{v:()=>T});var e=_(26063);class o{constructor(G,F=o.now){this.schedulerActionCtor=G,this.now=F}schedule(G,F=0,N){return new this.schedulerActionCtor(this,G).schedule(N,F)}}o.now=e.l.now;class T extends o{constructor(G,F=o.now){super(G,F),this.actions=[],this._active=!1}flush(G){const{actions:F}=this;if(this._active)return void F.push(G);let N;this._active=!0;do{if(N=G.execute(G.state,G.delay))break}while(G=F.shift());if(this._active=!1,N){for(;G=F.shift();)G.unsubscribe();throw N}}}},66406:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>N});var e=_(84408),o=_(50727);const T={schedule(P){let y=requestAnimationFrame,j=cancelAnimationFrame;const{delegate:Y}=T;Y&&(y=Y.requestAnimationFrame,j=Y.cancelAnimationFrame);const ee=y(se=>{j=void 0,P(se)});return new o.w0(()=>j?.(ee))},requestAnimationFrame(...P){const{delegate:y}=T;return(y?.requestAnimationFrame||requestAnimationFrame)(...P)},cancelAnimationFrame(...P){const{delegate:y}=T;return(y?.cancelAnimationFrame||cancelAnimationFrame)(...P)},delegate:void 0};var G=_(97565);const N=new class F extends G.v{flush(y){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:Y}=this;let ee;y=y||Y.shift();do{if(ee=y.execute(y.state,y.delay))break}while((y=Y[0])&&y.id===j&&Y.shift());if(this._active=!1,ee){for(;(y=Y[0])&&y.id===j&&Y.shift();)y.unsubscribe();throw ee}}}(class A extends e.o{constructor(y,j){super(y,j),this.scheduler=y,this.work=j}requestAsyncId(y,j,Y=0){return null!==Y&&Y>0?super.requestAsyncId(y,j,Y):(y.actions.push(this),y._scheduled||(y._scheduled=T.requestAnimationFrame(()=>y.flush(void 0))))}recycleAsyncId(y,j,Y=0){var ee;if(null!=Y?Y>0:this.delay>0)return super.recycleAsyncId(y,j,Y);const{actions:se}=y;null!=j&&(null===(ee=se[se.length-1])||void 0===ee?void 0:ee.id)!==j&&(T.cancelAnimationFrame(j),y._scheduled=void 0)}})},34986:(fn,ve,_)=>{"use strict";_.d(ve,{P:()=>A,z:()=>T});var e=_(84408);const T=new(_(97565).v)(e.o),A=T},26063:(fn,ve,_)=>{"use strict";_.d(ve,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>e});const e={setTimeout(o,T,...A){const{delegate:G}=e;return G?.setTimeout?G.setTimeout(o,T,...A):setTimeout(o,T,...A)},clearTimeout(o){const{delegate:T}=e;return(T?.clearTimeout||clearTimeout)(o)},delegate:void 0}},2202:(fn,ve,_)=>{"use strict";_.d(ve,{h:()=>o});const o=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(fn,ve,_)=>{"use strict";_.d(ve,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(fn,ve,_)=>{"use strict";_.d(ve,{K:()=>o});const o=(0,_(83888).d)(T=>function(){T(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(fn,ve,_)=>{"use strict";_.d(ve,{_6:()=>F,jO:()=>A,yG:()=>G});var e=_(30576),o=_(93532);function T(N){return N[N.length-1]}function A(N){return(0,e.m)(T(N))?N.pop():void 0}function G(N){return(0,o.K)(T(N))?N.pop():void 0}function F(N,R){return"number"==typeof T(N)?N.pop():R}},54742:(fn,ve,_)=>{"use strict";_.d(ve,{D:()=>G});const{isArray:e}=Array,{getPrototypeOf:o,prototype:T,keys:A}=Object;function G(N){if(1===N.length){const R=N[0];if(e(R))return{args:R,keys:null};if(function F(N){return N&&"object"==typeof N&&o(N)===T}(R)){const P=A(R);return{args:P.map(y=>R[y]),keys:P}}}return{args:N,keys:null}}},75797:(fn,ve,_)=>{"use strict";_.d(ve,{k:()=>o});const{isArray:e}=Array;function o(T){return 1===T.length&&e(T[0])?T[0]:T}},38737:(fn,ve,_)=>{"use strict";function e(o,T){if(o){const A=o.indexOf(T);0<=A&&o.splice(A,1)}}_.d(ve,{P:()=>e})},83888:(fn,ve,_)=>{"use strict";function e(o){const A=o(G=>{Error.call(G),G.stack=(new Error).stack});return A.prototype=Object.create(Error.prototype),A.prototype.constructor=A,A}_.d(ve,{d:()=>e})},31810:(fn,ve,_)=>{"use strict";function e(o,T){return o.reduce((A,G,F)=>(A[G]=T[F],A),{})}_.d(ve,{n:()=>e})},72806:(fn,ve,_)=>{"use strict";_.d(ve,{O:()=>A,x:()=>T});var e=_(42416);let o=null;function T(G){if(e.v.useDeprecatedSynchronousErrorHandling){const F=!o;if(F&&(o={errorThrown:!1,error:null}),G(),F){const{errorThrown:N,error:R}=o;if(o=null,N)throw R}}else G()}function A(G){e.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=G)}},39672:(fn,ve,_)=>{"use strict";function e(o,T,A,G=0,F=!1){const N=T.schedule(function(){A(),F?o.add(this.schedule(null,G)):this.unsubscribe()},G);if(o.add(N),!F)return N}_.d(ve,{f:()=>e})},44671:(fn,ve,_)=>{"use strict";function e(o){return o}_.d(ve,{y:()=>e})},81144:(fn,ve,_)=>{"use strict";_.d(ve,{z:()=>e});const e=o=>o&&"number"==typeof o.length&&"function"!=typeof o},12206:(fn,ve,_)=>{"use strict";_.d(ve,{D:()=>o});var e=_(30576);function o(T){return Symbol.asyncIterator&&(0,e.m)(T?.[Symbol.asyncIterator])}},51165:(fn,ve,_)=>{"use strict";function e(o){return o instanceof Date&&!isNaN(o)}_.d(ve,{q:()=>e})},30576:(fn,ve,_)=>{"use strict";function e(o){return"function"==typeof o}_.d(ve,{m:()=>e})},93670:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>T});var e=_(48822),o=_(30576);function T(A){return(0,o.m)(A[e.L])}},26495:(fn,ve,_)=>{"use strict";_.d(ve,{T:()=>T});var e=_(2202),o=_(30576);function T(A){return(0,o.m)(A?.[e.h])}},28239:(fn,ve,_)=>{"use strict";_.d(ve,{t:()=>o});var e=_(30576);function o(T){return(0,e.m)(T?.then)}},53260:(fn,ve,_)=>{"use strict";_.d(ve,{L:()=>A,Q:()=>T});var e=_(97582),o=_(30576);function T(G){return(0,e.FC)(this,arguments,function*(){const N=G.getReader();try{for(;;){const{value:R,done:P}=yield(0,e.qq)(N.read());if(P)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(R)}}finally{N.releaseLock()}})}function A(G){return(0,o.m)(G?.getReader)}},93532:(fn,ve,_)=>{"use strict";_.d(ve,{K:()=>o});var e=_(30576);function o(T){return T&&(0,e.m)(T.schedule)}},54482:(fn,ve,_)=>{"use strict";_.d(ve,{A:()=>o,e:()=>T});var e=_(30576);function o(A){return(0,e.m)(A?.lift)}function T(A){return G=>{if(o(G))return G.lift(function(F){try{return A(F,this)}catch(N){this.error(N)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(fn,ve,_)=>{"use strict";_.d(ve,{Z:()=>A});var e=_(54004);const{isArray:o}=Array;function A(G){return(0,e.U)(F=>function T(G,F){return o(F)?G(...F):G(F)}(G,F))}},25032:(fn,ve,_)=>{"use strict";function e(){}_.d(ve,{Z:()=>e})},89635:(fn,ve,_)=>{"use strict";_.d(ve,{U:()=>T,z:()=>o});var e=_(44671);function o(...A){return T(A)}function T(A){return 0===A.length?e.y:1===A.length?A[0]:function(F){return A.reduce((N,R)=>R(N),F)}}},87849:(fn,ve,_)=>{"use strict";_.d(ve,{h:()=>T});var e=_(42416),o=_(43410);function T(A){o.z.setTimeout(()=>{const{onUnhandledError:G}=e.v;if(!G)throw A;G(A)})}},44532:(fn,ve,_)=>{"use strict";function e(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}_.d(ve,{z:()=>e})},9511:(fn,ve,_)=>{"use strict";var e=_(95203),o=_(27484),T=_(77027)(),A=_(47378),G=e("%TypeError%"),F=e("%Math.floor%");fn.exports=function(R,P){if("function"!=typeof R)throw new G("`fn` is not a function");if("number"!=typeof P||P<0||P>4294967295||F(P)!==P)throw new G("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],j=!0,Y=!0;if("length"in R&&A){var ee=A(R,"length");ee&&!ee.configurable&&(j=!1),ee&&!ee.writable&&(Y=!1)}return(j||Y||!y)&&(T?o(R,"length",P,!0,!0):o(R,"length",P)),R}},32384:(fn,ve,_)=>{"use strict";const e=_(40717);function o(R,P,y,j){if(!N(R))return R;let Y=j||{};const ee=Array.isArray(P);if(!ee&&"string"!=typeof P)return R;let se=Y.merge;se&&"function"!=typeof se&&(se=Object.assign);const he=(ee?P:function A(R,P){const y=function G(R,P){let y=R;if(typeof P>"u")return y+"";const j=Object.keys(P);for(let Y=0;Y<j.length;Y++){const ee=j[Y];y+=";"+ee+"="+String(P[ee])}return y}(R,P);if(o.memo[y])return o.memo[y];const j=P&&P.separator?P.separator:".";let Y=[],ee=[];Y=P&&"function"==typeof P.split?P.split(R):R.split(j);for(let se=0;se<Y.length;se++){let he=Y[se];for(;he&&"\\"===he.slice(-1)&&null!=Y[se+1];)he=he.slice(0,-1)+j+Y[++se];ee.push(he)}return o.memo[y]=ee,ee}(P,Y)).filter(F),Se=he.length,te=R;if(!j&&1===he.length)return T(R,he[0],y,se),R;for(let oe=0;oe<Se;oe++){let q=he[oe];if(N(R[q])||(R[q]={}),oe===Se-1){T(R,q,y,se);break}R=R[q]}return te}function T(R,P,y,j){R[P]=j&&e(R[P])&&e(y)?j({},R[P],y):y}function F(R){return"string"!=typeof R&&"number"!=typeof R&&(R=String(R)),"__proto__"!==R&&"constructor"!==R&&"prototype"!==R}function N(R){return null!==R&&("object"==typeof R||"function"==typeof R)}o.memo={},fn.exports=o},78475:(fn,ve,_)=>{"use strict";var e=_(95203),o=_(75834),T=_(97024),A=e("%TypeError%"),G=e("%WeakMap%",!0),F=e("%Map%",!0),N=o("WeakMap.prototype.get",!0),R=o("WeakMap.prototype.set",!0),P=o("WeakMap.prototype.has",!0),y=o("Map.prototype.get",!0),j=o("Map.prototype.set",!0),Y=o("Map.prototype.has",!0),ee=function(te,oe){for(var we,q=te;null!==(we=q.next);q=we)if(we.key===oe)return q.next=we.next,we.next=te.next,te.next=we,we};fn.exports=function(){var oe,q,we,ae={assert:function(Q){if(!ae.has(Q))throw new A("Side channel does not contain "+T(Q))},get:function(Q){if(G&&Q&&("object"==typeof Q||"function"==typeof Q)){if(oe)return N(oe,Q)}else if(F){if(q)return y(q,Q)}else if(we)return function(te,oe){var q=ee(te,oe);return q&&q.value}(we,Q)},has:function(Q){if(G&&Q&&("object"==typeof Q||"function"==typeof Q)){if(oe)return P(oe,Q)}else if(F){if(q)return Y(q,Q)}else if(we)return function(te,oe){return!!ee(te,oe)}(we,Q);return!1},set:function(Q,pe){G&&Q&&("object"==typeof Q||"function"==typeof Q)?(oe||(oe=new G),R(oe,Q,pe)):F?(q||(q=new F),j(q,Q,pe)):(we||(we={key:{},next:null}),function(te,oe,q){var we=ee(te,oe);we?we.value=q:te.next={key:oe,next:te.next,value:q}}(we,Q,pe))}};return ae}},75421:fn=>{"use strict";fn.exports=(_,e={},o)=>{if("string"!=typeof _)throw new TypeError("expected a string");"function"==typeof e&&(o=e,e={});let R,P,T=e.separator||".",A={type:"root",nodes:[],stash:[""]},G=[A],F={input:_,separator:T,stack:G},N=_,y=-1;F.bos=()=>0===y,F.eos=()=>y===N.length,F.prev=()=>N[y-1],F.next=()=>N[y+1];let j=e.quotes||[],Y=e.brackets||{};!0===e.brackets&&(Y={"[":"]","(":")","{":"}","<":">"}),!0===e.quotes&&(j=['"',"'","`"]);let ee=function ve(_){let e={};for(const o of Object.keys(_))e[_[o]]=o;return e}(Y),se=e.keep||(we=>"\\"!==we);const he=()=>F.block=G[G.length-1],te=()=>N[++y],oe=we=>{F.value=we,we&&!1!==se(we,F)&&(F.block.stash[F.block.stash.length-1]+=we)},q=(we,ae)=>{let Q=N.indexOf(we,ae);return Q>-1&&"\\"===N[Q-1]&&(Q=q(we,Q+1)),Q};for(;y<N.length-1;)if(F.value=R=te(),F.index=y,he(),"\\"!==R)if(j.includes(R)){let we=y+1,ae=q(R,we);if(ae>-1){oe(R),oe(N.slice(we,ae)),oe(N[ae]),y=ae;continue}oe(R)}else if(!1!==e.brackets&&Y[R])P={type:"bracket",nodes:[]},P.stash=!1!==se(R)?[R]:[""],P.parent=F.block,F.block.nodes.push(P),G.push(P);else if(!1!==e.brackets&&ee[R]){if(1===G.length){oe(R);continue}oe(R),P=G.pop(),he(),oe(P.stash.join(""))}else if(R!==T||"root"!==F.block.type)oe(R);else{if("function"==typeof o&&!1===o(F)){oe(R);continue}F.block.stash.push("")}else"\\"===N[y+1]?oe(R+te()):(oe(R),oe(te()));for(P=G.pop();P!==A;){if(!0===e.strict)throw new SyntaxError(`Unmatched: "${P.stash[0]}", at column ${y-P.stash.length+1}`);R=P.parent.stash.pop()+P.stash.join("."),P.parent.stash=P.parent.stash.concat(R.split(".")),P=G.pop()}return P.stash}},55953:(fn,ve,_)=>{"use strict";const e=_(91485),o=_(32384),N=(...R)=>R.find(P=>null!=P);fn.exports=(R,P,y)=>{if(!(R=>null!=R&&"object"==typeof R&&!Array.isArray(R))(R))throw new TypeError("expected the first argument to be an object");if("string"!=typeof P)throw new TypeError("expected the second argument to be a string");let j=[].concat(N(e(R,P),[]));return o(R,P,((...R)=>(R=>R.filter((P,y)=>R.indexOf(P)===y))(((...R)=>{let P=[],y=j=>{for(let Y of j)Array.isArray(Y)?y(Y,P):P.push(Y)};return y(R),P})(...R)))(j,[].concat(N(y,[])))),R}},24654:()=>{},86983:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.setMiddleware=ve.getMiddleware=ve.setManager=ve.getManager=ve.convertOptions=ve.HookManager=ve.BaseHookContext=ve.HOOKS=void 0;const e=_(37886);ve.HOOKS=Symbol("@feathersjs/hooks");class o{constructor(y={}){Object.defineProperty(this,"self",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,y)}toJSON(){const y=Object.keys(this);let j=Object.getPrototypeOf(this);for(;j;)y.push(...Object.keys(j)),j=Object.getPrototypeOf(j);return y.reduce((Y,ee)=>(Y[ee]=this[ee],Y),{})}}ve.BaseHookContext=o;class T{constructor(){Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_middleware",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_props",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_defaults",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}parent(y){return this._parent=y,this}middleware(y){return this._middleware=y?.length?y:null,this}getMiddleware(){const y=this._parent?.getMiddleware();return y&&this._middleware?y.concat(this._middleware):y||this._middleware}collectMiddleware(y,j){const Y=N(y),ee=this.getMiddleware();return Y&&ee?Y.concat(ee):Y||ee||[]}props(y){return this._props||(this._props={}),(0,e.copyProperties)(this._props,y),this}getProps(){const y=this._parent?.getProps();return y&&this._props?(0,e.copyProperties)({},y,this._props):y||this._props||null}params(...y){return this._params=y,this}getParams(){const y=this._parent?.getParams();return y&&this._params?y.concat(this._params):y||this._params}defaults(y){return this._defaults=y,this}getDefaults(y,j,Y){const ee="function"==typeof this._defaults?this._defaults(y,j,Y):null,se=this._parent?.getDefaults(y,j,Y);return se&&ee?Object.assign({},se,ee):se||ee}getContextClass(y=o){const j=class extends y{constructor(he){super(he)}},Y=this.getParams(),ee=this.getProps();return Y&&Y.forEach((se,he)=>{if(void 0!==ee?.[se])throw new Error(`Hooks can not have a property and param named '${se}'. Use .defaults instead.`);Object.defineProperty(j.prototype,se,{enumerable:!0,get(){return this?.arguments[he]},set(Se){this.arguments[he]=Se}})}),ee&&(0,e.copyProperties)(j.prototype,ee),j}initializeContext(y,j,Y){const ee=this._parent?this._parent.initializeContext(y,j,Y):Y,se=this.getDefaults(y,j,ee);if(y&&(ee.self=y),ee.arguments=j,se)for(const he of Object.keys(se))void 0===ee[he]&&(ee[he]=se[he]);return ee}}function G(P){return P&&P[ve.HOOKS]||null}function F(P,y){const j=G(P);return P[ve.HOOKS]=y.parent(j),P}function N(P){const y=G(P);return y?y.getMiddleware():null}ve.HookManager=T,ve.convertOptions=function A(P=null){return P?Array.isArray(P)?(new T).middleware(P):P:new T},ve.getManager=G,ve.setManager=F,ve.getMiddleware=N,ve.setMiddleware=function R(P,y){return F(P,(new T).middleware(y))}},70332:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.compose=void 0,ve.compose=function _(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const o of e)if("function"!=typeof o)throw new TypeError("Middleware must be composed of functions!");return function(o,T){let A=-1;return function G(F){if(F<=A)return Promise.reject(new Error("next() called multiple times"));A=F;let N=e[F];if(F===e.length&&(N=T),!N)return Promise.resolve();try{return Promise.resolve(N.call(this,o,G.bind(this,F+1)))}catch(R){return Promise.reject(R)}}.call(this,0)}}},47938:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.hookDecorator=ve.objectHooks=ve.functionHooks=ve.getOriginal=void 0;const e=_(70332),o=_(86983),T=_(37886);function A(R){return"function"==typeof R.original?A(R.original):R}function G(R,P){if("function"!=typeof R)throw new Error("Can not apply hooks to non-function");const y=(0,o.convertOptions)(P),j=function(...Y){const{Context:ee,original:se}=j,he=Y[Y.length-1]instanceof ee,Se=he?Y.pop():new ee,te=y.initializeContext(this,Y,Se),oe=[(we,ae)=>ae().then(()=>he?we:we.result)],q=y.collectMiddleware(this,Y);return q&&Array.prototype.push.apply(oe,q),oe.push((we,ae)=>Object.prototype.hasOwnProperty.call(te,"result")?ae():Promise.resolve(se.apply(this,we.arguments)).then(Q=>(we.result=Q,ae()))),(0,e.compose)(oe).call(this,te)};return(0,T.copyFnProperties)(j,R),(0,T.copyProperties)(j,R),(0,o.setManager)(j,y),Object.assign(j,{original:A(R),Context:y.getContextClass(),createContext:(Y={})=>new j.Context(Y)})}ve.getOriginal=A,ve.functionHooks=G,ve.objectHooks=function F(R,P){if(Array.isArray(P))return(0,o.setMiddleware)(R,P);for(const y of Object.keys(P)){const j="function"==typeof R[y]?R:R.prototype,Y=j&&j[y];if("function"!=typeof Y)throw new Error(`Can not apply hooks. '${y}' is not a function`);const ee=(0,o.convertOptions)(P[y]);j[y]=G(Y,ee.props({method:y}))}return R},ve.hookDecorator=R=>(y,j,Y)=>{const ee=(0,o.convertOptions)(R);if(!Y)return(0,o.setManager)(y.prototype,ee),y;const se=Y.value;if("function"!=typeof se)throw new Error(`Can not apply hooks. '${j}' is not a function`);return Y.value=G(se,ee.props({method:j})),Y}},11258:function(fn,ve,_){"use strict";var e=this&&this.__createBinding||(Object.create?function(N,R,P,y){void 0===y&&(y=P),Object.defineProperty(N,y,{enumerable:!0,get:function(){return R[P]}})}:function(N,R,P,y){void 0===y&&(y=P),N[y]=R[P]}),o=this&&this.__exportStar||function(N,R){for(var P in N)"default"!==P&&!Object.prototype.hasOwnProperty.call(R,P)&&e(R,N,P)};Object.defineProperty(ve,"__esModule",{value:!0}),ve.hooks=ve.middleware=void 0;const T=_(86983),A=_(47938);o(_(47938),ve),o(_(70332),ve),o(_(86983),ve),o(_(68079),ve),ve.middleware=function G(N,R){const P=(new T.HookManager).middleware(N);return R&&(R.params&&P.params(...R.params),R.defaults&&P.defaults(R.defaults),R.props&&P.props(R.props)),P},ve.hooks=function F(...N){const[R,P]=N;return"function"==typeof R&&(P instanceof T.HookManager||Array.isArray(P)||1===N.length)?(0,A.functionHooks)(R,P):2===N.length?(0,A.objectHooks)(R,P):(0,A.hookDecorator)(R)}},68079:(fn,ve,_)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.collect=ve.fromErrorHook=ve.fromAfterHook=ve.fromBeforeHook=ve.runHooks=ve.runHook=void 0;const e=_(70332);function A(R){return(P,y)=>(0,ve.runHook)(R,P,"before").then(y)}function G(R){return(P,y)=>y().then(()=>(0,ve.runHook)(R,P,"after"))}function F(R){return(P,y)=>y().catch(j=>((P.error!==j||void 0!==P.result)&&(P.original={...P},P.error=j,delete P.result),(0,ve.runHook)(R,P,"error").then(()=>{if(void 0===P.result&&void 0!==P.error)throw P.error}).catch(Y=>{throw P.error=Y,P.error})))}ve.runHook=(R,P,y)=>{const j=P.type;return y&&(P.type=y),Promise.resolve(R.call(P.self,P)).then(Y=>{y&&(P.type=j),Y&&Y!==P&&Object.assign(P,Y)})},ve.runHooks=R=>P=>R.reduce((y,j)=>y.then(()=>(0,ve.runHook)(j,P)),Promise.resolve(P)),ve.fromBeforeHook=A,ve.fromAfterHook=G,ve.fromErrorHook=F,ve.collect=function N({before:R=[],after:P=[],error:y=[]}){const j=R.map(A),Y=[...P].reverse().map(G),ee=y.length?[F((0,ve.runHooks)(y))]:[];return(0,e.compose)([...ee,...j,...Y])}},37886:(fn,ve)=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.copyFnProperties=ve.copyProperties=void 0,ve.copyProperties=function _(o,...T){for(const A of T){const G=Object.keys(A).concat(Object.getOwnPropertySymbols(A));for(const F of G){const N=Object.getOwnPropertyDescriptor(A,F);N&&!Object.prototype.hasOwnProperty.call(o,F)&&Object.defineProperty(o,F,N)}}return o},ve.copyFnProperties=function e(o,T){const A=["name","length"];try{for(const G of A)Object.defineProperty(o,G,{value:T[G]})}catch{}return o}},17156:fn=>{function ve(e,o,T,A,G,F,N){try{var R=e[F](N),P=R.value}catch(y){return void T(y)}R.done?o(P):Promise.resolve(P).then(A,G)}fn.exports=function _(e){return function(){var o=this,T=arguments;return new Promise(function(A,G){var F=e.apply(o,T);function N(P){ve(F,A,G,N,R,"next",P)}function R(P){ve(F,A,G,N,R,"throw",P)}N(void 0)})}},fn.exports.__esModule=!0,fn.exports.default=fn.exports},37340:(fn,ve,_)=>{"use strict";_.d(ve,{EY:()=>Se,F4:()=>y,IO:()=>he,LC:()=>o,SB:()=>P,X$:()=>A,ZE:()=>q,ZN:()=>oe,_j:()=>e,eR:()=>j,jt:()=>G,k1:()=>we,l3:()=>T,oB:()=>R,vP:()=>N});class e{}class o{}const T="*";function A(ae,Q){return{type:7,name:ae,definitions:Q,options:{}}}function G(ae,Q=null){return{type:4,styles:Q,timings:ae}}function N(ae,Q=null){return{type:2,steps:ae,options:Q}}function R(ae){return{type:6,styles:ae,offset:null}}function P(ae,Q,pe){return{type:0,name:ae,styles:Q,options:pe}}function y(ae){return{type:5,steps:ae}}function j(ae,Q,pe=null){return{type:1,expr:ae,animation:Q,options:pe}}function he(ae,Q,pe=null){return{type:11,selector:ae,animation:Q,options:pe}}function Se(ae,Q){return{type:12,timings:ae,animation:Q}}function te(ae){Promise.resolve().then(ae)}class oe{constructor(Q=0,pe=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Q+pe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}onStart(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}onDone(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Q=>Q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Q){this._position=this.totalTime?Q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Q){const pe="start"==Q?this._onStartFns:this._onDoneFns;pe.forEach(Ee=>Ee()),pe.length=0}}class q{constructor(Q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Q;let pe=0,Ee=0,ke=0;const Ye=this.players.length;0==Ye?te(()=>this._onFinish()):this.players.forEach(ct=>{ct.onDone(()=>{++pe==Ye&&this._onFinish()}),ct.onDestroy(()=>{++Ee==Ye&&this._onDestroy()}),ct.onStart(()=>{++ke==Ye&&this._onStart()})}),this.totalTime=this.players.reduce((ct,ut)=>Math.max(ct,ut.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Q=>Q()),this._onDoneFns=[])}init(){this.players.forEach(Q=>Q.init())}onStart(Q){this._onStartFns.push(Q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Q=>Q()),this._onStartFns=[])}onDone(Q){this._onDoneFns.push(Q)}onDestroy(Q){this._onDestroyFns.push(Q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Q=>Q.play())}pause(){this.players.forEach(Q=>Q.pause())}restart(){this.players.forEach(Q=>Q.restart())}finish(){this._onFinish(),this.players.forEach(Q=>Q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Q=>Q.destroy()),this._onDestroyFns.forEach(Q=>Q()),this._onDestroyFns=[])}reset(){this.players.forEach(Q=>Q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Q){const pe=Q*this.totalTime;this.players.forEach(Ee=>{const ke=Ee.totalTime?Math.min(1,pe/Ee.totalTime):1;Ee.setPosition(ke)})}getPosition(){const Q=this.players.reduce((pe,Ee)=>null===pe||Ee.totalTime>pe.totalTime?Ee:pe,null);return null!=Q?Q.getPosition():0}beforeDestroy(){this.players.forEach(Q=>{Q.beforeDestroy&&Q.beforeDestroy()})}triggerCallback(Q){const pe="start"==Q?this._onStartFns:this._onDoneFns;pe.forEach(Ee=>Ee()),pe.length=0}}const we="!"},43745:(fn,ve,_)=>{"use strict";_.d(ve,{Yg:()=>Ye,xu:()=>we});var e=_(94650);function G(Ct){return Array.isArray(Ct)?Ct:[Ct]}var P=_(77579),y=_(39841),j=_(97272),Y=_(69751),ee=_(95698),se=_(35684),he=_(78372),Se=_(54004),te=_(68675),oe=_(82722),q=_(83353);let we=(()=>{class Ct{}return Ct.\u0275fac=function(vt){return new(vt||Ct)},Ct.\u0275mod=e.oAB({type:Ct}),Ct.\u0275inj=e.cJS({}),Ct})();const ae=new Set;let Q,pe=(()=>{class Ct{constructor(vt){this._platform=vt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ke}matchMedia(vt){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ee(Ct){if(!ae.has(Ct))try{Q||(Q=document.createElement("style"),Q.setAttribute("type","text/css"),document.head.appendChild(Q)),Q.sheet&&(Q.sheet.insertRule(`@media ${Ct} {body{ }}`,0),ae.add(Ct))}catch(Ue){console.error(Ue)}}(vt),this._matchMedia(vt)}}return Ct.\u0275fac=function(vt){return new(vt||Ct)(e.LFG(q.t4))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();function ke(Ct){return{matches:"all"===Ct||""===Ct,media:Ct,addListener:()=>{},removeListener:()=>{}}}let Ye=(()=>{class Ct{constructor(vt,ln){this._mediaMatcher=vt,this._zone=ln,this._queries=new Map,this._destroySubject=new P.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(vt){return ct(G(vt)).some(Je=>this._registerQuery(Je).mql.matches)}observe(vt){const Je=ct(G(vt)).map(st=>this._registerQuery(st).observable);let Ft=(0,y.a)(Je);return Ft=(0,j.z)(Ft.pipe((0,ee.q)(1)),Ft.pipe((0,se.T)(1),(0,he.b)(0))),Ft.pipe((0,Se.U)(st=>{const Ze={matches:!1,breakpoints:{}};return st.forEach(({matches:$e,query:Oe})=>{Ze.matches=Ze.matches||$e,Ze.breakpoints[Oe]=$e}),Ze}))}_registerQuery(vt){if(this._queries.has(vt))return this._queries.get(vt);const ln=this._mediaMatcher.matchMedia(vt),Ft={observable:new Y.y(st=>{const Ze=$e=>this._zone.run(()=>st.next($e));return ln.addListener(Ze),()=>{ln.removeListener(Ze)}}).pipe((0,te.O)(ln),(0,Se.U)(({matches:st})=>({query:vt,matches:st})),(0,oe.R)(this._destroySubject)),mql:ln};return this._queries.set(vt,Ft),Ft}}return Ct.\u0275fac=function(vt){return new(vt||Ct)(e.LFG(pe),e.LFG(e.R0b))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();function ct(Ct){return Ct.map(Ue=>Ue.split(",")).reduce((Ue,vt)=>Ue.concat(vt)).map(Ue=>Ue.trim())}},83353:(fn,ve,_)=>{"use strict";_.d(ve,{t4:()=>A});var e=_(94650),o=_(36895);let T;try{T=typeof Intl<"u"&&Intl.v8BreakIterator}catch{T=!1}let A=(()=>{class Q{constructor(Ee){this._platformId=Ee,this.isBrowser=this._platformId?(0,o.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&&!T)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Q.\u0275fac=function(Ee){return new(Ee||Q)(e.LFG(e.Lbi))},Q.\u0275prov=e.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})()},36895:(fn,ve,_)=>{"use strict";_.d(ve,{Do:()=>q,ED:()=>Be,EM:()=>Nr,HT:()=>A,JF:()=>fr,JJ:()=>wi,K0:()=>F,Mx:()=>Es,NF:()=>Hs,Nd:()=>os,O5:()=>po,OU:()=>So,Ov:()=>bo,PC:()=>Qe,PM:()=>Pr,RF:()=>Le,S$:()=>Se,V_:()=>P,Ye:()=>we,b0:()=>oe,bD:()=>ia,ez:()=>da,i8:()=>Ps,mk:()=>as,n9:()=>Pt,q:()=>T,qS:()=>bs,rS:()=>Bn,sg:()=>_s,tP:()=>Et,uU:()=>z,w_:()=>G});var e=_(94650);let o=null;function T(){return o}function A(V){o||(o=V)}class G{}const F=new e.OlP("DocumentToken");let N=(()=>{class V{historyGo(Ie){throw new Error("Not implemented")}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275prov=e.Yz7({token:V,factory:function(){return function R(){return(0,e.LFG)(y)}()},providedIn:"platform"}),V})();const P=new e.OlP("Location Initialized");let y=(()=>{class V extends N{constructor(Ie){super(),this._doc=Ie,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return T().getBaseHref(this._doc)}onPopState(Ie){const qe=T().getGlobalEventTarget(this._doc,"window");return qe.addEventListener("popstate",Ie,!1),()=>qe.removeEventListener("popstate",Ie)}onHashChange(Ie){const qe=T().getGlobalEventTarget(this._doc,"window");return qe.addEventListener("hashchange",Ie,!1),()=>qe.removeEventListener("hashchange",Ie)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(Ie){this._location.pathname=Ie}pushState(Ie,qe,Zt){j()?this._history.pushState(Ie,qe,Zt):this._location.hash=Zt}replaceState(Ie,qe,Zt){j()?this._history.replaceState(Ie,qe,Zt):this._location.hash=Zt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ie=0){this._history.go(Ie)}getState(){return this._history.state}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.LFG(F))},V.\u0275prov=e.Yz7({token:V,factory:function(){return function Y(){return new y((0,e.LFG)(F))}()},providedIn:"platform"}),V})();function j(){return!!window.history.pushState}function ee(V,re){if(0==V.length)return re;if(0==re.length)return V;let Ie=0;return V.endsWith("/")&&Ie++,re.startsWith("/")&&Ie++,2==Ie?V+re.substring(1):1==Ie?V+re:V+"/"+re}function se(V){const re=V.match(/#|\?|$/),Ie=re&&re.index||V.length;return V.slice(0,Ie-("/"===V[Ie-1]?1:0))+V.slice(Ie)}function he(V){return V&&"?"!==V[0]?"?"+V:V}let Se=(()=>{class V{historyGo(Ie){throw new Error("Not implemented")}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275prov=e.Yz7({token:V,factory:function(){return(0,e.f3M)(oe)},providedIn:"root"}),V})();const te=new e.OlP("appBaseHref");let oe=(()=>{class V extends Se{constructor(Ie,qe){super(),this._platformLocation=Ie,this._removeListenerFns=[],this._baseHref=qe??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(F).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ie){this._removeListenerFns.push(this._platformLocation.onPopState(Ie),this._platformLocation.onHashChange(Ie))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ie){return ee(this._baseHref,Ie)}path(Ie=!1){const qe=this._platformLocation.pathname+he(this._platformLocation.search),Zt=this._platformLocation.hash;return Zt&&Ie?`${qe}${Zt}`:qe}pushState(Ie,qe,Zt,Rn){const ii=this.prepareExternalUrl(Zt+he(Rn));this._platformLocation.pushState(Ie,qe,ii)}replaceState(Ie,qe,Zt,Rn){const ii=this.prepareExternalUrl(Zt+he(Rn));this._platformLocation.replaceState(Ie,qe,ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ie=0){this._platformLocation.historyGo?.(Ie)}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.LFG(N),e.LFG(te,8))},V.\u0275prov=e.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),q=(()=>{class V extends Se{constructor(Ie,qe){super(),this._platformLocation=Ie,this._baseHref="",this._removeListenerFns=[],null!=qe&&(this._baseHref=qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ie){this._removeListenerFns.push(this._platformLocation.onPopState(Ie),this._platformLocation.onHashChange(Ie))}getBaseHref(){return this._baseHref}path(Ie=!1){let qe=this._platformLocation.hash;return null==qe&&(qe="#"),qe.length>0?qe.substring(1):qe}prepareExternalUrl(Ie){const qe=ee(this._baseHref,Ie);return qe.length>0?"#"+qe:qe}pushState(Ie,qe,Zt,Rn){let ii=this.prepareExternalUrl(Zt+he(Rn));0==ii.length&&(ii=this._platformLocation.pathname),this._platformLocation.pushState(Ie,qe,ii)}replaceState(Ie,qe,Zt,Rn){let ii=this.prepareExternalUrl(Zt+he(Rn));0==ii.length&&(ii=this._platformLocation.pathname),this._platformLocation.replaceState(Ie,qe,ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ie=0){this._platformLocation.historyGo?.(Ie)}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.LFG(N),e.LFG(te,8))},V.\u0275prov=e.Yz7({token:V,factory:V.\u0275fac}),V})(),we=(()=>{class V{constructor(Ie){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Ie;const qe=this._locationStrategy.getBaseHref();this._basePath=function Ee(V){if(new RegExp("^(https?:)?//").test(V)){const[,Ie]=V.split(/\/\/[^\/]+/);return Ie}return V}(se(pe(qe))),this._locationStrategy.onPopState(Zt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Zt.state,type:Zt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Ie=!1){return this.normalize(this._locationStrategy.path(Ie))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Ie,qe=""){return this.path()==this.normalize(Ie+he(qe))}normalize(Ie){return V.stripTrailingSlash(function Q(V,re){if(!V||!re.startsWith(V))return re;const Ie=re.substring(V.length);return""===Ie||["/",";","?","#"].includes(Ie[0])?Ie:re}(this._basePath,pe(Ie)))}prepareExternalUrl(Ie){return Ie&&"/"!==Ie[0]&&(Ie="/"+Ie),this._locationStrategy.prepareExternalUrl(Ie)}go(Ie,qe="",Zt=null){this._locationStrategy.pushState(Zt,"",Ie,qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ie+he(qe)),Zt)}replaceState(Ie,qe="",Zt=null){this._locationStrategy.replaceState(Zt,"",Ie,qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ie+he(qe)),Zt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Ie=0){this._locationStrategy.historyGo?.(Ie)}onUrlChange(Ie){return this._urlChangeListeners.push(Ie),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(qe=>{this._notifyUrlChangeListeners(qe.url,qe.state)})),()=>{const qe=this._urlChangeListeners.indexOf(Ie);this._urlChangeListeners.splice(qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Ie="",qe){this._urlChangeListeners.forEach(Zt=>Zt(Ie,qe))}subscribe(Ie,qe,Zt){return this._subject.subscribe({next:Ie,error:qe,complete:Zt})}}return V.normalizeQueryParams=he,V.joinWithSlash=ee,V.stripTrailingSlash=se,V.\u0275fac=function(Ie){return new(Ie||V)(e.LFG(Se))},V.\u0275prov=e.Yz7({token:V,factory:function(){return function ae(){return new we((0,e.LFG)(Se))}()},providedIn:"root"}),V})();function pe(V){return V.replace(/\/index.html$/,"")}var Ye=(()=>((Ye=Ye||{})[Ye.Decimal=0]="Decimal",Ye[Ye.Percent=1]="Percent",Ye[Ye.Currency=2]="Currency",Ye[Ye.Scientific=3]="Scientific",Ye))(),ut=(()=>((ut=ut||{})[ut.Format=0]="Format",ut[ut.Standalone=1]="Standalone",ut))(),Ct=(()=>((Ct=Ct||{})[Ct.Narrow=0]="Narrow",Ct[Ct.Abbreviated=1]="Abbreviated",Ct[Ct.Wide=2]="Wide",Ct[Ct.Short=3]="Short",Ct))(),Ue=(()=>((Ue=Ue||{})[Ue.Short=0]="Short",Ue[Ue.Medium=1]="Medium",Ue[Ue.Long=2]="Long",Ue[Ue.Full=3]="Full",Ue))(),vt=(()=>((vt=vt||{})[vt.Decimal=0]="Decimal",vt[vt.Group=1]="Group",vt[vt.List=2]="List",vt[vt.PercentSign=3]="PercentSign",vt[vt.PlusSign=4]="PlusSign",vt[vt.MinusSign=5]="MinusSign",vt[vt.Exponential=6]="Exponential",vt[vt.SuperscriptingExponent=7]="SuperscriptingExponent",vt[vt.PerMille=8]="PerMille",vt[vt.Infinity=9]="Infinity",vt[vt.NaN=10]="NaN",vt[vt.TimeSeparator=11]="TimeSeparator",vt[vt.CurrencyDecimal=12]="CurrencyDecimal",vt[vt.CurrencyGroup=13]="CurrencyGroup",vt))();function xt(V,re){return _n((0,e.cg1)(V)[e.wAp.DateFormat],re)}function Ot(V,re){return _n((0,e.cg1)(V)[e.wAp.TimeFormat],re)}function Kt(V,re){return _n((0,e.cg1)(V)[e.wAp.DateTimeFormat],re)}function $t(V,re){const Ie=(0,e.cg1)(V),qe=Ie[e.wAp.NumberSymbols][re];if(typeof qe>"u"){if(re===vt.CurrencyDecimal)return Ie[e.wAp.NumberSymbols][vt.Decimal];if(re===vt.CurrencyGroup)return Ie[e.wAp.NumberSymbols][vt.Group]}return qe}function wn(V){if(!V[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${V[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _n(V,re){for(let Ie=re;Ie>-1;Ie--)if(typeof V[Ie]<"u")return V[Ie];throw new Error("Locale data API: locale data undefined")}function Ln(V){const[re,Ie]=V.split(":");return{hours:+re,minutes:+Ie}}const gi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,qn={},ki=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Si=(()=>((Si=Si||{})[Si.Short=0]="Short",Si[Si.ShortGMT=1]="ShortGMT",Si[Si.Long=2]="Long",Si[Si.Extended=3]="Extended",Si))(),Ni=(()=>((Ni=Ni||{})[Ni.FullYear=0]="FullYear",Ni[Ni.Month=1]="Month",Ni[Ni.Date=2]="Date",Ni[Ni.Hours=3]="Hours",Ni[Ni.Minutes=4]="Minutes",Ni[Ni.Seconds=5]="Seconds",Ni[Ni.FractionalSeconds=6]="FractionalSeconds",Ni[Ni.Day=7]="Day",Ni))(),pn=(()=>((pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn))();function Vn(V,re,Ie,qe){let Zt=function ht(V){if(gt(V))return V;if("number"==typeof V&&!isNaN(V))return new Date(V);if("string"==typeof V){if(V=V.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(V)){const[Zt,Rn=1,ii=1]=V.split("-").map($n=>+$n);return ot(Zt,Rn-1,ii)}const Ie=parseFloat(V);if(!isNaN(V-Ie))return new Date(Ie);let qe;if(qe=V.match(gi))return function U(V){const re=new Date(0);let Ie=0,qe=0;const Zt=V[8]?re.setUTCFullYear:re.setFullYear,Rn=V[8]?re.setUTCHours:re.setHours;V[9]&&(Ie=Number(V[9]+V[10]),qe=Number(V[9]+V[11])),Zt.call(re,Number(V[1]),Number(V[2])-1,Number(V[3]));const ii=Number(V[4]||0)-Ie,$n=Number(V[5]||0)-qe,Ii=Number(V[6]||0),ro=Math.floor(1e3*parseFloat("0."+(V[7]||0)));return Rn.call(re,ii,$n,Ii,ro),re}(qe)}const re=new Date(V);if(!gt(re))throw new Error(`Unable to convert "${V}" into a date`);return re}(V);re=en(Ie,re)||re;let $n,ii=[];for(;re;){if($n=ki.exec(re),!$n){ii.push(re);break}{ii=ii.concat($n.slice(1));const rs=ii.pop();if(!rs)break;re=rs}}let Ii=Zt.getTimezoneOffset();qe&&(Ii=mn(qe,Ii),Zt=function wt(V,re,Ie){const qe=Ie?-1:1,Zt=V.getTimezoneOffset();return function ze(V,re){return(V=new Date(V.getTime())).setMinutes(V.getMinutes()+re),V}(V,qe*(mn(re,Zt)-Zt))}(Zt,qe,!0));let ro="";return ii.forEach(rs=>{const Ki=function Zn(V){if(bi[V])return bi[V];let re;switch(V){case"G":case"GG":case"GGG":re=Li(pn.Eras,Ct.Abbreviated);break;case"GGGG":re=Li(pn.Eras,Ct.Wide);break;case"GGGGG":re=Li(pn.Eras,Ct.Narrow);break;case"y":re=Qt(Ni.FullYear,1,0,!1,!0);break;case"yy":re=Qt(Ni.FullYear,2,0,!0,!0);break;case"yyy":re=Qt(Ni.FullYear,3,0,!1,!0);break;case"yyyy":re=Qt(Ni.FullYear,4,0,!1,!0);break;case"Y":re=fi(1);break;case"YY":re=fi(2,!0);break;case"YYY":re=fi(3);break;case"YYYY":re=fi(4);break;case"M":case"L":re=Qt(Ni.Month,1,1);break;case"MM":case"LL":re=Qt(Ni.Month,2,1);break;case"MMM":re=Li(pn.Months,Ct.Abbreviated);break;case"MMMM":re=Li(pn.Months,Ct.Wide);break;case"MMMMM":re=Li(pn.Months,Ct.Narrow);break;case"LLL":re=Li(pn.Months,Ct.Abbreviated,ut.Standalone);break;case"LLLL":re=Li(pn.Months,Ct.Wide,ut.Standalone);break;case"LLLLL":re=Li(pn.Months,Ct.Narrow,ut.Standalone);break;case"w":re=Un(1);break;case"ww":re=Un(2);break;case"W":re=Un(1,!0);break;case"d":re=Qt(Ni.Date,1);break;case"dd":re=Qt(Ni.Date,2);break;case"c":case"cc":re=Qt(Ni.Day,1);break;case"ccc":re=Li(pn.Days,Ct.Abbreviated,ut.Standalone);break;case"cccc":re=Li(pn.Days,Ct.Wide,ut.Standalone);break;case"ccccc":re=Li(pn.Days,Ct.Narrow,ut.Standalone);break;case"cccccc":re=Li(pn.Days,Ct.Short,ut.Standalone);break;case"E":case"EE":case"EEE":re=Li(pn.Days,Ct.Abbreviated);break;case"EEEE":re=Li(pn.Days,Ct.Wide);break;case"EEEEE":re=Li(pn.Days,Ct.Narrow);break;case"EEEEEE":re=Li(pn.Days,Ct.Short);break;case"a":case"aa":case"aaa":re=Li(pn.DayPeriods,Ct.Abbreviated);break;case"aaaa":re=Li(pn.DayPeriods,Ct.Wide);break;case"aaaaa":re=Li(pn.DayPeriods,Ct.Narrow);break;case"b":case"bb":case"bbb":re=Li(pn.DayPeriods,Ct.Abbreviated,ut.Standalone,!0);break;case"bbbb":re=Li(pn.DayPeriods,Ct.Wide,ut.Standalone,!0);break;case"bbbbb":re=Li(pn.DayPeriods,Ct.Narrow,ut.Standalone,!0);break;case"B":case"BB":case"BBB":re=Li(pn.DayPeriods,Ct.Abbreviated,ut.Format,!0);break;case"BBBB":re=Li(pn.DayPeriods,Ct.Wide,ut.Format,!0);break;case"BBBBB":re=Li(pn.DayPeriods,Ct.Narrow,ut.Format,!0);break;case"h":re=Qt(Ni.Hours,1,-12);break;case"hh":re=Qt(Ni.Hours,2,-12);break;case"H":re=Qt(Ni.Hours,1);break;case"HH":re=Qt(Ni.Hours,2);break;case"m":re=Qt(Ni.Minutes,1);break;case"mm":re=Qt(Ni.Minutes,2);break;case"s":re=Qt(Ni.Seconds,1);break;case"ss":re=Qt(Ni.Seconds,2);break;case"S":re=Qt(Ni.FractionalSeconds,1);break;case"SS":re=Qt(Ni.FractionalSeconds,2);break;case"SSS":re=Qt(Ni.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":re=Ht(Si.Short);break;case"ZZZZZ":re=Ht(Si.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":re=Ht(Si.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":re=Ht(Si.Long);break;default:return null}return bi[V]=re,re}(rs);ro+=Ki?Ki(Zt,Ie,Ii):"''"===rs?"'":rs.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ro}function ot(V,re,Ie){const qe=new Date(0);return qe.setFullYear(V,re,Ie),qe.setHours(0,0,0),qe}function en(V,re){const Ie=function Je(V){return(0,e.cg1)(V)[e.wAp.LocaleId]}(V);if(qn[Ie]=qn[Ie]||{},qn[Ie][re])return qn[Ie][re];let qe="";switch(re){case"shortDate":qe=xt(V,Ue.Short);break;case"mediumDate":qe=xt(V,Ue.Medium);break;case"longDate":qe=xt(V,Ue.Long);break;case"fullDate":qe=xt(V,Ue.Full);break;case"shortTime":qe=Ot(V,Ue.Short);break;case"mediumTime":qe=Ot(V,Ue.Medium);break;case"longTime":qe=Ot(V,Ue.Long);break;case"fullTime":qe=Ot(V,Ue.Full);break;case"short":const Zt=en(V,"shortTime"),Rn=en(V,"shortDate");qe=lt(Kt(V,Ue.Short),[Zt,Rn]);break;case"medium":const ii=en(V,"mediumTime"),$n=en(V,"mediumDate");qe=lt(Kt(V,Ue.Medium),[ii,$n]);break;case"long":const Ii=en(V,"longTime"),ro=en(V,"longDate");qe=lt(Kt(V,Ue.Long),[Ii,ro]);break;case"full":const rs=en(V,"fullTime"),Ki=en(V,"fullDate");qe=lt(Kt(V,Ue.Full),[rs,Ki])}return qe&&(qn[Ie][re]=qe),qe}function lt(V,re){return re&&(V=V.replace(/\{([^}]+)}/g,function(Ie,qe){return null!=re&&qe in re?re[qe]:Ie})),V}function In(V,re,Ie="-",qe,Zt){let Rn="";(V<0||Zt&&V<=0)&&(Zt?V=1-V:(V=-V,Rn=Ie));let ii=String(V);for(;ii.length<re;)ii="0"+ii;return qe&&(ii=ii.slice(ii.length-re)),Rn+ii}function Qt(V,re,Ie=0,qe=!1,Zt=!1){return function(Rn,ii){let $n=function yi(V,re){switch(V){case Ni.FullYear:return re.getFullYear();case Ni.Month:return re.getMonth();case Ni.Date:return re.getDate();case Ni.Hours:return re.getHours();case Ni.Minutes:return re.getMinutes();case Ni.Seconds:return re.getSeconds();case Ni.FractionalSeconds:return re.getMilliseconds();case Ni.Day:return re.getDay();default:throw new Error(`Unknown DateType value "${V}".`)}}(V,Rn);if((Ie>0||$n>-Ie)&&($n+=Ie),V===Ni.Hours)0===$n&&-12===Ie&&($n=12);else if(V===Ni.FractionalSeconds)return function rn(V,re){return In(V,3).substring(0,re)}($n,re);const Ii=$t(ii,vt.MinusSign);return In($n,re,Ii,qe,Zt)}}function Li(V,re,Ie=ut.Format,qe=!1){return function(Zt,Rn){return function An(V,re,Ie,qe,Zt,Rn){switch(Ie){case pn.Months:return function Ze(V,re,Ie){const qe=(0,e.cg1)(V),Rn=_n([qe[e.wAp.MonthsFormat],qe[e.wAp.MonthsStandalone]],re);return _n(Rn,Ie)}(re,Zt,qe)[V.getMonth()];case pn.Days:return function st(V,re,Ie){const qe=(0,e.cg1)(V),Rn=_n([qe[e.wAp.DaysFormat],qe[e.wAp.DaysStandalone]],re);return _n(Rn,Ie)}(re,Zt,qe)[V.getDay()];case pn.DayPeriods:const ii=V.getHours(),$n=V.getMinutes();if(Rn){const ro=function Nn(V){const re=(0,e.cg1)(V);return wn(re),(re[e.wAp.ExtraData][2]||[]).map(qe=>"string"==typeof qe?Ln(qe):[Ln(qe[0]),Ln(qe[1])])}(re),rs=function an(V,re,Ie){const qe=(0,e.cg1)(V);wn(qe);const Rn=_n([qe[e.wAp.ExtraData][0],qe[e.wAp.ExtraData][1]],re)||[];return _n(Rn,Ie)||[]}(re,Zt,qe),Ki=ro.findIndex(Ss=>{if(Array.isArray(Ss)){const[go,Ls]=Ss,Ms=ii>=go.hours&&$n>=go.minutes,ao=ii<Ls.hours||ii===Ls.hours&&$n<Ls.minutes;if(go.hours<Ls.hours){if(Ms&&ao)return!0}else if(Ms||ao)return!0}else if(Ss.hours===ii&&Ss.minutes===$n)return!0;return!1});if(-1!==Ki)return rs[Ki]}return function Ft(V,re,Ie){const qe=(0,e.cg1)(V),Rn=_n([qe[e.wAp.DayPeriodsFormat],qe[e.wAp.DayPeriodsStandalone]],re);return _n(Rn,Ie)}(re,Zt,qe)[ii<12?0:1];case pn.Eras:return function $e(V,re){return _n((0,e.cg1)(V)[e.wAp.Eras],re)}(re,qe)[V.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Ie}`)}}(Zt,Rn,V,re,Ie,qe)}}function Ht(V){return function(re,Ie,qe){const Zt=-1*qe,Rn=$t(Ie,vt.MinusSign),ii=Zt>0?Math.floor(Zt/60):Math.ceil(Zt/60);switch(V){case Si.Short:return(Zt>=0?"+":"")+In(ii,2,Rn)+In(Math.abs(Zt%60),2,Rn);case Si.ShortGMT:return"GMT"+(Zt>=0?"+":"")+In(ii,1,Rn);case Si.Long:return"GMT"+(Zt>=0?"+":"")+In(ii,2,Rn)+":"+In(Math.abs(Zt%60),2,Rn);case Si.Extended:return 0===qe?"Z":(Zt>=0?"+":"")+In(ii,2,Rn)+":"+In(Math.abs(Zt%60),2,Rn);default:throw new Error(`Unknown zone width "${V}"`)}}}const Pn=0,Sn=4;function Cn(V){return ot(V.getFullYear(),V.getMonth(),V.getDate()+(Sn-V.getDay()))}function Un(V,re=!1){return function(Ie,qe){let Zt;if(re){const Rn=new Date(Ie.getFullYear(),Ie.getMonth(),1).getDay()-1,ii=Ie.getDate();Zt=1+Math.floor((ii+Rn)/7)}else{const Rn=Cn(Ie),ii=function Fn(V){const re=ot(V,Pn,1).getDay();return ot(V,0,1+(re<=Sn?Sn:Sn+7)-re)}(Rn.getFullYear()),$n=Rn.getTime()-ii.getTime();Zt=1+Math.round($n/6048e5)}return In(Zt,V,$t(qe,vt.MinusSign))}}function fi(V,re=!1){return function(Ie,qe){return In(Cn(Ie).getFullYear(),V,$t(qe,vt.MinusSign),re)}}const bi={};function mn(V,re){V=V.replace(/:/g,"");const Ie=Date.parse("Jan 01, 1970 00:00:00 "+V)/6e4;return isNaN(Ie)?re:Ie}function gt(V){return V instanceof Date&&!isNaN(V.valueOf())}const Lt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,kt=22,vn=".",jn="0",St=";",De=",",ie="#";function Di(V){const re=parseInt(V);if(isNaN(re))throw new Error("Invalid integer literal when parsing "+V);return re}function bs(V,re,Ie){return(0,e.dwT)(V,re,Ie)}function Es(V,re){re=encodeURIComponent(re);for(const Ie of V.split(";")){const qe=Ie.indexOf("="),[Zt,Rn]=-1==qe?[Ie,""]:[Ie.slice(0,qe),Ie.slice(qe+1)];if(Zt.trim()===re)return decodeURIComponent(Rn)}return null}const ss=/\s+/,zi=[];let as=(()=>{class V{constructor(Ie,qe,Zt,Rn){this._iterableDiffers=Ie,this._keyValueDiffers=qe,this._ngEl=Zt,this._renderer=Rn,this.initialClasses=zi,this.stateMap=new Map}set klass(Ie){this.initialClasses=null!=Ie?Ie.trim().split(ss):zi}set ngClass(Ie){this.rawClass="string"==typeof Ie?Ie.trim().split(ss):Ie}ngDoCheck(){for(const qe of this.initialClasses)this._updateState(qe,!0);const Ie=this.rawClass;if(Array.isArray(Ie)||Ie instanceof Set)for(const qe of Ie)this._updateState(qe,!0);else if(null!=Ie)for(const qe of Object.keys(Ie))this._updateState(qe,Boolean(Ie[qe]));this._applyStateDiff()}_updateState(Ie,qe){const Zt=this.stateMap.get(Ie);void 0!==Zt?(Zt.enabled!==qe&&(Zt.changed=!0,Zt.enabled=qe),Zt.touched=!0):this.stateMap.set(Ie,{enabled:qe,changed:!0,touched:!0})}_applyStateDiff(){for(const Ie of this.stateMap){const qe=Ie[0],Zt=Ie[1];Zt.changed?(this._toggleClass(qe,Zt.enabled),Zt.changed=!1):Zt.touched||(Zt.enabled&&this._toggleClass(qe,!1),this.stateMap.delete(qe)),Zt.touched=!1}}_toggleClass(Ie,qe){(Ie=Ie.trim()).length>0&&Ie.split(ss).forEach(Zt=>{qe?this._renderer.addClass(this._ngEl.nativeElement,Zt):this._renderer.removeClass(this._ngEl.nativeElement,Zt)})}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),V})();class ps{constructor(re,Ie,qe,Zt){this.$implicit=re,this.ngForOf=Ie,this.index=qe,this.count=Zt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let _s=(()=>{class V{set ngForOf(Ie){this._ngForOf=Ie,this._ngForOfDirty=!0}set ngForTrackBy(Ie){this._trackByFn=Ie}get ngForTrackBy(){return this._trackByFn}constructor(Ie,qe,Zt){this._viewContainer=Ie,this._template=qe,this._differs=Zt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Ie){Ie&&(this._template=Ie)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ie=this._ngForOf;!this._differ&&Ie&&(this._differ=this._differs.find(Ie).create(this.ngForTrackBy))}if(this._differ){const Ie=this._differ.diff(this._ngForOf);Ie&&this._applyChanges(Ie)}}_applyChanges(Ie){const qe=this._viewContainer;Ie.forEachOperation((Zt,Rn,ii)=>{if(null==Zt.previousIndex)qe.createEmbeddedView(this._template,new ps(Zt.item,this._ngForOf,-1,-1),null===ii?void 0:ii);else if(null==ii)qe.remove(null===Rn?void 0:Rn);else if(null!==Rn){const $n=qe.get(Rn);qe.move($n,ii),ei($n,Zt)}});for(let Zt=0,Rn=qe.length;Zt<Rn;Zt++){const $n=qe.get(Zt).context;$n.index=Zt,$n.count=Rn,$n.ngForOf=this._ngForOf}Ie.forEachIdentityChange(Zt=>{ei(qe.get(Zt.currentIndex),Zt)})}static ngTemplateContextGuard(Ie,qe){return!0}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function ei(V,re){V.context.$implicit=re.item}let po=(()=>{class V{constructor(Ie,qe){this._viewContainer=Ie,this._context=new As,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=qe}set ngIf(Ie){this._context.$implicit=this._context.ngIf=Ie,this._updateView()}set ngIfThen(Ie){un("ngIfThen",Ie),this._thenTemplateRef=Ie,this._thenViewRef=null,this._updateView()}set ngIfElse(Ie){un("ngIfElse",Ie),this._elseTemplateRef=Ie,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Ie,qe){return!0}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.s_b),e.Y36(e.Rgc))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class As{constructor(){this.$implicit=null,this.ngIf=null}}function un(V,re){if(re&&!re.createEmbeddedView)throw new Error(`${V} must be a TemplateRef, but received '${(0,e.AaK)(re)}'.`)}class ai{constructor(re,Ie){this._viewContainerRef=re,this._templateRef=Ie,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(re){re&&!this._created?this.create():!re&&this._created&&this.destroy()}}let Le=(()=>{class V{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ie){this._ngSwitch=Ie,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ie){this._defaultViews.push(Ie)}_matchCase(Ie){const qe=Ie==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),qe}_updateDefaultCases(Ie){if(this._defaultViews.length>0&&Ie!==this._defaultUsed){this._defaultUsed=Ie;for(const qe of this._defaultViews)qe.enforceState(Ie)}}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),V})(),Pt=(()=>{class V{constructor(Ie,qe,Zt){this.ngSwitch=Zt,Zt._addCase(),this._view=new ai(Ie,qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Le,9))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),V})(),Be=(()=>{class V{constructor(Ie,qe,Zt){Zt._addDefault(new ai(Ie,qe))}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Le,9))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngSwitchDefault",""]],standalone:!0}),V})(),Qe=(()=>{class V{constructor(Ie,qe,Zt){this._ngEl=Ie,this._differs=qe,this._renderer=Zt,this._ngStyle=null,this._differ=null}set ngStyle(Ie){this._ngStyle=Ie,!this._differ&&Ie&&(this._differ=this._differs.find(Ie).create())}ngDoCheck(){if(this._differ){const Ie=this._differ.diff(this._ngStyle);Ie&&this._applyChanges(Ie)}}_setStyle(Ie,qe){const[Zt,Rn]=Ie.split("."),ii=-1===Zt.indexOf("-")?void 0:e.JOm.DashCase;null!=qe?this._renderer.setStyle(this._ngEl.nativeElement,Zt,Rn?`${qe}${Rn}`:qe,ii):this._renderer.removeStyle(this._ngEl.nativeElement,Zt,ii)}_applyChanges(Ie){Ie.forEachRemovedItem(qe=>this._setStyle(qe.key,null)),Ie.forEachAddedItem(qe=>this._setStyle(qe.key,qe.currentValue)),Ie.forEachChangedItem(qe=>this._setStyle(qe.key,qe.currentValue))}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),V})(),Et=(()=>{class V{constructor(Ie){this._viewContainerRef=Ie,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Ie){if(Ie.ngTemplateOutlet||Ie.ngTemplateOutletInjector){const qe=this._viewContainerRef;if(this._viewRef&&qe.remove(qe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Zt,ngTemplateOutletContext:Rn,ngTemplateOutletInjector:ii}=this;this._viewRef=qe.createEmbeddedView(Zt,Rn,ii?{injector:ii}:void 0)}else this._viewRef=null}else this._viewRef&&Ie.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.s_b))},V.\u0275dir=e.lG2({type:V,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),V})();function vi(V,re){return new e.vHH(2100,!1)}class ni{createSubscription(re,Ie){return re.subscribe({next:Ie,error:qe=>{throw qe}})}dispose(re){re.unsubscribe()}}class qi{createSubscription(re,Ie){return re.then(Ie,qe=>{throw qe})}dispose(re){}}const ys=new qi,Mo=new ni;let bo=(()=>{class V{constructor(Ie){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Ie}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Ie){return this._obj?Ie!==this._obj?(this._dispose(),this.transform(Ie)):this._latestValue:(Ie&&this._subscribe(Ie),this._latestValue)}_subscribe(Ie){this._obj=Ie,this._strategy=this._selectStrategy(Ie),this._subscription=this._strategy.createSubscription(Ie,qe=>this._updateLatestValue(Ie,qe))}_selectStrategy(Ie){if((0,e.QGY)(Ie))return ys;if((0,e.F4k)(Ie))return Mo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ie,qe){Ie===this._obj&&(this._latestValue=qe,this._ref.markForCheck())}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.sBO,16))},V.\u0275pipe=e.Yjl({name:"async",type:V,pure:!1,standalone:!0}),V})(),Ps=(()=>{class V{transform(Ie){if(null==Ie)return null;if("string"!=typeof Ie)throw vi();return Ie.toLowerCase()}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275pipe=e.Yjl({name:"lowercase",type:V,pure:!0,standalone:!0}),V})();const Wt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Bn=(()=>{class V{transform(Ie){if(null==Ie)return null;if("string"!=typeof Ie)throw vi();return Ie.replace(Wt,qe=>qe[0].toUpperCase()+qe.slice(1).toLowerCase())}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275pipe=e.Yjl({name:"titlecase",type:V,pure:!0,standalone:!0}),V})();const Pe=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),gn=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let z=(()=>{class V{constructor(Ie,qe,Zt){this.locale=Ie,this.defaultTimezone=qe,this.defaultOptions=Zt}transform(Ie,qe,Zt,Rn){if(null==Ie||""===Ie||Ie!=Ie)return null;try{return Vn(Ie,qe??this.defaultOptions?.dateFormat??"mediumDate",Rn||this.locale,Zt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ii){throw vi()}}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.soG,16),e.Y36(Pe,24),e.Y36(gn,24))},V.\u0275pipe=e.Yjl({name:"date",type:V,pure:!0,standalone:!0}),V})(),os=(()=>{class V{constructor(Ie){this.differs=Ie,this.keyValues=[],this.compareFn=dn}transform(Ie,qe=dn){if(!Ie||!(Ie instanceof Map)&&"object"!=typeof Ie)return null;this.differ||(this.differ=this.differs.find(Ie).create());const Zt=this.differ.diff(Ie),Rn=qe!==this.compareFn;return Zt&&(this.keyValues=[],Zt.forEachItem(ii=>{this.keyValues.push(function Fi(V,re){return{key:V,value:re}}(ii.key,ii.currentValue))})),(Zt||Rn)&&(this.keyValues.sort(qe),this.compareFn=qe),this.keyValues}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.aQg,16))},V.\u0275pipe=e.Yjl({name:"keyvalue",type:V,pure:!1,standalone:!0}),V})();function dn(V,re){const Ie=V.key,qe=re.key;if(Ie===qe)return 0;if(void 0===Ie)return 1;if(void 0===qe)return-1;if(null===Ie)return 1;if(null===qe)return-1;if("string"==typeof Ie&&"string"==typeof qe)return Ie<qe?-1:1;if("number"==typeof Ie&&"number"==typeof qe)return Ie-qe;if("boolean"==typeof Ie&&"boolean"==typeof qe)return Ie<qe?-1:1;const Zt=String(Ie),Rn=String(qe);return Zt==Rn?0:Zt<Rn?-1:1}let wi=(()=>{class V{constructor(Ie){this._locale=Ie}transform(Ie,qe,Zt){if(!function Wi(V){return!(null==V||""===V||V!=V)}(Ie))return null;Zt=Zt||this._locale;try{return function Gn(V,re,Ie){return function Ut(V,re,Ie,qe,Zt,Rn,ii=!1){let $n="",Ii=!1;if(isFinite(V)){let ro=function ui(V){let qe,Zt,Rn,ii,$n,re=Math.abs(V)+"",Ie=0;for((Zt=re.indexOf(vn))>-1&&(re=re.replace(vn,"")),(Rn=re.search(/e/i))>0?(Zt<0&&(Zt=Rn),Zt+=+re.slice(Rn+1),re=re.substring(0,Rn)):Zt<0&&(Zt=re.length),Rn=0;re.charAt(Rn)===jn;Rn++);if(Rn===($n=re.length))qe=[0],Zt=1;else{for($n--;re.charAt($n)===jn;)$n--;for(Zt-=Rn,qe=[],ii=0;Rn<=$n;Rn++,ii++)qe[ii]=Number(re.charAt(Rn))}return Zt>kt&&(qe=qe.splice(0,kt-1),Ie=Zt-1,Zt=1),{digits:qe,exponent:Ie,integerLen:Zt}}(V);ii&&(ro=function mi(V){if(0===V.digits[0])return V;const re=V.digits.length-V.integerLen;return V.exponent?V.exponent+=2:(0===re?V.digits.push(0,0):1===re&&V.digits.push(0),V.integerLen+=2),V}(ro));let rs=re.minInt,Ki=re.minFrac,Ss=re.maxFrac;if(Rn){const zs=Rn.match(Lt);if(null===zs)throw new Error(`${Rn} is not a valid digit info`);const yo=zs[1],Uo=zs[3],Xs=zs[5];null!=yo&&(rs=Di(yo)),null!=Uo&&(Ki=Di(Uo)),null!=Xs?Ss=Di(Xs):null!=Uo&&Ki>Ss&&(Ss=Ki)}!function Pi(V,re,Ie){if(re>Ie)throw new Error(`The minimum number of digits after fraction (${re}) is higher than the maximum (${Ie}).`);let qe=V.digits,Zt=qe.length-V.integerLen;const Rn=Math.min(Math.max(re,Zt),Ie);let ii=Rn+V.integerLen,$n=qe[ii];if(ii>0){qe.splice(Math.max(V.integerLen,ii));for(let Ki=ii;Ki<qe.length;Ki++)qe[Ki]=0}else{Zt=Math.max(0,Zt),V.integerLen=1,qe.length=Math.max(1,ii=Rn+1),qe[0]=0;for(let Ki=1;Ki<ii;Ki++)qe[Ki]=0}if($n>=5)if(ii-1<0){for(let Ki=0;Ki>ii;Ki--)qe.unshift(0),V.integerLen++;qe.unshift(1),V.integerLen++}else qe[ii-1]++;for(;Zt<Math.max(0,Rn);Zt++)qe.push(0);let Ii=0!==Rn;const ro=re+V.integerLen,rs=qe.reduceRight(function(Ki,Ss,go,Ls){return Ls[go]=(Ss+=Ki)<10?Ss:Ss-10,Ii&&(0===Ls[go]&&go>=ro?Ls.pop():Ii=!1),Ss>=10?1:0},0);rs&&(qe.unshift(rs),V.integerLen++)}(ro,Ki,Ss);let go=ro.digits,Ls=ro.integerLen;const Ms=ro.exponent;let ao=[];for(Ii=go.every(zs=>!zs);Ls<rs;Ls++)go.unshift(0);for(;Ls<0;Ls++)go.unshift(0);Ls>0?ao=go.splice(Ls,go.length):(ao=go,go=[0]);const Po=[];for(go.length>=re.lgSize&&Po.unshift(go.splice(-re.lgSize,go.length).join(""));go.length>re.gSize;)Po.unshift(go.splice(-re.gSize,go.length).join(""));go.length&&Po.unshift(go.join("")),$n=Po.join($t(Ie,qe)),ao.length&&($n+=$t(Ie,Zt)+ao.join("")),Ms&&($n+=$t(Ie,vt.Exponential)+"+"+Ms)}else $n=$t(Ie,vt.Infinity);return $n=V<0&&!Ii?re.negPre+$n+re.negSuf:re.posPre+$n+re.posSuf,$n}(V,function ri(V,re="-"){const Ie={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},qe=V.split(St),Zt=qe[0],Rn=qe[1],ii=-1!==Zt.indexOf(vn)?Zt.split(vn):[Zt.substring(0,Zt.lastIndexOf(jn)+1),Zt.substring(Zt.lastIndexOf(jn)+1)],$n=ii[0],Ii=ii[1]||"";Ie.posPre=$n.substring(0,$n.indexOf(ie));for(let rs=0;rs<Ii.length;rs++){const Ki=Ii.charAt(rs);Ki===jn?Ie.minFrac=Ie.maxFrac=rs+1:Ki===ie?Ie.maxFrac=rs+1:Ie.posSuf+=Ki}const ro=$n.split(De);if(Ie.gSize=ro[1]?ro[1].length:0,Ie.lgSize=ro[2]||ro[1]?(ro[2]||ro[1]).length:0,Rn){const rs=Zt.length-Ie.posPre.length-Ie.posSuf.length,Ki=Rn.indexOf(ie);Ie.negPre=Rn.substring(0,Ki).replace(/'/g,""),Ie.negSuf=Rn.slice(Ki+rs).replace(/'/g,"")}else Ie.negPre=re+Ie.posPre,Ie.negSuf=Ie.posSuf;return Ie}(function rt(V,re){return(0,e.cg1)(V)[e.wAp.NumberFormats][re]}(re,Ye.Decimal),$t(re,vt.MinusSign)),re,vt.Group,vt.Decimal,Ie)}(function Ks(V){if("string"==typeof V&&!isNaN(Number(V)-parseFloat(V)))return Number(V);if("number"!=typeof V)throw new Error(`${V} is not a number`);return V}(Ie),Zt,qe)}catch(Rn){throw vi()}}}return V.\u0275fac=function(Ie){return new(Ie||V)(e.Y36(e.soG,16))},V.\u0275pipe=e.Yjl({name:"number",type:V,pure:!0,standalone:!0}),V})();let So=(()=>{class V{transform(Ie,qe,Zt){if(null==Ie)return null;if(!this.supports(Ie))throw vi();return Ie.slice(qe,Zt)}supports(Ie){return"string"==typeof Ie||Array.isArray(Ie)}}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275pipe=e.Yjl({name:"slice",type:V,pure:!1,standalone:!0}),V})(),da=(()=>{class V{}return V.\u0275fac=function(Ie){return new(Ie||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({}),V})();const ia="browser",jr="server";function Hs(V){return V===ia}function Pr(V){return V===jr}let Nr=(()=>{class V{}return V.\u0275prov=(0,e.Yz7)({token:V,providedIn:"root",factory:()=>new so((0,e.LFG)(F),window)}),V})();class so{constructor(re,Ie){this.document=re,this.window=Ie,this.offset=()=>[0,0]}setOffset(re){this.offset=Array.isArray(re)?()=>re:re}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(re){this.supportsScrolling()&&this.window.scrollTo(re[0],re[1])}scrollToAnchor(re){if(!this.supportsScrolling())return;const Ie=function fo(V,re){const Ie=V.getElementById(re)||V.getElementsByName(re)[0];if(Ie)return Ie;if("function"==typeof V.createTreeWalker&&V.body&&(V.body.createShadowRoot||V.body.attachShadow)){const qe=V.createTreeWalker(V.body,NodeFilter.SHOW_ELEMENT);let Zt=qe.currentNode;for(;Zt;){const Rn=Zt.shadowRoot;if(Rn){const ii=Rn.getElementById(re)||Rn.querySelector(`[name="${re}"]`);if(ii)return ii}Zt=qe.nextNode()}}return null}(this.document,re);Ie&&(this.scrollToElement(Ie),Ie.focus())}setHistoryScrollRestoration(re){if(this.supportScrollRestoration()){const Ie=this.window.history;Ie&&Ie.scrollRestoration&&(Ie.scrollRestoration=re)}}scrollToElement(re){const Ie=re.getBoundingClientRect(),qe=Ie.left+this.window.pageXOffset,Zt=Ie.top+this.window.pageYOffset,Rn=this.offset();this.window.scrollTo(qe-Rn[0],Zt-Rn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const re=cr(this.window.history)||cr(Object.getPrototypeOf(this.window.history));return!(!re||!re.writable&&!re.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function cr(V){return Object.getOwnPropertyDescriptor(V,"scrollRestoration")}class fr{}},80529:(fn,ve,_)=>{"use strict";_.d(ve,{JF:()=>Ht,LE:()=>oe,TP:()=>$e,WM:()=>y,Zn:()=>Ue,aW:()=>Ye,dt:()=>ct,eN:()=>Je});var e=_(36895),o=_(94650),T=_(39646),A=_(69751),G=_(24351),F=_(39300),N=_(54004);class R{}class P{}class y{constructor(Cn){this.normalizedNames=new Map,this.lazyUpdate=null,Cn?this.lazyInit="string"==typeof Cn?()=>{this.headers=new Map,Cn.split("\n").forEach(Un=>{const fi=Un.indexOf(":");if(fi>0){const bi=Un.slice(0,fi),Zn=bi.toLowerCase(),mn=Un.slice(fi+1).trim();this.maybeSetNormalizedName(bi,Zn),this.headers.has(Zn)?this.headers.get(Zn).push(mn):this.headers.set(Zn,[mn])}})}:()=>{this.headers=new Map,Object.entries(Cn).forEach(([Un,fi])=>{let bi;if(bi="string"==typeof fi?[fi]:"number"==typeof fi?[fi.toString()]:fi.map(Zn=>Zn.toString()),bi.length>0){const Zn=Un.toLowerCase();this.headers.set(Zn,bi),this.maybeSetNormalizedName(Un,Zn)}})}:this.headers=new Map}has(Cn){return this.init(),this.headers.has(Cn.toLowerCase())}get(Cn){this.init();const Un=this.headers.get(Cn.toLowerCase());return Un&&Un.length>0?Un[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Cn){return this.init(),this.headers.get(Cn.toLowerCase())||null}append(Cn,Un){return this.clone({name:Cn,value:Un,op:"a"})}set(Cn,Un){return this.clone({name:Cn,value:Un,op:"s"})}delete(Cn,Un){return this.clone({name:Cn,value:Un,op:"d"})}maybeSetNormalizedName(Cn,Un){this.normalizedNames.has(Un)||this.normalizedNames.set(Un,Cn)}init(){this.lazyInit&&(this.lazyInit instanceof y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Cn=>this.applyUpdate(Cn)),this.lazyUpdate=null))}copyFrom(Cn){Cn.init(),Array.from(Cn.headers.keys()).forEach(Un=>{this.headers.set(Un,Cn.headers.get(Un)),this.normalizedNames.set(Un,Cn.normalizedNames.get(Un))})}clone(Cn){const Un=new y;return Un.lazyInit=this.lazyInit&&this.lazyInit instanceof y?this.lazyInit:this,Un.lazyUpdate=(this.lazyUpdate||[]).concat([Cn]),Un}applyUpdate(Cn){const Un=Cn.name.toLowerCase();switch(Cn.op){case"a":case"s":let fi=Cn.value;if("string"==typeof fi&&(fi=[fi]),0===fi.length)return;this.maybeSetNormalizedName(Cn.name,Un);const bi=("a"===Cn.op?this.headers.get(Un):void 0)||[];bi.push(...fi),this.headers.set(Un,bi);break;case"d":const Zn=Cn.value;if(Zn){let mn=this.headers.get(Un);if(!mn)return;mn=mn.filter(ze=>-1===Zn.indexOf(ze)),0===mn.length?(this.headers.delete(Un),this.normalizedNames.delete(Un)):this.headers.set(Un,mn)}else this.headers.delete(Un),this.normalizedNames.delete(Un)}}forEach(Cn){this.init(),Array.from(this.normalizedNames.keys()).forEach(Un=>Cn(this.normalizedNames.get(Un),this.headers.get(Un)))}}class Y{encodeKey(Cn){return Se(Cn)}encodeValue(Cn){return Se(Cn)}decodeKey(Cn){return decodeURIComponent(Cn)}decodeValue(Cn){return decodeURIComponent(Cn)}}const se=/%(\d[a-f0-9])/gi,he={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Fn){return encodeURIComponent(Fn).replace(se,(Cn,Un)=>he[Un]??Cn)}function te(Fn){return`${Fn}`}class oe{constructor(Cn={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Cn.encoder||new Y,Cn.fromString){if(Cn.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(Fn,Cn){const Un=new Map;return Fn.length>0&&Fn.replace(/^\?/,"").split("&").forEach(bi=>{const Zn=bi.indexOf("="),[mn,ze]=-1==Zn?[Cn.decodeKey(bi),""]:[Cn.decodeKey(bi.slice(0,Zn)),Cn.decodeValue(bi.slice(Zn+1))],wt=Un.get(mn)||[];wt.push(ze),Un.set(mn,wt)}),Un}(Cn.fromString,this.encoder)}else Cn.fromObject?(this.map=new Map,Object.keys(Cn.fromObject).forEach(Un=>{const fi=Cn.fromObject[Un],bi=Array.isArray(fi)?fi.map(te):[te(fi)];this.map.set(Un,bi)})):this.map=null}has(Cn){return this.init(),this.map.has(Cn)}get(Cn){this.init();const Un=this.map.get(Cn);return Un?Un[0]:null}getAll(Cn){return this.init(),this.map.get(Cn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Cn,Un){return this.clone({param:Cn,value:Un,op:"a"})}appendAll(Cn){const Un=[];return Object.keys(Cn).forEach(fi=>{const bi=Cn[fi];Array.isArray(bi)?bi.forEach(Zn=>{Un.push({param:fi,value:Zn,op:"a"})}):Un.push({param:fi,value:bi,op:"a"})}),this.clone(Un)}set(Cn,Un){return this.clone({param:Cn,value:Un,op:"s"})}delete(Cn,Un){return this.clone({param:Cn,value:Un,op:"d"})}toString(){return this.init(),this.keys().map(Cn=>{const Un=this.encoder.encodeKey(Cn);return this.map.get(Cn).map(fi=>Un+"="+this.encoder.encodeValue(fi)).join("&")}).filter(Cn=>""!==Cn).join("&")}clone(Cn){const Un=new oe({encoder:this.encoder});return Un.cloneFrom=this.cloneFrom||this,Un.updates=(this.updates||[]).concat(Cn),Un}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Cn=>this.map.set(Cn,this.cloneFrom.map.get(Cn))),this.updates.forEach(Cn=>{switch(Cn.op){case"a":case"s":const Un=("a"===Cn.op?this.map.get(Cn.param):void 0)||[];Un.push(te(Cn.value)),this.map.set(Cn.param,Un);break;case"d":if(void 0===Cn.value){this.map.delete(Cn.param);break}{let fi=this.map.get(Cn.param)||[];const bi=fi.indexOf(te(Cn.value));-1!==bi&&fi.splice(bi,1),fi.length>0?this.map.set(Cn.param,fi):this.map.delete(Cn.param)}}}),this.cloneFrom=this.updates=null)}}class we{constructor(){this.map=new Map}set(Cn,Un){return this.map.set(Cn,Un),this}get(Cn){return this.map.has(Cn)||this.map.set(Cn,Cn.defaultValue()),this.map.get(Cn)}delete(Cn){return this.map.delete(Cn),this}has(Cn){return this.map.has(Cn)}keys(){return this.map.keys()}}function Q(Fn){return typeof ArrayBuffer<"u"&&Fn instanceof ArrayBuffer}function pe(Fn){return typeof Blob<"u"&&Fn instanceof Blob}function Ee(Fn){return typeof FormData<"u"&&Fn instanceof FormData}class Ye{constructor(Cn,Un,fi,bi){let Zn;if(this.url=Un,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Cn.toUpperCase(),function ae(Fn){switch(Fn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||bi?(this.body=void 0!==fi?fi:null,Zn=bi):Zn=fi,Zn&&(this.reportProgress=!!Zn.reportProgress,this.withCredentials=!!Zn.withCredentials,Zn.responseType&&(this.responseType=Zn.responseType),Zn.headers&&(this.headers=Zn.headers),Zn.context&&(this.context=Zn.context),Zn.params&&(this.params=Zn.params)),this.headers||(this.headers=new y),this.context||(this.context=new we),this.params){const mn=this.params.toString();if(0===mn.length)this.urlWithParams=Un;else{const ze=Un.indexOf("?");this.urlWithParams=Un+(-1===ze?"?":ze<Un.length-1?"&":"")+mn}}else this.params=new oe,this.urlWithParams=Un}serializeBody(){return null===this.body?null:Q(this.body)||pe(this.body)||Ee(this.body)||function ke(Fn){return typeof URLSearchParams<"u"&&Fn instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof oe?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ee(this.body)?null:pe(this.body)?this.body.type||null:Q(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof oe?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Cn={}){const Un=Cn.method||this.method,fi=Cn.url||this.url,bi=Cn.responseType||this.responseType,Zn=void 0!==Cn.body?Cn.body:this.body,mn=void 0!==Cn.withCredentials?Cn.withCredentials:this.withCredentials,ze=void 0!==Cn.reportProgress?Cn.reportProgress:this.reportProgress;let wt=Cn.headers||this.headers,ht=Cn.params||this.params;const U=Cn.context??this.context;return void 0!==Cn.setHeaders&&(wt=Object.keys(Cn.setHeaders).reduce((gt,Lt)=>gt.set(Lt,Cn.setHeaders[Lt]),wt)),Cn.setParams&&(ht=Object.keys(Cn.setParams).reduce((gt,Lt)=>gt.set(Lt,Cn.setParams[Lt]),ht)),new Ye(Un,fi,Zn,{params:ht,headers:wt,context:U,reportProgress:ze,responseType:bi,withCredentials:mn})}}var ct=(()=>((ct=ct||{})[ct.Sent=0]="Sent",ct[ct.UploadProgress=1]="UploadProgress",ct[ct.ResponseHeader=2]="ResponseHeader",ct[ct.DownloadProgress=3]="DownloadProgress",ct[ct.Response=4]="Response",ct[ct.User=5]="User",ct))();class ut{constructor(Cn,Un=200,fi="OK"){this.headers=Cn.headers||new y,this.status=void 0!==Cn.status?Cn.status:Un,this.statusText=Cn.statusText||fi,this.url=Cn.url||null,this.ok=this.status>=200&&this.status<300}}class Ct extends ut{constructor(Cn={}){super(Cn),this.type=ct.ResponseHeader}clone(Cn={}){return new Ct({headers:Cn.headers||this.headers,status:void 0!==Cn.status?Cn.status:this.status,statusText:Cn.statusText||this.statusText,url:Cn.url||this.url||void 0})}}class Ue extends ut{constructor(Cn={}){super(Cn),this.type=ct.Response,this.body=void 0!==Cn.body?Cn.body:null}clone(Cn={}){return new Ue({body:void 0!==Cn.body?Cn.body:this.body,headers:Cn.headers||this.headers,status:void 0!==Cn.status?Cn.status:this.status,statusText:Cn.statusText||this.statusText,url:Cn.url||this.url||void 0})}}class vt extends ut{constructor(Cn){super(Cn,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Cn.url||"(unknown url)"}`:`Http failure response for ${Cn.url||"(unknown url)"}: ${Cn.status} ${Cn.statusText}`,this.error=Cn.error||null}}function ln(Fn,Cn){return{body:Cn,headers:Fn.headers,context:Fn.context,observe:Fn.observe,params:Fn.params,reportProgress:Fn.reportProgress,responseType:Fn.responseType,withCredentials:Fn.withCredentials}}let Je=(()=>{class Fn{constructor(Un){this.handler=Un}request(Un,fi,bi={}){let Zn;if(Un instanceof Ye)Zn=Un;else{let wt,ht;wt=bi.headers instanceof y?bi.headers:new y(bi.headers),bi.params&&(ht=bi.params instanceof oe?bi.params:new oe({fromObject:bi.params})),Zn=new Ye(Un,fi,void 0!==bi.body?bi.body:null,{headers:wt,context:bi.context,params:ht,reportProgress:bi.reportProgress,responseType:bi.responseType||"json",withCredentials:bi.withCredentials})}const mn=(0,T.of)(Zn).pipe((0,G.b)(wt=>this.handler.handle(wt)));if(Un instanceof Ye||"events"===bi.observe)return mn;const ze=mn.pipe((0,F.h)(wt=>wt instanceof Ue));switch(bi.observe||"body"){case"body":switch(Zn.responseType){case"arraybuffer":return ze.pipe((0,N.U)(wt=>{if(null!==wt.body&&!(wt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wt.body}));case"blob":return ze.pipe((0,N.U)(wt=>{if(null!==wt.body&&!(wt.body instanceof Blob))throw new Error("Response is not a Blob.");return wt.body}));case"text":return ze.pipe((0,N.U)(wt=>{if(null!==wt.body&&"string"!=typeof wt.body)throw new Error("Response is not a string.");return wt.body}));default:return ze.pipe((0,N.U)(wt=>wt.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${bi.observe}}`)}}delete(Un,fi={}){return this.request("DELETE",Un,fi)}get(Un,fi={}){return this.request("GET",Un,fi)}head(Un,fi={}){return this.request("HEAD",Un,fi)}jsonp(Un,fi){return this.request("JSONP",Un,{params:(new oe).append(fi,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Un,fi={}){return this.request("OPTIONS",Un,fi)}patch(Un,fi,bi={}){return this.request("PATCH",Un,ln(bi,fi))}post(Un,fi,bi={}){return this.request("POST",Un,ln(bi,fi))}put(Un,fi,bi={}){return this.request("PUT",Un,ln(bi,fi))}}return Fn.\u0275fac=function(Un){return new(Un||Fn)(o.LFG(R))},Fn.\u0275prov=o.Yz7({token:Fn,factory:Fn.\u0275fac}),Fn})();function Ft(Fn,Cn){return Cn(Fn)}function st(Fn,Cn){return(Un,fi)=>Cn.intercept(Un,{handle:bi=>Fn(bi,fi)})}const $e=new o.OlP("HTTP_INTERCEPTORS"),Oe=new o.OlP("HTTP_INTERCEPTOR_FNS");function Nt(){let Fn=null;return(Cn,Un)=>(null===Fn&&(Fn=((0,o.f3M)($e,{optional:!0})??[]).reduceRight(st,Ft)),Fn(Cn,Un))}let xt=(()=>{class Fn extends R{constructor(Un,fi){super(),this.backend=Un,this.injector=fi,this.chain=null}handle(Un){if(null===this.chain){const fi=Array.from(new Set(this.injector.get(Oe)));this.chain=fi.reduceRight((bi,Zn)=>function Ze(Fn,Cn,Un){return(fi,bi)=>Un.runInContext(()=>Cn(fi,Zn=>Fn(Zn,bi)))}(bi,Zn,this.injector),Ft)}return this.chain(Un,fi=>this.backend.handle(fi))}}return Fn.\u0275fac=function(Un){return new(Un||Fn)(o.LFG(P),o.LFG(o.lqb))},Fn.\u0275prov=o.Yz7({token:Fn,factory:Fn.\u0275fac}),Fn})();const an=/^\)\]\}',?\n/;let _n=(()=>{class Fn{constructor(Un){this.xhrFactory=Un}handle(Un){if("JSONP"===Un.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new A.y(fi=>{const bi=this.xhrFactory.build();if(bi.open(Un.method,Un.urlWithParams),Un.withCredentials&&(bi.withCredentials=!0),Un.headers.forEach((kt,vn)=>bi.setRequestHeader(kt,vn.join(","))),Un.headers.has("Accept")||bi.setRequestHeader("Accept","application/json, text/plain, */*"),!Un.headers.has("Content-Type")){const kt=Un.detectContentTypeHeader();null!==kt&&bi.setRequestHeader("Content-Type",kt)}if(Un.responseType){const kt=Un.responseType.toLowerCase();bi.responseType="json"!==kt?kt:"text"}const Zn=Un.serializeBody();let mn=null;const ze=()=>{if(null!==mn)return mn;const kt=bi.statusText||"OK",vn=new y(bi.getAllResponseHeaders()),jn=function sn(Fn){return"responseURL"in Fn&&Fn.responseURL?Fn.responseURL:/^X-Request-URL:/m.test(Fn.getAllResponseHeaders())?Fn.getResponseHeader("X-Request-URL"):null}(bi)||Un.url;return mn=new Ct({headers:vn,status:bi.status,statusText:kt,url:jn}),mn},wt=()=>{let{headers:kt,status:vn,statusText:jn,url:St}=ze(),De=null;204!==vn&&(De=typeof bi.response>"u"?bi.responseText:bi.response),0===vn&&(vn=De?200:0);let ie=vn>=200&&vn<300;if("json"===Un.responseType&&"string"==typeof De){const je=De;De=De.replace(an,"");try{De=""!==De?JSON.parse(De):null}catch(pt){De=je,ie&&(ie=!1,De={error:pt,text:De})}}ie?(fi.next(new Ue({body:De,headers:kt,status:vn,statusText:jn,url:St||void 0})),fi.complete()):fi.error(new vt({error:De,headers:kt,status:vn,statusText:jn,url:St||void 0}))},ht=kt=>{const{url:vn}=ze(),jn=new vt({error:kt,status:bi.status||0,statusText:bi.statusText||"Unknown Error",url:vn||void 0});fi.error(jn)};let U=!1;const gt=kt=>{U||(fi.next(ze()),U=!0);let vn={type:ct.DownloadProgress,loaded:kt.loaded};kt.lengthComputable&&(vn.total=kt.total),"text"===Un.responseType&&bi.responseText&&(vn.partialText=bi.responseText),fi.next(vn)},Lt=kt=>{let vn={type:ct.UploadProgress,loaded:kt.loaded};kt.lengthComputable&&(vn.total=kt.total),fi.next(vn)};return bi.addEventListener("load",wt),bi.addEventListener("error",ht),bi.addEventListener("timeout",ht),bi.addEventListener("abort",ht),Un.reportProgress&&(bi.addEventListener("progress",gt),null!==Zn&&bi.upload&&bi.upload.addEventListener("progress",Lt)),bi.send(Zn),fi.next({type:ct.Sent}),()=>{bi.removeEventListener("error",ht),bi.removeEventListener("abort",ht),bi.removeEventListener("load",wt),bi.removeEventListener("timeout",ht),Un.reportProgress&&(bi.removeEventListener("progress",gt),null!==Zn&&bi.upload&&bi.upload.removeEventListener("progress",Lt)),bi.readyState!==bi.DONE&&bi.abort()}})}}return Fn.\u0275fac=function(Un){return new(Un||Fn)(o.LFG(e.JF))},Fn.\u0275prov=o.Yz7({token:Fn,factory:Fn.\u0275fac}),Fn})();const Ln=new o.OlP("XSRF_ENABLED"),pi=new o.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gi=new o.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class qn{}let ki=(()=>{class Fn{constructor(Un,fi,bi){this.doc=Un,this.platform=fi,this.cookieName=bi,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Un=this.doc.cookie||"";return Un!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Un,this.cookieName),this.lastCookieString=Un),this.lastToken}}return Fn.\u0275fac=function(Un){return new(Un||Fn)(o.LFG(e.K0),o.LFG(o.Lbi),o.LFG(pi))},Fn.\u0275prov=o.Yz7({token:Fn,factory:Fn.\u0275fac}),Fn})();function Si(Fn,Cn){const Un=Fn.url.toLowerCase();if(!(0,o.f3M)(Ln)||"GET"===Fn.method||"HEAD"===Fn.method||Un.startsWith("http://")||Un.startsWith("https://"))return Cn(Fn);const fi=(0,o.f3M)(qn).getToken(),bi=(0,o.f3M)(gi);return null!=fi&&!Fn.headers.has(bi)&&(Fn=Fn.clone({headers:Fn.headers.set(bi,fi)})),Cn(Fn)}var pn=(()=>((pn=pn||{})[pn.Interceptors=0]="Interceptors",pn[pn.LegacyInterceptors=1]="LegacyInterceptors",pn[pn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",pn[pn.NoXsrfProtection=3]="NoXsrfProtection",pn[pn.JsonpSupport=4]="JsonpSupport",pn[pn.RequestsMadeViaParent=5]="RequestsMadeViaParent",pn))();function Vn(Fn,Cn){return{\u0275kind:Fn,\u0275providers:Cn}}function ot(...Fn){const Cn=[Je,_n,xt,{provide:R,useExisting:xt},{provide:P,useExisting:_n},{provide:Oe,useValue:Si,multi:!0},{provide:Ln,useValue:!0},{provide:qn,useClass:ki}];for(const Un of Fn)Cn.push(...Un.\u0275providers);return(0,o.MR2)(Cn)}const lt=new o.OlP("LEGACY_INTERCEPTOR_FN");let Ht=(()=>{class Fn{}return Fn.\u0275fac=function(Un){return new(Un||Fn)},Fn.\u0275mod=o.oAB({type:Fn}),Fn.\u0275inj=o.cJS({providers:[ot(Vn(pn.LegacyInterceptors,[{provide:lt,useFactory:Nt},{provide:Oe,useExisting:lt,multi:!0}]))]}),Fn})()},94650:(fn,ve,_)=>{"use strict";_.d(ve,{$8M:()=>al,$WT:()=>Yi,$Z:()=>S2,$Z9:()=>x,AFp:()=>W1,ALo:()=>A1,AaK:()=>R,Akn:()=>au,AsE:()=>gh,B6R:()=>je,BQk:()=>Gh,CHM:()=>mo,CRH:()=>a,CZH:()=>Og,CqO:()=>Hv,D6c:()=>kS,DdM:()=>k0,Dn7:()=>Au,DtL:()=>rb,EEQ:()=>Rl,EJc:()=>mf,EiD:()=>sp,EpF:()=>Hh,F$t:()=>o_,F4k:()=>Gv,FYo:()=>tv,FiY:()=>Ao,G48:()=>t3,G7q:()=>vg,Gf:()=>V0,GfV:()=>hm,GkF:()=>N2,Gpc:()=>j,Gre:()=>Lc,GuJ:()=>kt,HTZ:()=>k1,Hh0:()=>O1,Hsn:()=>G2,Ikx:()=>l1,JOm:()=>kn,JVY:()=>xh,JZr:()=>Se,Jf7:()=>Pc,KtG:()=>Or,L6k:()=>Vu,LAX:()=>kd,LFG:()=>Ht,LSH:()=>nh,Lbi:()=>ny,Lck:()=>iS,MAs:()=>Am,MGl:()=>Vf,MMx:()=>fg,MR2:()=>Fa,NdJ:()=>Vv,O4$:()=>Tl,OlP:()=>ua,Oqu:()=>Zm,P3R:()=>At,PXZ:()=>J1,Q6J:()=>Rm,QGY:()=>L2,QbO:()=>WS,Qsj:()=>nv,QtT:()=>ab,R0b:()=>Xc,RDi:()=>qh,Rgc:()=>pf,SBq:()=>oh,Sil:()=>Y3,Suo:()=>Ru,TTD:()=>ko,TgZ:()=>$p,Tol:()=>t1,Udp:()=>Jp,VKq:()=>O0,W1O:()=>at,WD2:()=>vs,WLB:()=>A0,X6Q:()=>e3,XFs:()=>Ln,Xpm:()=>ie,Xts:()=>Vs,Y36:()=>Fh,YKP:()=>I1,YNc:()=>vp,Yjl:()=>mi,Yz7:()=>$t,Z0I:()=>it,ZZ4:()=>uy,_Bn:()=>S0,_UZ:()=>i_,_Vd:()=>ou,_c5:()=>MS,_uU:()=>f_,aQg:()=>dy,c2e:()=>Z1,cJS:()=>We,cg1:()=>tg,d8E:()=>c1,dDg:()=>KS,dqk:()=>ki,dwT:()=>t0,eBb:()=>ju,eFA:()=>Pb,eJc:()=>sr,ekj:()=>jm,eoX:()=>hS,evT:()=>xf,f3M:()=>Sn,g9A:()=>Z_,h0i:()=>wp,hGG:()=>m3,hij:()=>Kf,iGM:()=>rm,ifc:()=>wt,ip1:()=>kg,jDz:()=>N_,kEZ:()=>R0,kL8:()=>y_,kcU:()=>qa,l5B:()=>gg,lG2:()=>ri,lcZ:()=>R1,lnq:()=>Wd,lqb:()=>zn,lri:()=>ry,mCW:()=>Wc,n5z:()=>xl,n_E:()=>bg,oAB:()=>xn,oJD:()=>Ah,oxw:()=>U2,pB0:()=>Ep,pQV:()=>v0,q3G:()=>Cl,q4F:()=>Fd,qLn:()=>Rh,qOj:()=>Hp,qZA:()=>Zp,qbA:()=>Wh,qlk:()=>z_,qzn:()=>wu,rFY:()=>B_,rWj:()=>Mb,s9C:()=>Lm,sBO:()=>K3,s_b:()=>wg,soG:()=>K1,tb:()=>Ab,tp0:()=>tr,uIk:()=>Uh,uOi:()=>H,vHH:()=>te,vpe:()=>_h,wAp:()=>Dr,xDo:()=>Qp,xi3:()=>F0,xp6:()=>ch,ynx:()=>Nm,z2F:()=>uu,z3N:()=>Ac,zSh:()=>Re,zs3:()=>Lh});var e=_(77579),o=_(50727),T=_(69751),A=_(56451),G=_(13099);function F(l){for(let d in l)if(l[d]===F)return d;throw Error("Could not find renamed property on target object.")}function N(l,d){for(const m in d)d.hasOwnProperty(m)&&!l.hasOwnProperty(m)&&(l[m]=d[m])}function R(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(R).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return`${l.overriddenName}`;if(l.name)return`${l.name}`;const d=l.toString();if(null==d)return""+d;const m=d.indexOf("\n");return-1===m?d:d.substring(0,m)}function P(l,d){return null==l||""===l?null===d?"":d:null==d||""===d?l:l+" "+d}const y=F({__forward_ref__:F});function j(l){return l.__forward_ref__=j,l.toString=function(){return R(this())},l}function Y(l){return ee(l)?l():l}function ee(l){return"function"==typeof l&&l.hasOwnProperty(y)&&l.__forward_ref__===j}function se(l){return l&&!!l.\u0275providers}const Se="https://g.co/ng/security#xss";class te extends Error{constructor(d,m){super(oe(d,m)),this.code=d}}function oe(l,d){return`NG0${Math.abs(l)}${d?": "+d.trim():""}`}function q(l){return"string"==typeof l?l:null==l?"":String(l)}function Ee(l,d){throw new te(-201,!1)}function Oe(l,d){null==l&&function Nt(l,d,m,C){throw new Error(`ASSERTION ERROR: ${l}`+(null==C?"":` [Expected=> ${m} ${C} ${d} <=Actual]`))}(d,l,null,"!=")}function $t(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}function We(l){return{providers:l.providers||[],imports:l.imports||[]}}function yt(l){return It(l,Nn)||It(l,sn)}function it(l){return null!==yt(l)}function It(l,d){return l.hasOwnProperty(d)?l[d]:null}function wn(l){return l&&(l.hasOwnProperty(an)||l.hasOwnProperty(_n))?l[an]:null}const Nn=F({\u0275prov:F}),an=F({\u0275inj:F}),sn=F({ngInjectableDef:F}),_n=F({ngInjectorDef:F});var Ln=(()=>((Ln=Ln||{})[Ln.Default=0]="Default",Ln[Ln.Host=1]="Host",Ln[Ln.Self=2]="Self",Ln[Ln.SkipSelf=4]="SkipSelf",Ln[Ln.Optional=8]="Optional",Ln))();let Mn;function Yn(l){const d=Mn;return Mn=l,d}function gi(l,d,m){const C=yt(l);return C&&"root"==C.providedIn?void 0===C.value?C.value=C.factory():C.value:m&Ln.Optional?null:void 0!==d?d:void Ee(R(l))}const ki=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Vn={},ot="__NG_DI_FLAG__",en="ngTempTokenPath",lt="ngTokenPath",In=/\n/gm,rn="\u0275",Qt="__source";let yi;function Li(l){const d=yi;return yi=l,d}function An(l,d=Ln.Default){if(void 0===yi)throw new te(-203,!1);return null===yi?gi(l,void 0,d):yi.get(l,d&Ln.Optional?null:void 0,d)}function Ht(l,d=Ln.Default){return(function pi(){return Mn}()||An)(Y(l),d)}function Sn(l,d=Ln.Default){return Ht(l,Fn(d))}function Fn(l){return typeof l>"u"||"number"==typeof l?l:0|(l.optional&&8)|(l.host&&1)|(l.self&&2)|(l.skipSelf&&4)}function Cn(l){const d=[];for(let m=0;m<l.length;m++){const C=Y(l[m]);if(Array.isArray(C)){if(0===C.length)throw new te(900,!1);let O,Z=Ln.Default;for(let be=0;be<C.length;be++){const Ge=C[be],nt=fi(Ge);"number"==typeof nt?-1===nt?O=Ge.token:Z|=nt:O=Ge}d.push(Ht(O,Z))}else d.push(Ht(C))}return d}function Un(l,d){return l[ot]=d,l.prototype[ot]=d,l}function fi(l){return l[ot]}function mn(l){return{toString:l}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),wt=(()=>{return(l=wt||(wt={}))[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",wt;var l})();const ht={},U=[],gt=F({\u0275cmp:F}),Lt=F({\u0275dir:F}),kt=F({\u0275pipe:F}),vn=F({\u0275mod:F}),jn=F({\u0275fac:F}),St=F({__NG_ELEMENT_ID__:F});let De=0;function ie(l){return mn(()=>{const d=gs(l),m={...d,decls:l.decls,vars:l.vars,template:l.template,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,onPush:l.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,dependencies:d.standalone&&l.dependencies||null,getStandaloneInjector:null,data:l.data||{},encapsulation:l.encapsulation||wt.Emulated,id:"c"+De++,styles:l.styles||U,_:null,schemas:l.schemas||null,tView:null};bs(m);const C=l.dependencies;return m.directiveDefs=Es(C,!1),m.pipeDefs=Es(C,!0),m})}function je(l,d,m){const C=l.\u0275cmp;C.directiveDefs=Es(d,!1),C.pipeDefs=Es(m,!0)}function pt(l){return ui(l)||Pi(l)}function Ut(l){return null!==l}function xn(l){return mn(()=>({type:l.type,bootstrap:l.bootstrap||U,declarations:l.declarations||U,imports:l.imports||U,exports:l.exports||U,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null}))}function Gn(l,d){if(null==l)return ht;const m={};for(const C in l)if(l.hasOwnProperty(C)){let O=l[C],Z=O;Array.isArray(O)&&(Z=O[1],O=O[0]),m[O]=C,d&&(d[O]=Z)}return m}function ri(l){return mn(()=>{const d=gs(l);return bs(d),d})}function mi(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,standalone:!0===l.standalone,onDestroy:l.type.prototype.ngOnDestroy||null}}function ui(l){return l[gt]||null}function Pi(l){return l[Lt]||null}function Di(l){return l[kt]||null}function Yi(l){const d=ui(l)||Pi(l)||Di(l);return null!==d&&d.standalone}function ji(l,d){const m=l[vn]||null;if(!m&&!0===d)throw new Error(`Type ${R(l)} does not have '\u0275mod' property.`);return m}function gs(l){const d={};return{type:l.type,providersResolver:null,factory:null,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:d,exportAs:l.exportAs||null,standalone:!0===l.standalone,selectors:l.selectors||U,viewQuery:l.viewQuery||null,features:l.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gn(l.inputs,d),outputs:Gn(l.outputs)}}function bs(l){l.features?.forEach(d=>d(l))}function Es(l,d){if(!l)return null;const m=d?Di:pt;return()=>("function"==typeof l?l():l).map(C=>m(C)).filter(Ut)}const ss=0,zi=1,as=2,ds=3,Xi=4,us=5,ps=6,_s=7,ei=8,Fs=9,po=10,As=11,un=12,ai=13,Le=14,Pt=15,Be=16,Jt=17,xe=18,Ke=19,Qe=20,Et=21,Dn=22,ni=1,qi=2,ys=7,Mo=8,bo=9,Ps=10;function Bn(l){return Array.isArray(l)&&"object"==typeof l[ni]}function ti(l){return Array.isArray(l)&&!0===l[ni]}function Ui(l){return 0!=(4&l.flags)}function Pe(l){return l.componentOffset>-1}function gn(l){return 1==(1&l.flags)}function z(l){return!!l.template}function Ce(l){return 0!=(256&l[as])}function kr(l,d){return l.hasOwnProperty(jn)?l[jn]:null}class vs{constructor(d,m,C){this.previousValue=d,this.currentValue=m,this.firstChange=C}isFirstChange(){return this.firstChange}}function ko(){return Nr}function Nr(l){return l.type.prototype.ngOnChanges&&(l.setInput=cr),so}function so(){const l=js(this),d=l?.current;if(d){const m=l.previous;if(m===ht)l.previous=d;else for(let C in d)m[C]=d[C];l.current=null,this.ngOnChanges(d)}}function cr(l,d,m,C){const O=this.declaredInputs[m],Z=js(l)||function fr(l,d){return l[fo]=d}(l,{previous:ht,current:null}),be=Z.current||(Z.current={}),Ge=Z.previous,nt=Ge[O];be[O]=new vs(nt&&nt.currentValue,d,Ge===ht),l[C]=d}ko.ngInherit=!0;const fo="__ngSimpleChanges__";function js(l){return l[fo]||null}const ur=function(l,d,m){},Fr="svg";function ms(l){for(;Array.isArray(l);)l=l[ss];return l}function vo(l,d){return ms(d[l])}function oa(l,d){return ms(d[l.index])}function Gr(l,d){return l.data[d]}function Xr(l,d){return l[d]}function uo(l,d){const m=d[l];return Bn(m)?m:m[ss]}function Cr(l){return 64==(64&l[as])}function zr(l,d){return null==d?null:l[d]}function or(l){l[xe]=0}function rr(l,d){l[us]+=d;let m=l,C=l[ds];for(;null!==C&&(1===d&&1===m[us]||-1===d&&0===m[us]);)C[us]+=d,m=C,C=C[ds]}const lo={lFrame:la(null),bindingsEnabled:!0};function Gi(){return lo.bindingsEnabled}function Hi(){return lo.lFrame.lView}function to(){return lo.lFrame.tView}function mo(l){return lo.lFrame.contextLView=l,l[ei]}function Or(l){return lo.lFrame.contextLView=null,l}function sa(){let l=aa();for(;null!==l&&64===l.type;)l=l.parent;return l}function aa(){return lo.lFrame.currentTNode}function ar(l,d){const m=lo.lFrame;m.currentTNode=l,m.isParent=d}function qr(){return lo.lFrame.isParent}function bt(){lo.lFrame.isParent=!1}function Qn(){const l=lo.lFrame;let d=l.bindingRootIndex;return-1===d&&(d=l.bindingRootIndex=l.tView.bindingStartIndex),d}function Ci(){return lo.lFrame.bindingIndex}function Us(){return lo.lFrame.bindingIndex++}function Is(l){const d=lo.lFrame,m=d.bindingIndex;return d.bindingIndex=d.bindingIndex+l,m}function $s(l,d){const m=lo.lFrame;m.bindingIndex=m.bindingRootIndex=l,Lo(d)}function Lo(l){lo.lFrame.currentDirectiveIndex=l}function yr(l){const d=lo.lFrame.currentDirectiveIndex;return-1===d?null:l[d]}function Yr(){return lo.lFrame.currentQueryIndex}function Vo(l){lo.lFrame.currentQueryIndex=l}function Wr(l){const d=l[zi];return 2===d.type?d.declTNode:1===d.type?l[ps]:null}function Oo(l,d,m){if(m&Ln.SkipSelf){let O=d,Z=l;for(;!(O=O.parent,null!==O||m&Ln.Host||(O=Wr(Z),null===O||(Z=Z[Pt],10&O.type))););if(null===O)return!1;d=O,l=Z}const C=lo.lFrame=ea();return C.currentTNode=d,C.lView=l,!0}function Ta(l){const d=ea(),m=l[zi];lo.lFrame=d,d.currentTNode=m.firstChild,d.lView=l,d.tView=m,d.contextLView=l,d.bindingIndex=m.bindingStartIndex,d.inI18n=!1}function ea(){const l=lo.lFrame,d=null===l?null:l.child;return null===d?la(l):d}function la(l){const d={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=d),d}function Br(){const l=lo.lFrame;return lo.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}const Il=Br;function br(){const l=Br();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 er(){return lo.lFrame.selectedIndex}function ha(l){lo.lFrame.selectedIndex=l}function ir(){const l=lo.lFrame;return Gr(l.tView,l.selectedIndex)}function Tl(){lo.lFrame.currentNamespace=Fr}function qa(){!function Ml(){lo.lFrame.currentNamespace=null}()}function Ir(l,d){for(let m=d.directiveStart,C=d.directiveEnd;m<C;m++){const Z=l.data[m].type.prototype,{ngAfterContentInit:be,ngAfterContentChecked:Ge,ngAfterViewInit:nt,ngAfterViewChecked:Yt,ngOnDestroy:On}=Z;be&&(l.contentHooks??(l.contentHooks=[])).push(-m,be),Ge&&((l.contentHooks??(l.contentHooks=[])).push(m,Ge),(l.contentCheckHooks??(l.contentCheckHooks=[])).push(m,Ge)),nt&&(l.viewHooks??(l.viewHooks=[])).push(-m,nt),Yt&&((l.viewHooks??(l.viewHooks=[])).push(m,Yt),(l.viewCheckHooks??(l.viewCheckHooks=[])).push(m,Yt)),null!=On&&(l.destroyHooks??(l.destroyHooks=[])).push(m,On)}}function ne(l,d,m){re(l,d,3,m)}function qt(l,d,m,C){(3&l[as])===m&&re(l,d,m,C)}function V(l,d){let m=l[as];(3&m)===d&&(m&=2047,m+=1,l[as]=m)}function re(l,d,m,C){const Z=C??-1,be=d.length-1;let Ge=0;for(let nt=void 0!==C?65535&l[xe]:0;nt<be;nt++)if("number"==typeof d[nt+1]){if(Ge=d[nt],null!=C&&Ge>=C)break}else d[nt]<0&&(l[xe]+=65536),(Ge<Z||-1==Z)&&(Ie(l,m,d,nt),l[xe]=(4294901760&l[xe])+nt+2),nt++}function Ie(l,d,m,C){const O=m[C]<0,Z=m[C+1],Ge=l[O?-m[C]:m[C]];if(O){if(l[as]>>11<l[xe]>>16&&(3&l[as])===d){l[as]+=2048,ur(4,Ge,Z);try{Z.call(Ge)}finally{ur(5,Ge,Z)}}}else{ur(4,Ge,Z);try{Z.call(Ge)}finally{ur(5,Ge,Z)}}}const qe=-1;class Zt{constructor(d,m,C){this.factory=d,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=C}}function go(l,d,m){let C=0;for(;C<m.length;){const O=m[C];if("number"==typeof O){if(0!==O)break;C++;const Z=m[C++],be=m[C++],Ge=m[C++];l.setAttribute(d,be,Ge,Z)}else{const Z=O,be=m[++C];Ms(Z)?l.setProperty(d,Z,be):l.setAttribute(d,Z,be),C++}}return C}function Ls(l){return 3===l||4===l||6===l}function Ms(l){return 64===l.charCodeAt(0)}function ao(l,d){if(null!==d&&0!==d.length)if(null===l||0===l.length)l=d.slice();else{let m=-1;for(let C=0;C<d.length;C++){const O=d[C];"number"==typeof O?m=O:0===m||Po(l,m,O,null,-1===m||2===m?d[++C]:null)}}return l}function Po(l,d,m,C,O){let Z=0,be=l.length;if(-1===d)be=-1;else for(;Z<l.length;){const Ge=l[Z++];if("number"==typeof Ge){if(Ge===d){be=-1;break}if(Ge>d){be=Z-1;break}}}for(;Z<l.length;){const Ge=l[Z];if("number"==typeof Ge)break;if(Ge===m){if(null===C)return void(null!==O&&(l[Z+1]=O));if(C===l[Z+1])return void(l[Z+2]=O)}Z++,null!==C&&Z++,null!==O&&Z++}-1!==be&&(l.splice(be,0,d),Z=be+1),l.splice(Z++,0,m),null!==C&&l.splice(Z++,0,C),null!==O&&l.splice(Z++,0,O)}function zs(l){return l!==qe}function yo(l){return 32767&l}function Xs(l,d){let m=function Uo(l){return l>>16}(l),C=d;for(;m>0;)C=C[Pt],m--;return C}let lr=!0;function Fo(l){const d=lr;return lr=l,d}const Tr=255,Oa=5;let za=0;const pa={};function Sr(l,d){const m=el(l,d);if(-1!==m)return m;const C=d[zi];C.firstCreatePass&&(l.injectorIndex=d.length,$r(C.data,l),$r(d,null),$r(C.blueprint,null));const O=Jo(l,d),Z=l.injectorIndex;if(zs(O)){const be=yo(O),Ge=Xs(O,d),nt=Ge[zi].data;for(let Yt=0;Yt<8;Yt++)d[Z+Yt]=Ge[be+Yt]|nt[be+Yt]}return d[Z+8]=O,Z}function $r(l,d){l.push(0,0,0,0,0,0,0,0,d)}function el(l,d){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===d[l.injectorIndex+8]?-1:l.injectorIndex}function Jo(l,d){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;let m=0,C=null,O=d;for(;null!==O;){if(C=Aa(O),null===C)return qe;if(m++,O=O[Pt],-1!==C.injectorIndex)return C.injectorIndex|m<<16}return qe}function Yl(l,d,m){!function zl(l,d,m){let C;"string"==typeof m?C=m.charCodeAt(0)||0:m.hasOwnProperty(St)&&(C=m[St]),null==C&&(C=m[St]=za++);const O=C&Tr;d.data[l+(O>>Oa)]|=1<<O}(l,d,m)}function tl(l,d,m){if(m&Ln.Optional||void 0!==l)return l;Ee()}function hl(l,d,m,C){if(m&Ln.Optional&&void 0===C&&(C=null),!(m&(Ln.Self|Ln.Host))){const O=l[Fs],Z=Yn(void 0);try{return O?O.get(d,C,m&Ln.Optional):gi(d,C,m&Ln.Optional)}finally{Yn(Z)}}return tl(C,0,m)}function Wl(l,d,m,C=Ln.Default,O){if(null!==l){if(1024&d[as]){const be=function sc(l,d,m,C,O){let Z=l,be=d;for(;null!==Z&&null!==be&&1024&be[as]&&!(256&be[as]);){const Ge=Xl(Z,be,m,C|Ln.Self,pa);if(Ge!==pa)return Ge;let nt=Z.parent;if(!nt){const Yt=be[Et];if(Yt){const On=Yt.get(m,pa,C);if(On!==pa)return On}nt=Aa(be),be=be[Pt]}Z=nt}return O}(l,d,m,C,pa);if(be!==pa)return be}const Z=Xl(l,d,m,C,pa);if(Z!==pa)return Z}return hl(d,m,C,O)}function Xl(l,d,m,C,O){const Z=function _l(l){if("string"==typeof l)return l.charCodeAt(0)||0;const d=l.hasOwnProperty(St)?l[St]:void 0;return"number"==typeof d?d>=0?d&Tr:Sa:d}(m);if("function"==typeof Z){if(!Oo(d,l,C))return C&Ln.Host?tl(O,0,C):hl(d,m,C,O);try{const be=Z(C);if(null!=be||C&Ln.Optional)return be;Ee()}finally{Il()}}else if("number"==typeof Z){let be=null,Ge=el(l,d),nt=qe,Yt=C&Ln.Host?d[Be][ps]:null;for((-1===Ge||C&Ln.SkipSelf)&&(nt=-1===Ge?Jo(l,d):d[Ge+8],nt!==qe&&fc(C,!1)?(be=d[zi],Ge=yo(nt),d=Xs(nt,d)):Ge=-1);-1!==Ge;){const On=d[zi];if(Ja(Z,Ge,On.data)){const li=gl(Ge,d,m,be,C,Yt);if(li!==pa)return li}nt=d[Ge+8],nt!==qe&&fc(C,d[zi].data[Ge+8]===Yt)&&Ja(Z,Ge,d)?(be=On,Ge=yo(nt),d=Xs(nt,d)):Ge=-1}}return O}function gl(l,d,m,C,O,Z){const be=d[zi],Ge=be.data[l+8],On=kl(Ge,be,m,null==C?Pe(Ge)&&lr:C!=be&&0!=(3&Ge.type),O&Ln.Host&&Z===Ge);return null!==On?ta(d,be,On,Ge):pa}function kl(l,d,m,C,O){const Z=l.providerIndexes,be=d.data,Ge=1048575&Z,nt=l.directiveStart,On=Z>>20,Ai=O?Ge+On:l.directiveEnd;for(let Ji=C?Ge:Ge+On;Ji<Ai;Ji++){const Ds=be[Ji];if(Ji<nt&&m===Ds||Ji>=nt&&Ds.type===m)return Ji}if(O){const Ji=be[nt];if(Ji&&z(Ji)&&Ji.type===m)return nt}return null}function ta(l,d,m,C){let O=l[m];const Z=d.data;if(function Rn(l){return l instanceof Zt}(O)){const be=O;be.resolving&&function ae(l,d){const m=d?`. Dependency path: ${d.join(" > ")} > ${l}`:"";throw new te(-200,`Circular dependency in DI detected for ${l}${m}`)}(function we(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():q(l)}(Z[m]));const Ge=Fo(be.canSeeViewProviders);be.resolving=!0;const nt=be.injectImpl?Yn(be.injectImpl):null;Oo(l,C,Ln.Default);try{O=l[m]=be.factory(void 0,Z,l,C),d.firstCreatePass&&m>=C.directiveStart&&function Ma(l,d,m){const{ngOnChanges:C,ngOnInit:O,ngDoCheck:Z}=d.type.prototype;if(C){const be=Nr(d);(m.preOrderHooks??(m.preOrderHooks=[])).push(l,be),(m.preOrderCheckHooks??(m.preOrderCheckHooks=[])).push(l,be)}O&&(m.preOrderHooks??(m.preOrderHooks=[])).push(0-l,O),Z&&((m.preOrderHooks??(m.preOrderHooks=[])).push(l,Z),(m.preOrderCheckHooks??(m.preOrderCheckHooks=[])).push(l,Z))}(m,Z[m],d)}finally{null!==nt&&Yn(nt),Fo(Ge),be.resolving=!1,Il()}}return O}function Ja(l,d,m){return!!(m[d+(l>>Oa)]&1<<l)}function fc(l,d){return!(l&Ln.Self||l&Ln.Host&&d)}class nl{constructor(d,m){this._tNode=d,this._lView=m}get(d,m,C){return Wl(this._tNode,this._lView,d,Fn(C),m)}}function Sa(){return new nl(sa(),Hi())}function xl(l){return mn(()=>{const d=l.prototype.constructor,m=d[jn]||ql(d),C=Object.prototype;let O=Object.getPrototypeOf(l.prototype).constructor;for(;O&&O!==C;){const Z=O[jn]||ql(O);if(Z&&Z!==m)return Z;O=Object.getPrototypeOf(O)}return Z=>new Z})}function ql(l){return ee(l)?()=>{const d=ql(Y(l));return d&&d()}:kr(l)}function Aa(l){const d=l[zi],m=d.type;return 2===m?d.declTNode:1===m?l[ps]:null}function al(l){return function Uc(l,d){if("class"===d)return l.classes;if("style"===d)return l.styles;const m=l.attrs;if(m){const C=m.length;let O=0;for(;O<C;){const Z=m[O];if(Ls(Z))break;if(0===Z)O+=2;else if("number"==typeof Z)for(O++;O<C&&"string"==typeof m[O];)O++;else{if(Z===d)return m[O+1];O+=2}}}return null}(sa(),l)}const Ol="__parameters__";function ja(l,d,m){return mn(()=>{const C=function vl(l){return function(...m){if(l){const C=l(...m);for(const O in C)this[O]=C[O]}}}(d);function O(...Z){if(this instanceof O)return C.apply(this,Z),this;const be=new O(...Z);return Ge.annotation=be,Ge;function Ge(nt,Yt,On){const li=nt.hasOwnProperty(Ol)?nt[Ol]:Object.defineProperty(nt,Ol,{value:[]})[Ol];for(;li.length<=On;)li.push(null);return(li[On]=li[On]||[]).push(be),nt}}return m&&(O.prototype=Object.create(m.prototype)),O.prototype.ngMetadataName=l,O.annotationCls=O,O})}class ua{constructor(d,m){this._desc=d,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=$t({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _e(l,d){l.forEach(m=>Array.isArray(m)?_e(m,d):d(m))}function Ne(l,d,m){d>=l.length?l.push(m):l.splice(d,0,m)}function v(l,d){return d>=l.length-1?l.pop():l.splice(d,1)[0]}function D(l,d){const m=[];for(let C=0;C<l;C++)m.push(d);return m}function oi(l,d,m){let C=hs(l,d);return C>=0?l[1|C]=m:(C=~C,function Me(l,d,m,C){let O=l.length;if(O==d)l.push(m,C);else if(1===O)l.push(C,l[0]),l[0]=m;else{for(O--,l.push(l[O-1],l[O]);O>d;)l[O]=l[O-2],O--;l[d]=m,l[d+1]=C}}(l,C,d,m)),C}function Vi(l,d){const m=hs(l,d);if(m>=0)return l[1|m]}function hs(l,d){return function jo(l,d,m){let C=0,O=l.length>>m;for(;O!==C;){const Z=C+(O-C>>1),be=l[Z<<m];if(d===be)return Z<<m;be>d?O=Z:C=Z+1}return~(O<<m)}(l,d,1)}const Ao=Un(ja("Optional"),8),tr=Un(ja("SkipSelf"),4);var kn=(()=>((kn=kn||{})[kn.Important=1]="Important",kn[kn.DashCase=2]="DashCase",kn))();const cs=/^>|^->|<!--|-->|--!>|<!-$/g,qs=/(<|>)/,xa="\u200b$1\u200b";const Ua=new Map;let fa=0;function eu(l){return Ua.get(l)||null}class zu{get lView(){return eu(this.lViewId)}constructor(d,m,C){this.lViewId=d,this.nodeIndex=m,this.native=C}}function Rl(l){let d=xc(l);if(d){if(Bn(d)){const m=d;let C,O,Z;if(ed(l)){if(C=function td(l,d){const m=l[zi].components;if(m)for(let C=0;C<m.length;C++){const O=m[C];if(uo(O,l)[ei]===d)return O}else if(uo(Dn,l)[ei]===d)return Dn;return-1}(m,l),-1==C)throw new Error("The provided component was not found in the application");O=l}else if(function yu(l){return l&&l.constructor&&l.constructor.\u0275dir}(l)){if(C=function hu(l,d){let m=l[zi].firstChild;for(;m;){const O=m.directiveEnd;for(let Z=m.directiveStart;Z<O;Z++)if(l[Z]===d)return m.index;m=Bu(m)}return-1}(m,l),-1==C)throw new Error("The provided directive was not found in the application");Z=function kc(l,d){const m=d[zi].data[l];if(0===m.directiveStart)return U;const C=[];for(let O=m.directiveStart;O<m.directiveEnd;O++){const Z=d[O];ed(Z)||C.push(Z)}return C}(C,m)}else if(C=_c(m,l),-1==C)return null;const be=ms(m[C]),Ge=xc(be),nt=Ge&&!Array.isArray(Ge)?Ge:oo(m,C,be);if(O&&void 0===nt.component&&(nt.component=O,Qa(nt.component,nt)),Z&&void 0===nt.directives){nt.directives=Z;for(let Yt=0;Yt<Z.length;Yt++)Qa(Z[Yt],nt)}Qa(nt.native,nt),d=nt}}else{const m=l;let C=m;for(;C=C.parentNode;){const O=xc(C);if(O){const Z=Array.isArray(O)?O:O.lView;if(!Z)return null;const be=_c(Z,m);if(be>=0){const Ge=ms(Z[be]),nt=oo(Z,be,Ge);Qa(Ge,nt),d=nt;break}}}}return d||null}function oo(l,d,m){return new zu(l[Qe],d,m)}const du="__ngContext__";function Qa(l,d){Bn(d)?(l[du]=d[Qe],function Fu(l){Ua.set(l[Qe],l)}(d)):l[du]=d}function xc(l){const d=l[du];return"number"==typeof d?eu(d):d||null}function ed(l){return l&&l.constructor&&l.constructor.\u0275cmp}function _c(l,d){const m=l[zi];for(let C=Dn;C<m.bindingStartIndex;C++)if(ms(l[C])===d)return C;return-1}function Bu(l){if(l.child)return l.child;if(l.next)return l.next;for(;l.parent&&!l.parent.next;)l=l.parent;return l.parent&&l.parent.next}let rc;function ye(l,d){return rc(l,d)}function w(l){const d=l[ds];return ti(d)?d[ds]:d}function cn(l){return is(l[ai])}function xi(l){return is(l[Xi])}function is(l){for(;null!==l&&!ti(l);)l=l[Xi];return l}function Zi(l,d,m,C,O){if(null!=C){let Z,be=!1;ti(C)?Z=C:Bn(C)&&(be=!0,C=C[ss]);const Ge=ms(C);0===l&&null!==m?null==O?Uu(d,m,Ge):nc(d,m,Ge,O||null,!0):1===l&&null!==m?nc(d,m,Ge,O||null,!0):2===l?yh(d,Ge,be):3===l&&d.destroyNode(Ge),null!=Z&&function bh(l,d,m,C,O){const Z=m[ys];Z!==ms(m)&&Zi(d,l,C,Z,O);for(let Ge=Ps;Ge<m.length;Ge++){const nt=m[Ge];Gu(nt[zi],nt,l,d,C,Z)}}(d,l,Z,m,O)}}function ks(l,d){return l.createText(d)}function Io(l,d,m){l.setValue(d,m)}function dr(l,d){return l.createComment(function Pa(l){return l.replace(cs,d=>d.replace(qs,xa))}(d))}function _r(l,d,m){return l.createElement(d,m)}function tc(l,d){const m=l[bo],C=m.indexOf(d),O=d[ds];512&d[as]&&(d[as]&=-513,rr(O,-1)),m.splice(C,1)}function rl(l,d){if(l.length<=Ps)return;const m=Ps+d,C=l[m];if(C){const O=C[Jt];null!==O&&O!==l&&tc(O,C),d>0&&(l[m-1][Xi]=C[Xi]);const Z=v(l,Ps+d);!function Kr(l,d){Gu(l,d,d[As],2,null,null),d[ss]=null,d[ps]=null}(C[zi],C);const be=Z[Ke];null!==be&&be.detachView(Z[zi]),C[ds]=null,C[Xi]=null,C[as]&=-65}return C}function Sl(l,d){if(!(128&d[as])){const m=d[As];m.destroyNode&&Gu(l,d,m,3,null,null),function ol(l){let d=l[ai];if(!d)return ul(l[zi],l);for(;d;){let m=null;if(Bn(d))m=d[ai];else{const C=d[Ps];C&&(m=C)}if(!m){for(;d&&!d[Xi]&&d!==l;)Bn(d)&&ul(d[zi],d),d=d[ds];null===d&&(d=l),Bn(d)&&ul(d[zi],d),m=d&&d[Xi]}d=m}}(d)}}function ul(l,d){if(!(128&d[as])){d[as]&=-65,d[as]|=128,function La(l,d){let m;if(null!=l&&null!=(m=l.destroyHooks))for(let C=0;C<m.length;C+=2){const O=d[m[C]];if(!(O instanceof Zt)){const Z=m[C+1];if(Array.isArray(Z))for(let be=0;be<Z.length;be+=2){const Ge=O[Z[be]],nt=Z[be+1];ur(4,Ge,nt);try{nt.call(Ge)}finally{ur(5,Ge,nt)}}else{ur(4,O,Z);try{Z.call(O)}finally{ur(5,O,Z)}}}}}(l,d),function ho(l,d){const m=l.cleanup,C=d[_s];let O=-1;if(null!==m)for(let Z=0;Z<m.length-1;Z+=2)if("string"==typeof m[Z]){const be=m[Z+3];be>=0?C[O=be]():C[O=-be].unsubscribe(),Z+=2}else{const be=C[O=m[Z+1]];m[Z].call(be)}if(null!==C){for(let Z=O+1;Z<C.length;Z++)(0,C[Z])();d[_s]=null}}(l,d),1===d[zi].type&&d[As].destroy();const m=d[Jt];if(null!==m&&ti(d[ds])){m!==d[ds]&&tc(m,d);const C=d[Ke];null!==C&&C.detachView(l)}!function Kd(l){Ua.delete(l[Qe])}(d)}}function Ea(l,d,m){return function dl(l,d,m){let C=d;for(;null!==C&&40&C.type;)C=(d=C).parent;if(null===C)return m[ss];{const{componentOffset:O}=C;if(O>-1){const{encapsulation:Z}=l.data[C.directiveStart+O];if(Z===wt.None||Z===wt.Emulated)return null}return oa(C,m)}}(l,d.parent,m)}function nc(l,d,m,C,O){l.insertBefore(d,m,C,O)}function Uu(l,d,m){l.appendChild(d,m)}function Dc(l,d,m,C,O){null!==C?nc(l,d,m,C,O):Uu(l,d,m)}function id(l,d){return l.parentNode(d)}function nu(l,d,m){return Vc(l,d,m)}let Jl,ac,Sh,Td,Vc=function bu(l,d,m){return 40&l.type?oa(l,m):null};function jc(l,d,m,C){const O=Ea(l,C,d),Z=d[As],Ge=nu(C.parent||d[ps],C,d);if(null!=O)if(Array.isArray(m))for(let nt=0;nt<m.length;nt++)Dc(Z,O,m[nt],Ge,!1);else Dc(Z,O,m,Ge,!1);void 0!==Jl&&Jl(Z,C,d,m,O)}function sd(l,d){if(null!==d){const m=d.type;if(3&m)return oa(d,l);if(4&m)return Dd(-1,l[d.index]);if(8&m){const C=d.child;if(null!==C)return sd(l,C);{const O=l[d.index];return ti(O)?Dd(-1,O):ms(O)}}if(32&m)return ye(d,l)()||ms(l[d.index]);{const C=Qh(l,d);return null!==C?Array.isArray(C)?C[0]:sd(w(l[Be]),C):sd(l,d.next)}}return null}function Qh(l,d){return null!==d?l[Be][ps].projection[d.projection]:null}function Dd(l,d){const m=Ps+l+1;if(m<d.length){const C=d[m],O=C[zi].firstChild;if(null!==O)return sd(C,O)}return d[ys]}function yh(l,d,m){const C=id(l,d);C&&function nd(l,d,m,C){l.removeChild(d,m,C)}(l,C,d,m)}function Xh(l,d,m,C,O,Z,be){for(;null!=m;){const Ge=C[m.index],nt=m.type;if(be&&0===d&&(Ge&&Qa(ms(Ge),C),m.flags|=2),32!=(32&m.flags))if(8&nt)Xh(l,d,m.child,C,O,Z,!1),Zi(d,l,O,Ge,Z);else if(32&nt){const Yt=ye(m,C);let On;for(;On=Yt();)Zi(d,l,O,On,Z);Zi(d,l,O,Ge,Z)}else 16&nt?Pl(l,d,C,m,O,Z):Zi(d,l,O,Ge,Z);m=be?m.projectionNext:m.next}}function Gu(l,d,m,C,O,Z){Xh(m,C,l.firstChild,d,O,Z,!1)}function Pl(l,d,m,C,O,Z){const be=m[Be],nt=be[ps].projection[C.projection];if(Array.isArray(nt))for(let Yt=0;Yt<nt.length;Yt++)Zi(d,l,O,nt[Yt],Z);else Xh(l,d,nt,be[ds],O,Z,!0)}function Ec(l,d,m){""===m?l.removeAttribute(d,"class"):l.setAttribute(d,"class",m)}function Jd(l,d,m){const{mergedAttrs:C,classes:O,styles:Z}=m;null!==C&&go(l,d,C),null!==O&&Ec(l,d,O),null!==Z&&function Ga(l,d,m){l.setAttribute(d,"style",m)}(l,d,Z)}function Su(){if(void 0===ac&&(ac=null,ki.trustedTypes))try{ac=ki.trustedTypes.createPolicy("angular",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch{}return ac}function Oc(l){return Su()?.createHTML(l)||l}function qh(l){Sh=l}function vc(){if(void 0===Td&&(Td=null,ki.trustedTypes))try{Td=ki.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch{}return Td}function Ch(l){return vc()?.createHTML(l)||l}function Hu(l){return vc()?.createScriptURL(l)||l}class Ic{constructor(d){this.changingThisBreaksApplicationSecurity=d}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Se})`}}class qd extends Ic{getTypeName(){return"HTML"}}class Md extends Ic{getTypeName(){return"Style"}}class Sf extends Ic{getTypeName(){return"Script"}}class ep extends Ic{getTypeName(){return"URL"}}class tp extends Ic{getTypeName(){return"ResourceURL"}}function Ac(l){return l instanceof Ic?l.changingThisBreaksApplicationSecurity:l}function wu(l,d){const m=function wh(l){return l instanceof Ic&&l.getTypeName()||null}(l);if(null!=m&&m!==d){if("ResourceURL"===m&&"URL"===d)return!0;throw new Error(`Required a safe ${d}, got a ${m} (see ${Se})`)}return m===d}function xh(l){return new qd(l)}function Vu(l){return new Md(l)}function ju(l){return new Sf(l)}function kd(l){return new ep(l)}function Ep(l){return new tp(l)}class od{constructor(d){this.inertDocumentHelper=d}getInertBodyElement(d){d="<body><remove></remove>"+d;try{const m=(new window.DOMParser).parseFromString(Oc(d),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(d):(m.removeChild(m.firstChild),m)}catch{return null}}}class Eh{constructor(d){this.defaultDoc=d,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(d){const m=this.inertDocument.createElement("template");return m.innerHTML=Oc(d),m}}const Od=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wc(l){return(l=String(l)).match(Od)?l:"unsafe:"+l}function ic(l){const d={};for(const m of l.split(","))d[m]=!0;return d}function Yu(...l){const d={};for(const m of l)for(const C in m)m.hasOwnProperty(C)&&(d[C]=!0);return d}const Cf=ic("area,br,col,hr,img,wbr"),eh=ic("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ad=ic("rp,rt"),th=Yu(Cf,Yu(eh,ic("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")),Yu(Ad,ic("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")),Yu(Ad,eh)),Rd=ic("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mh=Yu(Rd,ic("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ic("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")),Tp=ic("script,style,template");class Mp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(d){let m=d.firstChild,C=!0;for(;m;)if(m.nodeType===Node.ELEMENT_NODE?C=this.startElement(m):m.nodeType===Node.TEXT_NODE?this.chars(m.nodeValue):this.sanitizedSomething=!0,C&&m.firstChild)m=m.firstChild;else for(;m;){m.nodeType===Node.ELEMENT_NODE&&this.endElement(m);let O=this.checkClobberedElement(m,m.nextSibling);if(O){m=O;break}m=this.checkClobberedElement(m,m.parentNode)}return this.buf.join("")}startElement(d){const m=d.nodeName.toLowerCase();if(!th.hasOwnProperty(m))return this.sanitizedSomething=!0,!Tp.hasOwnProperty(m);this.buf.push("<"),this.buf.push(m);const C=d.attributes;for(let O=0;O<C.length;O++){const Z=C.item(O),be=Z.name,Ge=be.toLowerCase();if(!Mh.hasOwnProperty(Ge)){this.sanitizedSomething=!0;continue}let nt=Z.value;Rd[Ge]&&(nt=Wc(nt)),this.buf.push(" ",be,'="',kp(nt),'"')}return this.buf.push(">"),!0}endElement(d){const m=d.nodeName.toLowerCase();th.hasOwnProperty(m)&&!Cf.hasOwnProperty(m)&&(this.buf.push("</"),this.buf.push(m),this.buf.push(">"))}chars(d){this.buf.push(kp(d))}checkClobberedElement(d,m){if(m&&(d.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${d.outerHTML}`);return m}}const np=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ip=/([^\#-~ |!])/g;function kp(l){return l.replace(/&/g,"&amp;").replace(np,function(d){return"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";"}).replace(ip,function(d){return"&#"+d.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let kh;function sp(l,d){let m=null;try{kh=kh||function Dh(l){const d=new Eh(l);return function Ih(){try{return!!(new window.DOMParser).parseFromString(Oc(""),"text/html")}catch{return!1}}()?new od(d):d}(l);let C=d?String(d):"";m=kh.getInertBodyElement(C);let O=5,Z=C;do{if(0===O)throw new Error("Failed to sanitize html because the input is unstable");O--,C=Z,Z=m.innerHTML,m=kh.getInertBodyElement(C)}while(C!==Z);return Oc((new Mp).sanitizeChildren(Du(m)||m))}finally{if(m){const C=Du(m)||m;for(;C.firstChild;)C.removeChild(C.firstChild)}}}function Du(l){return"content"in l&&function Oh(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var Cl=(()=>((Cl=Cl||{})[Cl.NONE=0]="NONE",Cl[Cl.HTML=1]="HTML",Cl[Cl.STYLE=2]="STYLE",Cl[Cl.SCRIPT=3]="SCRIPT",Cl[Cl.URL=4]="URL",Cl[Cl.RESOURCE_URL=5]="RESOURCE_URL",Cl))();function Ah(l){const d=Rs();return d?Ch(d.sanitize(Cl.HTML,l)||""):wu(l,"HTML")?Ch(Ac(l)):sp(function Yc(){return void 0!==Sh?Sh:typeof document<"u"?document:void 0}(),q(l))}function nh(l){const d=Rs();return d?d.sanitize(Cl.URL,l)||"":wu(l,"URL")?Ac(l):Wc(q(l))}function H(l){const d=Rs();if(d)return Hu(d.sanitize(Cl.RESOURCE_URL,l)||"");if(wu(l,"ResourceURL"))return Hu(Ac(l));throw new te(904,!1)}function x(l){return function Qd(l){return Su()?.createScriptURL(l)||l}(l[0])}function At(l,d,m){return function ue(l,d){return"src"===d&&("embed"===l||"frame"===l||"iframe"===l||"media"===l||"script"===l)||"href"===d&&("base"===l||"link"===l)?H:nh}(d,m)(l)}function Rs(){const l=Hi();return l&&l[un]}const Vs=new ua("ENVIRONMENT_INITIALIZER"),zo=new ua("INJECTOR",-1),xr=new ua("INJECTOR_DEF_TYPES");class vr{get(d,m=Vn){if(m===Vn){const C=new Error(`NullInjectorError: No provider for ${R(d)}!`);throw C.name="NullInjectorError",C}return m}}function Fa(l){return{\u0275providers:l}}function lc(...l){return{\u0275providers:Ul(0,l),\u0275fromNgModule:!0}}function Ul(l,...d){const m=[],C=new Set;let O;return _e(d,Z=>{const be=Z;$a(be,m,[],C)&&(O||(O=[]),O.push(be))}),void 0!==O&&$c(O,m),m}function $c(l,d){for(let m=0;m<l.length;m++){const{providers:O}=l[m];cc(O,Z=>{d.push(Z)})}}function $a(l,d,m,C){if(!(l=Y(l)))return!1;let O=null,Z=wn(l);const be=!Z&&ui(l);if(Z||be){if(be&&!be.standalone)return!1;O=l}else{const nt=l.ngModule;if(Z=wn(nt),!Z)return!1;O=nt}const Ge=C.has(O);if(be){if(Ge)return!1;if(C.add(O),be.dependencies){const nt="function"==typeof be.dependencies?be.dependencies():be.dependencies;for(const Yt of nt)$a(Yt,d,m,C)}}else{if(!Z)return!1;{if(null!=Z.imports&&!Ge){let Yt;C.add(O);try{_e(Z.imports,On=>{$a(On,d,m,C)&&(Yt||(Yt=[]),Yt.push(On))})}finally{}void 0!==Yt&&$c(Yt,d)}if(!Ge){const Yt=kr(O)||(()=>new O);d.push({provide:O,useFactory:Yt,deps:U},{provide:xr,useValue:O,multi:!0},{provide:Vs,useValue:()=>Ht(O),multi:!0})}const nt=Z.providers;null==nt||Ge||cc(nt,On=>{d.push(On)})}}return O!==l&&void 0!==l.providers}function cc(l,d){for(let m of l)se(m)&&(m=m.\u0275providers),Array.isArray(m)?cc(m,d):d(m)}const hr=F({provide:String,useValue:F});function uc(l){return null!==l&&"object"==typeof l&&hr in l}function dc(l){return"function"==typeof l}const Re=new ua("Set Injector scope."),r={},b={};let J;function Te(){return void 0===J&&(J=new vr),J}class zn{}class Ei extends zn{get destroyed(){return this._destroyed}constructor(d,m,C,O){super(),this.parent=m,this.source=C,this.scopes=O,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,rp(d,be=>this.processProvider(be)),this.records.set(zo,Bo(void 0,this)),O.has("environment")&&this.records.set(zn,Bo(void 0,this));const Z=this.records.get(Re);null!=Z&&"string"==typeof Z.value&&this.scopes.add(Z.value),this.injectorDefTypes=new Set(this.get(xr.multi,U,Ln.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();for(const d of this._onDestroyHooks)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(d){this._onDestroyHooks.push(d)}runInContext(d){this.assertNotDestroyed();const m=Li(this),C=Yn(void 0);try{return d()}finally{Li(m),Yn(C)}}get(d,m=Vn,C=Ln.Default){this.assertNotDestroyed(),C=Fn(C);const O=Li(this),Z=Yn(void 0);try{if(!(C&Ln.SkipSelf)){let Ge=this.records.get(d);if(void 0===Ge){const nt=function Nd(l){return"function"==typeof l||"object"==typeof l&&l instanceof ua}(d)&&yt(d);Ge=nt&&this.injectableDefInScope(nt)?Bo(Xn(d),r):null,this.records.set(d,Ge)}if(null!=Ge)return this.hydrate(d,Ge)}return(C&Ln.Self?Te():this.parent).get(d,m=C&Ln.Optional&&m===Vn?null:m)}catch(be){if("NullInjectorError"===be.name){if((be[en]=be[en]||[]).unshift(R(d)),O)throw be;return function bi(l,d,m,C){const O=l[en];throw d[Qt]&&O.unshift(d[Qt]),l.message=function Zn(l,d,m,C=null){l=l&&"\n"===l.charAt(0)&&l.charAt(1)==rn?l.slice(2):l;let O=R(d);if(Array.isArray(d))O=d.map(R).join(" -> ");else if("object"==typeof d){let Z=[];for(let be in d)if(d.hasOwnProperty(be)){let Ge=d[be];Z.push(be+":"+("string"==typeof Ge?JSON.stringify(Ge):R(Ge)))}O=`{${Z.join(", ")}}`}return`${m}${C?"("+C+")":""}[${O}]: ${l.replace(In,"\n  ")}`}("\n"+l.message,O,m,C),l[lt]=O,l[en]=null,l}(be,d,"R3InjectorError",this.source)}throw be}finally{Yn(Z),Li(O)}}resolveInjectorInitializers(){const d=Li(this),m=Yn(void 0);try{const C=this.get(Vs.multi,U,Ln.Self);for(const O of C)O()}finally{Li(d),Yn(m)}}toString(){const d=[],m=this.records;for(const C of m.keys())d.push(R(C));return`R3Injector[${d.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(d){let m=dc(d=Y(d))?d:Y(d&&d.provide);const C=function Ro(l){return uc(l)?Bo(void 0,l.useValue):Bo(Go(l),r)}(d);if(dc(d)||!0!==d.multi)this.records.get(m);else{let O=this.records.get(m);O||(O=Bo(void 0,r,!0),O.factory=()=>Cn(O.multi),this.records.set(m,O)),m=d,O.multi.push(d)}this.records.set(m,C)}hydrate(d,m){return m.value===r&&(m.value=b,m.value=m.factory()),"object"==typeof m.value&&m.value&&function su(l){return null!==l&&"object"==typeof l&&"function"==typeof l.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(d){if(!d.providedIn)return!1;const m=Y(d.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Xn(l){const d=yt(l),m=null!==d?d.factory:kr(l);if(null!==m)return m;if(l instanceof ua)throw new te(204,!1);if(l instanceof Function)return function Bs(l){const d=l.length;if(d>0)throw D(d,"?"),new te(204,!1);const m=function Tt(l){return l&&(l[Nn]||l[sn])||null}(l);return null!==m?()=>m.factory(l):()=>new l}(l);throw new te(204,!1)}function Go(l,d,m){let C;if(dc(l)){const O=Y(l);return kr(O)||Xn(O)}if(uc(l))C=()=>Y(l.useValue);else if(function ya(l){return!(!l||!l.useFactory)}(l))C=()=>l.useFactory(...Cn(l.deps||[]));else if(function Eu(l){return!(!l||!l.useExisting)}(l))C=()=>Ht(Y(l.useExisting));else{const O=Y(l&&(l.useClass||l.provide));if(!function Za(l){return!!l.deps}(l))return kr(O)||Xn(O);C=()=>new O(...Cn(l.deps))}return C}function Bo(l,d,m=!1){return{factory:l,value:d,multi:m?[]:void 0}}function rp(l,d){for(const m of l)Array.isArray(m)?rp(m,d):m&&se(m)?rp(m.\u0275providers,d):d(m)}class Op{}class ih{}class s2{resolveComponentFactory(d){throw function sh(l){const d=Error(`No component factory found for ${R(l)}. Did you add it to @NgModule.entryComponents?`);return d.ngComponent=l,d}(d)}}let ou=(()=>{class l{}return l.NULL=new s2,l})();function o2(){return Ap(sa(),Hi())}function Ap(l,d){return new oh(oa(l,d))}let oh=(()=>{class l{constructor(m){this.nativeElement=m}}return l.__NG_ELEMENT_ID__=o2,l})();function ev(l){return l instanceof oh?l.nativeElement:l}class tv{}let nv=(()=>{class l{}return l.__NG_ELEMENT_ID__=()=>function wf(){const l=Hi(),m=uo(sa().index,l);return(Bn(m)?m:l)[As]}(),l})(),yc=(()=>{class l{}return l.\u0275prov=$t({token:l,providedIn:"root",factory:()=>null}),l})();class hm{constructor(d){this.full=d,this.major=d.split(".")[0],this.minor=d.split(".")[1],this.patch=d.split(".").slice(2).join(".")}}const Fd=new hm("15.2.10"),Wu={},Rp="ngOriginalError";function Ng(l){return l[Rp]}class Rh{constructor(){this._console=console}handleError(d){const m=this._findOriginalError(d);this._console.error("ERROR",d),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(d){let m=d&&Ng(d);for(;m&&Ng(m);)m=Ng(m);return m||null}}function Pc(l){return l.ownerDocument.defaultView}function xf(l){return l.ownerDocument}function Bd(l){return l instanceof Function?l():l}function sv(l,d,m){let C=l.length;for(;;){const O=l.indexOf(d,m);if(-1===O)return O;if(0===O||l.charCodeAt(O-1)<=32){const Z=d.length;if(O+Z===C||l.charCodeAt(O+Z)<=32)return O}m=O+1}}const ov="ng-template";function l2(l,d,m){let C=0,O=!0;for(;C<l.length;){let Z=l[C++];if("string"==typeof Z&&O){const be=l[C++];if(m&&"class"===Z&&-1!==sv(be.toLowerCase(),d,0))return!0}else{if(1===Z){for(;C<l.length&&"string"==typeof(Z=l[C++]);)if(Z.toLowerCase()===d)return!0;return!1}"number"==typeof Z&&(O=!1)}}return!1}function Fg(l){return 4===l.type&&l.value!==ov}function c2(l,d,m){return d===(4!==l.type||m?l.value:ov)}function u2(l,d,m){let C=4;const O=l.attrs||[],Z=function d2(l){for(let d=0;d<l.length;d++)if(Ls(l[d]))return d;return l.length}(O);let be=!1;for(let Ge=0;Ge<d.length;Ge++){const nt=d[Ge];if("number"!=typeof nt){if(!be)if(4&C){if(C=2|1&C,""!==nt&&!c2(l,nt,m)||""===nt&&1===d.length){if(rd(C))return!1;be=!0}}else{const Yt=8&C?nt:d[++Ge];if(8&C&&null!==l.attrs){if(!l2(l.attrs,Yt,m)){if(rd(C))return!1;be=!0}continue}const li=ah(8&C?"class":nt,O,Fg(l),m);if(-1===li){if(rd(C))return!1;be=!0;continue}if(""!==Yt){let Ai;Ai=li>Z?"":O[li+1].toLowerCase();const Ji=8&C?Ai:null;if(Ji&&-1!==sv(Ji,Yt,0)||2&C&&Yt!==Ai){if(rd(C))return!1;be=!0}}}}else{if(!be&&!rd(C)&&!rd(nt))return!1;if(be&&rd(nt))continue;be=!1,C=nt|1&C}}return rd(C)||be}function rd(l){return 0==(1&l)}function ah(l,d,m,C){if(null===d)return-1;let O=0;if(C||!m){let Z=!1;for(;O<d.length;){const be=d[O];if(be===l)return O;if(3===be||6===be)Z=!0;else{if(1===be||2===be){let Ge=d[++O];for(;"string"==typeof Ge;)Ge=d[++O];continue}if(4===be)break;if(0===be){O+=4;continue}}O+=Z?1:2}return-1}return function zg(l,d){let m=l.indexOf(4);if(m>-1)for(m++;m<l.length;){const C=l[m];if("number"==typeof C)return-1;if(C===d)return m;m++}return-1}(d,l)}function rv(l,d,m=!1){for(let C=0;C<d.length;C++)if(u2(l,d[C],m))return!0;return!1}function Bg(l,d){e:for(let m=0;m<d.length;m++){const C=d[m];if(l.length===C.length){for(let O=0;O<l.length;O++)if(l[O]!==C[O])continue e;return!0}}return!1}function pm(l,d){return l?":not("+d.trim()+")":d}function Nh(l){let d=l[0],m=1,C=2,O="",Z=!1;for(;m<l.length;){let be=l[m];if("string"==typeof be)if(2&C){const Ge=l[++m];O+="["+be+(Ge.length>0?'="'+Ge+'"':"")+"]"}else 8&C?O+="."+be:4&C&&(O+=" "+be);else""!==O&&!rd(be)&&(d+=pm(Z,O),O=""),C=be,Z=Z||!rd(C);m++}return""!==O&&(d+=pm(Z,O)),d}const Jr={};function ch(l){Iu(to(),Hi(),er()+l,!1)}function Iu(l,d,m,C){if(!C)if(3==(3&d[as])){const Z=l.preOrderCheckHooks;null!==Z&&ne(d,Z,m)}else{const Z=l.preOrderHooks;null!==Z&&qt(d,Z,0,m)}ha(m)}function m2(l,d=null,m=null,C){const O=g2(l,d,m,C);return O.resolveInjectorInitializers(),O}function g2(l,d=null,m=null,C,O=new Set){const Z=[m||U,lc(l)];return C=C||("object"==typeof l?void 0:R(l)),new Ei(Z,d||Te(),C||null,O)}let Lh=(()=>{class l{static create(m,C){if(Array.isArray(m))return m2({name:""},C,m,"");{const O=m.name??"";return m2({name:O},m.parent,m.providers,O)}}}return l.THROW_IF_NOT_FOUND=Vn,l.NULL=new vr,l.\u0275prov=$t({token:l,providedIn:"any",factory:()=>Ht(zo)}),l.__NG_ELEMENT_ID__=-1,l})();function Fh(l,d=Ln.Default){const m=Hi();return null===m?Ht(l,d):Wl(sa(),m,Y(l),d)}function S2(){throw new Error("invalid")}function bm(l,d){const m=l.contentQueries;if(null!==m)for(let C=0;C<m.length;C+=2){const Z=m[C+1];if(-1!==Z){const be=l.data[Z];Vo(m[C]),be.contentQueries(2,d[Z],Z)}}}function hh(l,d,m,C,O,Z,be,Ge,nt,Yt,On){const li=d.blueprint.slice();return li[ss]=O,li[as]=76|C,(null!==On||l&&1024&l[as])&&(li[as]|=1024),or(li),li[ds]=li[Pt]=l,li[ei]=m,li[po]=be||l&&l[po],li[As]=Ge||l&&l[As],li[un]=nt||l&&l[un]||null,li[Fs]=Yt||l&&l[Fs]||null,li[ps]=Z,li[Qe]=function qu(){return fa++}(),li[Et]=On,li[Be]=2==d.type?l[Be]:li,li}function ph(l,d,m,C,O){let Z=l.data[d];if(null===Z)Z=function cp(l,d,m,C,O){const Z=aa(),be=qr(),nt=l.data[d]=function zp(l,d,m,C,O,Z){return{type:m,index:C,insertBeforeIndex:null,injectorIndex:d?d.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:O,attrs:Z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:d,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,be?Z:Z&&Z.parent,m,d,C,O);return null===l.firstChild&&(l.firstChild=nt),null!==Z&&(be?null==Z.child&&null!==nt.parent&&(Z.child=nt):null===Z.next&&(Z.next=nt,nt.prev=Z)),nt}(l,d,m,C,O),function Ns(){return lo.lFrame.inI18n}()&&(Z.flags|=32);else if(64&Z.type){Z.type=m,Z.value=C,Z.attrs=O;const be=function Xa(){const l=lo.lFrame,d=l.currentTNode;return l.isParent?d:d.parent}();Z.injectorIndex=null===be?-1:be.injectorIndex}return ar(Z,!0),Z}function mu(l,d,m,C){if(0===m)return-1;const O=d.length;for(let Z=0;Z<m;Z++)d.push(C),l.blueprint.push(C),l.data.push(null);return O}function Af(l,d,m){Ta(d);try{const C=l.viewQuery;null!==C&&hp(1,C,m);const O=l.template;null!==O&&uv(l,d,O,1,m),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&bm(l,d),l.staticViewQueries&&hp(2,l.viewQuery,m);const Z=l.components;null!==Z&&function Cm(l,d){for(let m=0;m<d.length;m++)Dv(l,d[m])}(d,Z)}catch(C){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),C}finally{d[as]&=-5,br()}}function Zu(l,d,m,C){const O=d[as];if(128!=(128&O)){Ta(d);try{or(d),function $i(l){return lo.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==m&&uv(l,d,m,2,C);const be=3==(3&O);if(be){const Yt=l.preOrderCheckHooks;null!==Yt&&ne(d,Yt,null)}else{const Yt=l.preOrderHooks;null!==Yt&&qt(d,Yt,0,null),V(d,0)}if(function xv(l){for(let d=cn(l);null!==d;d=xi(d)){if(!d[qi])continue;const m=d[bo];for(let C=0;C<m.length;C++){const O=m[C];512&O[as]||rr(O[ds],1),O[as]|=512}}}(d),function E2(l){for(let d=cn(l);null!==d;d=xi(d))for(let m=Ps;m<d.length;m++){const C=d[m],O=C[zi];Cr(C)&&Zu(O,C,O.template,C[ei])}}(d),null!==l.contentQueries&&bm(l,d),be){const Yt=l.contentCheckHooks;null!==Yt&&ne(d,Yt)}else{const Yt=l.contentHooks;null!==Yt&&qt(d,Yt,1),V(d,1)}!function Gl(l,d){const m=l.hostBindingOpCodes;if(null!==m)try{for(let C=0;C<m.length;C++){const O=m[C];if(O<0)ha(~O);else{const Z=O,be=m[++C],Ge=m[++C];$s(be,Z),Ge(2,d[Z])}}}finally{ha(-1)}}(l,d);const Ge=l.components;null!==Ge&&function Sm(l,d){for(let m=0;m<d.length;m++)Pf(l,d[m])}(d,Ge);const nt=l.viewQuery;if(null!==nt&&hp(2,nt,C),be){const Yt=l.viewCheckHooks;null!==Yt&&ne(d,Yt)}else{const Yt=l.viewHooks;null!==Yt&&qt(d,Yt,2),V(d,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),d[as]&=-41,512&d[as]&&(d[as]&=-513,rr(d[ds],-1))}finally{br()}}}function uv(l,d,m,C,O){const Z=er(),be=2&C;try{ha(-1),be&&d.length>Dn&&Iu(l,d,Dn,!1),ur(be?2:0,O),m(C,O)}finally{ha(Z),ur(be?3:1,O)}}function dv(l,d,m){if(Ui(d)){const O=d.directiveEnd;for(let Z=d.directiveStart;Z<O;Z++){const be=l.data[Z];be.contentQueries&&be.contentQueries(1,m[Z],Z)}}}function Ku(l,d,m){Gi()&&(function Sv(l,d,m,C){const O=m.directiveStart,Z=m.directiveEnd;Pe(m)&&function Ey(l,d,m){const C=oa(d,l),O=pv(m),Z=l[po],be=up(l,hh(l,O,null,m.onPush?32:16,C,d,Z,Z.createRenderer(C,m),null,null,null));l[d.index]=be}(d,m,l.data[O+m.componentOffset]),l.firstCreatePass||Sr(m,d),Qa(C,d);const be=m.initialInputs;for(let Ge=O;Ge<Z;Ge++){const nt=l.data[Ge],Yt=ta(d,l,Ge,m);Qa(Yt,d),null!==be&&xm(0,Ge-O,Yt,nt,0,be),z(nt)&&(uo(m.index,d)[ei]=ta(d,l,Ge,m))}}(l,d,m,oa(m,d)),64==(64&m.flags)&&wm(l,d,m))}function hv(l,d,m=oa){const C=d.localNames;if(null!==C){let O=d.index+1;for(let Z=0;Z<C.length;Z+=2){const be=C[Z+1],Ge=-1===be?m(d,l):l[be];l[O++]=Ge}}}function pv(l){const d=l.tView;return null===d||d.incompleteFirstPass?l.tView=fv(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):d}function fv(l,d,m,C,O,Z,be,Ge,nt,Yt){const On=Dn+C,li=On+O,Ai=function Rf(l,d){const m=[];for(let C=0;C<d;C++)m.push(C<l?null:Jr);return m}(On,li),Ji="function"==typeof Yt?Yt():Yt;return Ai[zi]={type:l,blueprint:Ai,template:m,queries:null,viewQuery:Ge,declTNode:d,data:Ai.slice().fill(null,On),bindingStartIndex:On,expandoStartIndex:li,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 Z?Z():Z,pipeRegistry:"function"==typeof be?be():be,firstChild:null,schemas:nt,consts:Ji,incompleteFirstPass:!1}}function gv(l,d,m,C){const O=Hd(d);null===m?O.push(C):(O.push(m),l.firstCreatePass&&Iv(l).push(C,O.length-1))}function _v(l,d,m,C){for(let O in l)if(l.hasOwnProperty(O)){m=null===m?{}:m;const Z=l[O];null===C?Bp(m,d,O,Z):C.hasOwnProperty(O)&&Bp(m,d,C[O],Z)}return m}function Bp(l,d,m,C){l.hasOwnProperty(m)?l[m].push(d,C):l[m]=[d,C]}function ru(l,d,m,C,O,Z,be,Ge){const nt=oa(d,m);let On,Yt=d.inputs;!Ge&&null!=Yt&&(On=Yt[C])?(bc(l,m,On,C,O),Pe(d)&&function jg(l,d){const m=uo(d,l);16&m[as]||(m[as]|=32)}(m,d.index)):3&d.type&&(C=function Vg(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(C),O=null!=be?be(O,d.value||"",C):O,Z.setProperty(nt,C,O))}function Yg(l,d,m,C){if(Gi()){const O=null===C?null:{"":-1},Z=function Cv(l,d){const m=l.directiveRegistry;let C=null,O=null;if(m)for(let Z=0;Z<m.length;Z++){const be=m[Z];if(rv(d,be.selectors,!1))if(C||(C=[]),z(be))if(null!==be.findHostDirectiveDefs){const Ge=[];O=O||new Map,be.findHostDirectiveDefs(be,Ge,O),C.unshift(...Ge,be),wv(l,d,Ge.length)}else C.unshift(be),wv(l,d,0);else O=O||new Map,be.findHostDirectiveDefs?.(be,C,O),C.push(be)}return null===C?null:[C,O]}(l,m);let be,Ge;null===Z?be=Ge=null:[be,Ge]=Z,null!==be&&w2(l,d,m,be,O,Ge),O&&function x2(l,d,m){if(d){const C=l.localNames=[];for(let O=0;O<d.length;O+=2){const Z=m[d[O+1]];if(null==Z)throw new te(-301,!1);C.push(d[O],Z)}}}(m,C,O)}m.mergedAttrs=ao(m.mergedAttrs,m.attrs)}function w2(l,d,m,C,O,Z){for(let Yt=0;Yt<C.length;Yt++)Yl(Sr(m,d),l,C[Yt].type);!function D2(l,d,m){l.flags|=1,l.directiveStart=d,l.directiveEnd=d+m,l.providerIndexes=d}(m,l.data.length,C.length);for(let Yt=0;Yt<C.length;Yt++){const On=C[Yt];On.providersResolver&&On.providersResolver(On)}let be=!1,Ge=!1,nt=mu(l,d,C.length,null);for(let Yt=0;Yt<C.length;Yt++){const On=C[Yt];m.mergedAttrs=ao(m.mergedAttrs,On.hostAttrs),$g(l,m,d,nt,On),Dy(nt,On,O),null!==On.contentQueries&&(m.flags|=4),(null!==On.hostBindings||null!==On.hostAttrs||0!==On.hostVars)&&(m.flags|=64);const li=On.type.prototype;!be&&(li.ngOnChanges||li.ngOnInit||li.ngDoCheck)&&((l.preOrderHooks??(l.preOrderHooks=[])).push(m.index),be=!0),!Ge&&(li.ngOnChanges||li.ngDoCheck)&&((l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(m.index),Ge=!0),nt++}!function vv(l,d,m){const O=d.directiveEnd,Z=l.data,be=d.attrs,Ge=[];let nt=null,Yt=null;for(let On=d.directiveStart;On<O;On++){const li=Z[On],Ai=m?m.get(li):null,Ds=Ai?Ai.outputs:null;nt=_v(li.inputs,On,nt,Ai?Ai.inputs:null),Yt=_v(li.outputs,On,Yt,Ds);const io=null===nt||null===be||Fg(d)?null:Gd(nt,On,be);Ge.push(io)}null!==nt&&(nt.hasOwnProperty("class")&&(d.flags|=8),nt.hasOwnProperty("style")&&(d.flags|=16)),d.initialInputs=Ge,d.inputs=nt,d.outputs=Yt}(l,m,Z)}function wm(l,d,m){const C=m.directiveStart,O=m.directiveEnd,Z=m.index,be=function mr(){return lo.lFrame.currentDirectiveIndex}();try{ha(Z);for(let Ge=C;Ge<O;Ge++){const nt=l.data[Ge],Yt=d[Ge];Lo(Ge),(null!==nt.hostBindings||0!==nt.hostVars||null!==nt.hostAttrs)&&xy(nt,Yt)}}finally{ha(-1),Lo(be)}}function xy(l,d){null!==l.hostBindings&&l.hostBindings(1,d)}function wv(l,d,m){d.componentOffset=m,(l.components??(l.components=[])).push(d.index)}function Dy(l,d,m){if(m){if(d.exportAs)for(let C=0;C<d.exportAs.length;C++)m[d.exportAs[C]]=l;z(d)&&(m[""]=l)}}function $g(l,d,m,C,O){l.data[C]=O;const Z=O.factory||(O.factory=kr(O.type)),be=new Zt(Z,z(O),Fh);l.blueprint[C]=be,m[C]=be,function Wg(l,d,m,C,O){const Z=O.hostBindings;if(Z){let be=l.hostBindingOpCodes;null===be&&(be=l.hostBindingOpCodes=[]);const Ge=~d.index;(function bv(l){let d=l.length;for(;d>0;){const m=l[--d];if("number"==typeof m&&m<0)return m}return 0})(be)!=Ge&&be.push(Ge),be.push(m,C,Z)}}(l,d,C,mu(l,m,O.hostVars,Jr),O)}function ld(l,d,m,C,O,Z,be){if(null==Z)l.removeAttribute(d,O,m);else{const Ge=null==be?q(Z):be(Z,C||"",O);l.setAttribute(d,O,Ge,m)}}function xm(l,d,m,C,O,Z){const be=Z[d];if(null!==be){const Ge=C.setInput;for(let nt=0;nt<be.length;){const Yt=be[nt++],On=be[nt++],li=be[nt++];null!==Ge?C.setInput(m,li,Yt,On):m[On]=li}}}function Gd(l,d,m){let C=null,O=0;for(;O<m.length;){const Z=m[O];if(0!==Z)if(5!==Z){if("number"==typeof Z)break;if(l.hasOwnProperty(Z)){null===C&&(C=[]);const be=l[Z];for(let Ge=0;Ge<be.length;Ge+=2)if(be[Ge]===d){C.push(Z,be[Ge+1],m[O+1]);break}}O+=2}else O+=2;else O+=4}return C}function Dm(l,d,m,C){return[l,!0,!1,d,null,0,C,m,null,null]}function Pf(l,d){const m=uo(d,l);if(Cr(m)){const C=m[zi];48&m[as]?Zu(C,m,C.template,m[ei]):m[us]>0&&Up(m)}}function Up(l){for(let C=cn(l);null!==C;C=xi(C))for(let O=Ps;O<C.length;O++){const Z=C[O];if(Cr(Z))if(512&Z[as]){const be=Z[zi];Zu(be,Z,be.template,Z[ei])}else Z[us]>0&&Up(Z)}const m=l[zi].components;if(null!==m)for(let C=0;C<m.length;C++){const O=uo(m[C],l);Cr(O)&&O[us]>0&&Up(O)}}function Dv(l,d){const m=uo(d,l),C=m[zi];(function Em(l,d){for(let m=d.length;m<l.blueprint.length;m++)d.push(l.blueprint[m])})(C,m),Af(C,m,m[ei])}function up(l,d){return l[ai]?l[Le][Xi]=d:l[ai]=d,l[Le]=d,d}function Gp(l){for(;l;){l[as]|=32;const d=w(l);if(Ce(l)&&!d)return l;l=d}return null}function dp(l,d,m,C=!0){const O=d[po];O.begin&&O.begin();try{Zu(l,d,l.template,m)}catch(be){throw C&&Nf(d,be),be}finally{O.end&&O.end()}}function hp(l,d,m){Vo(0),d(l,m)}function Hd(l){return l[_s]||(l[_s]=[])}function Iv(l){return l.cleanup||(l.cleanup=[])}function Nf(l,d){const m=l[Fs],C=m?m.get(Rh,null):null;C&&C.handleError(d)}function bc(l,d,m,C,O){for(let Z=0;Z<m.length;){const be=m[Z++],Ge=m[Z++],nt=d[be],Yt=l.data[be];null!==Yt.setInput?Yt.setInput(nt,O,C,Ge):nt[Ge]=O}}function Ju(l,d,m){const C=vo(d,l);Io(l[As],C,m)}function pp(l,d,m){let C=m?l.styles:null,O=m?l.classes:null,Z=0;if(null!==d)for(let be=0;be<d.length;be++){const Ge=d[be];"number"==typeof Ge?Z=Ge:1==Z?O=P(O,Ge):2==Z&&(C=P(C,Ge+": "+d[++be]+";"))}m?l.styles=C:l.stylesWithoutHost=C,m?l.classes=O:l.classesWithoutHost=O}function Zg(l,d,m,C,O=!1){for(;null!==m;){const Z=d[m.index];if(null!==Z&&C.push(ms(Z)),ti(Z))for(let Ge=Ps;Ge<Z.length;Ge++){const nt=Z[Ge],Yt=nt[zi].firstChild;null!==Yt&&Zg(nt[zi],nt,Yt,C)}const be=m.type;if(8&be)Zg(l,d,m.child,C);else if(32&be){const Ge=ye(m,d);let nt;for(;nt=Ge();)C.push(nt)}else if(16&be){const Ge=Qh(d,m);if(Array.isArray(Ge))C.push(...Ge);else{const nt=w(d[Be]);Zg(nt[zi],nt,Ge,C,!0)}}m=O?m.projectionNext:m.next}return C}class fp{get rootNodes(){const d=this._lView,m=d[zi];return Zg(m,d,m.firstChild,[])}constructor(d,m){this._lView=d,this._cdRefInjectingView=m,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ei]}set context(d){this._lView[ei]=d}get destroyed(){return 128==(128&this._lView[as])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const d=this._lView[ds];if(ti(d)){const m=d[Mo],C=m?m.indexOf(this):-1;C>-1&&(rl(d,C),v(m,C))}this._attachedToViewContainer=!1}Sl(this._lView[zi],this._lView)}onDestroy(d){gv(this._lView[zi],this._lView,null,d)}markForCheck(){Gp(this._cdRefInjectingView||this._lView)}detach(){this._lView[as]&=-65}reattach(){this._lView[as]|=64}detectChanges(){dp(this._lView[zi],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Da(l,d){Gu(l,d,d[As],2,null,null)}(this._lView[zi],this._lView)}attachToAppRef(d){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=d}}class Ty extends fp{constructor(d){super(d),this._view=d}detectChanges(){const d=this._view;dp(d[zi],d,d[ei],!1)}checkNoChanges(){}get context(){return null}}class I2 extends ou{constructor(d){super(),this.ngModule=d}resolveComponentFactory(d){const m=ui(d);return new Bh(m,this.ngModule)}}function Mv(l){const d=[];for(let m in l)l.hasOwnProperty(m)&&d.push({propName:l[m],templateName:m});return d}class Kg{constructor(d,m){this.injector=d,this.parentInjector=m}get(d,m,C){C=Fn(C);const O=this.injector.get(d,Wu,C);return O!==Wu||m===Wu?O:this.parentInjector.get(d,m,C)}}class Bh extends ih{get inputs(){return Mv(this.componentDef.inputs)}get outputs(){return Mv(this.componentDef.outputs)}constructor(d,m){super(),this.componentDef=d,this.ngModule=m,this.componentType=d.type,this.selector=function h2(l){return l.map(Nh).join(",")}(d.selectors),this.ngContentSelectors=d.ngContentSelectors?d.ngContentSelectors:[],this.isBoundToModule=!!m}create(d,m,C,O){let Z=(O=O||this.ngModule)instanceof zn?O:O?.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const be=Z?new Kg(d,Z):d,Ge=be.get(tv,null);if(null===Ge)throw new te(407,!1);const nt=be.get(yc,null),Yt=Ge.createRenderer(null,this.componentDef),On=this.componentDef.selectors[0][0]||"div",li=C?function mv(l,d,m){return l.selectRootElement(d,m===wt.ShadowDom)}(Yt,C,this.componentDef.encapsulation):_r(Yt,On,function Vd(l){const d=l.toLowerCase();return"svg"===d?Fr:"math"===d?"math":null}(On)),Ai=this.componentDef.onPush?288:272,Ji=fv(0,null,null,1,0,null,null,null,null,null),Ds=hh(null,Ji,null,Ai,null,null,Ge,Yt,nt,be,null);let io,xo;Ta(Ds);try{const Zo=this.componentDef;let Ar,Gs=null;Zo.findHostDirectiveDefs?(Ar=[],Gs=new Map,Zo.findHostDirectiveDefs(Zo,Ar,Gs),Ar.push(Zo)):Ar=[Zo];const Qr=function T2(l,d){const m=l[zi],C=Dn;return l[C]=d,ph(m,C,2,"#host",null)}(Ds,li),Vl=function Lf(l,d,m,C,O,Z,be,Ge){const nt=O[zi];!function Jb(l,d,m,C){for(const O of l)d.mergedAttrs=ao(d.mergedAttrs,O.hostAttrs);null!==d.mergedAttrs&&(pp(d,d.mergedAttrs,!0),null!==m&&Jd(C,m,d))}(C,l,d,be);const Yt=Z.createRenderer(d,m),On=hh(O,pv(m),null,m.onPush?32:16,O[l.index],l,Z,Yt,Ge||null,null,null);return nt.firstCreatePass&&wv(nt,l,C.length-1),up(O,On),O[l.index]=On}(Qr,li,Zo,Ar,Ds,Ge,Yt);xo=Gr(Ji,Dn),li&&function Jg(l,d,m,C){if(C)go(l,m,["ng-version",Fd.full]);else{const{attrs:O,classes:Z}=function lh(l){const d=[],m=[];let C=1,O=2;for(;C<l.length;){let Z=l[C];if("string"==typeof Z)2===O?""!==Z&&d.push(Z,l[++C]):8===O&&m.push(Z);else{if(!rd(O))break;O=Z}C++}return{attrs:d,classes:m}}(d.selectors[0]);O&&go(l,m,O),Z&&Z.length>0&&Ec(l,m,Z.join(" "))}}(Yt,Zo,li,C),void 0!==m&&function k2(l,d,m){const C=l.projection=[];for(let O=0;O<d.length;O++){const Z=m[O];C.push(null!=Z?Array.from(Z):null)}}(xo,this.ngContentSelectors,m),io=function M2(l,d,m,C,O,Z){const be=sa(),Ge=O[zi],nt=oa(be,O);w2(Ge,O,be,m,null,C);for(let On=0;On<m.length;On++)Qa(ta(O,Ge,be.directiveStart+On,be),O);wm(Ge,O,be),nt&&Qa(nt,O);const Yt=ta(O,Ge,be.directiveStart+be.componentOffset,be);if(l[ei]=O[ei]=Yt,null!==Z)for(const On of Z)On(Yt,d);return dv(Ge,be,l),Yt}(Vl,Zo,Ar,Gs,Ds,[My]),Af(Ji,Ds,null)}finally{br()}return new kv(this.componentType,io,Ap(xo,Ds),Ds,xo)}}class kv extends Op{constructor(d,m,C,O,Z){super(),this.location=C,this._rootLView=O,this._tNode=Z,this.instance=m,this.hostView=this.changeDetectorRef=new Ty(O),this.componentType=d}setInput(d,m){const C=this._tNode.inputs;let O;if(null!==C&&(O=C[d])){const Z=this._rootLView;bc(Z[zi],Z,O,d,m),Gp(uo(this._tNode.index,Z))}}get injector(){return new nl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(d){this.hostView.onDestroy(d)}}function My(){const l=sa();Ir(Hi()[zi],l)}function Hp(l){let d=function Av(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),m=!0;const C=[l];for(;d;){let O;if(z(l))O=d.\u0275cmp||d.\u0275dir;else{if(d.\u0275cmp)throw new te(903,!1);O=d.\u0275dir}if(O){if(m){C.push(O);const be=l;be.inputs=Im(l.inputs),be.declaredInputs=Im(l.declaredInputs),be.outputs=Im(l.outputs);const Ge=O.hostBindings;Ge&&O2(l,Ge);const nt=O.viewQuery,Yt=O.contentQueries;if(nt&&Rv(l,nt),Yt&&Pv(l,Yt),N(l.inputs,O.inputs),N(l.declaredInputs,O.declaredInputs),N(l.outputs,O.outputs),z(O)&&O.data.animation){const On=l.data;On.animation=(On.animation||[]).concat(O.data.animation)}}const Z=O.features;if(Z)for(let be=0;be<Z.length;be++){const Ge=Z[be];Ge&&Ge.ngInherit&&Ge(l),Ge===Hp&&(m=!1)}}d=Object.getPrototypeOf(d)}!function Qg(l){let d=0,m=null;for(let C=l.length-1;C>=0;C--){const O=l[C];O.hostVars=d+=O.hostVars,O.hostAttrs=ao(O.hostAttrs,m=ao(m,O.hostAttrs))}}(C)}function Im(l){return l===ht?{}:l===U?[]:l}function Rv(l,d){const m=l.viewQuery;l.viewQuery=m?(C,O)=>{d(C,O),m(C,O)}:d}function Pv(l,d){const m=l.contentQueries;l.contentQueries=m?(C,O,Z)=>{d(C,O,Z),m(C,O,Z)}:d}function O2(l,d){const m=l.hostBindings;l.hostBindings=m?(C,O)=>{d(C,O),m(C,O)}:d}function km(l){return!!Ff(l)&&(Array.isArray(l)||!(l instanceof Map)&&Symbol.iterator in l)}function Ff(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function jd(l,d,m){return l[d]=m}function mp(l,d){return l[d]}function Kc(l,d,m){return!Object.is(l[d],m)&&(l[d]=m,!0)}function jp(l,d,m,C){const O=Kc(l,d,m);return Kc(l,d+1,C)||O}function gp(l,d,m,C,O){const Z=jp(l,d,m,C);return Kc(l,d+2,O)||Z}function gu(l,d,m,C,O,Z){const be=jp(l,d,m,C);return jp(l,d+2,O,Z)||be}function Uh(l,d,m,C){const O=Hi();return Kc(O,Us(),d)&&(to(),function zh(l,d,m,C,O,Z){const be=oa(l,d);ld(d[As],be,Z,l.value,m,C,O)}(ir(),O,l,d,m,C)),Uh}function Qu(l,d,m,C){return Kc(l,Us(),m)?d+q(m)+C:Jr}function vp(l,d,m,C,O,Z,be,Ge){const nt=Hi(),Yt=to(),On=l+Dn,li=Yt.firstCreatePass?function fh(l,d,m,C,O,Z,be,Ge,nt){const Yt=d.consts,On=ph(d,l,4,be||null,zr(Yt,Ge));Yg(d,m,On,zr(Yt,nt)),Ir(d,On);const li=On.tView=fv(2,On,C,O,Z,d.directiveRegistry,d.pipeRegistry,null,d.schemas,Yt);return null!==d.queries&&(d.queries.template(d,On),li.queries=d.queries.embeddedTView(On)),On}(On,Yt,nt,d,m,C,O,Z,be):Yt.data[On];ar(li,!1);const Ai=nt[As].createComment("");jc(Yt,nt,Ai,li),Qa(Ai,nt),up(nt,nt[On]=Dm(Ai,nt,Ai,li)),gn(li)&&Ku(Yt,nt,li),null!=be&&hv(nt,li,Ge)}function Am(l){return Xr(function Mt(){return lo.lFrame.contextLView}(),Dn+l)}function Rm(l,d,m){const C=Hi();return Kc(C,Us(),d)&&ru(to(),ir(),C,l,d,C[As],m,!1),Rm}function Pm(l,d,m,C,O){const be=O?"class":"style";bc(l,m,d.inputs[be],be,C)}function $p(l,d,m,C){const O=Hi(),Z=to(),be=Dn+l,Ge=O[As],nt=Z.firstCreatePass?function n_(l,d,m,C,O,Z){const be=d.consts,nt=ph(d,l,2,C,zr(be,O));return Yg(d,m,nt,zr(be,Z)),null!==nt.attrs&&pp(nt,nt.attrs,!1),null!==nt.mergedAttrs&&pp(nt,nt.mergedAttrs,!0),null!==d.queries&&d.queries.elementStart(d,nt),nt}(be,Z,O,d,m,C):Z.data[be],Yt=O[be]=_r(Ge,d,function ca(){return lo.lFrame.currentNamespace}()),On=gn(nt);return ar(nt,!0),Jd(Ge,Yt,nt),32!=(32&nt.flags)&&jc(Z,O,Yt,nt),0===function dt(){return lo.lFrame.elementDepthCount}()&&Qa(Yt,O),function et(){lo.lFrame.elementDepthCount++}(),On&&(Ku(Z,O,nt),dv(Z,nt,O)),null!==C&&hv(O,nt),$p}function Zp(){let l=sa();qr()?bt():(l=l.parent,ar(l,!1));const d=l;!function Tn(){lo.lFrame.elementDepthCount--}();const m=to();return m.firstCreatePass&&(Ir(m,l),Ui(l)&&m.queries.elementEnd(l)),null!=d.classesWithoutHost&&function ro(l){return 0!=(8&l.flags)}(d)&&Pm(m,d,Hi(),d.classesWithoutHost,!0),null!=d.stylesWithoutHost&&function rs(l){return 0!=(16&l.flags)}(d)&&Pm(m,d,Hi(),d.stylesWithoutHost,!1),Zp}function i_(l,d,m,C){return $p(l,d,m,C),Zp(),i_}function Nm(l,d,m){const C=Hi(),O=to(),Z=l+Dn,be=O.firstCreatePass?function s_(l,d,m,C,O){const Z=d.consts,be=zr(Z,C),Ge=ph(d,l,8,"ng-container",be);return null!==be&&pp(Ge,be,!0),Yg(d,m,Ge,zr(Z,O)),null!==d.queries&&d.queries.elementStart(d,Ge),Ge}(Z,O,C,d,m):O.data[Z];ar(be,!0);const Ge=C[Z]=C[As].createComment("");return jc(O,C,Ge,be),Qa(Ge,C),gn(be)&&(Ku(O,C,be),dv(O,be,C)),null!=m&&hv(C,be),Nm}function Gh(){let l=sa();const d=to();return qr()?bt():(l=l.parent,ar(l,!1)),d.firstCreatePass&&(Ir(d,l),Ui(l)&&d.queries.elementEnd(l)),Gh}function N2(l,d,m){return Nm(l,d,m),Gh(),N2}function Hh(){return Hi()}function L2(l){return!!l&&"function"==typeof l.then}function Gv(l){return!!l&&"function"==typeof l.subscribe}const Hv=Gv;function Vv(l,d,m,C){const O=Hi(),Z=to(),be=sa();return function F2(l,d,m,C,O,Z,be){const Ge=gn(C),Yt=l.firstCreatePass&&Iv(l),On=d[ei],li=Hd(d);let Ai=!0;if(3&C.type||be){const io=oa(C,d),xo=be?be(io):io,Zo=li.length,Ar=be?Qr=>be(ms(Qr[C.index])):C.index;let Gs=null;if(!be&&Ge&&(Gs=function Yv(l,d,m,C){const O=l.cleanup;if(null!=O)for(let Z=0;Z<O.length-1;Z+=2){const be=O[Z];if(be===m&&O[Z+1]===C){const Ge=d[_s],nt=O[Z+2];return Ge.length>nt?Ge[nt]:null}"string"==typeof be&&(Z+=2)}return null}(l,d,O,C.index)),null!==Gs)(Gs.__ngLastListenerFn__||Gs).__ngNextListenerFn__=Z,Gs.__ngLastListenerFn__=Z,Ai=!1;else{Z=B2(C,d,On,Z,!1);const Qr=m.listen(xo,O,Z);li.push(Z,Qr),Yt&&Yt.push(O,Ar,Zo,Zo+1)}}else Z=B2(C,d,On,Z,!1);const Ji=C.outputs;let Ds;if(Ai&&null!==Ji&&(Ds=Ji[O])){const io=Ds.length;if(io)for(let xo=0;xo<io;xo+=2){const Vl=d[Ds[xo]][Ds[xo+1]].subscribe(Z),Cc=li.length;li.push(Z,Vl),Yt&&Yt.push(O,C.index,Cc,-(Cc+1))}}}(Z,O,O[As],be,l,d,C),Vv}function z2(l,d,m,C){try{return ur(6,d,m),!1!==m(C)}catch(O){return Nf(l,O),!1}finally{ur(7,d,m)}}function B2(l,d,m,C,O){return function Z(be){if(be===Function)return C;Gp(l.componentOffset>-1?uo(l.index,d):d);let nt=z2(d,m,C,be),Yt=Z.__ngNextListenerFn__;for(;Yt;)nt=z2(d,m,Yt,be)&&nt,Yt=Yt.__ngNextListenerFn__;return O&&!1===nt&&(be.preventDefault(),be.returnValue=!1),nt}}function U2(l=1){return function wl(l){return(lo.lFrame.contextLView=function Ur(l,d){for(;l>0;)d=d[Pt],l--;return d}(l,lo.lFrame.contextLView))[ei]}(l)}function Py(l,d){let m=null;const C=function Nc(l){const d=l.attrs;if(null!=d){const m=d.indexOf(5);if(!(1&m))return d[m+1]}return null}(l);for(let O=0;O<d.length;O++){const Z=d[O];if("*"!==Z){if(null===C?rv(l,Z,!0):Bg(C,Z))return O}else m=O}return m}function o_(l){const d=Hi()[Be][ps];if(!d.projection){const C=d.projection=D(l?l.length:1,null),O=C.slice();let Z=d.child;for(;null!==Z;){const be=l?Py(Z,l):0;null!==be&&(O[be]?O[be].projectionNext=Z:C[be]=Z,O[be]=Z),Z=Z.next}}}function G2(l,d=0,m){const C=Hi(),O=to(),Z=ph(O,Dn+l,16,null,m||null);null===Z.projection&&(Z.projection=d),bt(),32!=(32&Z.flags)&&function Ed(l,d,m){Pl(d[As],0,d,m,Ea(l,m,d),nu(m.parent||d[ps],m,d))}(O,C,Z)}function Lm(l,d,m){return Vf(l,"",d,"",m),Lm}function Vf(l,d,m,C,O){const Z=Hi(),be=Qu(Z,d,m,C);return be!==Jr&&ru(to(),ir(),Z,l,be,Z[As],O,!1),Vf}function zm(l,d){return l<<17|d<<2}function ud(l){return l>>17&32767}function Qv(l){return 2|l}function Kp(l){return(131068&l)>>2}function Yf(l,d){return-131069&l|d<<2}function ga(l){return 1|l}function qv(l,d,m,C,O){const Z=l[m+1],be=null===d;let Ge=C?ud(Z):Kp(Z),nt=!1;for(;0!==Ge&&(!1===nt||be);){const On=l[Ge+1];Gm(l[Ge],d)&&(nt=!0,l[Ge+1]=C?ga(On):Qv(On)),Ge=C?ud(On):Kp(On)}nt&&(l[m+1]=C?Qv(Z):ga(Z))}function Gm(l,d){return null===l||null==d||(Array.isArray(l)?l[1]:l)===d||!(!Array.isArray(l)||"string"!=typeof d)&&hs(l,d)>=0}const Sc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hm(l){return l.substring(Sc.key,Sc.keyEnd)}function Vm(l){return l.substring(Sc.value,Sc.valueEnd)}function e1(l,d){const m=Sc.textEnd;return m===d?-1:(d=Sc.keyEnd=function j2(l,d,m){for(;d<m&&l.charCodeAt(d)>32;)d++;return d}(l,Sc.key=d,m),mh(l,d,m))}function H2(l,d){const m=Sc.textEnd;let C=Sc.key=mh(l,d,m);return m===C?-1:(C=Sc.keyEnd=function Y2(l,d,m){let C;for(;d<m&&(45===(C=l.charCodeAt(d))||95===C||(-33&C)>=65&&(-33&C)<=90||C>=48&&C<=57);)d++;return d}(l,C,m),C=W2(l,C,m),C=Sc.value=mh(l,C,m),C=Sc.valueEnd=function l_(l,d,m){let C=-1,O=-1,Z=-1,be=d,Ge=be;for(;be<m;){const nt=l.charCodeAt(be++);if(59===nt)return Ge;34===nt||39===nt?Ge=be=Yd(l,nt,be,m):d===be-4&&85===Z&&82===O&&76===C&&40===nt?Ge=be=Yd(l,41,be,m):nt>32&&(Ge=be),Z=O,O=C,C=-33&nt}return Ge}(l,C,m),W2(l,C,m))}function V2(l){Sc.key=0,Sc.keyEnd=0,Sc.value=0,Sc.valueEnd=0,Sc.textEnd=l.length}function mh(l,d,m){for(;d<m&&l.charCodeAt(d)<=32;)d++;return d}function W2(l,d,m,C){return(d=mh(l,d,m))<m&&d++,d}function Yd(l,d,m,C){let O=-1,Z=m;for(;Z<C;){const be=l.charCodeAt(Z++);if(be==d&&92!==O)return Z;O=92==be&&92===O?0:be}throw new Error}function Jp(l,d,m){return dd(l,d,m,!1),Jp}function jm(l,d){return dd(l,d,null,!0),jm}function au(l){hd(K2,c_,l,!1)}function c_(l,d){for(let m=function Fy(l){return V2(l),H2(l,mh(l,0,Sc.textEnd))}(d);m>=0;m=H2(d,m))K2(l,Hm(d),Vm(d))}function t1(l){hd(h_,ku,l,!0)}function ku(l,d){for(let m=function Vh(l){return V2(l),e1(l,mh(l,0,Sc.textEnd))}(d);m>=0;m=e1(d,m))oi(l,Hm(d),!0)}function dd(l,d,m,C){const O=Hi(),Z=to(),be=Is(2);Z.firstUpdatePass&&Ym(Z,l,be,C),d!==Jr&&Kc(O,be,d)&&Wm(Z,Z.data[er()],O,O[As],l,O[be+1]=function By(l,d){return null==l||""===l||("string"==typeof d?l+=d:"object"==typeof l&&(l=R(Ac(l)))),l}(d,m),C,be)}function hd(l,d,m,C){const O=to(),Z=Is(2);O.firstUpdatePass&&Ym(O,null,Z,C);const be=Hi();if(m!==Jr&&Kc(be,Z,m)){const Ge=O.data[er()];if(p_(Ge,C)&&!u_(O,Z)){let nt=C?Ge.classesWithoutHost:Ge.stylesWithoutHost;null!==nt&&(m=P(nt,m||"")),Pm(O,Ge,be,m,C)}else!function zy(l,d,m,C,O,Z,be,Ge){O===Jr&&(O=U);let nt=0,Yt=0,On=0<O.length?O[0]:null,li=0<Z.length?Z[0]:null;for(;null!==On||null!==li;){const Ai=nt<O.length?O[nt+1]:void 0,Ji=Yt<Z.length?Z[Yt+1]:void 0;let io,Ds=null;On===li?(nt+=2,Yt+=2,Ai!==Ji&&(Ds=li,io=Ji)):null===li||null!==On&&On<li?(nt+=2,Ds=On):(Yt+=2,Ds=li,io=Ji),null!==Ds&&Wm(l,d,m,C,Ds,io,be,Ge),On=nt<O.length?O[nt]:null,li=Yt<Z.length?Z[Yt]:null}}(O,Ge,be,be[As],be[Z+1],be[Z+1]=function Zf(l,d,m){if(null==m||""===m)return U;const C=[],O=Ac(m);if(Array.isArray(O))for(let Z=0;Z<O.length;Z++)l(C,O[Z],!0);else if("object"==typeof O)for(const Z in O)O.hasOwnProperty(Z)&&l(C,Z,O[Z]);else"string"==typeof O&&d(C,O);return C}(l,d,m),C,Z)}}function u_(l,d){return d>=l.expandoStartIndex}function Ym(l,d,m,C){const O=l.data;if(null===O[m+1]){const Z=O[er()],be=u_(l,m);p_(Z,C)&&null===d&&!be&&(d=!1),d=function n1(l,d,m,C){const O=yr(l);let Z=C?d.residualClasses:d.residualStyles;if(null===O)0===(C?d.classBindings:d.styleBindings)&&(m=yp(m=$f(null,l,d,m,C),d.attrs,C),Z=null);else{const be=d.directiveStylingLast;if(-1===be||l[be]!==O)if(m=$f(O,l,d,m,C),null===Z){let nt=function $2(l,d,m){const C=m?d.classBindings:d.styleBindings;if(0!==Kp(C))return l[ud(C)]}(l,d,C);void 0!==nt&&Array.isArray(nt)&&(nt=$f(null,l,d,nt[1],C),nt=yp(nt,d.attrs,C),function Z2(l,d,m,C){l[ud(m?d.classBindings:d.styleBindings)]=C}(l,d,C,nt))}else Z=function d_(l,d,m){let C;const O=d.directiveEnd;for(let Z=1+d.directiveStylingLast;Z<O;Z++)C=yp(C,l[Z].hostAttrs,m);return yp(C,d.attrs,m)}(l,d,C)}return void 0!==Z&&(C?d.residualClasses=Z:d.residualStyles=Z),m}(O,Z,d,C),function Wf(l,d,m,C,O,Z){let be=Z?d.classBindings:d.styleBindings,Ge=ud(be),nt=Kp(be);l[C]=m;let On,Yt=!1;if(Array.isArray(m)?(On=m[1],(null===On||hs(m,On)>0)&&(Yt=!0)):On=m,O)if(0!==nt){const Ai=ud(l[Ge+1]);l[C+1]=zm(Ai,Ge),0!==Ai&&(l[Ai+1]=Yf(l[Ai+1],C)),l[Ge+1]=function Jv(l,d){return 131071&l|d<<17}(l[Ge+1],C)}else l[C+1]=zm(Ge,0),0!==Ge&&(l[Ge+1]=Yf(l[Ge+1],C)),Ge=C;else l[C+1]=zm(nt,0),0===Ge?Ge=C:l[nt+1]=Yf(l[nt+1],C),nt=C;Yt&&(l[C+1]=Qv(l[C+1])),qv(l,On,C,!0),qv(l,On,C,!1),function Xv(l,d,m,C,O){const Z=O?l.residualClasses:l.residualStyles;null!=Z&&"string"==typeof d&&hs(Z,d)>=0&&(m[C+1]=ga(m[C+1]))}(d,On,l,C,Z),be=zm(Ge,nt),Z?d.classBindings=be:d.styleBindings=be}(O,Z,d,m,be,C)}}function $f(l,d,m,C,O){let Z=null;const be=m.directiveEnd;let Ge=m.directiveStylingLast;for(-1===Ge?Ge=m.directiveStart:Ge++;Ge<be&&(Z=d[Ge],C=yp(C,Z.hostAttrs,O),Z!==l);)Ge++;return null!==l&&(m.directiveStylingLast=Ge),C}function yp(l,d,m){const C=m?1:2;let O=-1;if(null!==d)for(let Z=0;Z<d.length;Z++){const be=d[Z];"number"==typeof be?O=be:O===C&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),oi(l,be,!!m||d[++Z]))}return void 0===l?null:l}function K2(l,d,m){oi(l,d,Ac(m))}function h_(l,d,m){const C=String(d);""!==C&&!C.includes(" ")&&oi(l,C,m)}function Wm(l,d,m,C,O,Z,be,Ge){if(!(3&d.type))return;const nt=l.data,Yt=nt[Ge+1],On=function Bm(l){return 1==(1&l)}(Yt)?s1(nt,d,m,O,Kp(Yt),be):void 0;$m(On)||($m(Z)||function Kv(l){return 2==(2&l)}(Yt)&&(Z=s1(nt,null,m,O,Ge,be)),function iu(l,d,m,C,O){if(d)O?l.addClass(m,C):l.removeClass(m,C);else{let Z=-1===C.indexOf("-")?void 0:kn.DashCase;null==O?l.removeStyle(m,C,Z):("string"==typeof O&&O.endsWith("!important")&&(O=O.slice(0,-10),Z|=kn.Important),l.setStyle(m,C,O,Z))}}(C,be,vo(er(),m),O,Z))}function s1(l,d,m,C,O,Z){const be=null===d;let Ge;for(;O>0;){const nt=l[O],Yt=Array.isArray(nt),On=Yt?nt[1]:nt,li=null===On;let Ai=m[O+1];Ai===Jr&&(Ai=li?U:void 0);let Ji=li?Vi(Ai,C):On===C?Ai:void 0;if(Yt&&!$m(Ji)&&(Ji=Vi(nt,C)),$m(Ji)&&(Ge=Ji,be))return Ge;const Ds=l[O+1];O=be?ud(Ds):Kp(Ds)}if(null!==d){let nt=Z?d.residualClasses:d.residualStyles;null!=nt&&(Ge=Vi(nt,C))}return Ge}function $m(l){return void 0!==l}function p_(l,d){return 0!=(l.flags&(d?8:16))}function f_(l,d=""){const m=Hi(),C=to(),O=l+Dn,Z=C.firstCreatePass?ph(C,O,1,d,null):C.data[O],be=m[O]=ks(m[As],d);jc(C,m,be,Z),ar(Z,!1)}function Zm(l){return Kf("",l,""),Zm}function Kf(l,d,m){const C=Hi(),O=Qu(C,l,d,m);return O!==Jr&&Ju(C,er(),O),Kf}function gh(l,d,m,C,O){const Z=Hi(),be=function zf(l,d,m,C,O,Z){const Ge=jp(l,Ci(),m,O);return Is(2),Ge?d+q(m)+C+q(O)+Z:Jr}(Z,l,d,m,C,O);return be!==Jr&&Ju(Z,er(),be),gh}function Wd(l,d,m,C,O,Z,be){const Ge=Hi(),nt=function Bf(l,d,m,C,O,Z,be,Ge){const Yt=gp(l,Ci(),m,O,be);return Is(3),Yt?d+q(m)+C+q(O)+Z+q(be)+Ge:Jr}(Ge,l,d,m,C,O,Z,be);return nt!==Jr&&Ju(Ge,er(),nt),Wd}function Qp(l,d,m,C,O,Z,be,Ge,nt,Yt,On){const li=Hi(),Ai=function Yp(l,d,m,C,O,Z,be,Ge,nt,Yt,On,li){const Ai=Ci();let Ji=gu(l,Ai,m,O,be,nt);return Ji=Kc(l,Ai+4,On)||Ji,Is(5),Ji?d+q(m)+C+q(O)+Z+q(be)+Ge+q(nt)+Yt+q(On)+li:Jr}(li,l,d,m,C,O,Z,be,Ge,nt,Yt,On);return Ai!==Jr&&Ju(li,er(),Ai),Qp}function Lc(l,d,m){hd(oi,ku,Qu(Hi(),l,d,m),!0)}function l1(l,d,m){const C=Hi();return Kc(C,Us(),d)&&ru(to(),ir(),C,l,d,C[As],m,!0),l1}function c1(l,d,m){const C=Hi();if(Kc(C,Us(),d)){const Z=to(),be=ir();ru(Z,be,C,l,d,function Tv(l,d,m){return(null===l||z(l))&&(m=function Ho(l){for(;Array.isArray(l);){if("object"==typeof l[ni])return l;l=l[ss]}return null}(m[d.index])),m[As]}(yr(Z.data),be,C),m,!0)}return c1}const jh=void 0;var Gy=["en",[["a","p"],["AM","PM"],jh],[["AM","PM"],jh,jh],[["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"]],jh,[["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"]],jh,[["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}",jh,"{1} 'at' {0}",jh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function e0(l){const m=Math.floor(Math.abs(l)),C=l.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===C?1:5}];let af={};function t0(l,d,m){"string"!=typeof d&&(m=d,d=l[Dr.LocaleId]),d=d.toLowerCase().replace(/_/g,"-"),af[d]=l,m&&(af[d][Dr.ExtraData]=m)}function tg(l){const d=function u1(l){return l.toLowerCase().replace(/_/g,"-")}(l);let m=lf(d);if(m)return m;const C=d.split("-")[0];if(m=lf(C),m)return m;if("en"===C)return Gy;throw new te(701,!1)}function y_(l){return tg(l)[Dr.PluralCase]}function lf(l){return l in af||(af[l]=ki.ng&&ki.ng.common&&ki.ng.common.locales&&ki.ng.common.locales[l]),af[l]}var Dr=(()=>((Dr=Dr||{})[Dr.LocaleId=0]="LocaleId",Dr[Dr.DayPeriodsFormat=1]="DayPeriodsFormat",Dr[Dr.DayPeriodsStandalone=2]="DayPeriodsStandalone",Dr[Dr.DaysFormat=3]="DaysFormat",Dr[Dr.DaysStandalone=4]="DaysStandalone",Dr[Dr.MonthsFormat=5]="MonthsFormat",Dr[Dr.MonthsStandalone=6]="MonthsStandalone",Dr[Dr.Eras=7]="Eras",Dr[Dr.FirstDayOfWeek=8]="FirstDayOfWeek",Dr[Dr.WeekendRange=9]="WeekendRange",Dr[Dr.DateFormat=10]="DateFormat",Dr[Dr.TimeFormat=11]="TimeFormat",Dr[Dr.DateTimeFormat=12]="DateTimeFormat",Dr[Dr.NumberSymbols=13]="NumberSymbols",Dr[Dr.NumberFormats=14]="NumberFormats",Dr[Dr.CurrencyCode=15]="CurrencyCode",Dr[Dr.CurrencySymbol=16]="CurrencySymbol",Dr[Dr.CurrencyName=17]="CurrencyName",Dr[Dr.Currencies=18]="Currencies",Dr[Dr.Directionality=19]="Directionality",Dr[Dr.PluralCase=20]="PluralCase",Dr[Dr.ExtraData=21]="ExtraData",Dr))();const n0=["zero","one","two","few","many"],Ou="en-US",ng={marker:"element"},b_={marker:"ICU"};let o0=Ou;function og(l,d){const m=l.data[d];return null===m||"string"==typeof m?null:m.hasOwnProperty("currentCaseLViewIndex")?m:m.value}function Xf(l,d){const m=d[l.currentCaseLViewIndex];return null===m?m:m<0?~m:m}function l0(l){return l>>>17}function ag(l){return(131070&l)>>>1}let cf=0,bp=0;function lg(l,d,m,C){const O=m[As];let be,Z=null;for(let Ge=0;Ge<d.length;Ge++){const nt=d[Ge];if("string"==typeof nt){const Yt=d[++Ge];null===m[Yt]&&(m[Yt]=ks(O,nt))}else if("number"==typeof nt)switch(1&nt){case 0:const Yt=l0(nt);let On,li;if(null===Z&&(Z=Yt,be=id(O,C)),Yt===Z?(On=C,li=be):(On=null,li=ms(m[Yt])),null!==li){const io=ag(nt);nc(O,li,m[io],On,!1);const Zo=og(l,io);if(null!==Zo&&"object"==typeof Zo){const Ar=Xf(Zo,m);null!==Ar&&lg(l,Zo.create[Ar],m,m[Zo.anchorIdx])}}break;case 1:const Ji=d[++Ge],Ds=d[++Ge];ld(O,vo(nt>>>1,m),null,null,Ji,Ds,null)}else switch(nt){case b_:const Yt=d[++Ge],On=d[++Ge];null===m[On]&&Qa(m[On]=dr(O,Yt),m);break;case ng:const li=d[++Ge],Ai=d[++Ge];null===m[Ai]&&Qa(m[Ai]=_r(O,li,null),m)}}}function cg(l,d,m,C,O){for(let Z=0;Z<m.length;Z++){const be=m[Z],Ge=m[++Z];if(be&O){let nt="";for(let Yt=Z+1;Yt<=Z+Ge;Yt++){const On=m[Yt];if("string"==typeof On)nt+=On;else if("number"==typeof On)if(On<0)nt+=q(d[C-On]);else{const li=On>>>2;switch(3&On){case 1:const Ai=m[++Yt],Ji=m[++Yt],Ds=l.data[li];"string"==typeof Ds?ld(d[As],d[li],null,Ds,Ai,nt,Ji):ru(l,Ds,d,Ai,nt,d[As],Ji,!1);break;case 0:const io=d[li];null!==io&&Io(d[As],io,nt);break;case 2:f1(l,og(l,li),d,nt);break;case 3:w_(l,og(l,li),C,d)}}}}else{const nt=m[Z+1];if(nt>0&&3==(3&nt)){const On=og(l,nt>>>2);d[On.currentCaseLViewIndex]<0&&w_(l,On,C,d)}}Z+=Ge}}function w_(l,d,m,C){let O=C[d.currentCaseLViewIndex];if(null!==O){let Z=cf;O<0&&(O=C[d.currentCaseLViewIndex]=~O,Z=-1),cg(l,C,d.update[O],m,Z)}}function f1(l,d,m,C){const O=function m1(l,d){let m=l.cases.indexOf(d);if(-1===m)switch(l.type){case 1:{const C=function s0(l,d){const m=y_(d)(parseInt(l,10)),C=n0[m];return void 0!==C?C:"other"}(d,function jy(){return o0}());m=l.cases.indexOf(C),-1===m&&"other"!==C&&(m=l.cases.indexOf("other"));break}case 0:m=l.cases.indexOf("other")}return-1===m?null:m}(d,C);if(Xf(d,m)!==O&&(ug(l,d,m),m[d.currentCaseLViewIndex]=null===O?null:~O,null!==O)){const be=m[d.anchorIdx];be&&lg(l,d.create[O],m,be)}}function ug(l,d,m){let C=Xf(d,m);if(null!==C){const O=d.remove[C];for(let Z=0;Z<O.length;Z++){const be=O[Z];if(be>0){const Ge=vo(be,m);null!==Ge&&yh(m[As],Ge)}else ug(l,og(l,~be),m)}}}const qf=/\ufffd(\d+):?\d*\ufffd/gi,Qy=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function uf(l,d,m,C,O,Z){const be=l.length,Ge=be+1;l.push(null,null);const nt=be+2,Yt=d.split(qf);let On=0;for(let li=0;li<Yt.length;li++){const Ai=Yt[li];if(1&li){const Ji=O+parseInt(Ai,10);l.push(-1-Ji),On|=E_(Ji)}else""!==Ai&&l.push(Ai)}return l.push(m<<2|(C?1:0)),C&&l.push(C,Z),l[be]=On,l[Ge]=l.length-nt,On}function p0(l){let d=0;for(let m=0;m<l.length;m++){const C=l[m];"number"==typeof C&&C<0&&d++}return d}function E_(l){return 1<<Math.min(l,31)}function rb(l,d){const m=to(),C=zr(m.consts,d);!function D_(l,d,m){const O=sa().index,Z=[];if(l.firstCreatePass&&null===l.data[d]){for(let be=0;be<m.length;be+=2){const Ge=m[be],nt=m[be+1];if(""!==nt){if(Qy.test(nt))throw new Error(`ICU expressions are not supported in attributes. Message: "${nt}".`);uf(Z,nt,O,Ge,p0(Z),null)}}l.data[d]=Z}}(m,l+Dn,C)}function v0(l){return function $y(l){l&&(cf|=1<<Math.min(bp,31)),bp++}(Kc(Hi(),Us(),l)),v0}function ab(l){!function u0(l,d,m){if(bp>0){const C=l.data[m];cg(l,d,Array.isArray(C)?C:C.update,Ci()-bp-1,cf)}cf=0,bp=0}(to(),Hi(),l+Dn)}function x1(l,d,m,C,O){if(l=Y(l),Array.isArray(l))for(let Z=0;Z<l.length;Z++)x1(l[Z],d,m,C,O);else{const Z=to(),be=Hi();let Ge=dc(l)?l:Y(l.provide),nt=Go(l);const Yt=sa(),On=1048575&Yt.providerIndexes,li=Yt.directiveStart,Ai=Yt.providerIndexes>>20;if(dc(l)||!l.multi){const Ji=new Zt(nt,O,Fh),Ds=b0(Ge,d,O?On:On+Ai,li);-1===Ds?(Yl(Sr(Yt,be),Z,Ge),D1(Z,l,d.length),d.push(Ge),Yt.directiveStart++,Yt.directiveEnd++,O&&(Yt.providerIndexes+=1048576),m.push(Ji),be.push(Ji)):(m[Ds]=Ji,be[Ds]=Ji)}else{const Ji=b0(Ge,d,On+Ai,li),Ds=b0(Ge,d,On,On+Ai),xo=Ds>=0&&m[Ds];if(O&&!xo||!O&&!(Ji>=0&&m[Ji])){Yl(Sr(Yt,be),Z,Ge);const Zo=function nS(l,d,m,C,O){const Z=new Zt(l,m,Fh);return Z.multi=[],Z.index=d,Z.componentProviders=0,df(Z,O,C&&!m),Z}(O?R_:tS,m.length,O,C,nt);!O&&xo&&(m[Ds].providerFactory=Zo),D1(Z,l,d.length,0),d.push(Ge),Yt.directiveStart++,Yt.directiveEnd++,O&&(Yt.providerIndexes+=1048576),m.push(Zo),be.push(Zo)}else D1(Z,l,Ji>-1?Ji:Ds,df(m[O?Ds:Ji],nt,!O&&C));!O&&C&&xo&&m[Ds].componentProviders++}}}function D1(l,d,m,C){const O=dc(d),Z=function M(l){return!!l.useClass}(d);if(O||Z){const nt=(Z?Y(d.useClass):d).prototype.ngOnDestroy;if(nt){const Yt=l.destroyHooks||(l.destroyHooks=[]);if(!O&&d.multi){const On=Yt.indexOf(m);-1===On?Yt.push(m,[C,nt]):Yt[On+1].push(C,nt)}else Yt.push(m,nt)}}}function df(l,d,m){return m&&l.componentProviders++,l.multi.push(d)-1}function b0(l,d,m,C){for(let O=m;O<C;O++)if(d[O]===l)return O;return-1}function tS(l,d,m,C){return E1(this.multi,[])}function R_(l,d,m,C){const O=this.multi;let Z;if(this.providerFactory){const be=this.providerFactory.componentProviders,Ge=ta(m,m[zi],this.providerFactory.index,C);Z=Ge.slice(0,be),E1(O,Z);for(let nt=be;nt<Ge.length;nt++)Z.push(Ge[nt])}else Z=[],E1(O,Z);return Z}function E1(l,d){for(let m=0;m<l.length;m++)d.push((0,l[m])());return d}function S0(l,d=[]){return m=>{m.providersResolver=(C,O)=>function lb(l,d,m){const C=to();if(C.firstCreatePass){const O=z(l);x1(m,C.data,C.blueprint,O,!0),x1(d,C.data,C.blueprint,O,!1)}}(C,O?O(l):l,d)}}class wp{}class I1{}function iS(l,d){return new C0(l,d??null)}class C0 extends wp{constructor(d,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new I2(this);const C=ji(d);this._bootstrapComponents=Bd(C.bootstrap),this._r3Injector=g2(d,m,[{provide:wp,useValue:this},{provide:ou,useValue:this.componentFactoryResolver}],R(d),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(d)}get injector(){return this._r3Injector}destroy(){const d=this._r3Injector;!d.destroyed&&d.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(d){this.destroyCbs.push(d)}}class P_ extends I1{constructor(d){super(),this.moduleType=d}create(d){return new C0(this.moduleType,d)}}class sm extends wp{constructor(d,m,C){super(),this.componentFactoryResolver=new I2(this),this.instance=null;const O=new Ei([...d,{provide:wp,useValue:this},{provide:ou,useValue:this.componentFactoryResolver}],m||Te(),C,new Set(["environment"]));this.injector=O,O.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(d){this.injector.onDestroy(d)}}function fg(l,d,m=null){return new sm(l,d,m).injector}let w0=(()=>{class l{constructor(m){this._injector=m,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(m){if(!m.standalone)return null;if(!this.cachedInjectors.has(m.id)){const C=Ul(0,m.type),O=C.length>0?fg([C],this._injector,`Standalone[${m.type.name}]`):null;this.cachedInjectors.set(m.id,O)}return this.cachedInjectors.get(m.id)}ngOnDestroy(){try{for(const m of this.cachedInjectors.values())null!==m&&m.destroy()}finally{this.cachedInjectors.clear()}}}return l.\u0275prov=$t({token:l,providedIn:"environment",factory:()=>new l(Ht(zn))}),l})();function N_(l){l.getStandaloneInjector=d=>d.get(w0).getOrCreateStandaloneInjector(l)}function k0(l,d,m){const C=Qn()+l,O=Hi();return O[C]===Jr?jd(O,C,m?d.call(m):d()):mp(O,C)}function O0(l,d,m,C){return U_(Hi(),Qn(),l,d,m,C)}function A0(l,d,m,C,O){return P0(Hi(),Qn(),l,d,m,C,O)}function R0(l,d,m,C,O,Z){return _g(Hi(),Qn(),l,d,m,C,O,Z)}function gg(l,d,m,C,O,Z,be){return function G_(l,d,m,C,O,Z,be,Ge,nt){const Yt=d+m;return gu(l,Yt,O,Z,be,Ge)?jd(l,Yt+4,nt?C.call(nt,O,Z,be,Ge):C(O,Z,be,Ge)):hf(l,Yt+4)}(Hi(),Qn(),l,d,m,C,O,Z,be)}function Wh(l,d,m,C,O,Z,be,Ge){const nt=Qn()+l,Yt=Hi(),On=gu(Yt,nt,m,C,O,Z);return Kc(Yt,nt+4,be)||On?jd(Yt,nt+5,Ge?d.call(Ge,m,C,O,Z,be):d(m,C,O,Z,be)):mp(Yt,nt+5)}function k1(l,d,m,C,O,Z,be,Ge,nt){const Yt=Qn()+l,On=Hi(),li=gu(On,Yt,m,C,O,Z);return jp(On,Yt+4,be,Ge)||li?jd(On,Yt+6,nt?d.call(nt,m,C,O,Z,be,Ge):d(m,C,O,Z,be,Ge)):mp(On,Yt+6)}function O1(l,d,m,C,O,Z,be,Ge,nt,Yt){const On=Qn()+l,li=Hi();let Ai=gu(li,On,m,C,O,Z);return gp(li,On+4,be,Ge,nt)||Ai?jd(li,On+7,Yt?d.call(Yt,m,C,O,Z,be,Ge,nt):d(m,C,O,Z,be,Ge,nt)):mp(li,On+7)}function z_(l,d,m,C,O,Z,be,Ge,nt,Yt,On){const li=Qn()+l,Ai=Hi(),Ji=gu(Ai,li,m,C,O,Z);return gu(Ai,li+4,be,Ge,nt,Yt)||Ji?jd(Ai,li+8,On?d.call(On,m,C,O,Z,be,Ge,nt,Yt):d(m,C,O,Z,be,Ge,nt,Yt)):mp(Ai,li+8)}function B_(l,d,m,C){return N0(Hi(),Qn(),l,d,m,C)}function hf(l,d){const m=l[d];return m===Jr?void 0:m}function U_(l,d,m,C,O,Z){const be=d+m;return Kc(l,be,O)?jd(l,be+1,Z?C.call(Z,O):C(O)):hf(l,be+1)}function P0(l,d,m,C,O,Z,be){const Ge=d+m;return jp(l,Ge,O,Z)?jd(l,Ge+2,be?C.call(be,O,Z):C(O,Z)):hf(l,Ge+2)}function _g(l,d,m,C,O,Z,be,Ge){const nt=d+m;return gp(l,nt,O,Z,be)?jd(l,nt+3,Ge?C.call(Ge,O,Z,be):C(O,Z,be)):hf(l,nt+3)}function N0(l,d,m,C,O,Z){let be=d+m,Ge=!1;for(let nt=0;nt<O.length;nt++)Kc(l,be++,O[nt])&&(Ge=!0);return Ge?jd(l,be,C.apply(Z,O)):hf(l,be)}function A1(l,d){const m=to();let C;const O=l+Dn;m.firstCreatePass?(C=function L0(l,d){if(d)for(let m=d.length-1;m>=0;m--){const C=d[m];if(l===C.name)return C}}(d,m.pipeRegistry),m.data[O]=C,C.onDestroy&&(m.destroyHooks??(m.destroyHooks=[])).push(O,C.onDestroy)):C=m.data[O];const Z=C.factory||(C.factory=kr(C.type)),be=Yn(Fh);try{const Ge=Fo(!1),nt=Z();return Fo(Ge),function Wp(l,d,m,C){m>=l.data.length&&(l.data[m]=null,l.blueprint[m]=null),d[m]=C}(m,Hi(),O,nt),nt}finally{Yn(be)}}function R1(l,d,m){const C=l+Dn,O=Hi(),Z=Xr(O,C);return md(O,C)?U_(O,Qn(),d,Z.transform,m,Z):Z.transform(m)}function F0(l,d,m,C){const O=l+Dn,Z=Hi(),be=Xr(Z,O);return md(Z,O)?P0(Z,Qn(),d,be.transform,m,C,be):be.transform(m,C)}function Au(l,d,m,C,O){const Z=l+Dn,be=Hi(),Ge=Xr(be,Z);return md(be,Z)?_g(be,Qn(),d,Ge.transform,m,C,O,Ge):Ge.transform(m,C,O)}function vg(l,d,m){const C=l+Dn,O=Hi(),Z=Xr(O,C);return md(O,C)?N0(O,Qn(),d,Z.transform,m,Z):Z.transform.apply(Z,m)}function md(l,d){return l[zi].data[d].pure}function P1(l){return d=>{setTimeout(l,void 0,d)}}const _h=class yg extends e.x{constructor(d=!1){super(),this.__isAsync=d}emit(d){super.next(d)}subscribe(d,m,C){let O=d,Z=m||(()=>null),be=C;if(d&&"object"==typeof d){const nt=d;O=nt.next?.bind(nt),Z=nt.error?.bind(nt),be=nt.complete?.bind(nt)}this.__isAsync&&(Z=P1(Z),O&&(O=P1(O)),be&&(be=P1(be)));const Ge=super.subscribe({next:O,error:Z,complete:be});return d instanceof o.w0&&d.add(Ge),Ge}};function hb(){return this._results[Symbol.iterator]()}class bg{get changes(){return this._changes||(this._changes=new _h)}constructor(d=!1){this._emitDistinctChangesOnly=d,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=bg.prototype;m[Symbol.iterator]||(m[Symbol.iterator]=hb)}get(d){return this._results[d]}map(d){return this._results.map(d)}filter(d){return this._results.filter(d)}find(d){return this._results.find(d)}reduce(d,m){return this._results.reduce(d,m)}forEach(d){this._results.forEach(d)}some(d){return this._results.some(d)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(d,m){const C=this;C.dirty=!1;const O=function Cs(l){return l.flat(Number.POSITIVE_INFINITY)}(d);(this._changesDetected=!function es(l,d,m){if(l.length!==d.length)return!1;for(let C=0;C<l.length;C++){let O=l[C],Z=d[C];if(m&&(O=m(O),Z=m(Z)),Z!==O)return!1}return!0}(C._results,O,m))&&(C._results=O,C.length=O.length,C.last=O[this.length-1],C.first=O[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let pf=(()=>{class l{}return l.__NG_ELEMENT_ID__=ff,l})();const H_=pf,Sg=class extends H_{constructor(d,m,C){super(),this._declarationLView=d,this._declarationTContainer=m,this.elementRef=C}createEmbeddedView(d,m){const C=this._declarationTContainer.tView,O=hh(this._declarationLView,C,d,16,null,C.declTNode,null,null,null,null,m||null);O[Jt]=this._declarationLView[this._declarationTContainer.index];const be=this._declarationLView[Ke];return null!==be&&(O[Ke]=be.createEmbeddedView(C)),Af(C,O,d),new fp(O)}};function ff(){return Cg(sa(),Hi())}function Cg(l,d){return 4&l.type?new Sg(d,l,Ap(l,d)):null}let wg=(()=>{class l{}return l.__NG_ELEMENT_ID__=N1,l})();function N1(){return V_(sa(),Hi())}const pb=wg,z0=class extends pb{constructor(d,m,C){super(),this._lContainer=d,this._hostTNode=m,this._hostLView=C}get element(){return Ap(this._hostTNode,this._hostLView)}get injector(){return new nl(this._hostTNode,this._hostLView)}get parentInjector(){const d=Jo(this._hostTNode,this._hostLView);if(zs(d)){const m=Xs(d,this._hostLView),C=yo(d);return new nl(m[zi].data[C+8],m)}return new nl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(d){const m=B0(this._lContainer);return null!==m&&m[d]||null}get length(){return this._lContainer.length-Ps}createEmbeddedView(d,m,C){let O,Z;"number"==typeof C?O=C:null!=C&&(O=C.index,Z=C.injector);const be=d.createEmbeddedView(m||{},Z);return this.insert(be,O),be}createComponent(d,m,C,O,Z){const be=d&&!function Oi(l){return"function"==typeof l}(d);let Ge;if(be)Ge=m;else{const li=m||{};Ge=li.index,C=li.injector,O=li.projectableNodes,Z=li.environmentInjector||li.ngModuleRef}const nt=be?d:new Bh(ui(d)),Yt=C||this.parentInjector;if(!Z&&null==nt.ngModule){const Ai=(be?Yt:this.parentInjector).get(zn,null);Ai&&(Z=Ai)}const On=nt.create(Yt,O,void 0,Z);return this.insert(On.hostView,Ge),On}insert(d,m){const C=d._lView,O=C[zi];if(function Er(l){return ti(l[ds])}(C)){const On=this.indexOf(d);if(-1!==On)this.detach(On);else{const li=C[ds],Ai=new z0(li,li[ps],li[ds]);Ai.detach(Ai.indexOf(d))}}const Z=this._adjustIndex(m),be=this._lContainer;!function fl(l,d,m,C){const O=Ps+C,Z=m.length;C>0&&(m[O-1][Xi]=d),C<Z-Ps?(d[Xi]=m[O],Ne(m,Ps+C,d)):(m.push(d),d[Xi]=null),d[ds]=m;const be=d[Jt];null!==be&&m!==be&&function Na(l,d){const m=l[bo];d[Be]!==d[ds][ds][Be]&&(l[qi]=!0),null===m?l[bo]=[d]:m.push(d)}(be,d);const Ge=d[Ke];null!==Ge&&Ge.insertView(l),d[as]|=64}(O,C,be,Z);const Ge=Dd(Z,be),nt=C[As],Yt=id(nt,be[ys]);return null!==Yt&&function ma(l,d,m,C,O,Z){C[ss]=O,C[ps]=d,Gu(l,C,m,1,O,Z)}(O,be[ps],nt,C,Yt,Ge),d.attachToViewContainerRef(),Ne(xg(be),Z,d),d}move(d,m){return this.insert(d,m)}indexOf(d){const m=B0(this._lContainer);return null!==m?m.indexOf(d):-1}remove(d){const m=this._adjustIndex(d,-1),C=rl(this._lContainer,m);C&&(v(xg(this._lContainer),m),Sl(C[zi],C))}detach(d){const m=this._adjustIndex(d,-1),C=rl(this._lContainer,m);return C&&null!=v(xg(this._lContainer),m)?new fp(C):null}_adjustIndex(d,m=0){return d??this.length+m}};function B0(l){return l[Mo]}function xg(l){return l[Mo]||(l[Mo]=[])}function V_(l,d){let m;const C=d[l.index];if(ti(C))m=C;else{let O;if(8&l.type)O=ms(C);else{const Z=d[As];O=Z.createComment("");const be=oa(l,d);nc(Z,id(Z,be),O,function wd(l,d){return l.nextSibling(d)}(Z,be),!1)}d[l.index]=m=Dm(C,d,O,l),up(d,m)}return new z0(m,l,d)}class j_{constructor(d){this.queryList=d,this.matches=null}clone(){return new j_(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dg{constructor(d=[]){this.queries=d}createEmbeddedView(d){const m=d.queries;if(null!==m){const C=null!==d.contentQueries?d.contentQueries[0]:m.length,O=[];for(let Z=0;Z<C;Z++){const be=m.getByIndex(Z);O.push(this.queries[be.indexInDeclarationView].clone())}return new Dg(O)}return null}insertView(d){this.dirtyQueriesWithMatches(d)}detachView(d){this.dirtyQueriesWithMatches(d)}dirtyQueriesWithMatches(d){for(let m=0;m<this.queries.length;m++)null!==K(d,m).matches&&this.queries[m].setDirty()}}class U0{constructor(d,m,C=null){this.predicate=d,this.flags=m,this.read=C}}class G0{constructor(d=[]){this.queries=d}elementStart(d,m){for(let C=0;C<this.queries.length;C++)this.queries[C].elementStart(d,m)}elementEnd(d){for(let m=0;m<this.queries.length;m++)this.queries[m].elementEnd(d)}embeddedTView(d){let m=null;for(let C=0;C<this.length;C++){const O=null!==m?m.length:0,Z=this.getByIndex(C).embeddedTView(d,O);Z&&(Z.indexInDeclarationView=C,null!==m?m.push(Z):m=[Z])}return null!==m?new G0(m):null}template(d,m){for(let C=0;C<this.queries.length;C++)this.queries[C].template(d,m)}getByIndex(d){return this.queries[d]}get length(){return this.queries.length}track(d){this.queries.push(d)}}class H0{constructor(d,m=-1){this.metadata=d,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=m}elementStart(d,m){this.isApplyingToNode(m)&&this.matchTNode(d,m)}elementEnd(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}template(d,m){this.elementStart(d,m)}embeddedTView(d,m){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,m),new H0(this.metadata)):null}isApplyingToNode(d){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const m=this._declarationNodeIndex;let C=d.parent;for(;null!==C&&8&C.type&&C.index!==m;)C=C.parent;return m===(null!==C?C.index:-1)}return this._appliesToNextNode}matchTNode(d,m){const C=this.metadata.predicate;if(Array.isArray(C))for(let O=0;O<C.length;O++){const Z=C[O];this.matchTNodeWithReadOption(d,m,fb(m,Z)),this.matchTNodeWithReadOption(d,m,kl(m,d,Z,!1,!1))}else C===pf?4&m.type&&this.matchTNodeWithReadOption(d,m,-1):this.matchTNodeWithReadOption(d,m,kl(m,d,C,!1,!1))}matchTNodeWithReadOption(d,m,C){if(null!==C){const O=this.metadata.read;if(null!==O)if(O===oh||O===wg||O===pf&&4&m.type)this.addMatch(m.index,-2);else{const Z=kl(m,d,O,!1,!1);null!==Z&&this.addMatch(m.index,Z)}else this.addMatch(m.index,C)}}addMatch(d,m){null===this.matches?this.matches=[d,m]:this.matches.push(d,m)}}function fb(l,d){const m=l.localNames;if(null!==m)for(let C=0;C<m.length;C+=2)if(m[C]===d)return m[C+1];return null}function mb(l,d,m,C){return-1===m?function rS(l,d){return 11&l.type?Ap(l,d):4&l.type?Cg(l,d):null}(d,l):-2===m?function L1(l,d,m){return m===oh?Ap(d,l):m===pf?Cg(d,l):m===wg?V_(d,l):void 0}(l,d,C):ta(l,l[zi],m,d)}function gb(l,d,m,C){const O=d[Ke].queries[C];if(null===O.matches){const Z=l.data,be=m.matches,Ge=[];for(let nt=0;nt<be.length;nt+=2){const Yt=be[nt];Ge.push(Yt<0?null:mb(d,Z[Yt],be[nt+1],m.metadata.read))}O.matches=Ge}return O.matches}function _b(l,d,m,C){const O=l.queries.getByIndex(m),Z=O.matches;if(null!==Z){const be=gb(l,d,O,m);for(let Ge=0;Ge<Z.length;Ge+=2){const nt=Z[Ge];if(nt>0)C.push(be[Ge/2]);else{const Yt=Z[Ge+1],On=d[-nt];for(let li=Ps;li<On.length;li++){const Ai=On[li];Ai[Jt]===Ai[ds]&&_b(Ai[zi],Ai,Yt,C)}if(null!==On[bo]){const li=On[bo];for(let Ai=0;Ai<li.length;Ai++){const Ji=li[Ai];_b(Ji[zi],Ji,Yt,C)}}}}}return C}function rm(l){const d=Hi(),m=to(),C=Yr();Vo(C+1);const O=K(m,C);if(l.dirty&&function No(l){return 4==(4&l[as])}(d)===(2==(2&O.metadata.flags))){if(null===O.matches)l.reset([]);else{const Z=O.crossesNgTemplate?_b(m,d,C,[]):gb(m,d,O,C);l.reset(Z,ev),l.notifyOnChanges()}return!0}return!1}function V0(l,d,m){const C=to();C.firstCreatePass&&(u(C,new U0(l,d,m),-1),2==(2&d)&&(C.staticViewQueries=!0)),i(C,Hi(),d)}function Ru(l,d,m,C){const O=to();if(O.firstCreatePass){const Z=sa();u(O,new U0(d,m,C),Z.index),function I(l,d){const m=l.contentQueries||(l.contentQueries=[]);d!==(m.length?m[m.length-1]:-1)&&m.push(l.queries.length-1,d)}(O,l),2==(2&m)&&(O.staticContentQueries=!0)}i(O,Hi(),m)}function a(){return function f(l,d){return l[Ke].queries[d].queryList}(Hi(),Yr())}function i(l,d,m){const C=new bg(4==(4&m));gv(l,d,C,C.destroy),null===d[Ke]&&(d[Ke]=new Dg),d[Ke].queries.push(new j_(C))}function u(l,d,m){null===l.queries&&(l.queries=new G0),l.queries.track(new H0(d,m))}function K(l,d){return l.queries.getByIndex(d)}function at(l,d){return Cg(l,d)}function sr(l){return!!ji(l)}function am(...l){}const kg=new ua("Application Initializer");let Og=(()=>{class l{constructor(m){this.appInits=m,this.resolve=am,this.reject=am,this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,O)=>{this.resolve=C,this.reject=O})}runInitializers(){if(this.initialized)return;const m=[],C=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let O=0;O<this.appInits.length;O++){const Z=this.appInits[O]();if(L2(Z))m.push(Z);else if(Hv(Z)){const be=new Promise((Ge,nt)=>{Z.subscribe({complete:Ge,error:nt})});m.push(be)}}Promise.all(m).then(()=>{C()}).catch(O=>{this.reject(O)}),0===m.length&&C(),this.initialized=!0}}return l.\u0275fac=function(m){return new(m||l)(Ht(kg,8))},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();const W1=new ua("AppId",{providedIn:"root",factory:function $1(){return`${Ag()}${Ag()}${Ag()}`}});function Ag(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Z_=new ua("Platform Initializer"),ny=new ua("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),WS=new ua("AnimationModuleType");let Z1=(()=>{class l{log(m){console.log(m)}warn(m){console.warn(m)}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"platform"}),l})();const K1=new ua("LocaleId",{providedIn:"root",factory:()=>Sn(K1,Ln.Optional|Ln.SkipSelf)||function $S(){return typeof $localize<"u"&&$localize.locale||Ou}()}),mf=new ua("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class j3{constructor(d,m){this.ngModuleFactory=d,this.componentFactories=m}}let Y3=(()=>{class l{compileModuleSync(m){return new P_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const C=this.compileModuleSync(m),Z=Bd(ji(m).declarations).reduce((be,Ge)=>{const nt=ui(Ge);return nt&&be.push(new Bh(nt)),be},[]);return new j3(C,Z)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();const lm=(()=>Promise.resolve(0))();function $h(l){typeof Zone>"u"?lm.then(()=>{l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}class Xc{constructor({enableLongStackTrace:d=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:C=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _h(!1),this.onMicrotaskEmpty=new _h(!1),this.onStable=new _h(!1),this.onError=new _h(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();const O=this;O._nesting=0,O._outer=O._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(O._inner=O._inner.fork(new Zone.TaskTrackingZoneSpec)),d&&Zone.longStackTraceZoneSpec&&(O._inner=O._inner.fork(Zone.longStackTraceZoneSpec)),O.shouldCoalesceEventChangeDetection=!C&&m,O.shouldCoalesceRunChangeDetection=C,O.lastRequestAnimationFrameId=-1,O.nativeRequestAnimationFrame=function cS(){let l=ki.requestAnimationFrame,d=ki.cancelAnimationFrame;if(typeof Zone<"u"&&l&&d){const m=l[Zone.__symbol__("OriginalDelegate")];m&&(l=m);const C=d[Zone.__symbol__("OriginalDelegate")];C&&(d=C)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function dS(l){const d=()=>{!function uS(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(ki,()=>{l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{l.lastRequestAnimationFrameId=-1,sy(l),l.isCheckStableRunning=!0,iy(l),l.isCheckStableRunning=!1},void 0,()=>{},()=>{})),l.fakeTopEventTask.invoke()}),sy(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,C,O,Z,be,Ge)=>{try{return Ib(l),m.invokeTask(O,Z,be,Ge)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||l.shouldCoalesceRunChangeDetection)&&d(),Tb(l)}},onInvoke:(m,C,O,Z,be,Ge,nt)=>{try{return Ib(l),m.invoke(O,Z,be,Ge,nt)}finally{l.shouldCoalesceRunChangeDetection&&d(),Tb(l)}},onHasTask:(m,C,O,Z)=>{m.hasTask(O,Z),C===O&&("microTask"==Z.change?(l._hasPendingMicrotasks=Z.microTask,sy(l),iy(l)):"macroTask"==Z.change&&(l.hasPendingMacrotasks=Z.macroTask))},onHandleError:(m,C,O,Z)=>(m.handleError(O,Z),l.runOutsideAngular(()=>l.onError.emit(Z)),!1)})}(O)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xc.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(Xc.isInAngularZone())throw new te(909,!1)}run(d,m,C){return this._inner.run(d,m,C)}runTask(d,m,C,O){const Z=this._inner,be=Z.scheduleEventTask("NgZoneEvent: "+O,d,Eb,am,am);try{return Z.runTask(be,m,C)}finally{Z.cancelTask(be)}}runGuarded(d,m,C){return this._inner.runGuarded(d,m,C)}runOutsideAngular(d){return this._outer.run(d)}}const Eb={};function iy(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(()=>l.onStable.emit(null))}finally{l.isStable=!0}}}function sy(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function Ib(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function Tb(l){l._nesting--,iy(l)}class oy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _h,this.onMicrotaskEmpty=new _h,this.onStable=new _h,this.onError=new _h}run(d,m,C){return d.apply(m,C)}runGuarded(d,m,C){return d.apply(m,C)}runOutsideAngular(d){return d()}runTask(d,m,C,O){return d.apply(m,C)}}const ry=new ua(""),Mb=new ua("");let Ob,KS=(()=>{class l{constructor(m,C,O){this._ngZone=m,this.registry=C,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ob||(function kb(l){Ob=l}(O),O.addToWindow(C)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xc.assertNotInAngularZone(),$h(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$h(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(C=>!C.updateCb||!C.updateCb(m)||(clearTimeout(C.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,C,O){let Z=-1;C&&C>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(be=>be.timeoutId!==Z),m(this._didWork,this.getPendingTasks())},C)),this._callbacks.push({doneCb:m,timeoutId:Z,updateCb:O})}whenStable(m,C,O){if(O&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,C,O),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,C,O){return[]}}return l.\u0275fac=function(m){return new(m||l)(Ht(Xc),Ht(hS),Ht(Mb))},l.\u0275prov=$t({token:l,factory:l.\u0275fac}),l})(),hS=(()=>{class l{constructor(){this._applications=new Map}registerApplication(m,C){this._applications.set(m,C)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,C=!0){return Ob?.findTestabilityInTree(this,m,C)??null}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"platform"}),l})();const _f=!1;let cm=null;const JS=new ua("AllowMultipleToken"),pS=new ua("PlatformDestroyListeners"),Ab=new ua("appBootstrapListener");class J1{constructor(d,m){this.name=d,this.token=m}}function Pb(l,d,m=[]){const C=`Platform: ${d}`,O=new ua(C);return(Z=[])=>{let be=Q1();if(!be||be.injector.get(JS,!1)){const Ge=[...m,...Z,{provide:O,useValue:!0}];l?l(Ge):function fS(l){if(cm&&!cm.get(JS,!1))throw new te(400,!1);cm=l;const d=l.get(um);(function Rb(l){const d=l.get(Z_,null);d&&d.forEach(m=>m())})(l)}(function mS(l=[],d){return Lh.create({name:d,providers:[{provide:Re,useValue:"platform"},{provide:pS,useValue:new Set([()=>cm=null])},...l]})}(Ge,C))}return function Nb(l){const d=Q1();if(!d)throw new te(401,!1);return d}()}}function Q1(){return cm?.get(um)??null}let um=(()=>{class l{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,C){const O=function _S(l,d){let m;return m="noop"===l?new oy:("zone.js"===l?void 0:l)||new Xc(d),m}(C?.ngZone,function gS(l){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!l||!l.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!l||!l.ngZoneRunCoalescing)||!1}}(C)),Z=[{provide:Xc,useValue:O}];return O.run(()=>{const be=Lh.create({providers:Z,parent:this.injector,name:m.moduleType.name}),Ge=m.create(be),nt=Ge.injector.get(Rh,null);if(!nt)throw new te(402,!1);return O.runOutsideAngular(()=>{const Yt=O.onError.subscribe({next:On=>{nt.handleError(On)}});Ge.onDestroy(()=>{ay(this._modules,Ge),Yt.unsubscribe()})}),function ml(l,d,m){try{const C=m();return L2(C)?C.catch(O=>{throw d.runOutsideAngular(()=>l.handleError(O)),O}):C}catch(C){throw d.runOutsideAngular(()=>l.handleError(C)),C}}(nt,O,()=>{const Yt=Ge.injector.get(Og);return Yt.runInitializers(),Yt.donePromise.then(()=>(function S_(l){Oe(l,"Expected localeId to be defined"),"string"==typeof l&&(o0=l.toLowerCase().replace(/_/g,"-"))}(Ge.injector.get(K1,Ou)||Ou),this._moduleDoBootstrap(Ge),Ge))})})}bootstrapModule(m,C=[]){const O=vS({},C);return function $3(l,d,m){const C=new P_(m);return Promise.resolve(C)}(0,0,m).then(Z=>this.bootstrapModuleFactory(Z,O))}_moduleDoBootstrap(m){const C=m.injector.get(uu);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(O=>C.bootstrap(O));else{if(!m.instance.ngDoBootstrap)throw new te(-403,!1);m.instance.ngDoBootstrap(C)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(C=>C.destroy()),this._destroyListeners.forEach(C=>C());const m=this._injector.get(pS,null);m&&(m.forEach(C=>C()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return l.\u0275fac=function(m){return new(m||l)(Ht(Lh))},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"platform"}),l})();function vS(l,d){return Array.isArray(d)?d.reduce(vS,l):{...l,...d}}let uu=(()=>{class l{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(m,C,O){this._zone=m,this._injector=C,this._exceptionHandler=O,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Z=new T.y(Ge=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ge.next(this._stable),Ge.complete()})}),be=new T.y(Ge=>{let nt;this._zone.runOutsideAngular(()=>{nt=this._zone.onStable.subscribe(()=>{Xc.assertNotInAngularZone(),$h(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ge.next(!0))})})});const Yt=this._zone.onUnstable.subscribe(()=>{Xc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ge.next(!1)}))});return()=>{nt.unsubscribe(),Yt.unsubscribe()}});this.isStable=(0,A.T)(Z,be.pipe((0,G.B)()))}bootstrap(m,C){const O=m instanceof ih;if(!this._injector.get(Og).done){!O&&Yi(m);throw new te(405,_f)}let be;be=O?m:this._injector.get(ou).resolveComponentFactory(m),this.componentTypes.push(be.componentType);const Ge=function QS(l){return l.isBoundToModule}(be)?void 0:this._injector.get(wp),Yt=be.create(Lh.NULL,[],C||be.selector,Ge),On=Yt.location.nativeElement,li=Yt.injector.get(ry,null);return li?.registerApplication(On),Yt.onDestroy(()=>{this.detachView(Yt.hostView),ay(this.components,Yt),li?.unregisterApplication(On)}),this._loadComponent(Yt),Yt}tick(){if(this._runningTick)throw new te(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const C=m;this._views.push(C),C.attachToAppRef(this)}detachView(m){const C=m;ay(this._views,C),C.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m);const C=this._injector.get(Ab,[]);C.push(...this._bootstrapListeners),C.forEach(O=>O(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>ay(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new te(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return l.\u0275fac=function(m){return new(m||l)(Ht(Xc),Ht(zn),Ht(Rh))},l.\u0275prov=$t({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();function ay(l,d){const m=l.indexOf(d);m>-1&&l.splice(m,1)}function e3(){return!1}function t3(){}let K3=(()=>{class l{}return l.__NG_ELEMENT_ID__=vf,l})();function vf(l){return function SS(l,d,m){if(Pe(l)&&!m){const C=uo(l.index,d);return new fp(C,C)}return 47&l.type?new fp(d[Be],d):null}(sa(),Hi(),16==(16&l))}class wS{constructor(){}supports(d){return km(d)}create(d){return new xS(d)}}const d3=(l,d)=>d;class xS{constructor(d){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=d||d3}forEachItem(d){let m;for(m=this._itHead;null!==m;m=m._next)d(m)}forEachOperation(d){let m=this._itHead,C=this._removalsHead,O=0,Z=null;for(;m||C;){const be=!C||m&&m.currentIndex<cy(C,O,Z)?m:C,Ge=cy(be,O,Z),nt=be.currentIndex;if(be===C)O--,C=C._nextRemoved;else if(m=m._next,null==be.previousIndex)O++;else{Z||(Z=[]);const Yt=Ge-O,On=nt-O;if(Yt!=On){for(let Ai=0;Ai<Yt;Ai++){const Ji=Ai<Z.length?Z[Ai]:Z[Ai]=0,Ds=Ji+Ai;On<=Ds&&Ds<Yt&&(Z[Ai]=Ji+1)}Z[be.previousIndex]=On-Yt}}Ge!==nt&&d(be,Ge,nt)}}forEachPreviousItem(d){let m;for(m=this._previousItHead;null!==m;m=m._nextPrevious)d(m)}forEachAddedItem(d){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)d(m)}forEachMovedItem(d){let m;for(m=this._movesHead;null!==m;m=m._nextMoved)d(m)}forEachRemovedItem(d){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)d(m)}forEachIdentityChange(d){let m;for(m=this._identityChangesHead;null!==m;m=m._nextIdentityChange)d(m)}diff(d){if(null==d&&(d=[]),!km(d))throw new te(900,!1);return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let O,Z,be,m=this._itHead,C=!1;if(Array.isArray(d)){this.length=d.length;for(let Ge=0;Ge<this.length;Ge++)Z=d[Ge],be=this._trackByFn(Ge,Z),null!==m&&Object.is(m.trackById,be)?(C&&(m=this._verifyReinsertion(m,Z,be,Ge)),Object.is(m.item,Z)||this._addIdentityChange(m,Z)):(m=this._mismatch(m,Z,be,Ge),C=!0),m=m._next}else O=0,function Mu(l,d){if(Array.isArray(l))for(let m=0;m<l.length;m++)d(l[m]);else{const m=l[Symbol.iterator]();let C;for(;!(C=m.next()).done;)d(C.value)}}(d,Ge=>{be=this._trackByFn(O,Ge),null!==m&&Object.is(m.trackById,be)?(C&&(m=this._verifyReinsertion(m,Ge,be,O)),Object.is(m.item,Ge)||this._addIdentityChange(m,Ge)):(m=this._mismatch(m,Ge,be,O),C=!0),m=m._next,O++}),this.length=O;return this._truncate(m),this.collection=d,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let 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}}_mismatch(d,m,C,O){let Z;return null===d?Z=this._itTail:(Z=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(d.item,m)||this._addIdentityChange(d,m),this._reinsertAfter(d,Z,O)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(C,O))?(Object.is(d.item,m)||this._addIdentityChange(d,m),this._moveAfter(d,Z,O)):d=this._addAfter(new h3(m,C),Z,O),d}_verifyReinsertion(d,m,C,O){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==Z?d=this._reinsertAfter(Z,d._prev,O):d.currentIndex!=O&&(d.currentIndex=O,this._addToMoves(d,O)),d}_truncate(d){for(;null!==d;){const m=d._next;this._addToRemovals(this._unlink(d)),d=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(d,m,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);const O=d._prevRemoved,Z=d._nextRemoved;return null===O?this._removalsHead=Z:O._nextRemoved=Z,null===Z?this._removalsTail=O:Z._prevRemoved=O,this._insertAfter(d,m,C),this._addToMoves(d,C),d}_moveAfter(d,m,C){return this._unlink(d),this._insertAfter(d,m,C),this._addToMoves(d,C),d}_addAfter(d,m,C){return this._insertAfter(d,m,C),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}_insertAfter(d,m,C){const O=null===m?this._itHead:m._next;return d._next=O,d._prev=m,null===O?this._itTail=d:O._prev=d,null===m?this._itHead=d:m._next=d,null===this._linkedRecords&&(this._linkedRecords=new Gb),this._linkedRecords.put(d),d.currentIndex=C,d}_remove(d){return this._addToRemovals(this._unlink(d))}_unlink(d){null!==this._linkedRecords&&this._linkedRecords.remove(d);const m=d._prev,C=d._next;return null===m?this._itHead=C:m._next=C,null===C?this._itTail=m:C._prev=m,d}_addToMoves(d,m){return d.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=d:this._movesTail._nextMoved=d),d}_addToRemovals(d){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gb),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}_addIdentityChange(d,m){return d.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=d:this._identityChangesTail._nextIdentityChange=d,d}}class h3{constructor(d,m){this.item=d,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class p3{constructor(){this._head=null,this._tail=null}add(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)}get(d,m){let C;for(C=this._head;null!==C;C=C._nextDup)if((null===m||m<=C.currentIndex)&&Object.is(C.trackById,d))return C;return null}remove(d){const m=d._prevDup,C=d._nextDup;return null===m?this._head=C:m._nextDup=C,null===C?this._tail=m:C._prevDup=m,null===this._head}}class Gb{constructor(){this.map=new Map}put(d){const m=d.trackById;let C=this.map.get(m);C||(C=new p3,this.map.set(m,C)),C.add(d)}get(d,m){const O=this.map.get(d);return O?O.get(d,m):null}remove(d){const m=d.trackById;return this.map.get(m).remove(d)&&this.map.delete(m),d}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cy(l,d,m){const C=l.previousIndex;if(null===C)return C;let O=0;return m&&C<m.length&&(O=m[C]),C+d+O}class bf{constructor(){}supports(d){return d instanceof Map||Ff(d)}create(){return new Hb}}class Hb{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(d){let m;for(m=this._mapHead;null!==m;m=m._next)d(m)}forEachPreviousItem(d){let m;for(m=this._previousMapHead;null!==m;m=m._nextPrevious)d(m)}forEachChangedItem(d){let m;for(m=this._changesHead;null!==m;m=m._nextChanged)d(m)}forEachAddedItem(d){let m;for(m=this._additionsHead;null!==m;m=m._nextAdded)d(m)}forEachRemovedItem(d){let m;for(m=this._removalsHead;null!==m;m=m._nextRemoved)d(m)}diff(d){if(d){if(!(d instanceof Map||Ff(d)))throw new te(900,!1)}else d=new Map;return this.check(d)?this:null}onDestroy(){}check(d){this._reset();let m=this._mapHead;if(this._appendAfter=null,this._forEach(d,(C,O)=>{if(m&&m.key===O)this._maybeAddToChanges(m,C),this._appendAfter=m,m=m._next;else{const Z=this._getOrCreateRecordForKey(O,C);m=this._insertBeforeOrAppend(m,Z)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let C=m;null!==C;C=C._nextRemoved)C===this._mapHead&&(this._mapHead=null),this._records.delete(C.key),C._nextRemoved=C._next,C.previousValue=C.currentValue,C.currentValue=null,C._prev=null,C._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(d,m){if(d){const C=d._prev;return m._next=d,m._prev=C,d._prev=m,C&&(C._next=m),d===this._mapHead&&(this._mapHead=m),this._appendAfter=d,d}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(d,m){if(this._records.has(d)){const O=this._records.get(d);this._maybeAddToChanges(O,m);const Z=O._prev,be=O._next;return Z&&(Z._next=be),be&&(be._prev=Z),O._next=null,O._prev=null,O}const C=new DS(d);return this._records.set(d,C),C.currentValue=m,this._addToAdditions(C),C}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(d,m){Object.is(m,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=m,this._addToChanges(d))}_addToAdditions(d){null===this._additionsHead?this._additionsHead=this._additionsTail=d:(this._additionsTail._nextAdded=d,this._additionsTail=d)}_addToChanges(d){null===this._changesHead?this._changesHead=this._changesTail=d:(this._changesTail._nextChanged=d,this._changesTail=d)}_forEach(d,m){d instanceof Map?d.forEach(m):Object.keys(d).forEach(C=>m(d[C],C))}}class DS{constructor(d){this.key=d,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 ES(){return new uy([new wS])}let uy=(()=>{class l{constructor(m){this.factories=m}static create(m,C){if(null!=C){const O=C.factories.slice();m=m.concat(O)}return new l(m)}static extend(m){return{provide:l,useFactory:C=>l.create(m,C||ES()),deps:[[l,new tr,new Ao]]}}find(m){const C=this.factories.find(O=>O.supports(m));if(null!=C)return C;throw new te(901,!1)}}return l.\u0275prov=$t({token:l,providedIn:"root",factory:ES}),l})();function IS(){return new dy([new bf])}let dy=(()=>{class l{constructor(m){this.factories=m}static create(m,C){if(C){const O=C.factories.slice();m=m.concat(O)}return new l(m)}static extend(m){return{provide:l,useFactory:C=>l.create(m,C||IS()),deps:[[l,new tr,new Ao]]}}find(m){const C=this.factories.find(O=>O.supports(m));if(C)return C;throw new te(901,!1)}}return l.\u0275prov=$t({token:l,providedIn:"root",factory:IS}),l})();const MS=Pb(null,"core",[]);let m3=(()=>{class l{constructor(m){}}return l.\u0275fac=function(m){return new(m||l)(Ht(uu))},l.\u0275mod=xn({type:l}),l.\u0275inj=We({}),l})();function kS(l){return"boolean"==typeof l?l:null!=l&&"false"!==l}},24006:(fn,ve,_)=>{"use strict";_.d(ve,{CE:()=>Mi,Cf:()=>oe,F:()=>ps,Fd:()=>vs,Fj:()=>se,JJ:()=>_n,JL:()=>Ln,JU:()=>R,NI:()=>Fs,Oe:()=>Xr,On:()=>Et,Q7:()=>fo,UX:()=>nr,Wl:()=>y,_:()=>Ps,_Y:()=>Dn,a5:()=>wn,c5:()=>Ho,cw:()=>wt,kI:()=>ae,nD:()=>Ko,oH:()=>Pe,qQ:()=>Nr,sg:()=>z,u:()=>dn,u5:()=>lo,wV:()=>ni,x0:()=>on});var e=_(94650),o=_(36895),T=_(88996),A=_(4128),G=_(54004);let F=(()=>{class mt{constructor(et,Tn){this._renderer=et,this._elementRef=Tn,this.onChange=Gi=>{},this.onTouched=()=>{}}setProperty(et,Tn){this._renderer.setProperty(this._elementRef.nativeElement,et,Tn)}registerOnTouched(et){this.onTouched=et}registerOnChange(et){this.onChange=et}setDisabledState(et){this.setProperty("disabled",et)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(e.Qsj),e.Y36(e.SBq))},mt.\u0275dir=e.lG2({type:mt}),mt})(),N=(()=>{class mt extends F{}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,features:[e.qOj]}),mt})();const R=new e.OlP("NgValueAccessor"),P={provide:R,useExisting:(0,e.Gpc)(()=>y),multi:!0};let y=(()=>{class mt extends N{writeValue(et){this.setProperty("checked",et)}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(et,Tn){1&et&&e.NdJ("change",function(Ys){return Tn.onChange(Ys.target.checked)})("blur",function(){return Tn.onTouched()})},features:[e._Bn([P]),e.qOj]}),mt})();const j={provide:R,useExisting:(0,e.Gpc)(()=>se),multi:!0},ee=new e.OlP("CompositionEventMode");let se=(()=>{class mt extends F{constructor(et,Tn,Gi){super(et,Tn),this._compositionMode=Gi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y(){const mt=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test(mt.toLowerCase())}())}writeValue(et){this.setProperty("value",et??"")}_handleInput(et){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(et)}_compositionStart(){this._composing=!0}_compositionEnd(et){this._composing=!1,this._compositionMode&&this.onChange(et)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ee,8))},mt.\u0275dir=e.lG2({type:mt,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(et,Tn){1&et&&e.NdJ("input",function(Ys){return Tn._handleInput(Ys.target.value)})("blur",function(){return Tn.onTouched()})("compositionstart",function(){return Tn._compositionStart()})("compositionend",function(Ys){return Tn._compositionEnd(Ys.target.value)})},features:[e._Bn([j]),e.qOj]}),mt})();const he=!1;function Se(mt){return null==mt||("string"==typeof mt||Array.isArray(mt))&&0===mt.length}function te(mt){return null!=mt&&"number"==typeof mt.length}const oe=new e.OlP("NgValidators"),q=new e.OlP("NgAsyncValidators"),we=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ae{static min(dt){return Q(dt)}static max(dt){return pe(dt)}static required(dt){return Ee(dt)}static requiredTrue(dt){return function ke(mt){return!0===mt.value?null:{required:!0}}(dt)}static email(dt){return function Ye(mt){return Se(mt.value)||we.test(mt.value)?null:{email:!0}}(dt)}static minLength(dt){return function ct(mt){return dt=>Se(dt.value)||!te(dt.value)?null:dt.value.length<mt?{minlength:{requiredLength:mt,actualLength:dt.value.length}}:null}(dt)}static maxLength(dt){return ut(dt)}static pattern(dt){return Ct(dt)}static nullValidator(dt){return null}static compose(dt){return $e(dt)}static composeAsync(dt){return Nt(dt)}}function Q(mt){return dt=>{if(Se(dt.value)||Se(mt))return null;const et=parseFloat(dt.value);return!isNaN(et)&&et<mt?{min:{min:mt,actual:dt.value}}:null}}function pe(mt){return dt=>{if(Se(dt.value)||Se(mt))return null;const et=parseFloat(dt.value);return!isNaN(et)&&et>mt?{max:{max:mt,actual:dt.value}}:null}}function Ee(mt){return Se(mt.value)?{required:!0}:null}function ut(mt){return dt=>te(dt.value)&&dt.value.length>mt?{maxlength:{requiredLength:mt,actualLength:dt.value.length}}:null}function Ct(mt){if(!mt)return Ue;let dt,et;return"string"==typeof mt?(et="","^"!==mt.charAt(0)&&(et+="^"),et+=mt,"$"!==mt.charAt(mt.length-1)&&(et+="$"),dt=new RegExp(et)):(et=mt.toString(),dt=mt),Tn=>{if(Se(Tn.value))return null;const Gi=Tn.value;return dt.test(Gi)?null:{pattern:{requiredPattern:et,actualValue:Gi}}}}function Ue(mt){return null}function vt(mt){return null!=mt}function ln(mt){const dt=(0,e.QGY)(mt)?(0,T.D)(mt):mt;if(he&&!(0,e.CqO)(dt)){let et="Expected async validator to return Promise or Observable.";throw"object"==typeof mt&&(et+=" Are you using a synchronous validator where an async validator is expected?"),new e.vHH(-1101,et)}return dt}function Je(mt){let dt={};return mt.forEach(et=>{dt=null!=et?{...dt,...et}:dt}),0===Object.keys(dt).length?null:dt}function Ft(mt,dt){return dt.map(et=>et(mt))}function Ze(mt){return mt.map(dt=>function st(mt){return!mt.validate}(dt)?dt:et=>dt.validate(et))}function $e(mt){if(!mt)return null;const dt=mt.filter(vt);return 0==dt.length?null:function(et){return Je(Ft(et,dt))}}function Oe(mt){return null!=mt?$e(Ze(mt)):null}function Nt(mt){if(!mt)return null;const dt=mt.filter(vt);return 0==dt.length?null:function(et){const Tn=Ft(et,dt).map(ln);return(0,A.D)(Tn).pipe((0,G.U)(Je))}}function xt(mt){return null!=mt?Nt(Ze(mt)):null}function Ot(mt,dt){return null===mt?[dt]:Array.isArray(mt)?[...mt,dt]:[mt,dt]}function Kt(mt){return mt._rawValidators}function $t(mt){return mt._rawAsyncValidators}function rt(mt){return mt?Array.isArray(mt)?mt:[mt]:[]}function We(mt,dt){return Array.isArray(mt)?mt.includes(dt):mt===dt}function yt(mt,dt){const et=rt(dt);return rt(mt).forEach(Gi=>{We(et,Gi)||et.push(Gi)}),et}function it(mt,dt){return rt(dt).filter(et=>!We(mt,et))}class It{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(dt){this._rawValidators=dt||[],this._composedValidatorFn=Oe(this._rawValidators)}_setAsyncValidators(dt){this._rawAsyncValidators=dt||[],this._composedAsyncValidatorFn=xt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(dt){this._onDestroyCallbacks.push(dt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(dt=>dt()),this._onDestroyCallbacks=[]}reset(dt){this.control&&this.control.reset(dt)}hasError(dt,et){return!!this.control&&this.control.hasError(dt,et)}getError(dt,et){return this.control?this.control.getError(dt,et):null}}class Tt extends It{get formDirective(){return null}get path(){return null}}class wn extends It{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Nn{constructor(dt){this._cd=dt}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let _n=(()=>{class mt extends Nn{constructor(et){super(et)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(wn,2))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(et,Tn){2&et&&e.ekj("ng-untouched",Tn.isUntouched)("ng-touched",Tn.isTouched)("ng-pristine",Tn.isPristine)("ng-dirty",Tn.isDirty)("ng-valid",Tn.isValid)("ng-invalid",Tn.isInvalid)("ng-pending",Tn.isPending)},features:[e.qOj]}),mt})(),Ln=(()=>{class mt extends Nn{constructor(et){super(et)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(Tt,10))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(et,Tn){2&et&&e.ekj("ng-untouched",Tn.isUntouched)("ng-touched",Tn.isTouched)("ng-pristine",Tn.isPristine)("ng-dirty",Tn.isDirty)("ng-valid",Tn.isValid)("ng-invalid",Tn.isInvalid)("ng-pending",Tn.isPending)("ng-submitted",Tn.isSubmitted)},features:[e.qOj]}),mt})();function In(mt,dt){return mt?`with name: '${dt}'`:`at index: ${dt}`}const Li=!1,An="VALID",Ht="INVALID",Pn="PENDING",Sn="DISABLED";function Fn(mt){return(bi(mt)?mt.validators:mt)||null}function Un(mt,dt){return(bi(dt)?dt.asyncValidators:mt)||null}function bi(mt){return null!=mt&&!Array.isArray(mt)&&"object"==typeof mt}function Zn(mt,dt,et){const Tn=mt.controls;if(!(dt?Object.keys(Tn):Tn).length)throw new e.vHH(1e3,Li?function rn(mt){return`\n    There are no form controls registered with this ${mt?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(dt):"");if(!Tn[et])throw new e.vHH(1001,Li?function Qt(mt,dt){return`Cannot find form control ${In(mt,dt)}`}(dt,et):"")}function mn(mt,dt,et){mt._forEachChild((Tn,Gi)=>{if(void 0===et[Gi])throw new e.vHH(1002,Li?function yi(mt,dt){return`Must supply a value for form control ${In(mt,dt)}`}(dt,Gi):"")})}class ze{constructor(dt,et){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(dt),this._assignAsyncValidators(et)}get validator(){return this._composedValidatorFn}set validator(dt){this._rawValidators=this._composedValidatorFn=dt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(dt){this._rawAsyncValidators=this._composedAsyncValidatorFn=dt}get parent(){return this._parent}get valid(){return this.status===An}get invalid(){return this.status===Ht}get pending(){return this.status==Pn}get disabled(){return this.status===Sn}get enabled(){return this.status!==Sn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(dt){this._assignValidators(dt)}setAsyncValidators(dt){this._assignAsyncValidators(dt)}addValidators(dt){this.setValidators(yt(dt,this._rawValidators))}addAsyncValidators(dt){this.setAsyncValidators(yt(dt,this._rawAsyncValidators))}removeValidators(dt){this.setValidators(it(dt,this._rawValidators))}removeAsyncValidators(dt){this.setAsyncValidators(it(dt,this._rawAsyncValidators))}hasValidator(dt){return We(this._rawValidators,dt)}hasAsyncValidator(dt){return We(this._rawAsyncValidators,dt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(dt={}){this.touched=!0,this._parent&&!dt.onlySelf&&this._parent.markAsTouched(dt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(dt=>dt.markAllAsTouched())}markAsUntouched(dt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(et=>{et.markAsUntouched({onlySelf:!0})}),this._parent&&!dt.onlySelf&&this._parent._updateTouched(dt)}markAsDirty(dt={}){this.pristine=!1,this._parent&&!dt.onlySelf&&this._parent.markAsDirty(dt)}markAsPristine(dt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(et=>{et.markAsPristine({onlySelf:!0})}),this._parent&&!dt.onlySelf&&this._parent._updatePristine(dt)}markAsPending(dt={}){this.status=Pn,!1!==dt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!dt.onlySelf&&this._parent.markAsPending(dt)}disable(dt={}){const et=this._parentMarkedDirty(dt.onlySelf);this.status=Sn,this.errors=null,this._forEachChild(Tn=>{Tn.disable({...dt,onlySelf:!0})}),this._updateValue(),!1!==dt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...dt,skipPristineCheck:et}),this._onDisabledChange.forEach(Tn=>Tn(!0))}enable(dt={}){const et=this._parentMarkedDirty(dt.onlySelf);this.status=An,this._forEachChild(Tn=>{Tn.enable({...dt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:dt.emitEvent}),this._updateAncestors({...dt,skipPristineCheck:et}),this._onDisabledChange.forEach(Tn=>Tn(!1))}_updateAncestors(dt){this._parent&&!dt.onlySelf&&(this._parent.updateValueAndValidity(dt),dt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(dt){this._parent=dt}getRawValue(){return this.value}updateValueAndValidity(dt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===An||this.status===Pn)&&this._runAsyncValidator(dt.emitEvent)),!1!==dt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!dt.onlySelf&&this._parent.updateValueAndValidity(dt)}_updateTreeValidity(dt={emitEvent:!0}){this._forEachChild(et=>et._updateTreeValidity(dt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:dt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Sn:An}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(dt){if(this.asyncValidator){this.status=Pn,this._hasOwnPendingAsyncValidator=!0;const et=ln(this.asyncValidator(this));this._asyncValidationSubscription=et.subscribe(Tn=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Tn,{emitEvent:dt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(dt,et={}){this.errors=dt,this._updateControlsErrors(!1!==et.emitEvent)}get(dt){let et=dt;return null==et||(Array.isArray(et)||(et=et.split(".")),0===et.length)?null:et.reduce((Tn,Gi)=>Tn&&Tn._find(Gi),this)}getError(dt,et){const Tn=et?this.get(et):this;return Tn&&Tn.errors?Tn.errors[dt]:null}hasError(dt,et){return!!this.getError(dt,et)}get root(){let dt=this;for(;dt._parent;)dt=dt._parent;return dt}_updateControlsErrors(dt){this.status=this._calculateStatus(),dt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(dt)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Sn:this.errors?Ht:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pn)?Pn:this._anyControlsHaveStatus(Ht)?Ht:An}_anyControlsHaveStatus(dt){return this._anyControls(et=>et.status===dt)}_anyControlsDirty(){return this._anyControls(dt=>dt.dirty)}_anyControlsTouched(){return this._anyControls(dt=>dt.touched)}_updatePristine(dt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!dt.onlySelf&&this._parent._updatePristine(dt)}_updateTouched(dt={}){this.touched=this._anyControlsTouched(),this._parent&&!dt.onlySelf&&this._parent._updateTouched(dt)}_registerOnCollectionChange(dt){this._onCollectionChange=dt}_setUpdateStrategy(dt){bi(dt)&&null!=dt.updateOn&&(this._updateOn=dt.updateOn)}_parentMarkedDirty(dt){return!dt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(dt){return null}_assignValidators(dt){this._rawValidators=Array.isArray(dt)?dt.slice():dt,this._composedValidatorFn=function Cn(mt){return Array.isArray(mt)?Oe(mt):mt||null}(this._rawValidators)}_assignAsyncValidators(dt){this._rawAsyncValidators=Array.isArray(dt)?dt.slice():dt,this._composedAsyncValidatorFn=function fi(mt){return Array.isArray(mt)?xt(mt):mt||null}(this._rawAsyncValidators)}}class wt extends ze{constructor(dt,et,Tn){super(Fn(et),Un(Tn,et)),this.controls=dt,this._initObservables(),this._setUpdateStrategy(et),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(dt,et){return this.controls[dt]?this.controls[dt]:(this.controls[dt]=et,et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange),et)}addControl(dt,et,Tn={}){this.registerControl(dt,et),this.updateValueAndValidity({emitEvent:Tn.emitEvent}),this._onCollectionChange()}removeControl(dt,et={}){this.controls[dt]&&this.controls[dt]._registerOnCollectionChange(()=>{}),delete this.controls[dt],this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}setControl(dt,et,Tn={}){this.controls[dt]&&this.controls[dt]._registerOnCollectionChange(()=>{}),delete this.controls[dt],et&&this.registerControl(dt,et),this.updateValueAndValidity({emitEvent:Tn.emitEvent}),this._onCollectionChange()}contains(dt){return this.controls.hasOwnProperty(dt)&&this.controls[dt].enabled}setValue(dt,et={}){mn(this,!0,dt),Object.keys(dt).forEach(Tn=>{Zn(this,!0,Tn),this.controls[Tn].setValue(dt[Tn],{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et)}patchValue(dt,et={}){null!=dt&&(Object.keys(dt).forEach(Tn=>{const Gi=this.controls[Tn];Gi&&Gi.patchValue(dt[Tn],{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et))}reset(dt={},et={}){this._forEachChild((Tn,Gi)=>{Tn.reset(dt[Gi],{onlySelf:!0,emitEvent:et.emitEvent})}),this._updatePristine(et),this._updateTouched(et),this.updateValueAndValidity(et)}getRawValue(){return this._reduceChildren({},(dt,et,Tn)=>(dt[Tn]=et.getRawValue(),dt))}_syncPendingControls(){let dt=this._reduceChildren(!1,(et,Tn)=>!!Tn._syncPendingControls()||et);return dt&&this.updateValueAndValidity({onlySelf:!0}),dt}_forEachChild(dt){Object.keys(this.controls).forEach(et=>{const Tn=this.controls[et];Tn&&dt(Tn,et)})}_setUpControls(){this._forEachChild(dt=>{dt.setParent(this),dt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(dt){for(const[et,Tn]of Object.entries(this.controls))if(this.contains(et)&&dt(Tn))return!0;return!1}_reduceValue(){return this._reduceChildren({},(et,Tn,Gi)=>((Tn.enabled||this.disabled)&&(et[Gi]=Tn.value),et))}_reduceChildren(dt,et){let Tn=dt;return this._forEachChild((Gi,Ys)=>{Tn=et(Tn,Gi,Ys)}),Tn}_allControlsDisabled(){for(const dt of Object.keys(this.controls))if(this.controls[dt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(dt){return this.controls.hasOwnProperty(dt)?this.controls[dt]:null}}const kt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>vn}),vn="always";function jn(mt,dt){return[...dt.path,mt]}function St(mt,dt,et=vn){pt(mt,dt),dt.valueAccessor.writeValue(mt.value),(mt.disabled||"always"===et)&&dt.valueAccessor.setDisabledState?.(mt.disabled),function xn(mt,dt){dt.valueAccessor.registerOnChange(et=>{mt._pendingValue=et,mt._pendingChange=!0,mt._pendingDirty=!0,"change"===mt.updateOn&&Gn(mt,dt)})}(mt,dt),function ri(mt,dt){const et=(Tn,Gi)=>{dt.valueAccessor.writeValue(Tn),Gi&&dt.viewToModelUpdate(Tn)};mt.registerOnChange(et),dt._registerOnDestroy(()=>{mt._unregisterOnChange(et)})}(mt,dt),function hn(mt,dt){dt.valueAccessor.registerOnTouched(()=>{mt._pendingTouched=!0,"blur"===mt.updateOn&&mt._pendingChange&&Gn(mt,dt),"submit"!==mt.updateOn&&mt.markAsTouched()})}(mt,dt),function je(mt,dt){if(dt.valueAccessor.setDisabledState){const et=Tn=>{dt.valueAccessor.setDisabledState(Tn)};mt.registerOnDisabledChange(et),dt._registerOnDestroy(()=>{mt._unregisterOnDisabledChange(et)})}}(mt,dt)}function De(mt,dt,et=!0){const Tn=()=>{};dt.valueAccessor&&(dt.valueAccessor.registerOnChange(Tn),dt.valueAccessor.registerOnTouched(Tn)),Ut(mt,dt),mt&&(dt._invokeOnDestroyCallbacks(),mt._registerOnCollectionChange(()=>{}))}function ie(mt,dt){mt.forEach(et=>{et.registerOnValidatorChange&&et.registerOnValidatorChange(dt)})}function pt(mt,dt){const et=Kt(mt);null!==dt.validator?mt.setValidators(Ot(et,dt.validator)):"function"==typeof et&&mt.setValidators([et]);const Tn=$t(mt);null!==dt.asyncValidator?mt.setAsyncValidators(Ot(Tn,dt.asyncValidator)):"function"==typeof Tn&&mt.setAsyncValidators([Tn]);const Gi=()=>mt.updateValueAndValidity();ie(dt._rawValidators,Gi),ie(dt._rawAsyncValidators,Gi)}function Ut(mt,dt){let et=!1;if(null!==mt){if(null!==dt.validator){const Gi=Kt(mt);if(Array.isArray(Gi)&&Gi.length>0){const Ys=Gi.filter(co=>co!==dt.validator);Ys.length!==Gi.length&&(et=!0,mt.setValidators(Ys))}}if(null!==dt.asyncValidator){const Gi=$t(mt);if(Array.isArray(Gi)&&Gi.length>0){const Ys=Gi.filter(co=>co!==dt.asyncValidator);Ys.length!==Gi.length&&(et=!0,mt.setAsyncValidators(Ys))}}}const Tn=()=>{};return ie(dt._rawValidators,Tn),ie(dt._rawAsyncValidators,Tn),et}function Gn(mt,dt){mt._pendingDirty&&mt.markAsDirty(),mt.setValue(mt._pendingValue,{emitModelToViewChange:!1}),dt.viewToModelUpdate(mt._pendingValue),mt._pendingChange=!1}function mi(mt,dt){pt(mt,dt)}function bs(mt,dt){if(!mt.hasOwnProperty("model"))return!1;const et=mt.model;return!!et.isFirstChange()||!Object.is(dt,et.currentValue)}function ss(mt,dt){mt._syncPendingControls(),dt.forEach(et=>{const Tn=et.control;"submit"===Tn.updateOn&&Tn._pendingChange&&(et.viewToModelUpdate(Tn._pendingValue),Tn._pendingChange=!1)})}function zi(mt,dt){if(!dt)return null;let et,Tn,Gi;return Array.isArray(dt),dt.forEach(Ys=>{Ys.constructor===se?et=Ys:function Es(mt){return Object.getPrototypeOf(mt.constructor)===N}(Ys)?Tn=Ys:Gi=Ys}),Gi||Tn||et||null}const Xi={provide:Tt,useExisting:(0,e.Gpc)(()=>ps)},us=(()=>Promise.resolve())();let ps=(()=>{class mt extends Tt{constructor(et,Tn,Gi){super(),this.callSetDisabledState=Gi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new wt({},Oe(et),xt(Tn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(et){us.then(()=>{const Tn=this._findContainer(et.path);et.control=Tn.registerControl(et.name,et.control),St(et.control,et,this.callSetDisabledState),et.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(et)})}getControl(et){return this.form.get(et.path)}removeControl(et){us.then(()=>{const Tn=this._findContainer(et.path);Tn&&Tn.removeControl(et.name),this._directives.delete(et)})}addFormGroup(et){us.then(()=>{const Tn=this._findContainer(et.path),Gi=new wt({});mi(Gi,et),Tn.registerControl(et.name,Gi),Gi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(et){us.then(()=>{const Tn=this._findContainer(et.path);Tn&&Tn.removeControl(et.name)})}getFormGroup(et){return this.form.get(et.path)}updateModel(et,Tn){us.then(()=>{this.form.get(et.path).setValue(Tn)})}setValue(et){this.control.setValue(et)}onSubmit(et){return this.submitted=!0,ss(this.form,this._directives),this.ngSubmit.emit(et),"dialog"===et?.target?.method}onReset(){this.resetForm()}resetForm(et){this.form.reset(et),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(et){return et.pop(),et.length?this.form.get(et):this.form}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(oe,10),e.Y36(q,10),e.Y36(kt,8))},mt.\u0275dir=e.lG2({type:mt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(et,Tn){1&et&&e.NdJ("submit",function(Ys){return Tn.onSubmit(Ys)})("reset",function(){return Tn.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Xi]),e.qOj]}),mt})();function _s(mt,dt){const et=mt.indexOf(dt);et>-1&&mt.splice(et,1)}function ei(mt){return"object"==typeof mt&&null!==mt&&2===Object.keys(mt).length&&"value"in mt&&"disabled"in mt}const Fs=class extends ze{constructor(dt=null,et,Tn){super(Fn(et),Un(Tn,et)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(dt),this._setUpdateStrategy(et),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bi(et)&&(et.nonNullable||et.initialValueIsDefault)&&(this.defaultValue=ei(dt)?dt.value:dt)}setValue(dt,et={}){this.value=this._pendingValue=dt,this._onChange.length&&!1!==et.emitModelToViewChange&&this._onChange.forEach(Tn=>Tn(this.value,!1!==et.emitViewToModelChange)),this.updateValueAndValidity(et)}patchValue(dt,et={}){this.setValue(dt,et)}reset(dt=this.defaultValue,et={}){this._applyFormState(dt),this.markAsPristine(et),this.markAsUntouched(et),this.setValue(this.value,et),this._pendingChange=!1}_updateValue(){}_anyControls(dt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(dt){this._onChange.push(dt)}_unregisterOnChange(dt){_s(this._onChange,dt)}registerOnDisabledChange(dt){this._onDisabledChange.push(dt)}_unregisterOnDisabledChange(dt){_s(this._onDisabledChange,dt)}_forEachChild(dt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(dt){ei(dt)?(this.value=this._pendingValue=dt.value,dt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=dt}};let un=(()=>{class mt extends Tt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return jn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,features:[e.qOj]}),mt})();const Ke={provide:wn,useExisting:(0,e.Gpc)(()=>Et)},Qe=(()=>Promise.resolve())();let Et=(()=>{class mt extends wn{constructor(et,Tn,Gi,Ys,co,Hi){super(),this._changeDetectorRef=co,this.callSetDisabledState=Hi,this.control=new Fs,this._registered=!1,this.update=new e.vpe,this._parent=et,this._setValidators(Tn),this._setAsyncValidators(Gi),this.valueAccessor=zi(0,Ys)}ngOnChanges(et){if(this._checkForErrors(),!this._registered||"name"in et){if(this._registered&&(this._checkName(),this.formDirective)){const Tn=et.name.previousValue;this.formDirective.removeControl({name:Tn,path:this._getPath(Tn)})}this._setUpControl()}"isDisabled"in et&&this._updateDisabled(et),bs(et,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(et){this.viewModel=et,this.update.emit(et)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){St(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(et){Qe.then(()=>{this.control.setValue(et,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(et){const Tn=et.isDisabled.currentValue,Gi=0!==Tn&&(0,e.D6c)(Tn);Qe.then(()=>{Gi&&!this.control.disabled?this.control.disable():!Gi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(et){return this._parent?jn(et,this._parent):[et]}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(Tt,9),e.Y36(oe,10),e.Y36(q,10),e.Y36(R,10),e.Y36(e.sBO,8),e.Y36(kt,8))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ke]),e.qOj,e.TTD]}),mt})(),Dn=(()=>{class mt{}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275dir=e.lG2({type:mt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),mt})();const vi={provide:R,useExisting:(0,e.Gpc)(()=>ni),multi:!0};let ni=(()=>{class mt extends N{writeValue(et){this.setProperty("value",et??"")}registerOnChange(et){this.onChange=Tn=>{et(""==Tn?null:parseFloat(Tn))}}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(et,Tn){1&et&&e.NdJ("input",function(Ys){return Tn.onChange(Ys.target.value)})("blur",function(){return Tn.onTouched()})},features:[e._Bn([vi]),e.qOj]}),mt})();const qi={provide:R,useExisting:(0,e.Gpc)(()=>Ps),multi:!0};let Mo=(()=>{class mt{}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275mod=e.oAB({type:mt}),mt.\u0275inj=e.cJS({}),mt})(),bo=(()=>{class mt{constructor(){this._accessors=[]}add(et,Tn){this._accessors.push([et,Tn])}remove(et){for(let Tn=this._accessors.length-1;Tn>=0;--Tn)if(this._accessors[Tn][1]===et)return void this._accessors.splice(Tn,1)}select(et){this._accessors.forEach(Tn=>{this._isSameGroup(Tn,et)&&Tn[1]!==et&&Tn[1].fireUncheck(et.value)})}_isSameGroup(et,Tn){return!!et[0].control&&et[0]._parent===Tn._control._parent&&et[1].name===Tn.name}}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275prov=e.Yz7({token:mt,factory:mt.\u0275fac,providedIn:Mo}),mt})(),Ps=(()=>{class mt extends N{constructor(et,Tn,Gi,Ys){super(et,Tn),this._registry=Gi,this._injector=Ys,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(kt,{optional:!0})??vn}ngOnInit(){this._control=this._injector.get(wn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(et){this._state=et===this.value,this.setProperty("checked",this._state)}registerOnChange(et){this._fn=et,this.onChange=()=>{et(this.value),this._registry.select(this)}}setDisabledState(et){(this.setDisabledStateFired||et||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",et),this.setDisabledStateFired=!0}fireUncheck(et){this.writeValue(et)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(bo),e.Y36(e.zs3))},mt.\u0275dir=e.lG2({type:mt,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(et,Tn){1&et&&e.NdJ("change",function(){return Tn.onChange()})("blur",function(){return Tn.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([qi]),e.qOj]}),mt})();const ti=new e.OlP("NgModelWithFormControlWarning"),Ui={provide:wn,useExisting:(0,e.Gpc)(()=>Pe)};let Pe=(()=>{class mt extends wn{set isDisabled(et){}constructor(et,Tn,Gi,Ys,co){super(),this._ngModelWarningConfig=Ys,this.callSetDisabledState=co,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(et),this._setAsyncValidators(Tn),this.valueAccessor=zi(0,Gi)}ngOnChanges(et){if(this._isControlChanged(et)){const Tn=et.form.previousValue;Tn&&De(Tn,this,!1),St(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}bs(et,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&De(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(et){this.viewModel=et,this.update.emit(et)}_isControlChanged(et){return et.hasOwnProperty("form")}}return mt._ngModelWarningSentOnce=!1,mt.\u0275fac=function(et){return new(et||mt)(e.Y36(oe,10),e.Y36(q,10),e.Y36(R,10),e.Y36(ti,8),e.Y36(kt,8))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Ui]),e.qOj,e.TTD]}),mt})();const gn={provide:Tt,useExisting:(0,e.Gpc)(()=>z)};let z=(()=>{class mt extends Tt{constructor(et,Tn,Gi){super(),this.callSetDisabledState=Gi,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(et),this._setAsyncValidators(Tn)}ngOnChanges(et){this._checkFormPresent(),et.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ut(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(et){const Tn=this.form.get(et.path);return St(Tn,et,this.callSetDisabledState),Tn.updateValueAndValidity({emitEvent:!1}),this.directives.push(et),Tn}getControl(et){return this.form.get(et.path)}removeControl(et){De(et.control||null,et,!1),function as(mt,dt){const et=mt.indexOf(dt);et>-1&&mt.splice(et,1)}(this.directives,et)}addFormGroup(et){this._setUpFormContainer(et)}removeFormGroup(et){this._cleanUpFormContainer(et)}getFormGroup(et){return this.form.get(et.path)}addFormArray(et){this._setUpFormContainer(et)}removeFormArray(et){this._cleanUpFormContainer(et)}getFormArray(et){return this.form.get(et.path)}updateModel(et,Tn){this.form.get(et.path).setValue(Tn)}onSubmit(et){return this.submitted=!0,ss(this.form,this.directives),this.ngSubmit.emit(et),"dialog"===et?.target?.method}onReset(){this.resetForm()}resetForm(et){this.form.reset(et),this.submitted=!1}_updateDomValue(){this.directives.forEach(et=>{const Tn=et.control,Gi=this.form.get(et.path);Tn!==Gi&&(De(Tn||null,et),(mt=>mt instanceof Fs)(Gi)&&(St(Gi,et,this.callSetDisabledState),et.control=Gi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(et){const Tn=this.form.get(et.path);mi(Tn,et),Tn.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(et){if(this.form){const Tn=this.form.get(et.path);Tn&&function ui(mt,dt){return Ut(mt,dt)}(Tn,et)&&Tn.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pt(this.form,this),this._oldForm&&Ut(this._oldForm,this)}_checkFormPresent(){}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(oe,10),e.Y36(q,10),e.Y36(kt,8))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formGroup",""]],hostBindings:function(et,Tn){1&et&&e.NdJ("submit",function(Ys){return Tn.onSubmit(Ys)})("reset",function(){return Tn.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([gn]),e.qOj,e.TTD]}),mt})();const Ce={provide:Tt,useExisting:(0,e.Gpc)(()=>on)};let on=(()=>{class mt extends un{constructor(et,Tn,Gi){super(),this._parent=et,this._setValidators(Tn),this._setAsyncValidators(Gi)}_checkParentType(){Fi(this._parent)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(Tt,13),e.Y36(oe,10),e.Y36(q,10))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([Ce]),e.qOj]}),mt})();const Hn={provide:Tt,useExisting:(0,e.Gpc)(()=>Mi)};let Mi=(()=>{class mt extends Tt{constructor(et,Tn,Gi){super(),this._parent=et,this._setValidators(Tn),this._setAsyncValidators(Gi)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return jn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Fi(this._parent)}}return mt.\u0275fac=function(et){return new(et||mt)(e.Y36(Tt,13),e.Y36(oe,10),e.Y36(q,10))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([Hn]),e.qOj]}),mt})();function Fi(mt){return!(mt instanceof on||mt instanceof z||mt instanceof Mi)}const os={provide:wn,useExisting:(0,e.Gpc)(()=>dn)};let dn=(()=>{class mt extends wn{set isDisabled(et){}constructor(et,Tn,Gi,Ys,co){super(),this._ngModelWarningConfig=co,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=et,this._setValidators(Tn),this._setAsyncValidators(Gi),this.valueAccessor=zi(0,Ys)}ngOnChanges(et){this._added||this._setUpControl(),bs(et,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(et){this.viewModel=et,this.update.emit(et)}get path(){return jn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return mt._ngModelWarningSentOnce=!1,mt.\u0275fac=function(et){return new(et||mt)(e.Y36(Tt,13),e.Y36(oe,10),e.Y36(q,10),e.Y36(R,10),e.Y36(ti,8))},mt.\u0275dir=e.lG2({type:mt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([os]),e.qOj,e.TTD]}),mt})();function Hs(mt){return"number"==typeof mt?mt:parseFloat(mt)}let Pr=(()=>{class mt{constructor(){this._validator=Ue}ngOnChanges(et){if(this.inputName in et){const Tn=this.normalizeInput(et[this.inputName].currentValue);this._enabled=this.enabled(Tn),this._validator=this._enabled?this.createValidator(Tn):Ue,this._onChange&&this._onChange()}}validate(et){return this._validator(et)}registerOnValidatorChange(et){this._onChange=et}enabled(et){return null!=et}}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275dir=e.lG2({type:mt,features:[e.TTD]}),mt})();const kr={provide:oe,useExisting:(0,e.Gpc)(()=>vs),multi:!0};let vs=(()=>{class mt extends Pr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=et=>Hs(et),this.createValidator=et=>pe(et)}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(et,Tn){2&et&&e.uIk("max",Tn._enabled?Tn.max:null)},inputs:{max:"max"},features:[e._Bn([kr]),e.qOj]}),mt})();const ko={provide:oe,useExisting:(0,e.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class mt extends Pr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=et=>Hs(et),this.createValidator=et=>Q(et)}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(et,Tn){2&et&&e.uIk("min",Tn._enabled?Tn.min:null)},inputs:{min:"min"},features:[e._Bn([ko]),e.qOj]}),mt})();const so={provide:oe,useExisting:(0,e.Gpc)(()=>fo),multi:!0};let fo=(()=>{class mt extends Pr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=et=>Ee}enabled(et){return et}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(et,Tn){2&et&&e.uIk("required",Tn._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([so]),e.qOj]}),mt})();const Fr={provide:oe,useExisting:(0,e.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class mt extends Pr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=et=>function Qs(mt){return"number"==typeof mt?mt:parseInt(mt,10)}(et),this.createValidator=et=>ut(et)}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(et,Tn){2&et&&e.uIk("maxlength",Tn._enabled?Tn.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Fr]),e.qOj]}),mt})();const ms={provide:oe,useExisting:(0,e.Gpc)(()=>Ho),multi:!0};let Ho=(()=>{class mt extends Pr{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=et=>et,this.createValidator=et=>Ct(et)}}return mt.\u0275fac=function(){let dt;return function(Tn){return(dt||(dt=e.n5z(mt)))(Tn||mt)}}(),mt.\u0275dir=e.lG2({type:mt,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(et,Tn){2&et&&e.uIk("pattern",Tn._enabled?Tn.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([ms]),e.qOj]}),mt})(),Gr=(()=>{class mt{}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275mod=e.oAB({type:mt}),mt.\u0275inj=e.cJS({imports:[Mo]}),mt})();class Xr extends ze{constructor(dt,et,Tn){super(Fn(et),Un(Tn,et)),this.controls=dt,this._initObservables(),this._setUpdateStrategy(et),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(dt){return this.controls[this._adjustIndex(dt)]}push(dt,et={}){this.controls.push(dt),this._registerControl(dt),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}insert(dt,et,Tn={}){this.controls.splice(dt,0,et),this._registerControl(et),this.updateValueAndValidity({emitEvent:Tn.emitEvent})}removeAt(dt,et={}){let Tn=this._adjustIndex(dt);Tn<0&&(Tn=0),this.controls[Tn]&&this.controls[Tn]._registerOnCollectionChange(()=>{}),this.controls.splice(Tn,1),this.updateValueAndValidity({emitEvent:et.emitEvent})}setControl(dt,et,Tn={}){let Gi=this._adjustIndex(dt);Gi<0&&(Gi=0),this.controls[Gi]&&this.controls[Gi]._registerOnCollectionChange(()=>{}),this.controls.splice(Gi,1),et&&(this.controls.splice(Gi,0,et),this._registerControl(et)),this.updateValueAndValidity({emitEvent:Tn.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(dt,et={}){mn(this,!1,dt),dt.forEach((Tn,Gi)=>{Zn(this,!1,Gi),this.at(Gi).setValue(Tn,{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et)}patchValue(dt,et={}){null!=dt&&(dt.forEach((Tn,Gi)=>{this.at(Gi)&&this.at(Gi).patchValue(Tn,{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et))}reset(dt=[],et={}){this._forEachChild((Tn,Gi)=>{Tn.reset(dt[Gi],{onlySelf:!0,emitEvent:et.emitEvent})}),this._updatePristine(et),this._updateTouched(et),this.updateValueAndValidity(et)}getRawValue(){return this.controls.map(dt=>dt.getRawValue())}clear(dt={}){this.controls.length<1||(this._forEachChild(et=>et._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:dt.emitEvent}))}_adjustIndex(dt){return dt<0?dt+this.length:dt}_syncPendingControls(){let dt=this.controls.reduce((et,Tn)=>!!Tn._syncPendingControls()||et,!1);return dt&&this.updateValueAndValidity({onlySelf:!0}),dt}_forEachChild(dt){this.controls.forEach((et,Tn)=>{dt(et,Tn)})}_updateValue(){this.value=this.controls.filter(dt=>dt.enabled||this.disabled).map(dt=>dt.value)}_anyControls(dt){return this.controls.some(et=>et.enabled&&dt(et))}_setUpControls(){this._forEachChild(dt=>this._registerControl(dt))}_allControlsDisabled(){for(const dt of this.controls)if(dt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(dt){dt.setParent(this),dt._registerOnCollectionChange(this._onCollectionChange)}_find(dt){return this.at(dt)??null}}let lo=(()=>{class mt{static withConfig(et){return{ngModule:mt,providers:[{provide:kt,useValue:et.callSetDisabledState??vn}]}}}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275mod=e.oAB({type:mt}),mt.\u0275inj=e.cJS({imports:[Gr]}),mt})(),nr=(()=>{class mt{static withConfig(et){return{ngModule:mt,providers:[{provide:ti,useValue:et.warnOnNgModelWithFormControl??"always"},{provide:kt,useValue:et.callSetDisabledState??vn}]}}}return mt.\u0275fac=function(et){return new(et||mt)},mt.\u0275mod=e.oAB({type:mt}),mt.\u0275inj=e.cJS({imports:[Gr]}),mt})()},81321:()=>{"use strict";const fn=":";class Oe extends Error{constructor(sn){super(`No translation found for ${rt(sn)}.`),this.parsedMessage=sn,this.type="MissingTranslationError"}}const Tt=function(an,...sn){if(Tt.translate){const Ln=Tt.translate(an,sn);an=Ln[0],sn=Ln[1]}let _n=Nn(an[0],an.raw[0]);for(let Ln=1;Ln<an.length;Ln++)_n+=sn[Ln-1]+Nn(an[Ln],an.raw[Ln]);return _n},wn=":";function Nn(an,sn){return sn.charAt(0)===wn?an.substring(function $e(an,sn){for(let _n=1,Ln=1;_n<an.length;_n++,Ln++)if("\\"===sn[Ln])Ln++;else if(an[_n]===fn)return _n;throw new Error(`Unterminated $localize metadata block in "${sn}".`)}(an,sn)+1):an}(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=Tt},11481:(fn,ve,_)=>{"use strict";_.d(ve,{Dx:()=>Si,H7:()=>ze,b2:()=>pi,hm:()=>bi,ok:()=>Un,q6:()=>sn,se:()=>vt,t6:()=>mn});var e=_(36895),o=_(94650);class T extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class A extends T{static makeCurrent(){(0,e.HT)(new A)}onAndCancel(Lt,kt,vn){return Lt.addEventListener(kt,vn,!1),()=>{Lt.removeEventListener(kt,vn,!1)}}dispatchEvent(Lt,kt){Lt.dispatchEvent(kt)}remove(Lt){Lt.parentNode&&Lt.parentNode.removeChild(Lt)}createElement(Lt,kt){return(kt=kt||this.getDefaultDocument()).createElement(Lt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Lt){return Lt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Lt){return Lt instanceof DocumentFragment}getGlobalEventTarget(Lt,kt){return"window"===kt?window:"document"===kt?Lt:"body"===kt?Lt.body:null}getBaseHref(Lt){const kt=function F(){return G=G||document.querySelector("base"),G?G.getAttribute("href"):null}();return null==kt?null:function R(gt){N=N||document.createElement("a"),N.setAttribute("href",gt);const Lt=N.pathname;return"/"===Lt.charAt(0)?Lt:`/${Lt}`}(kt)}resetBaseElement(){G=null}getUserAgent(){return window.navigator.userAgent}getCookie(Lt){return(0,e.Mx)(document.cookie,Lt)}}let N,G=null;const P=new o.OlP("TRANSITION_ID"),j=[{provide:o.ip1,useFactory:function y(gt,Lt,kt){return()=>{kt.get(o.CZH).donePromise.then(()=>{const vn=(0,e.q)(),jn=Lt.querySelectorAll(`style[ng-transition="${gt}"]`);for(let St=0;St<jn.length;St++)vn.remove(jn[St])})}},deps:[P,e.K0,o.zs3],multi:!0}];let ee=(()=>{class gt{build(){return new XMLHttpRequest}}return gt.\u0275fac=function(kt){return new(kt||gt)},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();const se=new o.OlP("EventManagerPlugins");let he=(()=>{class gt{constructor(kt,vn){this._zone=vn,this._eventNameToPlugin=new Map,kt.forEach(jn=>{jn.manager=this}),this._plugins=kt.slice().reverse()}addEventListener(kt,vn,jn){return this._findPluginFor(vn).addEventListener(kt,vn,jn)}addGlobalEventListener(kt,vn,jn){return this._findPluginFor(vn).addGlobalEventListener(kt,vn,jn)}getZone(){return this._zone}_findPluginFor(kt){const vn=this._eventNameToPlugin.get(kt);if(vn)return vn;const jn=this._plugins;for(let St=0;St<jn.length;St++){const De=jn[St];if(De.supports(kt))return this._eventNameToPlugin.set(kt,De),De}throw new Error(`No event manager plugin found for event ${kt}`)}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(se),o.LFG(o.R0b))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();class Se{constructor(Lt){this._doc=Lt}addGlobalEventListener(Lt,kt,vn){const jn=(0,e.q)().getGlobalEventTarget(this._doc,Lt);if(!jn)throw new Error(`Unsupported event target ${jn} for event ${kt}`);return this.addEventListener(jn,kt,vn)}}let te=(()=>{class gt{constructor(){this.usageCount=new Map}addStyles(kt){for(const vn of kt)1===this.changeUsageCount(vn,1)&&this.onStyleAdded(vn)}removeStyles(kt){for(const vn of kt)0===this.changeUsageCount(vn,-1)&&this.onStyleRemoved(vn)}onStyleRemoved(kt){}onStyleAdded(kt){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(kt,vn){const jn=this.usageCount;let St=jn.get(kt)??0;return St+=vn,St>0?jn.set(kt,St):jn.delete(kt),St}ngOnDestroy(){for(const kt of this.getAllStyles())this.onStyleRemoved(kt);this.usageCount.clear()}}return gt.\u0275fac=function(kt){return new(kt||gt)},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})(),oe=(()=>{class gt extends te{constructor(kt){super(),this.doc=kt,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(kt){for(const vn of this.hostNodes)this.addStyleToHost(vn,kt)}onStyleRemoved(kt){const vn=this.styleRef;vn.get(kt)?.forEach(St=>St.remove()),vn.delete(kt)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(kt){this.hostNodes.add(kt);for(const vn of this.getAllStyles())this.addStyleToHost(kt,vn)}removeHost(kt){this.hostNodes.delete(kt)}addStyleToHost(kt,vn){const jn=this.doc.createElement("style");jn.textContent=vn,kt.appendChild(jn);const St=this.styleRef.get(vn);St?St.push(jn):this.styleRef.set(vn,[jn])}resetHostNodes(){const kt=this.hostNodes;kt.clear(),kt.add(this.doc.head)}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();const q={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g,Q="%COMP%",pe=`_nghost-${Q}`,Ee=`_ngcontent-${Q}`,Ye=new o.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Ct(gt,Lt){return Lt.flat(100).map(kt=>kt.replace(we,gt))}function Ue(gt){return Lt=>{if("__ngUnwrap__"===Lt)return gt;!1===gt(Lt)&&(Lt.preventDefault(),Lt.returnValue=!1)}}let vt=(()=>{class gt{constructor(kt,vn,jn,St){this.eventManager=kt,this.sharedStylesHost=vn,this.appId=jn,this.removeStylesOnCompDestory=St,this.rendererByCompId=new Map,this.defaultRenderer=new ln(kt)}createRenderer(kt,vn){if(!kt||!vn)return this.defaultRenderer;const jn=this.getOrCreateRenderer(kt,vn);return jn instanceof Oe?jn.applyToHost(kt):jn instanceof $e&&jn.applyStyles(),jn}getOrCreateRenderer(kt,vn){const jn=this.rendererByCompId;let St=jn.get(vn.id);if(!St){const De=this.eventManager,ie=this.sharedStylesHost,je=this.removeStylesOnCompDestory;switch(vn.encapsulation){case o.ifc.Emulated:St=new Oe(De,ie,vn,this.appId,je);break;case o.ifc.ShadowDom:return new Ze(De,ie,kt,vn);default:St=new $e(De,ie,vn,je)}St.onDestroy=()=>jn.delete(vn.id),jn.set(vn.id,St)}return St}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(he),o.LFG(oe),o.LFG(o.AFp),o.LFG(Ye))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();class ln{constructor(Lt){this.eventManager=Lt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Lt,kt){return kt?document.createElementNS(q[kt]||kt,Lt):document.createElement(Lt)}createComment(Lt){return document.createComment(Lt)}createText(Lt){return document.createTextNode(Lt)}appendChild(Lt,kt){(st(Lt)?Lt.content:Lt).appendChild(kt)}insertBefore(Lt,kt,vn){Lt&&(st(Lt)?Lt.content:Lt).insertBefore(kt,vn)}removeChild(Lt,kt){Lt&&Lt.removeChild(kt)}selectRootElement(Lt,kt){let vn="string"==typeof Lt?document.querySelector(Lt):Lt;if(!vn)throw new Error(`The selector "${Lt}" did not match any elements`);return kt||(vn.textContent=""),vn}parentNode(Lt){return Lt.parentNode}nextSibling(Lt){return Lt.nextSibling}setAttribute(Lt,kt,vn,jn){if(jn){kt=jn+":"+kt;const St=q[jn];St?Lt.setAttributeNS(St,kt,vn):Lt.setAttribute(kt,vn)}else Lt.setAttribute(kt,vn)}removeAttribute(Lt,kt,vn){if(vn){const jn=q[vn];jn?Lt.removeAttributeNS(jn,kt):Lt.removeAttribute(`${vn}:${kt}`)}else Lt.removeAttribute(kt)}addClass(Lt,kt){Lt.classList.add(kt)}removeClass(Lt,kt){Lt.classList.remove(kt)}setStyle(Lt,kt,vn,jn){jn&(o.JOm.DashCase|o.JOm.Important)?Lt.style.setProperty(kt,vn,jn&o.JOm.Important?"important":""):Lt.style[kt]=vn}removeStyle(Lt,kt,vn){vn&o.JOm.DashCase?Lt.style.removeProperty(kt):Lt.style[kt]=""}setProperty(Lt,kt,vn){Lt[kt]=vn}setValue(Lt,kt){Lt.nodeValue=kt}listen(Lt,kt,vn){return"string"==typeof Lt?this.eventManager.addGlobalEventListener(Lt,kt,Ue(vn)):this.eventManager.addEventListener(Lt,kt,Ue(vn))}}function st(gt){return"TEMPLATE"===gt.tagName&&void 0!==gt.content}class Ze extends ln{constructor(Lt,kt,vn,jn){super(Lt),this.sharedStylesHost=kt,this.hostEl=vn,this.shadowRoot=vn.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const St=Ct(jn.id,jn.styles);for(const De of St){const ie=document.createElement("style");ie.textContent=De,this.shadowRoot.appendChild(ie)}}nodeOrShadowRoot(Lt){return Lt===this.hostEl?this.shadowRoot:Lt}appendChild(Lt,kt){return super.appendChild(this.nodeOrShadowRoot(Lt),kt)}insertBefore(Lt,kt,vn){return super.insertBefore(this.nodeOrShadowRoot(Lt),kt,vn)}removeChild(Lt,kt){return super.removeChild(this.nodeOrShadowRoot(Lt),kt)}parentNode(Lt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Lt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class $e extends ln{constructor(Lt,kt,vn,jn,St=vn.id){super(Lt),this.sharedStylesHost=kt,this.removeStylesOnCompDestory=jn,this.rendererUsageCount=0,this.styles=Ct(St,vn.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Oe extends $e{constructor(Lt,kt,vn,jn,St){const De=jn+"-"+vn.id;super(Lt,kt,vn,St,De),this.contentAttr=function ct(gt){return Ee.replace(we,gt)}(De),this.hostAttr=function ut(gt){return pe.replace(we,gt)}(De)}applyToHost(Lt){this.applyStyles(),this.setAttribute(Lt,this.hostAttr,"")}createElement(Lt,kt){const vn=super.createElement(Lt,kt);return super.setAttribute(vn,this.contentAttr,""),vn}}let Nt=(()=>{class gt extends Se{constructor(kt){super(kt)}supports(kt){return!0}addEventListener(kt,vn,jn){return kt.addEventListener(vn,jn,!1),()=>this.removeEventListener(kt,vn,jn)}removeEventListener(kt,vn,jn){return kt.removeEventListener(vn,jn)}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();const xt=["alt","control","meta","shift"],Ot={"\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"},Kt={alt:gt=>gt.altKey,control:gt=>gt.ctrlKey,meta:gt=>gt.metaKey,shift:gt=>gt.shiftKey};let $t=(()=>{class gt extends Se{constructor(kt){super(kt)}supports(kt){return null!=gt.parseEventName(kt)}addEventListener(kt,vn,jn){const St=gt.parseEventName(vn),De=gt.eventCallback(St.fullKey,jn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(kt,St.domEventName,De))}static parseEventName(kt){const vn=kt.toLowerCase().split("."),jn=vn.shift();if(0===vn.length||"keydown"!==jn&&"keyup"!==jn)return null;const St=gt._normalizeKey(vn.pop());let De="",ie=vn.indexOf("code");if(ie>-1&&(vn.splice(ie,1),De="code."),xt.forEach(pt=>{const Ut=vn.indexOf(pt);Ut>-1&&(vn.splice(Ut,1),De+=pt+".")}),De+=St,0!=vn.length||0===St.length)return null;const je={};return je.domEventName=jn,je.fullKey=De,je}static matchEventFullKeyCode(kt,vn){let jn=Ot[kt.key]||kt.key,St="";return vn.indexOf("code.")>-1&&(jn=kt.code,St="code."),!(null==jn||!jn)&&(jn=jn.toLowerCase()," "===jn?jn="space":"."===jn&&(jn="dot"),xt.forEach(De=>{De!==jn&&(0,Kt[De])(kt)&&(St+=De+".")}),St+=jn,St===vn)}static eventCallback(kt,vn,jn){return St=>{gt.matchEventFullKeyCode(St,kt)&&jn.runGuarded(()=>vn(St))}}static _normalizeKey(kt){return"esc"===kt?"escape":kt}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})();const sn=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:e.bD},{provide:o.g9A,useValue:function Tt(){A.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function Nn(){return(0,o.RDi)(document),document},deps:[]}]),_n=new o.OlP(""),Ln=[{provide:o.rWj,useClass:class Y{addToWindow(Lt){o.dqk.getAngularTestability=(vn,jn=!0)=>{const St=Lt.findTestabilityInTree(vn,jn);if(null==St)throw new Error("Could not find testability for element.");return St},o.dqk.getAllAngularTestabilities=()=>Lt.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>Lt.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(vn=>{const jn=o.dqk.getAllAngularTestabilities();let St=jn.length,De=!1;const ie=function(je){De=De||je,St--,0==St&&vn(De)};jn.forEach(function(je){je.whenStable(ie)})})}findTestabilityInTree(Lt,kt,vn){return null==kt?null:Lt.getTestability(kt)??(vn?(0,e.q)().isShadowRoot(kt)?this.findTestabilityInTree(Lt,kt.host,!0):this.findTestabilityInTree(Lt,kt.parentElement,!0):null)}},deps:[]},{provide:o.lri,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]}],Mn=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function wn(){return new o.qLn},deps:[]},{provide:se,useClass:Nt,multi:!0,deps:[e.K0,o.R0b,o.Lbi]},{provide:se,useClass:$t,multi:!0,deps:[e.K0]},{provide:vt,useClass:vt,deps:[he,oe,o.AFp,Ye]},{provide:o.FYo,useExisting:vt},{provide:te,useExisting:oe},{provide:oe,useClass:oe,deps:[e.K0]},{provide:he,useClass:he,deps:[se,o.R0b]},{provide:e.JF,useClass:ee,deps:[]},[]];let pi=(()=>{class gt{constructor(kt){}static withServerTransition(kt){return{ngModule:gt,providers:[{provide:o.AFp,useValue:kt.appId},{provide:P,useExisting:o.AFp},j]}}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(_n,12))},gt.\u0275mod=o.oAB({type:gt}),gt.\u0275inj=o.cJS({providers:[...Mn,...Ln],imports:[e.ez,o.hGG]}),gt})(),Si=(()=>{class gt{constructor(kt){this._doc=kt}getTitle(){return this._doc.title}setTitle(kt){this._doc.title=kt||""}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0))},gt.\u0275prov=o.Yz7({token:gt,factory:function(kt){let vn=null;return vn=kt?new kt:function ki(){return new Si((0,o.LFG)(e.K0))}(),vn},providedIn:"root"}),gt})();typeof window<"u"&&window;const Cn={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Un=new o.OlP("HammerGestureConfig"),fi=new o.OlP("HammerLoader");let bi=(()=>{class gt{constructor(){this.events=[],this.overrides={}}buildHammer(kt){const vn=new Hammer(kt,this.options);vn.get("pinch").set({enable:!0}),vn.get("rotate").set({enable:!0});for(const jn in this.overrides)vn.get(jn).set(this.overrides[jn]);return vn}}return gt.\u0275fac=function(kt){return new(kt||gt)},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})(),Zn=(()=>{class gt extends Se{constructor(kt,vn,jn,St){super(kt),this._config=vn,this.console=jn,this.loader=St,this._loaderPromise=null}supports(kt){return!(!Cn.hasOwnProperty(kt.toLowerCase())&&!this.isCustomEvent(kt)||!window.Hammer&&!this.loader)}addEventListener(kt,vn,jn){const St=this.manager.getZone();if(vn=vn.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||St.runOutsideAngular(()=>this.loader());let De=!1,ie=()=>{De=!0};return St.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?De||(ie=this.addEventListener(kt,vn,jn)):ie=()=>{}}).catch(()=>{ie=()=>{}})),()=>{ie()}}return St.runOutsideAngular(()=>{const De=this._config.buildHammer(kt),ie=function(je){St.runGuarded(function(){jn(je)})};return De.on(vn,ie),()=>{De.off(vn,ie),"function"==typeof De.destroy&&De.destroy()}})}isCustomEvent(kt){return this._config.events.indexOf(kt)>-1}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0),o.LFG(Un),o.LFG(o.c2e),o.LFG(fi,8))},gt.\u0275prov=o.Yz7({token:gt,factory:gt.\u0275fac}),gt})(),mn=(()=>{class gt{}return gt.\u0275fac=function(kt){return new(kt||gt)},gt.\u0275mod=o.oAB({type:gt}),gt.\u0275inj=o.cJS({providers:[{provide:se,useClass:Zn,multi:!0,deps:[e.K0,Un,o.c2e,[new o.FiY,fi]]},{provide:Un,useClass:bi,deps:[]}]}),gt})(),ze=(()=>{class gt{}return gt.\u0275fac=function(kt){return new(kt||gt)},gt.\u0275prov=o.Yz7({token:gt,factory:function(kt){let vn=null;return vn=kt?new(kt||gt):o.LFG(ht),vn},providedIn:"root"}),gt})(),ht=(()=>{class gt extends ze{constructor(kt){super(),this._doc=kt}sanitize(kt,vn){if(null==vn)return null;switch(kt){case o.q3G.NONE:return vn;case o.q3G.HTML:return(0,o.qzn)(vn,"HTML")?(0,o.z3N)(vn):(0,o.EiD)(this._doc,String(vn)).toString();case o.q3G.STYLE:return(0,o.qzn)(vn,"Style")?(0,o.z3N)(vn):vn;case o.q3G.SCRIPT:if((0,o.qzn)(vn,"Script"))return(0,o.z3N)(vn);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.qzn)(vn,"URL")?(0,o.z3N)(vn):(0,o.mCW)(String(vn));case o.q3G.RESOURCE_URL:if((0,o.qzn)(vn,"ResourceURL"))return(0,o.z3N)(vn);throw new Error(`unsafe value used in a resource URL context (see ${o.JZr})`);default:throw new Error(`Unexpected SecurityContext ${kt} (see ${o.JZr})`)}}bypassSecurityTrustHtml(kt){return(0,o.JVY)(kt)}bypassSecurityTrustStyle(kt){return(0,o.L6k)(kt)}bypassSecurityTrustScript(kt){return(0,o.eBb)(kt)}bypassSecurityTrustUrl(kt){return(0,o.LAX)(kt)}bypassSecurityTrustResourceUrl(kt){return(0,o.pB0)(kt)}}return gt.\u0275fac=function(kt){return new(kt||gt)(o.LFG(e.K0))},gt.\u0275prov=o.Yz7({token:gt,factory:function(kt){let vn=null;return vn=kt?new kt:function wt(gt){return new ht(gt.get(e.K0))}(o.LFG(o.zs3)),vn},providedIn:"root"}),gt})()},9116:(fn,ve,_)=>{"use strict";_.d(ve,{gz:()=>z,m2:()=>_s,F0:()=>$r,rH:()=>Jo,Od:()=>Yl,Bz:()=>ge,lC:()=>Pr});var e=_(94650),o=_(88996),T=_(39646),A=_(61135),G=_(86805),F=_(39841),N=_(97272),R=_(49770),P=_(89635),y=_(62843),j=_(69751),Y=_(60515),ee=_(94033),se=_(77579),he=_(36895),Se=_(54004),te=_(63900),oe=_(95698),q=_(68675),we=_(39300),ae=_(95577),Q=_(50590),pe=_(24351),Ee=_(18505),ke=_(70262),Ye=_(22940),ct=_(54482),ut=_(25403);function Ct(_e){return _e<=0?()=>Y.E:(0,ct.e)((Ne,v)=>{let D=[];Ne.subscribe((0,ut.x)(v,W=>{D.push(W),_e<D.length&&D.shift()},()=>{for(const W of D)v.next(W);v.complete()},void 0,()=>{D=null}))})}var Ue=_(18068),vt=_(46590),ln=_(44671);function Je(_e,Ne){const v=arguments.length>=2;return D=>D.pipe(_e?(0,we.h)((W,L)=>_e(W,L,D)):ln.y,Ct(1),v?(0,vt.d)(Ne):(0,Ue.T)(()=>new G.K))}var Ft=_(22529),st=_(69718),Ze=_(28746),$e=_(38343),Oe=_(8189),Nt=_(11481);const xt="primary",Ot=Symbol("RouteTitle");class Kt{constructor(Ne){this.params=Ne||{}}has(Ne){return Object.prototype.hasOwnProperty.call(this.params,Ne)}get(Ne){if(this.has(Ne)){const v=this.params[Ne];return Array.isArray(v)?v[0]:v}return null}getAll(Ne){if(this.has(Ne)){const v=this.params[Ne];return Array.isArray(v)?v:[v]}return[]}get keys(){return Object.keys(this.params)}}function $t(_e){return new Kt(_e)}function rt(_e,Ne,v){const D=v.path.split("/");if(D.length>_e.length||"full"===v.pathMatch&&(Ne.hasChildren()||D.length<_e.length))return null;const W={};for(let L=0;L<D.length;L++){const Me=D[L],tn=_e[L];if(Me.startsWith(":"))W[Me.substring(1)]=tn;else if(Me!==tn.path)return null}return{consumed:_e.slice(0,D.length),posParams:W}}function yt(_e,Ne){const v=_e?Object.keys(_e):void 0,D=Ne?Object.keys(Ne):void 0;if(!v||!D||v.length!=D.length)return!1;let W;for(let L=0;L<v.length;L++)if(W=v[L],!it(_e[W],Ne[W]))return!1;return!0}function it(_e,Ne){if(Array.isArray(_e)&&Array.isArray(Ne)){if(_e.length!==Ne.length)return!1;const v=[..._e].sort(),D=[...Ne].sort();return v.every((W,L)=>D[L]===W)}return _e===Ne}function It(_e){return Array.prototype.concat.apply([],_e)}function Tt(_e){return _e.length>0?_e[_e.length-1]:null}function Nn(_e,Ne){for(const v in _e)_e.hasOwnProperty(v)&&Ne(_e[v],v)}function an(_e){return(0,e.CqO)(_e)?_e:(0,e.QGY)(_e)?(0,o.D)(Promise.resolve(_e)):(0,T.of)(_e)}const sn=!1,_n={exact:function Yn(_e,Ne,v){if(!en(_e.segments,Ne.segments)||!Si(_e.segments,Ne.segments,v)||_e.numberOfChildren!==Ne.numberOfChildren)return!1;for(const D in Ne.children)if(!_e.children[D]||!Yn(_e.children[D],Ne.children[D],v))return!1;return!0},subset:qn},Ln={exact:function pi(_e,Ne){return yt(_e,Ne)},subset:function gi(_e,Ne){return Object.keys(Ne).length<=Object.keys(_e).length&&Object.keys(Ne).every(v=>it(_e[v],Ne[v]))},ignored:()=>!0};function Mn(_e,Ne,v){return _n[v.paths](_e.root,Ne.root,v.matrixParams)&&Ln[v.queryParams](_e.queryParams,Ne.queryParams)&&!("exact"===v.fragment&&_e.fragment!==Ne.fragment)}function qn(_e,Ne,v){return ki(_e,Ne,Ne.segments,v)}function ki(_e,Ne,v,D){if(_e.segments.length>v.length){const W=_e.segments.slice(0,v.length);return!(!en(W,v)||Ne.hasChildren()||!Si(W,v,D))}if(_e.segments.length===v.length){if(!en(_e.segments,v)||!Si(_e.segments,v,D))return!1;for(const W in Ne.children)if(!_e.children[W]||!qn(_e.children[W],Ne.children[W],D))return!1;return!0}{const W=v.slice(0,_e.segments.length),L=v.slice(_e.segments.length);return!!(en(_e.segments,W)&&Si(_e.segments,W,D)&&_e.children[xt])&&ki(_e.children[xt],Ne,L,D)}}function Si(_e,Ne,v){return Ne.every((D,W)=>Ln[v](_e[W].parameters,D.parameters))}class Ni{constructor(Ne=new pn([],{}),v={},D=null){this.root=Ne,this.queryParams=v,this.fragment=D}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$t(this.queryParams)),this._queryParamMap}toString(){return Qt.serialize(this)}}class pn{constructor(Ne,v){this.segments=Ne,this.children=v,this.parent=null,Nn(v,(D,W)=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yi(this)}}class Vn{constructor(Ne,v){this.path=Ne,this.parameters=v}get parameterMap(){return this._parameterMap||(this._parameterMap=$t(this.parameters)),this._parameterMap}toString(){return Un(this)}}function en(_e,Ne){return _e.length===Ne.length&&_e.every((v,D)=>v.path===Ne[D].path)}let In=(()=>{class _e{}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:function(){return new rn},providedIn:"root"}),_e})();class rn{parse(Ne){const v=new gt(Ne);return new Ni(v.parseRootSegment(),v.parseQueryParams(),v.parseFragment())}serialize(Ne){const v=`/${Li(Ne.root,!0)}`,D=function bi(_e){const Ne=Object.keys(_e).map(v=>{const D=_e[v];return Array.isArray(D)?D.map(W=>`${Ht(v)}=${Ht(W)}`).join("&"):`${Ht(v)}=${Ht(D)}`}).filter(v=>!!v);return Ne.length?`?${Ne.join("&")}`:""}(Ne.queryParams);return`${v}${D}${"string"==typeof Ne.fragment?`#${function Pn(_e){return encodeURI(_e)}(Ne.fragment)}`:""}`}}const Qt=new rn;function yi(_e){return _e.segments.map(Ne=>Un(Ne)).join("/")}function Li(_e,Ne){if(!_e.hasChildren())return yi(_e);if(Ne){const v=_e.children[xt]?Li(_e.children[xt],!1):"",D=[];return Nn(_e.children,(W,L)=>{L!==xt&&D.push(`${L}:${Li(W,!1)}`)}),D.length>0?`${v}(${D.join("//")})`:v}{const v=function lt(_e,Ne){let v=[];return Nn(_e.children,(D,W)=>{W===xt&&(v=v.concat(Ne(D,W)))}),Nn(_e.children,(D,W)=>{W!==xt&&(v=v.concat(Ne(D,W)))}),v}(_e,(D,W)=>W===xt?[Li(_e.children[xt],!1)]:[`${W}:${Li(D,!1)}`]);return 1===Object.keys(_e.children).length&&null!=_e.children[xt]?`${yi(_e)}/${v[0]}`:`${yi(_e)}/(${v.join("//")})`}}function An(_e){return encodeURIComponent(_e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(_e){return An(_e).replace(/%3B/gi,";")}function Sn(_e){return An(_e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fn(_e){return decodeURIComponent(_e)}function Cn(_e){return Fn(_e.replace(/\+/g,"%20"))}function Un(_e){return`${Sn(_e.path)}${function fi(_e){return Object.keys(_e).map(Ne=>`;${Sn(Ne)}=${Sn(_e[Ne])}`).join("")}(_e.parameters)}`}const Zn=/^[^\/()?;=#]+/;function mn(_e){const Ne=_e.match(Zn);return Ne?Ne[0]:""}const ze=/^[^=?&#]+/,ht=/^[^&#]+/;class gt{constructor(Ne){this.url=Ne,this.remaining=Ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pn([],{}):new pn([],this.parseChildren())}parseQueryParams(){const Ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(Ne)}while(this.consumeOptional("&"));return Ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Ne=[];for(this.peekStartsWith("(")||Ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Ne.push(this.parseSegment());let v={};this.peekStartsWith("/(")&&(this.capture("/"),v=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(Ne.length>0||Object.keys(v).length>0)&&(D[xt]=new pn(Ne,v)),D}parseSegment(){const Ne=mn(this.remaining);if(""===Ne&&this.peekStartsWith(";"))throw new e.vHH(4009,sn);return this.capture(Ne),new Vn(Fn(Ne),this.parseMatrixParams())}parseMatrixParams(){const Ne={};for(;this.consumeOptional(";");)this.parseParam(Ne);return Ne}parseParam(Ne){const v=mn(this.remaining);if(!v)return;this.capture(v);let D="";if(this.consumeOptional("=")){const W=mn(this.remaining);W&&(D=W,this.capture(D))}Ne[Fn(v)]=Fn(D)}parseQueryParam(Ne){const v=function wt(_e){const Ne=_e.match(ze);return Ne?Ne[0]:""}(this.remaining);if(!v)return;this.capture(v);let D="";if(this.consumeOptional("=")){const Me=function U(_e){const Ne=_e.match(ht);return Ne?Ne[0]:""}(this.remaining);Me&&(D=Me,this.capture(D))}const W=Cn(v),L=Cn(D);if(Ne.hasOwnProperty(W)){let Me=Ne[W];Array.isArray(Me)||(Me=[Me],Ne[W]=Me),Me.push(L)}else Ne[W]=L}parseParens(Ne){const v={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=mn(this.remaining),W=this.remaining[D.length];if("/"!==W&&")"!==W&&";"!==W)throw new e.vHH(4010,sn);let L;D.indexOf(":")>-1?(L=D.slice(0,D.indexOf(":")),this.capture(L),this.capture(":")):Ne&&(L=xt);const Me=this.parseChildren();v[L]=1===Object.keys(Me).length?Me[xt]:new pn([],Me),this.consumeOptional("//")}return v}peekStartsWith(Ne){return this.remaining.startsWith(Ne)}consumeOptional(Ne){return!!this.peekStartsWith(Ne)&&(this.remaining=this.remaining.substring(Ne.length),!0)}capture(Ne){if(!this.consumeOptional(Ne))throw new e.vHH(4011,sn)}}function Lt(_e){return _e.segments.length>0?new pn([],{[xt]:_e}):_e}function kt(_e){const Ne={};for(const D of Object.keys(_e.children)){const L=kt(_e.children[D]);(L.segments.length>0||L.hasChildren())&&(Ne[D]=L)}return function vn(_e){if(1===_e.numberOfChildren&&_e.children[xt]){const Ne=_e.children[xt];return new pn(_e.segments.concat(Ne.segments),Ne.children)}return _e}(new pn(_e.segments,Ne))}function jn(_e){return _e instanceof Ni}const St=!1;function pt(_e,Ne,v,D,W){if(0===v.length)return hn(Ne.root,Ne.root,Ne.root,D,W);const L=function mi(_e){if("string"==typeof _e[0]&&1===_e.length&&"/"===_e[0])return new ri(!0,0,_e);let Ne=0,v=!1;const D=_e.reduce((W,L,Me)=>{if("object"==typeof L&&null!=L){if(L.outlets){const tn={};return Nn(L.outlets,(oi,Vi)=>{tn[Vi]="string"==typeof oi?oi.split("/"):oi}),[...W,{outlets:tn}]}if(L.segmentPath)return[...W,L.segmentPath]}return"string"!=typeof L?[...W,L]:0===Me?(L.split("/").forEach((tn,oi)=>{0==oi&&"."===tn||(0==oi&&""===tn?v=!0:".."===tn?Ne++:""!=tn&&W.push(tn))}),W):[...W,L]},[]);return new ri(v,Ne,D)}(v);return L.toRoot()?hn(Ne.root,Ne.root,new pn([],{}),D,W):function Me(oi){const Vi=function Di(_e,Ne,v,D){if(_e.isAbsolute)return new ui(Ne.root,!0,0);if(-1===D)return new ui(v,v===Ne.root,0);return function Yi(_e,Ne,v){let D=_e,W=Ne,L=v;for(;L>W;){if(L-=W,D=D.parent,!D)throw new e.vHH(4005,St&&"Invalid number of '../'");W=D.segments.length}return new ui(D,!1,W-L)}(v,D+(Ut(_e.commands[0])?0:1),_e.numberOfDoubleDots)}(L,Ne,_e.snapshot?._urlSegment,oi),hs=Vi.processChildren?bs(Vi.segmentGroup,Vi.index,L.commands):gs(Vi.segmentGroup,Vi.index,L.commands);return hn(Ne.root,Vi.segmentGroup,hs,D,W)}(_e.snapshot?._lastPathIndex)}function Ut(_e){return"object"==typeof _e&&null!=_e&&!_e.outlets&&!_e.segmentPath}function xn(_e){return"object"==typeof _e&&null!=_e&&_e.outlets}function hn(_e,Ne,v,D,W){let Me,L={};D&&Nn(D,(oi,Vi)=>{L[Vi]=Array.isArray(oi)?oi.map(hs=>`${hs}`):`${oi}`}),Me=_e===Ne?v:Gn(_e,Ne,v);const tn=Lt(kt(Me));return new Ni(tn,L,W)}function Gn(_e,Ne,v){const D={};return Nn(_e.children,(W,L)=>{D[L]=W===Ne?v:Gn(W,Ne,v)}),new pn(_e.segments,D)}class ri{constructor(Ne,v,D){if(this.isAbsolute=Ne,this.numberOfDoubleDots=v,this.commands=D,Ne&&D.length>0&&Ut(D[0]))throw new e.vHH(4003,St&&"Root segment cannot have matrix parameters");const W=D.find(xn);if(W&&W!==Tt(D))throw new e.vHH(4004,St&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ui{constructor(Ne,v,D){this.segmentGroup=Ne,this.processChildren=v,this.index=D}}function gs(_e,Ne,v){if(_e||(_e=new pn([],{})),0===_e.segments.length&&_e.hasChildren())return bs(_e,Ne,v);const D=function Es(_e,Ne,v){let D=0,W=Ne;const L={match:!1,pathIndex:0,commandIndex:0};for(;W<_e.segments.length;){if(D>=v.length)return L;const Me=_e.segments[W],tn=v[D];if(xn(tn))break;const oi=`${tn}`,Vi=D<v.length-1?v[D+1]:null;if(W>0&&void 0===oi)break;if(oi&&Vi&&"object"==typeof Vi&&void 0===Vi.outlets){if(!ds(oi,Vi,Me))return L;D+=2}else{if(!ds(oi,{},Me))return L;D++}W++}return{match:!0,pathIndex:W,commandIndex:D}}(_e,Ne,v),W=v.slice(D.commandIndex);if(D.match&&D.pathIndex<_e.segments.length){const L=new pn(_e.segments.slice(0,D.pathIndex),{});return L.children[xt]=new pn(_e.segments.slice(D.pathIndex),_e.children),bs(L,0,W)}return D.match&&0===W.length?new pn(_e.segments,{}):D.match&&!_e.hasChildren()?ss(_e,Ne,v):D.match?bs(_e,0,W):ss(_e,Ne,v)}function bs(_e,Ne,v){if(0===v.length)return new pn(_e.segments,{});{const D=function ji(_e){return xn(_e[0])?_e[0].outlets:{[xt]:_e}}(v),W={};if(!D[xt]&&_e.children[xt]&&1===_e.numberOfChildren&&0===_e.children[xt].segments.length){const L=bs(_e.children[xt],Ne,v);return new pn(_e.segments,L.children)}return Nn(D,(L,Me)=>{"string"==typeof L&&(L=[L]),null!==L&&(W[Me]=gs(_e.children[Me],Ne,L))}),Nn(_e.children,(L,Me)=>{void 0===D[Me]&&(W[Me]=L)}),new pn(_e.segments,W)}}function ss(_e,Ne,v){const D=_e.segments.slice(0,Ne);let W=0;for(;W<v.length;){const L=v[W];if(xn(L)){const oi=zi(L.outlets);return new pn(D,oi)}if(0===W&&Ut(v[0])){D.push(new Vn(_e.segments[Ne].path,as(v[0]))),W++;continue}const Me=xn(L)?L.outlets[xt]:`${L}`,tn=W<v.length-1?v[W+1]:null;Me&&tn&&Ut(tn)?(D.push(new Vn(Me,as(tn))),W+=2):(D.push(new Vn(Me,{})),W++)}return new pn(D,{})}function zi(_e){const Ne={};return Nn(_e,(v,D)=>{"string"==typeof v&&(v=[v]),null!==v&&(Ne[D]=ss(new pn([],{}),0,v))}),Ne}function as(_e){const Ne={};return Nn(_e,(v,D)=>Ne[D]=`${v}`),Ne}function ds(_e,Ne,v){return _e==v.path&&yt(Ne,v.parameters)}const Xi="imperative";class us{constructor(Ne,v){this.id=Ne,this.url=v}}class ps extends us{constructor(Ne,v,D="imperative",W=null){super(Ne,v),this.type=0,this.navigationTrigger=D,this.restoredState=W}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _s extends us{constructor(Ne,v,D){super(Ne,v),this.urlAfterRedirects=D,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ei extends us{constructor(Ne,v,D,W){super(Ne,v),this.reason=D,this.code=W,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fs extends us{constructor(Ne,v,D,W){super(Ne,v),this.reason=D,this.code=W,this.type=16}}class po extends us{constructor(Ne,v,D,W){super(Ne,v),this.error=D,this.target=W,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class As extends us{constructor(Ne,v,D,W){super(Ne,v),this.urlAfterRedirects=D,this.state=W,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends us{constructor(Ne,v,D,W){super(Ne,v),this.urlAfterRedirects=D,this.state=W,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ai extends us{constructor(Ne,v,D,W,L){super(Ne,v),this.urlAfterRedirects=D,this.state=W,this.shouldActivate=L,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Le extends us{constructor(Ne,v,D,W){super(Ne,v),this.urlAfterRedirects=D,this.state=W,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pt extends us{constructor(Ne,v,D,W){super(Ne,v),this.urlAfterRedirects=D,this.state=W,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Be{constructor(Ne){this.route=Ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jt{constructor(Ne){this.route=Ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xe{constructor(Ne){this.snapshot=Ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ke{constructor(Ne){this.snapshot=Ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qe{constructor(Ne){this.snapshot=Ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Et{constructor(Ne){this.snapshot=Ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dn{constructor(Ne,v,D){this.routerEvent=Ne,this.position=v,this.anchor=D,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let qi=(()=>{class _e{createUrlTree(v,D,W,L,Me,tn){return pt(v||D.root,W,L,Me,tn)}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Mo=(()=>{class _e{}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:function(Ne){return qi.\u0275fac(Ne)},providedIn:"root"}),_e})();class bo{constructor(Ne){this._root=Ne}get root(){return this._root.value}parent(Ne){const v=this.pathFromRoot(Ne);return v.length>1?v[v.length-2]:null}children(Ne){const v=Ps(Ne,this._root);return v?v.children.map(D=>D.value):[]}firstChild(Ne){const v=Ps(Ne,this._root);return v&&v.children.length>0?v.children[0].value:null}siblings(Ne){const v=Wt(Ne,this._root);return v.length<2?[]:v[v.length-2].children.map(W=>W.value).filter(W=>W!==Ne)}pathFromRoot(Ne){return Wt(Ne,this._root).map(v=>v.value)}}function Ps(_e,Ne){if(_e===Ne.value)return Ne;for(const v of Ne.children){const D=Ps(_e,v);if(D)return D}return null}function Wt(_e,Ne){if(_e===Ne.value)return[Ne];for(const v of Ne.children){const D=Wt(_e,v);if(D.length)return D.unshift(Ne),D}return[]}class Bn{constructor(Ne,v){this.value=Ne,this.children=v}toString(){return`TreeNode(${this.value})`}}function ti(_e){const Ne={};return _e&&_e.children.forEach(v=>Ne[v.value.outlet]=v),Ne}class Ui extends bo{constructor(Ne,v){super(Ne),this.snapshot=v,Fi(this,Ne)}toString(){return this.snapshot.toString()}}function Pe(_e,Ne){const v=function gn(_e,Ne){const Me=new Hn([],{},{},"",{},xt,Ne,null,_e.root,-1,{});return new Mi("",new Bn(Me,[]))}(_e,Ne),D=new A.X([new Vn("",{})]),W=new A.X({}),L=new A.X({}),Me=new A.X({}),tn=new A.X(""),oi=new z(D,W,Me,tn,L,xt,Ne,v.root);return oi.snapshot=v.root,new Ui(new Bn(oi,[]),v)}class z{constructor(Ne,v,D,W,L,Me,tn,oi){this.url=Ne,this.params=v,this.queryParams=D,this.fragment=W,this.data=L,this.outlet=Me,this.component=tn,this.title=this.data?.pipe((0,Se.U)(Vi=>Vi[Ot]))??(0,T.of)(void 0),this._futureSnapshot=oi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Se.U)(Ne=>$t(Ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Se.U)(Ne=>$t(Ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ce(_e,Ne="emptyOnly"){const v=_e.pathFromRoot;let D=0;if("always"!==Ne)for(D=v.length-1;D>=1;){const W=v[D],L=v[D-1];if(W.routeConfig&&""===W.routeConfig.path)D--;else{if(L.component)break;D--}}return function on(_e){return _e.reduce((Ne,v)=>({params:{...Ne.params,...v.params},data:{...Ne.data,...v.data},resolve:{...v.data,...Ne.resolve,...v.routeConfig?.data,...v._resolvedData}}),{params:{},data:{},resolve:{}})}(v.slice(D))}class Hn{get title(){return this.data?.[Ot]}constructor(Ne,v,D,W,L,Me,tn,oi,Vi,hs,Eo){this.url=Ne,this.params=v,this.queryParams=D,this.fragment=W,this.data=L,this.outlet=Me,this.component=tn,this.routeConfig=oi,this._urlSegment=Vi,this._lastPathIndex=hs,this._resolve=Eo}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=$t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mi extends bo{constructor(Ne,v){super(v),this.url=Ne,Fi(this,v)}toString(){return os(this._root)}}function Fi(_e,Ne){Ne.value._routerState=_e,Ne.children.forEach(v=>Fi(_e,v))}function os(_e){const Ne=_e.children.length>0?` { ${_e.children.map(os).join(", ")} } `:"";return`${_e.value}${Ne}`}function dn(_e){if(_e.snapshot){const Ne=_e.snapshot,v=_e._futureSnapshot;_e.snapshot=v,yt(Ne.queryParams,v.queryParams)||_e.queryParams.next(v.queryParams),Ne.fragment!==v.fragment&&_e.fragment.next(v.fragment),yt(Ne.params,v.params)||_e.params.next(v.params),function We(_e,Ne){if(_e.length!==Ne.length)return!1;for(let v=0;v<_e.length;++v)if(!yt(_e[v],Ne[v]))return!1;return!0}(Ne.url,v.url)||_e.url.next(v.url),yt(Ne.data,v.data)||_e.data.next(v.data)}else _e.snapshot=_e._futureSnapshot,_e.data.next(_e._futureSnapshot.data)}function wi(_e,Ne){const v=yt(_e.params,Ne.params)&&function ot(_e,Ne){return en(_e,Ne)&&_e.every((v,D)=>yt(v.parameters,Ne[D].parameters))}(_e.url,Ne.url);return v&&!(!_e.parent!=!Ne.parent)&&(!_e.parent||wi(_e.parent,Ne.parent))}function _i(_e,Ne,v){if(v&&_e.shouldReuseRoute(Ne.value,v.value.snapshot)){const D=v.value;D._futureSnapshot=Ne.value;const W=function Wi(_e,Ne,v){return Ne.children.map(D=>{for(const W of v.children)if(_e.shouldReuseRoute(D.value,W.value.snapshot))return _i(_e,D,W);return _i(_e,D)})}(_e,Ne,v);return new Bn(D,W)}{if(_e.shouldAttach(Ne.value)){const L=_e.retrieve(Ne.value);if(null!==L){const Me=L.route;return Me.value._futureSnapshot=Ne.value,Me.children=Ne.children.map(tn=>_i(_e,tn)),Me}}const D=function Ks(_e){return new z(new A.X(_e.url),new A.X(_e.params),new A.X(_e.queryParams),new A.X(_e.fragment),new A.X(_e.data),_e.outlet,_e.component,_e)}(Ne.value),W=Ne.children.map(L=>_i(_e,L));return new Bn(D,W)}}const So="ngNavigationCancelingError";function wo(_e,Ne){const{redirectTo:v,navigationBehaviorOptions:D}=jn(Ne)?{redirectTo:Ne,navigationBehaviorOptions:void 0}:Ne,W=da(!1,0,Ne);return W.url=v,W.navigationBehaviorOptions=D,W}function da(_e,Ne,v){const D=new Error("NavigationCancelingError: "+(_e||""));return D[So]=!0,D.cancellationCode=Ne,v&&(D.url=v),D}function ia(_e){return jr(_e)&&jn(_e.url)}function jr(_e){return _e&&_e[So]}class Rr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Qs,this.attachRef=null}}let Qs=(()=>{class _e{constructor(){this.contexts=new Map}onChildOutletCreated(v,D){const W=this.getOrCreateContext(v);W.outlet=D,this.contexts.set(v,W)}onChildOutletDestroyed(v){const D=this.getContext(v);D&&(D.outlet=null,D.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let D=this.getContext(v);return D||(D=new Rr,this.contexts.set(v,D)),D}getContext(v){return this.contexts.get(v)||null}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Hs=!1;let Pr=(()=>{class _e{constructor(){this.activated=null,this._activatedRoute=null,this.name=xt,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Qs),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb)}ngOnChanges(v){if(v.name){const{firstChange:D,previousValue:W}=v.name;if(D)return;this.isTrackedInParentContexts(W)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(W)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(v){return this.parentContexts.getContext(v)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const v=this.parentContexts.getContext(this.name);v?.route&&(v.attachRef?this.attach(v.attachRef,v.route):this.activateWith(v.route,v.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Hs);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Hs);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Hs);this.location.detach();const v=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(v.instance),v}attach(v,D){this.activated=v,this._activatedRoute=D,this.location.insert(v.hostView),this.attachEvents.emit(v.instance)}deactivate(){if(this.activated){const v=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(v)}}activateWith(v,D){if(this.isActivated)throw new e.vHH(4013,Hs);this._activatedRoute=v;const W=this.location,Me=v.snapshot.component,tn=this.parentContexts.getOrCreateContext(this.name).children,oi=new kr(v,tn,W.injector);if(D&&function vs(_e){return!!_e.resolveComponentFactory}(D)){const Vi=D.resolveComponentFactory(Me);this.activated=W.createComponent(Vi,W.length,oi)}else this.activated=W.createComponent(Me,{index:W.length,injector:oi,environmentInjector:D??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275dir=e.lG2({type:_e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]}),_e})();class kr{constructor(Ne,v,D){this.route=Ne,this.childContexts=v,this.parent=D}get(Ne,v){return Ne===z?this.route:Ne===Qs?this.childContexts:this.parent.get(Ne,v)}}let ko=(()=>{class _e{}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(v,D){1&v&&e._UZ(0,"router-outlet")},dependencies:[Pr],encapsulation:2}),_e})();function Nr(_e,Ne){return _e.providers&&!_e._injector&&(_e._injector=(0,e.MMx)(_e.providers,Ne,`Route: ${_e.path}`)),_e._injector??Ne}function Fr(_e){const Ne=_e.children&&_e.children.map(Fr),v=Ne?{..._e,children:Ne}:{..._e};return!v.component&&!v.loadComponent&&(Ne||v.loadChildren)&&v.outlet&&v.outlet!==xt&&(v.component=ko),v}function Ko(_e){return _e.outlet||xt}function ms(_e,Ne){const v=_e.filter(D=>Ko(D)===Ne);return v.push(..._e.filter(D=>Ko(D)!==Ne)),v}function Ho(_e){if(!_e)return null;if(_e.routeConfig?._injector)return _e.routeConfig._injector;for(let Ne=_e.parent;Ne;Ne=Ne.parent){const v=Ne.routeConfig;if(v?._loadedInjector)return v._loadedInjector;if(v?._injector)return v._injector}return null}class oa{constructor(Ne,v,D,W){this.routeReuseStrategy=Ne,this.futureState=v,this.currState=D,this.forwardEvent=W}activate(Ne){const v=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(v,D,Ne),dn(this.futureState.root),this.activateChildRoutes(v,D,Ne)}deactivateChildRoutes(Ne,v,D){const W=ti(v);Ne.children.forEach(L=>{const Me=L.value.outlet;this.deactivateRoutes(L,W[Me],D),delete W[Me]}),Nn(W,(L,Me)=>{this.deactivateRouteAndItsChildren(L,D)})}deactivateRoutes(Ne,v,D){const W=Ne.value,L=v?v.value:null;if(W===L)if(W.component){const Me=D.getContext(W.outlet);Me&&this.deactivateChildRoutes(Ne,v,Me.children)}else this.deactivateChildRoutes(Ne,v,D);else L&&this.deactivateRouteAndItsChildren(v,D)}deactivateRouteAndItsChildren(Ne,v){Ne.value.component&&this.routeReuseStrategy.shouldDetach(Ne.value.snapshot)?this.detachAndStoreRouteSubtree(Ne,v):this.deactivateRouteAndOutlet(Ne,v)}detachAndStoreRouteSubtree(Ne,v){const D=v.getContext(Ne.value.outlet),W=D&&Ne.value.component?D.children:v,L=ti(Ne);for(const Me of Object.keys(L))this.deactivateRouteAndItsChildren(L[Me],W);if(D&&D.outlet){const Me=D.outlet.detach(),tn=D.children.onOutletDeactivated();this.routeReuseStrategy.store(Ne.value.snapshot,{componentRef:Me,route:Ne,contexts:tn})}}deactivateRouteAndOutlet(Ne,v){const D=v.getContext(Ne.value.outlet),W=D&&Ne.value.component?D.children:v,L=ti(Ne);for(const Me of Object.keys(L))this.deactivateRouteAndItsChildren(L[Me],W);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.resolver=null,D.route=null)}activateChildRoutes(Ne,v,D){const W=ti(v);Ne.children.forEach(L=>{this.activateRoutes(L,W[L.value.outlet],D),this.forwardEvent(new Et(L.value.snapshot))}),Ne.children.length&&this.forwardEvent(new Ke(Ne.value.snapshot))}activateRoutes(Ne,v,D){const W=Ne.value,L=v?v.value:null;if(dn(W),W===L)if(W.component){const Me=D.getOrCreateContext(W.outlet);this.activateChildRoutes(Ne,v,Me.children)}else this.activateChildRoutes(Ne,v,D);else if(W.component){const Me=D.getOrCreateContext(W.outlet);if(this.routeReuseStrategy.shouldAttach(W.snapshot)){const tn=this.routeReuseStrategy.retrieve(W.snapshot);this.routeReuseStrategy.store(W.snapshot,null),Me.children.onOutletReAttached(tn.contexts),Me.attachRef=tn.componentRef,Me.route=tn.route.value,Me.outlet&&Me.outlet.attach(tn.componentRef,tn.route.value),dn(tn.route.value),this.activateChildRoutes(Ne,null,Me.children)}else{const tn=Ho(W.snapshot),oi=tn?.get(e._Vd)??null;Me.attachRef=null,Me.route=W,Me.resolver=oi,Me.injector=tn,Me.outlet&&Me.outlet.activateWith(W,Me.injector),this.activateChildRoutes(Ne,null,Me.children)}}else this.activateChildRoutes(Ne,null,D)}}class Ka{constructor(Ne){this.path=Ne,this.route=this.path[this.path.length-1]}}class Gr{constructor(Ne,v){this.component=Ne,this.route=v}}function Xr(_e,Ne,v){const D=_e._root;return Cr(D,Ne?Ne._root:null,v,[D.value])}function No(_e,Ne){const v=Symbol(),D=Ne.get(_e,v);return D===v?"function"!=typeof _e||(0,e.Z0I)(_e)?Ne.get(_e):_e:D}function Cr(_e,Ne,v,D,W={canDeactivateChecks:[],canActivateChecks:[]}){const L=ti(Ne);return _e.children.forEach(Me=>{(function Er(_e,Ne,v,D,W={canDeactivateChecks:[],canActivateChecks:[]}){const L=_e.value,Me=Ne?Ne.value:null,tn=v?v.getContext(_e.value.outlet):null;if(Me&&L.routeConfig===Me.routeConfig){const oi=function zr(_e,Ne,v){if("function"==typeof v)return v(_e,Ne);switch(v){case"pathParamsChange":return!en(_e.url,Ne.url);case"pathParamsOrQueryParamsChange":return!en(_e.url,Ne.url)||!yt(_e.queryParams,Ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wi(_e,Ne)||!yt(_e.queryParams,Ne.queryParams);default:return!wi(_e,Ne)}}(Me,L,L.routeConfig.runGuardsAndResolvers);oi?W.canActivateChecks.push(new Ka(D)):(L.data=Me.data,L._resolvedData=Me._resolvedData),Cr(_e,Ne,L.component?tn?tn.children:null:v,D,W),oi&&tn&&tn.outlet&&tn.outlet.isActivated&&W.canDeactivateChecks.push(new Gr(tn.outlet.component,Me))}else Me&&or(Ne,tn,W),W.canActivateChecks.push(new Ka(D)),Cr(_e,null,L.component?tn?tn.children:null:v,D,W)})(Me,L[Me.value.outlet],v,D.concat([Me.value]),W),delete L[Me.value.outlet]}),Nn(L,(Me,tn)=>or(Me,v.getContext(tn),W)),W}function or(_e,Ne,v){const D=ti(_e),W=_e.value;Nn(D,(L,Me)=>{or(L,W.component?Ne?Ne.children.getContext(Me):null:Ne,v)}),v.canDeactivateChecks.push(new Gr(W.component&&Ne&&Ne.outlet&&Ne.outlet.isActivated?Ne.outlet.component:null,W))}function rr(_e){return"function"==typeof _e}function co(_e){return _e instanceof G.K||"EmptyError"===_e?.name}const Hi=Symbol("INITIAL_VALUE");function to(){return(0,te.w)(_e=>(0,F.a)(_e.map(Ne=>Ne.pipe((0,oe.q)(1),(0,q.O)(Hi)))).pipe((0,Se.U)(Ne=>{for(const v of Ne)if(!0!==v){if(v===Hi)return Hi;if(!1===v||v instanceof Ni)return v}return!0}),(0,we.h)(Ne=>Ne!==Hi),(0,oe.q)(1)))}function Xt(_e){return(0,P.z)((0,Ee.b)(Ne=>{if(jn(Ne))throw wo(0,Ne)}),(0,Se.U)(Ne=>!0===Ne))}const Qn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ci(_e,Ne,v,D,W){const L=$i(_e,Ne,v);return L.matched?function yn(_e,Ne,v,D){const W=Ne.canMatch;if(!W||0===W.length)return(0,T.of)(!0);const L=W.map(Me=>{const tn=No(Me,_e);return an(function Tn(_e){return _e&&rr(_e.canMatch)}(tn)?tn.canMatch(Ne,v):_e.runInContext(()=>tn(Ne,v)))});return(0,T.of)(L).pipe(to(),Xt())}(D=Nr(Ne,D),Ne,v).pipe((0,Se.U)(Me=>!0===Me?L:{...Qn})):(0,T.of)(L)}function $i(_e,Ne,v){if(""===Ne.path)return"full"===Ne.pathMatch&&(_e.hasChildren()||v.length>0)?{...Qn}:{matched:!0,consumedSegments:[],remainingSegments:v,parameters:{},positionalParamSegments:{}};const W=(Ne.matcher||rt)(v,_e,Ne);if(!W)return{...Qn};const L={};Nn(W.posParams,(tn,oi)=>{L[oi]=tn.path});const Me=W.consumed.length>0?{...L,...W.consumed[W.consumed.length-1].parameters}:L;return{matched:!0,consumedSegments:W.consumed,remainingSegments:v.slice(W.consumed.length),parameters:Me,positionalParamSegments:W.posParams??{}}}function Us(_e,Ne,v,D){if(v.length>0&&function Js(_e,Ne,v){return v.some(D=>mr(_e,Ne,D)&&Ko(D)!==xt)}(_e,v,D)){const L=new pn(Ne,function Ns(_e,Ne,v,D){const W={};W[xt]=D,D._sourceSegment=_e,D._segmentIndexShift=Ne.length;for(const L of v)if(""===L.path&&Ko(L)!==xt){const Me=new pn([],{});Me._sourceSegment=_e,Me._segmentIndexShift=Ne.length,W[Ko(L)]=Me}return W}(_e,Ne,D,new pn(v,_e.children)));return L._sourceSegment=_e,L._segmentIndexShift=Ne.length,{segmentGroup:L,slicedSegments:[]}}if(0===v.length&&function $s(_e,Ne,v){return v.some(D=>mr(_e,Ne,D))}(_e,v,D)){const L=new pn(_e.segments,function Is(_e,Ne,v,D,W){const L={};for(const Me of D)if(mr(_e,v,Me)&&!W[Ko(Me)]){const tn=new pn([],{});tn._sourceSegment=_e,tn._segmentIndexShift=Ne.length,L[Ko(Me)]=tn}return{...W,...L}}(_e,Ne,v,D,_e.children));return L._sourceSegment=_e,L._segmentIndexShift=Ne.length,{segmentGroup:L,slicedSegments:v}}const W=new pn(_e.segments,_e.children);return W._sourceSegment=_e,W._segmentIndexShift=Ne.length,{segmentGroup:W,slicedSegments:v}}function mr(_e,Ne,v){return(!(_e.hasChildren()||Ne.length>0)||"full"!==v.pathMatch)&&""===v.path}function Lo(_e,Ne,v,D){return!!(Ko(_e)===D||D!==xt&&mr(Ne,v,_e))&&("**"===_e.path||$i(Ne,_e,v).matched)}function yr(_e,Ne,v){return 0===Ne.length&&!_e.children[v]}const Yr=!1;class Vo{constructor(Ne){this.segmentGroup=Ne||null}}class Wr{constructor(Ne){this.urlTree=Ne}}function Oo(_e){return(0,y._)(new Vo(_e))}function Ta(_e){return(0,y._)(new Wr(_e))}class Il{constructor(Ne,v,D,W,L){this.injector=Ne,this.configLoader=v,this.urlSerializer=D,this.urlTree=W,this.config=L,this.allowRedirects=!0}apply(){const Ne=Us(this.urlTree.root,[],[],this.config).segmentGroup,v=new pn(Ne.segments,Ne.children);return this.expandSegmentGroup(this.injector,this.config,v,xt).pipe((0,Se.U)(L=>this.createUrlTree(kt(L),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ke.K)(L=>{if(L instanceof Wr)return this.allowRedirects=!1,this.match(L.urlTree);throw L instanceof Vo?this.noMatchError(L):L}))}match(Ne){return this.expandSegmentGroup(this.injector,this.config,Ne.root,xt).pipe((0,Se.U)(W=>this.createUrlTree(kt(W),Ne.queryParams,Ne.fragment))).pipe((0,ke.K)(W=>{throw W instanceof Vo?this.noMatchError(W):W}))}noMatchError(Ne){return new e.vHH(4002,Yr)}createUrlTree(Ne,v,D){const W=Lt(Ne);return new Ni(W,v,D)}expandSegmentGroup(Ne,v,D,W){return 0===D.segments.length&&D.hasChildren()?this.expandChildren(Ne,v,D).pipe((0,Se.U)(L=>new pn([],L))):this.expandSegment(Ne,D,v,D.segments,W,!0)}expandChildren(Ne,v,D){const W=[];for(const L of Object.keys(D.children))"primary"===L?W.unshift(L):W.push(L);return(0,o.D)(W).pipe((0,pe.b)(L=>{const Me=D.children[L],tn=ms(v,L);return this.expandSegmentGroup(Ne,tn,Me,L).pipe((0,Se.U)(oi=>({segment:oi,outlet:L})))}),(0,Ye.R)((L,Me)=>(L[Me.outlet]=Me.segment,L),{}),Je())}expandSegment(Ne,v,D,W,L,Me){return(0,o.D)(D).pipe((0,pe.b)(tn=>this.expandSegmentAgainstRoute(Ne,v,D,tn,W,L,Me).pipe((0,ke.K)(Vi=>{if(Vi instanceof Vo)return(0,T.of)(null);throw Vi}))),(0,Q.P)(tn=>!!tn),(0,ke.K)((tn,oi)=>{if(co(tn))return yr(v,W,L)?(0,T.of)(new pn([],{})):Oo(v);throw tn}))}expandSegmentAgainstRoute(Ne,v,D,W,L,Me,tn){return Lo(W,v,L,Me)?void 0===W.redirectTo?this.matchSegmentAgainstRoute(Ne,v,W,L,Me):tn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Ne,v,D,W,L,Me):Oo(v):Oo(v)}expandSegmentAgainstRouteUsingRedirect(Ne,v,D,W,L,Me){return"**"===W.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Ne,D,W,Me):this.expandRegularSegmentAgainstRouteUsingRedirect(Ne,v,D,W,L,Me)}expandWildCardWithParamsAgainstRouteUsingRedirect(Ne,v,D,W){const L=this.applyRedirectCommands([],D.redirectTo,{});return D.redirectTo.startsWith("/")?Ta(L):this.lineralizeSegments(D,L).pipe((0,ae.z)(Me=>{const tn=new pn(Me,{});return this.expandSegment(Ne,tn,v,Me,W,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Ne,v,D,W,L,Me){const{matched:tn,consumedSegments:oi,remainingSegments:Vi,positionalParamSegments:hs}=$i(v,W,L);if(!tn)return Oo(v);const Eo=this.applyRedirectCommands(oi,W.redirectTo,hs);return W.redirectTo.startsWith("/")?Ta(Eo):this.lineralizeSegments(W,Eo).pipe((0,ae.z)(jo=>this.expandSegment(Ne,v,D,jo.concat(Vi),Me,!1)))}matchSegmentAgainstRoute(Ne,v,D,W,L){return"**"===D.path?(Ne=Nr(D,Ne),D.loadChildren?(D._loadedRoutes?(0,T.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):this.configLoader.loadChildren(Ne,D)).pipe((0,Se.U)(tn=>(D._loadedRoutes=tn.routes,D._loadedInjector=tn.injector,new pn(W,{})))):(0,T.of)(new pn(W,{}))):Ci(v,D,W,Ne).pipe((0,te.w)(({matched:Me,consumedSegments:tn,remainingSegments:oi})=>Me?this.getChildConfig(Ne=D._injector??Ne,D,W).pipe((0,ae.z)(hs=>{const Eo=hs.injector??Ne,jo=hs.routes,{segmentGroup:gr,slicedSegments:Hr}=Us(v,tn,oi,jo),Yo=new pn(gr.segments,gr.children);if(0===Hr.length&&Yo.hasChildren())return this.expandChildren(Eo,jo,Yo).pipe((0,Se.U)(ll=>new pn(tn,ll)));if(0===jo.length&&0===Hr.length)return(0,T.of)(new pn(tn,{}));const wa=Ko(D)===L;return this.expandSegment(Eo,Yo,jo,Hr,wa?xt:L,!0).pipe((0,Se.U)(Al=>new pn(tn.concat(Al.segments),Al.children)))})):Oo(v)))}getChildConfig(Ne,v,D){return v.children?(0,T.of)({routes:v.children,injector:Ne}):v.loadChildren?void 0!==v._loadedRoutes?(0,T.of)({routes:v._loadedRoutes,injector:v._loadedInjector}):function Mt(_e,Ne,v,D){const W=Ne.canLoad;if(void 0===W||0===W.length)return(0,T.of)(!0);const L=W.map(Me=>{const tn=No(Me,_e);return an(function nr(_e){return _e&&rr(_e.canLoad)}(tn)?tn.canLoad(Ne,v):_e.runInContext(()=>tn(Ne,v)))});return(0,T.of)(L).pipe(to(),Xt())}(Ne,v,D).pipe((0,ae.z)(W=>W?this.configLoader.loadChildren(Ne,v).pipe((0,Ee.b)(L=>{v._loadedRoutes=L.routes,v._loadedInjector=L.injector})):function la(_e){return(0,y._)(da(Yr,3))}())):(0,T.of)({routes:[],injector:Ne})}lineralizeSegments(Ne,v){let D=[],W=v.root;for(;;){if(D=D.concat(W.segments),0===W.numberOfChildren)return(0,T.of)(D);if(W.numberOfChildren>1||!W.children[xt])return Ne.redirectTo,(0,y._)(new e.vHH(4e3,Yr));W=W.children[xt]}}applyRedirectCommands(Ne,v,D){return this.applyRedirectCreateUrlTree(v,this.urlSerializer.parse(v),Ne,D)}applyRedirectCreateUrlTree(Ne,v,D,W){const L=this.createSegmentGroup(Ne,v.root,D,W);return new Ni(L,this.createQueryParams(v.queryParams,this.urlTree.queryParams),v.fragment)}createQueryParams(Ne,v){const D={};return Nn(Ne,(W,L)=>{if("string"==typeof W&&W.startsWith(":")){const tn=W.substring(1);D[L]=v[tn]}else D[L]=W}),D}createSegmentGroup(Ne,v,D,W){const L=this.createSegments(Ne,v.segments,D,W);let Me={};return Nn(v.children,(tn,oi)=>{Me[oi]=this.createSegmentGroup(Ne,tn,D,W)}),new pn(L,Me)}createSegments(Ne,v,D,W){return v.map(L=>L.path.startsWith(":")?this.findPosParam(Ne,L,W):this.findOrReturn(L,D))}findPosParam(Ne,v,D){const W=D[v.path.substring(1)];if(!W)throw new e.vHH(4001,Yr);return W}findOrReturn(Ne,v){let D=0;for(const W of v){if(W.path===Ne.path)return v.splice(D),W;D++}return Ne}}class Ur{}class ir{constructor(Ne,v,D,W,L,Me,tn){this.injector=Ne,this.rootComponentType=v,this.config=D,this.urlTree=W,this.url=L,this.paramsInheritanceStrategy=Me,this.urlSerializer=tn}recognize(){const Ne=Us(this.urlTree.root,[],[],this.config.filter(v=>void 0===v.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Ne,xt).pipe((0,Se.U)(v=>{if(null===v)return null;const D=new Hn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},xt,this.rootComponentType,null,this.urlTree.root,-1,{}),W=new Bn(D,v),L=new Mi(this.url,W);return this.inheritParamsAndData(L._root),L}))}inheritParamsAndData(Ne){const v=Ne.value,D=Ce(v,this.paramsInheritanceStrategy);v.params=Object.freeze(D.params),v.data=Object.freeze(D.data),Ne.children.forEach(W=>this.inheritParamsAndData(W))}processSegmentGroup(Ne,v,D,W){return 0===D.segments.length&&D.hasChildren()?this.processChildren(Ne,v,D):this.processSegment(Ne,v,D,D.segments,W)}processChildren(Ne,v,D){return(0,o.D)(Object.keys(D.children)).pipe((0,pe.b)(W=>{const L=D.children[W],Me=ms(v,W);return this.processSegmentGroup(Ne,Me,L,W)}),(0,Ye.R)((W,L)=>W&&L?(W.push(...L),W):null),(0,Ft.o)(W=>null!==W),(0,vt.d)(null),Je(),(0,Se.U)(W=>{if(null===W)return null;const L=Ml(W);return function Tl(_e){_e.sort((Ne,v)=>Ne.value.outlet===xt?-1:v.value.outlet===xt?1:Ne.value.outlet.localeCompare(v.value.outlet))}(L),L}))}processSegment(Ne,v,D,W,L){return(0,o.D)(v).pipe((0,pe.b)(Me=>this.processSegmentAgainstRoute(Me._injector??Ne,Me,D,W,L)),(0,Q.P)(Me=>!!Me),(0,ke.K)(Me=>{if(co(Me))return yr(D,W,L)?(0,T.of)([]):(0,T.of)(null);throw Me}))}processSegmentAgainstRoute(Ne,v,D,W,L){if(v.redirectTo||!Lo(v,D,W,L))return(0,T.of)(null);let Me;if("**"===v.path){const tn=W.length>0?Tt(W).parameters:{},oi=Ir(D)+W.length,Vi=new Hn(W,tn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qt(v),Ko(v),v.component??v._loadedComponent??null,v,Ma(D),oi,V(v));Me=(0,T.of)({snapshot:Vi,consumedSegments:[],remainingSegments:[]})}else Me=Ci(D,v,W,Ne).pipe((0,Se.U)(({matched:tn,consumedSegments:oi,remainingSegments:Vi,parameters:hs})=>{if(!tn)return null;const Eo=Ir(D)+oi.length;return{snapshot:new Hn(oi,hs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qt(v),Ko(v),v.component??v._loadedComponent??null,v,Ma(D),Eo,V(v)),consumedSegments:oi,remainingSegments:Vi}}));return Me.pipe((0,te.w)(tn=>{if(null===tn)return(0,T.of)(null);const{snapshot:oi,consumedSegments:Vi,remainingSegments:hs}=tn;Ne=v._injector??Ne;const Eo=v._loadedInjector??Ne,jo=function jl(_e){return _e.children?_e.children:_e.loadChildren?_e._loadedRoutes:[]}(v),{segmentGroup:gr,slicedSegments:Hr}=Us(D,Vi,hs,jo.filter(wa=>void 0===wa.redirectTo));if(0===Hr.length&&gr.hasChildren())return this.processChildren(Eo,jo,gr).pipe((0,Se.U)(wa=>null===wa?null:[new Bn(oi,wa)]));if(0===jo.length&&0===Hr.length)return(0,T.of)([new Bn(oi,[])]);const Yo=Ko(v)===L;return this.processSegment(Eo,jo,gr,Hr,Yo?xt:L).pipe((0,Se.U)(wa=>null===wa?null:[new Bn(oi,wa)]))}))}}function qa(_e){const Ne=_e.value.routeConfig;return Ne&&""===Ne.path&&void 0===Ne.redirectTo}function Ml(_e){const Ne=[],v=new Set;for(const D of _e){if(!qa(D)){Ne.push(D);continue}const W=Ne.find(L=>D.value.routeConfig===L.value.routeConfig);void 0!==W?(W.children.push(...D.children),v.add(W)):Ne.push(D)}for(const D of v){const W=Ml(D.children);Ne.push(new Bn(D.value,W))}return Ne.filter(D=>!v.has(D))}function Ma(_e){let Ne=_e;for(;Ne._sourceSegment;)Ne=Ne._sourceSegment;return Ne}function Ir(_e){let Ne=_e,v=Ne._segmentIndexShift??0;for(;Ne._sourceSegment;)Ne=Ne._sourceSegment,v+=Ne._segmentIndexShift??0;return v-1}function qt(_e){return _e.data||{}}function V(_e){return _e.resolve||{}}function $n(_e){return"string"==typeof _e.title||null===_e.title}function Ii(_e){return(0,te.w)(Ne=>{const v=_e(Ne);return v?(0,o.D)(v).pipe((0,Se.U)(()=>Ne)):(0,T.of)(Ne)})}const rs=new e.OlP("ROUTES");let Ki=(()=>{class _e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(v){if(this.componentLoaders.get(v))return this.componentLoaders.get(v);if(v._loadedComponent)return(0,T.of)(v._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(v);const D=an(v.loadComponent()).pipe((0,Se.U)(go),(0,Ee.b)(L=>{this.onLoadEndListener&&this.onLoadEndListener(v),v._loadedComponent=L}),(0,Ze.x)(()=>{this.componentLoaders.delete(v)})),W=new ee.c(D,()=>new se.x).pipe((0,$e.x)());return this.componentLoaders.set(v,W),W}loadChildren(v,D){if(this.childrenLoaders.get(D))return this.childrenLoaders.get(D);if(D._loadedRoutes)return(0,T.of)({routes:D._loadedRoutes,injector:D._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(D);const L=this.loadModuleFactoryOrRoutes(D.loadChildren).pipe((0,Se.U)(tn=>{this.onLoadEndListener&&this.onLoadEndListener(D);let oi,Vi,hs=!1;Array.isArray(tn)?Vi=tn:(oi=tn.create(v).injector,Vi=It(oi.get(rs,[],e.XFs.Self|e.XFs.Optional)));return{routes:Vi.map(Fr),injector:oi}}),(0,Ze.x)(()=>{this.childrenLoaders.delete(D)})),Me=new ee.c(L,()=>new se.x).pipe((0,$e.x)());return this.childrenLoaders.set(D,Me),Me}loadModuleFactoryOrRoutes(v){return an(v()).pipe((0,Se.U)(go),(0,ae.z)(D=>D instanceof e.YKP||Array.isArray(D)?(0,T.of)(D):(0,o.D)(this.compiler.compileModuleAsync(D))))}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function go(_e){return function Ss(_e){return _e&&"object"==typeof _e&&"default"in _e}(_e)?_e.default:_e}let Ms=(()=>{class _e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new se.x,this.configLoader=(0,e.f3M)(Ki),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(In),this.rootContexts=(0,e.f3M)(Qs),this.navigationId=0,this.afterPreactivation=()=>(0,T.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=W=>this.events.next(new Jt(W)),this.configLoader.onLoadStartListener=W=>this.events.next(new Be(W))}complete(){this.transitions?.complete()}handleNavigationRequest(v){const D=++this.navigationId;this.transitions?.next({...this.transitions.value,...v,id:D})}setupNavigations(v){return this.transitions=new A.X({id:0,targetPageId:0,currentUrlTree:v.currentUrlTree,currentRawUrl:v.currentUrlTree,extractedUrl:v.urlHandlingStrategy.extract(v.currentUrlTree),urlAfterRedirects:v.urlHandlingStrategy.extract(v.currentUrlTree),rawUrl:v.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Xi,restoredState:null,currentSnapshot:v.routerState.snapshot,targetSnapshot:null,currentRouterState:v.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,we.h)(D=>0!==D.id),(0,Se.U)(D=>({...D,extractedUrl:v.urlHandlingStrategy.extract(D.rawUrl)})),(0,te.w)(D=>{let W=!1,L=!1;return(0,T.of)(D).pipe((0,Ee.b)(Me=>{this.currentNavigation={id:Me.id,initialUrl:Me.rawUrl,extractedUrl:Me.extractedUrl,trigger:Me.source,extras:Me.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,te.w)(Me=>{const tn=v.browserUrlTree.toString(),oi=!v.navigated||Me.extractedUrl.toString()!==tn||tn!==v.currentUrlTree.toString();if(!oi&&"reload"!==(Me.extras.onSameUrlNavigation??v.onSameUrlNavigation)){const hs="";return this.events.next(new Fs(Me.id,v.serializeUrl(D.rawUrl),hs,0)),v.rawUrlTree=Me.rawUrl,Me.resolve(null),Y.E}if(v.urlHandlingStrategy.shouldProcessUrl(Me.rawUrl))return ao(Me.source)&&(v.browserUrlTree=Me.extractedUrl),(0,T.of)(Me).pipe((0,te.w)(hs=>{const Eo=this.transitions?.getValue();return this.events.next(new ps(hs.id,this.urlSerializer.serialize(hs.extractedUrl),hs.source,hs.restoredState)),Eo!==this.transitions?.getValue()?Y.E:Promise.resolve(hs)}),function br(_e,Ne,v,D){return(0,te.w)(W=>function Br(_e,Ne,v,D,W){return new Il(_e,Ne,v,D,W).apply()}(_e,Ne,v,W.extractedUrl,D).pipe((0,Se.U)(L=>({...W,urlAfterRedirects:L}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,v.config),(0,Ee.b)(hs=>{this.currentNavigation={...this.currentNavigation,finalUrl:hs.urlAfterRedirects},D.urlAfterRedirects=hs.urlAfterRedirects}),function re(_e,Ne,v,D,W){return(0,ae.z)(L=>function ha(_e,Ne,v,D,W,L,Me="emptyOnly"){return new ir(_e,Ne,v,D,W,Me,L).recognize().pipe((0,te.w)(tn=>null===tn?function er(_e){return new j.y(Ne=>Ne.error(_e))}(new Ur):(0,T.of)(tn)))}(_e,Ne,v,L.urlAfterRedirects,D.serialize(L.urlAfterRedirects),D,W).pipe((0,Se.U)(Me=>({...L,targetSnapshot:Me}))))}(this.environmentInjector,this.rootComponentType,v.config,this.urlSerializer,v.paramsInheritanceStrategy),(0,Ee.b)(hs=>{if(D.targetSnapshot=hs.targetSnapshot,"eager"===v.urlUpdateStrategy){if(!hs.extras.skipLocationChange){const jo=v.urlHandlingStrategy.merge(hs.urlAfterRedirects,hs.rawUrl);v.setBrowserUrl(jo,hs)}v.browserUrlTree=hs.urlAfterRedirects}const Eo=new As(hs.id,this.urlSerializer.serialize(hs.extractedUrl),this.urlSerializer.serialize(hs.urlAfterRedirects),hs.targetSnapshot);this.events.next(Eo)}));if(oi&&v.urlHandlingStrategy.shouldProcessUrl(v.rawUrlTree)){const{id:hs,extractedUrl:Eo,source:jo,restoredState:gr,extras:Hr}=Me,Yo=new ps(hs,this.urlSerializer.serialize(Eo),jo,gr);this.events.next(Yo);const wa=Pe(Eo,this.rootComponentType).snapshot;return D={...Me,targetSnapshot:wa,urlAfterRedirects:Eo,extras:{...Hr,skipLocationChange:!1,replaceUrl:!1}},(0,T.of)(D)}{const hs="";return this.events.next(new Fs(Me.id,v.serializeUrl(D.extractedUrl),hs,1)),v.rawUrlTree=Me.rawUrl,Me.resolve(null),Y.E}}),(0,Ee.b)(Me=>{const tn=new un(Me.id,this.urlSerializer.serialize(Me.extractedUrl),this.urlSerializer.serialize(Me.urlAfterRedirects),Me.targetSnapshot);this.events.next(tn)}),(0,Se.U)(Me=>D={...Me,guards:Xr(Me.targetSnapshot,Me.currentSnapshot,this.rootContexts)}),function mo(_e,Ne){return(0,ae.z)(v=>{const{targetSnapshot:D,currentSnapshot:W,guards:{canActivateChecks:L,canDeactivateChecks:Me}}=v;return 0===Me.length&&0===L.length?(0,T.of)({...v,guardsResult:!0}):function Or(_e,Ne,v,D){return(0,o.D)(_e).pipe((0,ae.z)(W=>function bt(_e,Ne,v,D,W){const L=Ne&&Ne.routeConfig?Ne.routeConfig.canDeactivate:null;if(!L||0===L.length)return(0,T.of)(!0);const Me=L.map(tn=>{const oi=Ho(Ne)??W,Vi=No(tn,oi);return an(function et(_e){return _e&&rr(_e.canDeactivate)}(Vi)?Vi.canDeactivate(_e,Ne,v,D):oi.runInContext(()=>Vi(_e,Ne,v,D))).pipe((0,Q.P)())});return(0,T.of)(Me).pipe(to())}(W.component,W.route,v,Ne,D)),(0,Q.P)(W=>!0!==W,!0))}(Me,D,W,_e).pipe((0,ae.z)(tn=>tn&&function lo(_e){return"boolean"==typeof _e}(tn)?function sa(_e,Ne,v,D){return(0,o.D)(Ne).pipe((0,pe.b)(W=>(0,N.z)(function Xa(_e,Ne){return null!==_e&&Ne&&Ne(new xe(_e)),(0,T.of)(!0)}(W.route.parent,D),function aa(_e,Ne){return null!==_e&&Ne&&Ne(new Qe(_e)),(0,T.of)(!0)}(W.route,D),function qr(_e,Ne,v){const D=Ne[Ne.length-1],L=Ne.slice(0,Ne.length-1).reverse().map(Me=>function uo(_e){const Ne=_e.routeConfig?_e.routeConfig.canActivateChild:null;return Ne&&0!==Ne.length?{node:_e,guards:Ne}:null}(Me)).filter(Me=>null!==Me).map(Me=>(0,R.P)(()=>{const tn=Me.guards.map(oi=>{const Vi=Ho(Me.node)??v,hs=No(oi,Vi);return an(function dt(_e){return _e&&rr(_e.canActivateChild)}(hs)?hs.canActivateChild(D,_e):Vi.runInContext(()=>hs(D,_e))).pipe((0,Q.P)())});return(0,T.of)(tn).pipe(to())}));return(0,T.of)(L).pipe(to())}(_e,W.path,v),function ar(_e,Ne,v){const D=Ne.routeConfig?Ne.routeConfig.canActivate:null;if(!D||0===D.length)return(0,T.of)(!0);const W=D.map(L=>(0,R.P)(()=>{const Me=Ho(Ne)??v,tn=No(L,Me);return an(function mt(_e){return _e&&rr(_e.canActivate)}(tn)?tn.canActivate(Ne,_e):Me.runInContext(()=>tn(Ne,_e))).pipe((0,Q.P)())}));return(0,T.of)(W).pipe(to())}(_e,W.route,v))),(0,Q.P)(W=>!0!==W,!0))}(D,L,_e,Ne):(0,T.of)(tn)),(0,Se.U)(tn=>({...v,guardsResult:tn})))})}(this.environmentInjector,Me=>this.events.next(Me)),(0,Ee.b)(Me=>{if(D.guardsResult=Me.guardsResult,jn(Me.guardsResult))throw wo(0,Me.guardsResult);const tn=new ai(Me.id,this.urlSerializer.serialize(Me.extractedUrl),this.urlSerializer.serialize(Me.urlAfterRedirects),Me.targetSnapshot,!!Me.guardsResult);this.events.next(tn)}),(0,we.h)(Me=>!!Me.guardsResult||(v.restoreHistory(Me),this.cancelNavigationTransition(Me,"",3),!1)),Ii(Me=>{if(Me.guards.canActivateChecks.length)return(0,T.of)(Me).pipe((0,Ee.b)(tn=>{const oi=new Le(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(oi)}),(0,te.w)(tn=>{let oi=!1;return(0,T.of)(tn).pipe(function Ie(_e,Ne){return(0,ae.z)(v=>{const{targetSnapshot:D,guards:{canActivateChecks:W}}=v;if(!W.length)return(0,T.of)(v);let L=0;return(0,o.D)(W).pipe((0,pe.b)(Me=>function qe(_e,Ne,v,D){const W=_e.routeConfig,L=_e._resolve;return void 0!==W?.title&&!$n(W)&&(L[Ot]=W.title),function Zt(_e,Ne,v,D){const W=function Rn(_e){return[...Object.keys(_e),...Object.getOwnPropertySymbols(_e)]}(_e);if(0===W.length)return(0,T.of)({});const L={};return(0,o.D)(W).pipe((0,ae.z)(Me=>function ii(_e,Ne,v,D){const W=Ho(Ne)??D,L=No(_e,W);return an(L.resolve?L.resolve(Ne,v):W.runInContext(()=>L(Ne,v)))}(_e[Me],Ne,v,D).pipe((0,Q.P)(),(0,Ee.b)(tn=>{L[Me]=tn}))),Ct(1),(0,st.h)(L),(0,ke.K)(Me=>co(Me)?Y.E:(0,y._)(Me)))}(L,_e,Ne,D).pipe((0,Se.U)(Me=>(_e._resolvedData=Me,_e.data=Ce(_e,v).resolve,W&&$n(W)&&(_e.data[Ot]=W.title),null)))}(Me.route,D,_e,Ne)),(0,Ee.b)(()=>L++),Ct(1),(0,ae.z)(Me=>L===W.length?(0,T.of)(v):Y.E))})}(v.paramsInheritanceStrategy,this.environmentInjector),(0,Ee.b)({next:()=>oi=!0,complete:()=>{oi||(v.restoreHistory(tn),this.cancelNavigationTransition(tn,"",2))}}))}),(0,Ee.b)(tn=>{const oi=new Pt(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(oi)}))}),Ii(Me=>{const tn=oi=>{const Vi=[];oi.routeConfig?.loadComponent&&!oi.routeConfig._loadedComponent&&Vi.push(this.configLoader.loadComponent(oi.routeConfig).pipe((0,Ee.b)(hs=>{oi.component=hs}),(0,Se.U)(()=>{})));for(const hs of oi.children)Vi.push(...tn(hs));return Vi};return(0,F.a)(tn(Me.targetSnapshot.root)).pipe((0,vt.d)(),(0,oe.q)(1))}),Ii(()=>this.afterPreactivation()),(0,Se.U)(Me=>{const tn=function Gt(_e,Ne,v){const D=_i(_e,Ne._root,v?v._root:void 0);return new Ui(D,Ne)}(v.routeReuseStrategy,Me.targetSnapshot,Me.currentRouterState);return D={...Me,targetRouterState:tn}}),(0,Ee.b)(Me=>{v.currentUrlTree=Me.urlAfterRedirects,v.rawUrlTree=v.urlHandlingStrategy.merge(Me.urlAfterRedirects,Me.rawUrl),v.routerState=Me.targetRouterState,"deferred"===v.urlUpdateStrategy&&(Me.extras.skipLocationChange||v.setBrowserUrl(v.rawUrlTree,Me),v.browserUrlTree=Me.urlAfterRedirects)}),((_e,Ne,v)=>(0,Se.U)(D=>(new oa(Ne,D.targetRouterState,D.currentRouterState,v).activate(_e),D)))(this.rootContexts,v.routeReuseStrategy,Me=>this.events.next(Me)),(0,oe.q)(1),(0,Ee.b)({next:Me=>{W=!0,this.lastSuccessfulNavigation=this.currentNavigation,v.navigated=!0,this.events.next(new _s(Me.id,this.urlSerializer.serialize(Me.extractedUrl),this.urlSerializer.serialize(v.currentUrlTree))),v.titleStrategy?.updateTitle(Me.targetRouterState.snapshot),Me.resolve(!0)},complete:()=>{W=!0}}),(0,Ze.x)(()=>{W||L||this.cancelNavigationTransition(D,"",1),this.currentNavigation?.id===D.id&&(this.currentNavigation=null)}),(0,ke.K)(Me=>{if(L=!0,jr(Me)){ia(Me)||(v.navigated=!0,v.restoreHistory(D,!0));const tn=new ei(D.id,this.urlSerializer.serialize(D.extractedUrl),Me.message,Me.cancellationCode);if(this.events.next(tn),ia(Me)){const oi=v.urlHandlingStrategy.merge(Me.url,v.rawUrlTree),Vi={skipLocationChange:D.extras.skipLocationChange,replaceUrl:"eager"===v.urlUpdateStrategy||ao(D.source)};v.scheduleNavigation(oi,Xi,null,Vi,{resolve:D.resolve,reject:D.reject,promise:D.promise})}else D.resolve(!1)}else{v.restoreHistory(D,!0);const tn=new po(D.id,this.urlSerializer.serialize(D.extractedUrl),Me,D.targetSnapshot??void 0);this.events.next(tn);try{D.resolve(v.errorHandler(Me))}catch(oi){D.reject(oi)}}return Y.E}))}))}cancelNavigationTransition(v,D,W){const L=new ei(v.id,this.urlSerializer.serialize(v.extractedUrl),D,W);this.events.next(L),v.resolve(!1)}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function ao(_e){return _e!==Xi}let Po=(()=>{class _e{buildTitle(v){let D,W=v.root;for(;void 0!==W;)D=this.getResolvedTitleForRoute(W)??D,W=W.children.find(L=>L.outlet===xt);return D}getResolvedTitleForRoute(v){return v.data[Ot]}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:function(){return(0,e.f3M)(zs)},providedIn:"root"}),_e})(),zs=(()=>{class _e extends Po{constructor(v){super(),this.title=v}updateTitle(v){const D=this.buildTitle(v);void 0!==D&&this.title.setTitle(D)}}return _e.\u0275fac=function(v){return new(v||_e)(e.LFG(Nt.Dx))},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),yo=(()=>{class _e{}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:function(){return(0,e.f3M)(Xs)},providedIn:"root"}),_e})();class Uo{shouldDetach(Ne){return!1}store(Ne,v){}shouldAttach(Ne){return!1}retrieve(Ne){return null}shouldReuseRoute(Ne,v){return Ne.routeConfig===v.routeConfig}}let Xs=(()=>{class _e extends Uo{}return _e.\u0275fac=function(){let Ne;return function(D){return(Ne||(Ne=e.n5z(_e)))(D||_e)}}(),_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Fo=new e.OlP("",{providedIn:"root",factory:()=>({})});let no=(()=>{class _e{}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:function(){return(0,e.f3M)(Tr)},providedIn:"root"}),_e})(),Tr=(()=>{class _e{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,D){return v}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();function za(_e){throw _e}function pa(_e,Ne,v){return Ne.parse("/")}const zl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $r=(()=>{class _e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this.options=(0,e.f3M)(Fo,{optional:!0})||{},this.errorHandler=this.options.errorHandler||za,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||pa,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(no),this.routeReuseStrategy=(0,e.f3M)(yo),this.urlCreationStrategy=(0,e.f3M)(Mo),this.titleStrategy=(0,e.f3M)(Po),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=It((0,e.f3M)(rs,{optional:!0})??[]),this.navigationTransitions=(0,e.f3M)(Ms),this.urlSerializer=(0,e.f3M)(In),this.location=(0,e.f3M)(he.Ye),this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ni,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pe(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(v=>{this.lastSuccessfulId=v.id,this.currentPageId=this.browserPageId??0},v=>{this.console.warn(`Unhandled Navigation Error: ${v}`)})}resetRootComponentType(v){this.routerState.root.component=v,this.navigationTransitions.rootComponentType=v}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const v=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Xi,v)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(v=>{const D="popstate"===v.type?"popstate":"hashchange";"popstate"===D&&setTimeout(()=>{this.navigateToSyncWithBrowser(v.url,D,v.state)},0)}))}navigateToSyncWithBrowser(v,D,W){const L={replaceUrl:!0},Me=W?.navigationId?W:null;if(W){const oi={...W};delete oi.navigationId,delete oi.\u0275routerPageId,0!==Object.keys(oi).length&&(L.state=oi)}const tn=this.parseUrl(v);this.scheduleNavigation(tn,D,Me,L)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(v){this.config=v.map(Fr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(v,D={}){const{relativeTo:W,queryParams:L,fragment:Me,queryParamsHandling:tn,preserveFragment:oi}=D,Vi=oi?this.currentUrlTree.fragment:Me;let hs=null;switch(tn){case"merge":hs={...this.currentUrlTree.queryParams,...L};break;case"preserve":hs=this.currentUrlTree.queryParams;break;default:hs=L||null}return null!==hs&&(hs=this.removeEmptyProps(hs)),this.urlCreationStrategy.createUrlTree(W,this.routerState,this.currentUrlTree,v,hs,Vi??null)}navigateByUrl(v,D={skipLocationChange:!1}){const W=jn(v)?v:this.parseUrl(v),L=this.urlHandlingStrategy.merge(W,this.rawUrlTree);return this.scheduleNavigation(L,Xi,null,D)}navigate(v,D={skipLocationChange:!1}){return function el(_e){for(let Ne=0;Ne<_e.length;Ne++){const v=_e[Ne];if(null==v)throw new e.vHH(4008,false)}}(v),this.navigateByUrl(this.createUrlTree(v,D),D)}serializeUrl(v){return this.urlSerializer.serialize(v)}parseUrl(v){let D;try{D=this.urlSerializer.parse(v)}catch(W){D=this.malformedUriErrorHandler(W,this.urlSerializer,v)}return D}isActive(v,D){let W;if(W=!0===D?{...zl}:!1===D?{...Sr}:D,jn(v))return Mn(this.currentUrlTree,v,W);const L=this.parseUrl(v);return Mn(this.currentUrlTree,L,W)}removeEmptyProps(v){return Object.keys(v).reduce((D,W)=>{const L=v[W];return null!=L&&(D[W]=L),D},{})}scheduleNavigation(v,D,W,L,Me){if(this.disposed)return Promise.resolve(!1);let tn,oi,Vi,hs;return Me?(tn=Me.resolve,oi=Me.reject,Vi=Me.promise):Vi=new Promise((Eo,jo)=>{tn=Eo,oi=jo}),hs="computed"===this.canceledNavigationResolution?W&&W.\u0275routerPageId?W.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:hs,source:D,restoredState:W,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:v,extras:L,resolve:tn,reject:oi,promise:Vi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Vi.catch(Eo=>Promise.reject(Eo))}setBrowserUrl(v,D){const W=this.urlSerializer.serialize(v);if(this.location.isCurrentPathEqualTo(W)||D.extras.replaceUrl){const Me={...D.extras.state,...this.generateNgRouterState(D.id,this.browserPageId)};this.location.replaceState(W,"",Me)}else{const L={...D.extras.state,...this.generateNgRouterState(D.id,D.targetPageId)};this.location.go(W,"",L)}}restoreHistory(v,D=!1){if("computed"===this.canceledNavigationResolution){const L=this.currentPageId-(this.browserPageId??this.currentPageId);0!==L?this.location.historyGo(L):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===L&&(this.resetState(v),this.browserUrlTree=v.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(D&&this.resetState(v),this.resetUrlToCurrentUrlTree())}resetState(v){this.routerState=v.currentRouterState,this.currentUrlTree=v.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,v.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(v,D){return"computed"===this.canceledNavigationResolution?{navigationId:v,\u0275routerPageId:D}:{navigationId:v}}}return _e.\u0275fac=function(v){return new(v||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),Jo=(()=>{class _e{constructor(v,D,W,L,Me,tn){this.router=v,this.route=D,this.tabIndexAttribute=W,this.renderer=L,this.el=Me,this.locationStrategy=tn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new se.x;const oi=Me.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===oi||"area"===oi,this.isAnchorElement?this.subscription=v.events.subscribe(Vi=>{Vi instanceof _s&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(v){this._preserveFragment=(0,e.D6c)(v)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(v){this._skipLocationChange=(0,e.D6c)(v)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(v){this._replaceUrl=(0,e.D6c)(v)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(v){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",v)}ngOnChanges(v){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(v){null!=v?(this.commands=Array.isArray(v)?v:[v],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(v,D,W,L,Me){return!!(null===this.urlTree||this.isAnchorElement&&(0!==v||D||W||L||Me||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const v=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",v)}applyAttributeValue(v,D){const W=this.renderer,L=this.el.nativeElement;null!==D?W.setAttribute(L,v,D):W.removeAttribute(L,v)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return _e.\u0275fac=function(v){return new(v||_e)(e.Y36($r),e.Y36(z),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(he.S$))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(v,D){1&v&&e.NdJ("click",function(L){return D.onClick(L.button,L.ctrlKey,L.shiftKey,L.altKey,L.metaKey)}),2&v&&e.uIk("target",D.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[e.TTD]}),_e})(),Yl=(()=>{class _e{get isActive(){return this._isActive}constructor(v,D,W,L,Me){this.router=v,this.element=D,this.renderer=W,this.cdr=L,this.link=Me,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=v.events.subscribe(tn=>{tn instanceof _s&&this.update()})}ngAfterContentInit(){(0,T.of)(this.links.changes,(0,T.of)(null)).pipe((0,Oe.J)()).subscribe(v=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const v=[...this.links.toArray(),this.link].filter(D=>!!D).map(D=>D.onChanges);this.linkInputChangesSubscription=(0,o.D)(v).pipe((0,Oe.J)()).subscribe(D=>{this._isActive!==this.isLinkActive(this.router)(D)&&this.update()})}set routerLinkActive(v){const D=Array.isArray(v)?v:v.split(" ");this.classes=D.filter(W=>!!W)}ngOnChanges(v){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const v=this.hasActiveLinks();this._isActive!==v&&(this._isActive=v,this.cdr.markForCheck(),this.classes.forEach(D=>{v?this.renderer.addClass(this.element.nativeElement,D):this.renderer.removeClass(this.element.nativeElement,D)}),v&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(v))})}isLinkActive(v){const D=function Uc(_e){return!!_e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return W=>!!W.urlTree&&v.isActive(W.urlTree,D)}hasActiveLinks(){const v=this.isLinkActive(this.router);return this.link&&v(this.link)||this.links.some(v)}}return _e.\u0275fac=function(v){return new(v||_e)(e.Y36($r),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Jo,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","routerLinkActive",""]],contentQueries:function(v,D,W){if(1&v&&e.Suo(W,Jo,5),2&v){let L;e.iGM(L=e.CRH())&&(D.links=L)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.TTD]}),_e})();class tl{}let Xl=(()=>{class _e{constructor(v,D,W,L,Me){this.router=v,this.injector=W,this.preloadingStrategy=L,this.loader=Me}setUpPreloading(){this.subscription=this.router.events.pipe((0,we.h)(v=>v instanceof _s),(0,pe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(v,D){const W=[];for(const L of D){L.providers&&!L._injector&&(L._injector=(0,e.MMx)(L.providers,v,`Route: ${L.path}`));const Me=L._injector??v,tn=L._loadedInjector??Me;(L.loadChildren&&!L._loadedRoutes&&void 0===L.canLoad||L.loadComponent&&!L._loadedComponent)&&W.push(this.preloadConfig(Me,L)),(L.children||L._loadedRoutes)&&W.push(this.processRoutes(tn,L.children??L._loadedRoutes))}return(0,o.D)(W).pipe((0,Oe.J)())}preloadConfig(v,D){return this.preloadingStrategy.preload(D,()=>{let W;W=D.loadChildren&&void 0===D.canLoad?this.loader.loadChildren(v,D):(0,T.of)(null);const L=W.pipe((0,ae.z)(Me=>null===Me?(0,T.of)(void 0):(D._loadedRoutes=Me.routes,D._loadedInjector=Me.injector,this.processRoutes(Me.injector??v,Me.routes))));if(D.loadComponent&&!D._loadedComponent){const Me=this.loader.loadComponent(D);return(0,o.D)([L,Me]).pipe((0,Oe.J)())}return L})}}return _e.\u0275fac=function(v){return new(v||_e)(e.LFG($r),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(tl),e.LFG(Ki))},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const gl=new e.OlP("");let kl=(()=>{class _e{constructor(v,D,W,L,Me={}){this.urlSerializer=v,this.transitions=D,this.viewportScroller=W,this.zone=L,this.options=Me,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Me.scrollPositionRestoration=Me.scrollPositionRestoration||"disabled",Me.anchorScrolling=Me.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof ps?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=v.navigationTrigger,this.restoredId=v.restoredState?v.restoredState.navigationId:0):v instanceof _s&&(this.lastId=v.id,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof Dn&&(v.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(v.position):v.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(v.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(v,D){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Dn(v,"popstate"===this.lastSource?this.store[this.restoredId]:null,D))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return _e.\u0275fac=function(v){e.$Z()},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac}),_e})();var ta=(()=>((ta=ta||{})[ta.COMPLETE=0]="COMPLETE",ta[ta.FAILED=1]="FAILED",ta[ta.REDIRECTING=2]="REDIRECTING",ta))();const Ja=!1;function Sa(_e,Ne){return{\u0275kind:_e,\u0275providers:Ne}}const xl=new e.OlP("",{providedIn:"root",factory:()=>!1});function al(){const _e=(0,e.f3M)(e.zs3);return Ne=>{const v=_e.get(e.z2F);if(Ne!==v.components[0])return;const D=_e.get($r),W=_e.get(Va);1===_e.get(Ol)&&D.initialNavigation(),_e.get(ja,null,e.XFs.Optional)?.setUpPreloading(),_e.get(gl,null,e.XFs.Optional)?.init(),D.resetRootComponentType(v.componentTypes[0]),W.closed||(W.next(),W.complete(),W.unsubscribe())}}const Va=new e.OlP(Ja?"bootstrap done indicator":"",{factory:()=>new se.x}),Ol=new e.OlP(Ja?"initial navigation":"",{providedIn:"root",factory:()=>1});function vl(){let _e=[];return _e=Ja?[{provide:e.Xts,multi:!0,useFactory:()=>{const Ne=(0,e.f3M)($r);return()=>Ne.events.subscribe(v=>{console.group?.(`Router Event: ${v.constructor.name}`),console.log(function vi(_e){if(!("type"in _e))return`Unknown Router Event: ${_e.constructor.name}`;switch(_e.type){case 14:return`ActivationEnd(path: '${_e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${_e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${_e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${_e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state}, shouldActivate: ${_e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 2:return`NavigationCancel(id: ${_e.id}, url: '${_e.url}')`;case 16:return`NavigationSkipped(id: ${_e.id}, url: '${_e.url}')`;case 1:return`NavigationEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${_e.id}, url: '${_e.url}', error: ${_e.error})`;case 0:return`NavigationStart(id: ${_e.id}, url: '${_e.url}')`;case 6:return`ResolveEnd(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 5:return`ResolveStart(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 10:return`RouteConfigLoadEnd(path: ${_e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${_e.route.path})`;case 4:return`RoutesRecognized(id: ${_e.id}, url: '${_e.url}', urlAfterRedirects: '${_e.urlAfterRedirects}', state: ${_e.state})`;case 15:return`Scroll(anchor: '${_e.anchor}', position: '${_e.position?`${_e.position[0]}, ${_e.position[1]}`:null}')`}}(v)),console.log(v),console.groupEnd?.()})}}]:[],Sa(1,_e)}const ja=new e.OlP(Ja?"router preloader":"");function il(_e){return Sa(0,[{provide:ja,useExisting:Xl},{provide:tl,useExisting:_e}])}const Bl=!1,yl=new e.OlP(Bl?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),ft=[he.Ye,{provide:In,useClass:rn},$r,Qs,{provide:z,useFactory:function nl(_e){return _e.routerState.root},deps:[$r]},Ki,Bl?{provide:xl,useValue:!0}:[]];function fe(){return new e.PXZ("Router",$r)}let ge=(()=>{class _e{constructor(v){}static forRoot(v,D){return{ngModule:_e,providers:[ft,Bl&&D?.enableTracing?vl().\u0275providers:[],{provide:rs,multi:!0,useValue:v},{provide:yl,useFactory:Jn,deps:[[$r,new e.FiY,new e.tp0]]},{provide:Fo,useValue:D||{}},D?.useHash?{provide:he.S$,useClass:he.Do}:{provide:he.S$,useClass:he.b0},{provide:gl,useFactory:()=>{const _e=(0,e.f3M)(he.EM),Ne=(0,e.f3M)(e.R0b),v=(0,e.f3M)(Fo),D=(0,e.f3M)(Ms),W=(0,e.f3M)(In);return v.scrollOffset&&_e.setOffset(v.scrollOffset),new kl(W,D,_e,Ne,v)}},D?.preloadingStrategy?il(D.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:fe},D?.initialNavigation?ci(D):[],[{provide:Oi,useFactory:al},{provide:e.tb,multi:!0,useExisting:Oi}]]}}static forChild(v){return{ngModule:_e,providers:[{provide:rs,multi:!0,useValue:v}]}}}return _e.\u0275fac=function(v){return new(v||_e)(e.LFG(yl,8))},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[ko]}),_e})();function Jn(_e){if(Bl&&_e)throw new e.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ci(_e){return["disabled"===_e.initialNavigation?Sa(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const Ne=(0,e.f3M)($r);return()=>{Ne.setUpLocationChangeListener()}}},{provide:Ol,useValue:2}]).\u0275providers:[],"enabledBlocking"===_e.initialNavigation?Sa(2,[{provide:Ol,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:Ne=>{const v=Ne.get(he.V_,Promise.resolve());return()=>v.then(()=>new Promise(D=>{const W=Ne.get($r),L=Ne.get(Va);(function _l(_e,Ne){_e.events.pipe((0,we.h)(v=>v instanceof _s||v instanceof ei||v instanceof po||v instanceof Fs),(0,Se.U)(v=>v instanceof _s||v instanceof Fs?ta.COMPLETE:v instanceof ei&&(0===v.code||1===v.code)?ta.REDIRECTING:ta.FAILED),(0,we.h)(v=>v!==ta.REDIRECTING),(0,oe.q)(1)).subscribe(()=>{Ne()})})(W,()=>{D(!0)}),Ne.get(Ms).afterPreactivation=()=>(D(!0),L.closed?(0,T.of)(void 0):L),W.initialNavigation()}))}}]).\u0275providers:[]]}const Oi=new e.OlP(Bl?"Router Initializer":"")},36802:(fn,ve,_)=>{"use strict";_.d(ve,{N:()=>G,d:()=>A});var e=_(15861),o=_(94650);const T=["ref"];let A=(()=>{class F{constructor(R){this.zone=R,this.height=150,this.width=300}ngAfterViewInit(){this.renderChart()}ngOnChanges(){if(this.chartInstance&&this.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()}updateChart(){this.chartInstance&&(this.chartInstance.data=this.data,this.chartInstance.options=this.options,this.chartInstance.update(this.updateMode))}renderChart(){var R=this;const P=this.ref.nativeElement;this.zone.runOutsideAngular((0,e.Z)(function*(){const{Chart:y}=yield _.e(4393).then(_.bind(_,34393));R.chartInstance=new y(P,{type:R.type,data:R.data,options:R.options,plugins:R.plugins})}))}}return F.\u0275fac=function(R){return new(R||F)(o.Y36(o.R0b))},F.\u0275cmp=o.Xpm({type:F,selectors:[["ngx-chartjs"]],viewQuery:function(R,P){if(1&R&&o.Gf(T,5),2&R){let y;o.iGM(y=o.CRH())&&(P.ref=y.first)}},inputs:{type:"type",data:"data",options:"options",height:"height",width:"width",plugins:"plugins",redraw:"redraw",updateMode:"updateMode"},features:[o.TTD],decls:2,vars:2,consts:[["ref",""]],template:function(R,P){1&R&&o._UZ(0,"canvas",null,0),2&R&&o.uIk("height",P.height)("width",P.width)},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),F})(),G=(()=>{class F{}return F.\u0275fac=function(R){return new(R||F)},F.\u0275mod=o.oAB({type:F}),F.\u0275inj=o.cJS({}),F})()},94766:(fn,ve,_)=>{"use strict";_.d(ve,{c:()=>Oe,t:()=>We});var e=_(77579),o=_(50727),G=(_(88996),_(60515),_(84408));let N,F=1;const R={};function P(it){return it in R&&(delete R[it],!0)}const y={setImmediate(it){const It=F++;return R[It]=!0,N||(N=Promise.resolve()),N.then(()=>P(It)&&it()),It},clearImmediate(it){P(it)}},{setImmediate:Y,clearImmediate:ee}=y,se={setImmediate(...it){const{delegate:It}=se;return(It?.setImmediate||Y)(...it)},clearImmediate(it){const{delegate:It}=se;return(It?.clearImmediate||ee)(it)},delegate:void 0};var Se=_(97565);new class te extends Se.v{flush(It){this._active=!0;const Tt=this._scheduled;this._scheduled=void 0;const{actions:wn}=this;let Nn;It=It||wn.shift();do{if(Nn=It.execute(It.state,It.delay))break}while((It=wn[0])&&It.id===Tt&&wn.shift());if(this._active=!1,Nn){for(;(It=wn[0])&&It.id===Tt&&wn.shift();)It.unsubscribe();throw Nn}}}(class he extends G.o{constructor(It,Tt){super(It,Tt),this.scheduler=It,this.work=Tt}requestAsyncId(It,Tt,wn=0){return null!==wn&&wn>0?super.requestAsyncId(It,Tt,wn):(It.actions.push(this),It._scheduled||(It._scheduled=se.setImmediate(It.flush.bind(It,void 0))))}recycleAsyncId(It,Tt,wn=0){var Nn;if(null!=wn?wn>0:this.delay>0)return super.recycleAsyncId(It,Tt,wn);const{actions:an}=It;null!=Tt&&(null===(Nn=an[an.length-1])||void 0===Nn?void 0:Nn.id)!==Tt&&(se.clearImmediate(Tt),It._scheduled===Tt&&(It._scheduled=void 0))}});var we=_(94650),Ee=(_(95577),_(85363),_(70262),_(82722));const ke=we.GuJ,ct=Symbol("__destroy"),ut=Symbol("__decoratorApplied");function Ct(it){return"string"==typeof it?Symbol(`__destroy__${it}`):ct}function vt(it,It){it[It]||(it[It]=new e.x)}function ln(it,It){it[It]&&(it[It].next(),it[It].complete(),it[It]=null)}function Je(it){it instanceof o.w0&&it.unsubscribe()}function st(it,It){return function(){if(it&&it.call(this),ln(this,Ct()),It.arrayName&&function Ft(it){Array.isArray(it)&&it.forEach(Je)}(this[It.arrayName]),It.checkProperties)for(const Tt in this)It.blackList?.includes(Tt)||Je(this[Tt])}}function Oe(it={}){return It=>{!function Ye(it){return!!it[ke]}(It)?function Ze(it,It){it.prototype.ngOnDestroy=st(it.prototype.ngOnDestroy,It)}(It,it):function $e(it,It){const Tt=it.\u0275pipe;Tt.onDestroy=st(Tt.onDestroy,It)}(It,it),function Ue(it){it.prototype[ut]=!0}(It)}}function We(it,It){return Tt=>{const wn=Ct(It);return"string"==typeof It?function rt(it,It,Tt){const wn=it[It];vt(it,Tt),it[It]=function(){wn.apply(this,arguments),ln(this,Tt),it[It]=wn}}(it,It,wn):vt(it,wn),Tt.pipe((0,Ee.R)(it[wn]))}}Symbol("CheckerHasBeenSet")},78833:(fn,ve,_)=>{"use strict";_.d(ve,{$u:()=>ht,Fq:()=>Ui,Kb:()=>mn,Yw:()=>us,_z:()=>Es,g:()=>wt,hJ:()=>ze,oP:()=>Fs,rf:()=>ps,zx:()=>fi});var e=_(94650),o=_(77579),T=_(50727),A=_(54968),G=_(56451),F=_(8416),N=_(5651),R=_(13710),P=_(28942),y=_(36895),j=_(39300),Y=_(18505),se=(_(95698),_(5643)),he=_(16010);_(37340);const te=["kendoButton",""];function oe(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",4),2&Pe){const z=e.oxw();e.Q6J("name",z.icon)("svgIcon",z.svgIcon)}}function q(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("src",z.imageUrl,e.LSH)}}function we(Pe,gn){if(1&Pe&&e._UZ(0,"span",7),2&Pe){const z=e.oxw();e.Q6J("ngClass",z.iconClass)}}const ae=["*"],Q=[[["","kendoButton",""],["kendo-button"]]],pe=["[kendoButton], kendo-button"];function Ee(Pe,gn){}const ke=function(Pe,gn){return{templateRef:Pe,$implicit:gn}};function Ye(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",4),e.YNc(1,Ee,0,0,"ng-template",5),e.qZA()),2&Pe){const z=e.oxw().$implicit,Ce=e.oxw();e.ekj("k-disabled",z.disabled),e.xp6(1),e.Q6J("templateContext",e.WLB(3,ke,null==Ce.itemTemplate?null:Ce.itemTemplate.templateRef,z))}}function ct(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",9),2&Pe){const z=e.oxw(2).$implicit;e.Q6J("name",z.icon)("svgIcon",z.svgIcon)("customFontClass",z.iconClass)}}function ut(Pe,gn){if(1&Pe&&e._UZ(0,"img",10),2&Pe){const z=e.oxw(2).$implicit;e.Q6J("src",z.imageUrl,e.LSH)}}function Ct(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&Pe){const z=e.oxw(2).$implicit,Ce=e.oxw();e.xp6(1),e.hij(" ",Ce.getText(z)," ")}}function Ue(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",4),e.YNc(1,ct,1,3,"kendo-icon-wrapper",6),e.YNc(2,ut,1,1,"img",7),e.YNc(3,Ct,2,1,"span",8),e.qZA()),2&Pe){const z=e.oxw().$implicit,Ce=e.oxw();e.ekj("k-disabled",z.disabled),e.xp6(1),e.Q6J("ngIf",z.icon||z.iconClass||z.svgIcon),e.xp6(1),e.Q6J("ngIf",z.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.getText(z))}}function vt(Pe,gn){if(1&Pe){const z=e.EpF();e.TgZ(0,"li",2),e.NdJ("click",function(on){const Mi=e.CHM(z).index,Fi=e.oxw();return on.stopImmediatePropagation(),e.KtG(Fi.onClick(Mi))})("blur",function(){e.CHM(z);const on=e.oxw();return e.KtG(on.onBlur())}),e.YNc(1,Ye,2,6,"ng-template",3),e.YNc(2,Ue,4,5,"ng-template",3),e.qZA()}if(2&Pe){const z=gn.$implicit,Ce=gn.index,on=e.oxw();e.Q6J("index",Ce),e.uIk("aria-disabled",!!z.disabled),e.xp6(1),e.Q6J("ngIf",null==on.itemTemplate?null:on.itemTemplate.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=on.itemTemplate&&on.itemTemplate.templateRef))}}const ln=["button"],Ft=["popupTemplate"],st=["container"],Oe=["buttonList"];function Nt(Pe,gn){if(1&Pe){const z=e.EpF();e.TgZ(0,"kendo-button-list",4,5),e.NdJ("onItemClick",function(on){e.CHM(z);const Hn=e.oxw();return e.KtG(Hn.onItemClick(on))})("keydown",function(on){e.CHM(z);const Hn=e.oxw();return e.KtG(Hn.keyDownHandler(on))})("keyup",function(on){e.CHM(z);const Hn=e.oxw();return e.KtG(Hn.keyUpHandler(on))}),e.qZA()}if(2&Pe){const z=e.oxw();e.Q6J("id",z.listId)("data",z.data)("textField",z.textField)("itemTemplate",z.itemTemplate)("size",z.size),e.uIk("dir",z.dir)("aria-labelledby",z.buttonId)}}function xt(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",8),2&Pe){const z=e.oxw();e.Q6J("name",z.icon)("svgIcon",z.svgIcon)}}function Ot(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",9),2&Pe){const z=e.oxw();e.Q6J("customFontClass",z.customIconClass)}}function Kt(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",10),e._UZ(1,"span",11),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("ngClass",z.chipAvatarClass)}}function $t(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.hij(" ",z.label," ")}}function rt(Pe,gn){1&Pe&&e.Hsn(0,0,["*ngIf","!label"])}function We(Pe,gn){if(1&Pe){const z=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(on){e.CHM(z);const Hn=e.oxw();return e.KtG(Hn.onRemoveClick(on))}),e._UZ(1,"kendo-icon-wrapper",14),e.qZA()}if(2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("svgIcon",z.defaultRemoveIcon||z.removeSvgIcon)("customFontClass",z.removeIcon)}}let Si=(()=>{class Pe{constructor(){this.buttonClicked=new o.x,this.buttonClicked$=this.buttonClicked.asObservable()}click(z){this.buttonClicked.next(z)}}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Ni={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310573,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Vn=(Promise.resolve(null),Pe=>null!=Pe);function en(Pe){return 9===Pe.nodeType}function lt(Pe,gn){if(Pe.closest)return Pe.closest(gn);const z=Element.prototype.matches?(on,Hn)=>on.matches(Hn):(on,Hn)=>on.msMatchesSelector(Hn);let Ce=Pe;for(;Ce&&!en(Ce);){if(z(Ce,gn))return Ce;Ce=Ce.parentNode}}const rn={small:"sm",medium:"md",large:"lg"},Qt={small:"sm",medium:"md",large:"lg",full:"full"},yi=(Pe,gn,z,Ce)=>{switch(gn){case"size":return{toRemove:`k-${Pe}-${rn[z]}`,toAdd:"none"!==Ce?`k-${Pe}-${rn[Ce]}`:""};case"rounded":return{toRemove:`k-rounded-${Qt[z]}`,toAdd:"none"!==Ce?`k-rounded-${Qt[Ce]}`:""};case"fillMode":return{toRemove:`k-${Pe}-${z}`,toAdd:"none"!==Ce?`k-${Pe}-${Ce}`:""}}},Li=(Pe,gn,z,Ce,on)=>({toRemove:`k-${Pe}-${gn}-${Ce}`,toAdd:"none"!==on?`k-${Pe}-${z}-${on}`:""});let fi=(()=>{class Pe{constructor(z,Ce,on,Hn,Mi){this.renderer=Ce,this.service=on,this.ngZone=Mi,this.toggleable=!1,this.role="button",this.selectedChange=new e.vpe,this.click=new e.vpe,this.isDisabled=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new T.w0,(0,R.s)(Ni),this.direction=Hn.rtl?"rtl":"ltr",this.subs.add(Hn.changes.subscribe(({rtl:Fi})=>this.direction=Fi?"rtl":"ltr")),this.element=z.nativeElement}get togglable(){return this.toggleable}set togglable(z){this.toggleable=z}get selected(){return this._selected||!1}set selected(z){this._selected=z}set tabIndex(z){this.element.tabIndex=z}get tabIndex(){return this.element.tabIndex}set iconClass(z){if((0,e.X6Q)()&&z&&(this.icon||this.svgIcon))throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._iconClass=z}get iconClass(){return this._iconClass}set icon(z){if((0,e.X6Q)()&&z&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._icon=z}get icon(){return this._icon}set disabled(z){z&&(0,F.X_)()&&(0,F.vU)(navigator.userAgent)&&this.blur(),this.isDisabled=z,this.renderer.setProperty(this.element,"disabled",z)}get disabled(){return this.isDisabled}set size(z){const Ce=z||"medium";this.handleClasses(Ce,"size"),this._size=Ce}get size(){return this._size}set rounded(z){const Ce=z||"medium";this.handleClasses(Ce,"rounded"),this._rounded=Ce}get rounded(){return this._rounded}set fillMode(z){const Ce=z||"solid";this.handleClasses(Ce,"fillMode"),this._fillMode=Ce}get fillMode(){return this._fillMode}set themeColor(z){const Ce=z||"base";this.handleThemeColor(Ce),this._themeColor=Ce}get themeColor(){return this._themeColor}set svgIcon(z){if((0,e.X6Q)()&&z&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=z}get svgIcon(){return this._svgIcon}set isFocused(z){this.toggleClass("k-focus",z),this._focused=z}get isFocused(){return this._focused}get classButton(){return!0}get isToggleable(){return this.toggleable}get iconButtonClass(){return(this.icon||this.iconClass||this.imageUrl||this.svgIcon)&&!this.hasText}get roleSetter(){return this.role}get classDisabled(){return this.isDisabled}get classActive(){return this.selected}get getDirection(){return this.direction}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}set primary(z){this.themeColor=z?"primary":"base"}set look(z){this.fillMode="default"===z?"solid":z}get nativeElement(){return this.element}ngOnInit(){const z=this.element.tagName,Ce="SPAN"===z||"KENDO-BUTTON"===z;!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),Ce&&!this.isDisabled&&(this.tabIndex=0),this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this))),this.subs.add(this.renderer.listen(this.element,"keydown",on=>{Ce&&(on.keyCode===F.R8.Space||on.keyCode===F.R8.Enter)&&(this.ngZone.run(()=>{this.click.emit(on)}),this._onButtonClick())})),this.subs.add(this.renderer.listen(this.element,"mousedown",on=>{const Mi="BUTTON"===this.element.tagName,Fi=(0,F.X_)()&&(0,F.G6)(navigator.userAgent);!this.isDisabled&&Mi&&Fi&&(on.preventDefault(),this.element.focus())}))})}ngOnChanges(z){((0,F.ln)("togglable",z)||(0,F.ln)("toggleable",z))&&this.toggleAriaPressed(this.toggleable)}ngAfterViewInit(){["size","rounded","fillMode"].forEach(Ce=>{this.handleClasses(this[Ce],Ce)})}ngOnDestroy(){this.subs.unsubscribe()}get hasText(){return(0,F.X_)()&&this.element.textContent.trim().length>0}focus(){(0,F.X_)()&&(this.element.focus(),this.isFocused=!0)}blur(){(0,F.X_)()&&(this.element.blur(),this.isFocused=!1)}setAttribute(z,Ce){this.renderer.setAttribute(this.element,z,Ce)}removeAttribute(z){this.renderer.removeAttribute(this.element,z)}setSelected(z){const Ce=this.selected!==z;this.selected=z,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),Ce&&(0,F.g$)(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(z)})}toggleAriaPressed(z){(0,F.X_)()&&(z?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}toggleClass(z,Ce){Ce?this.renderer.addClass(this.element,z):this.renderer.removeClass(this.element,z)}_onButtonClick(){!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}handleClasses(z,Ce){const on=this.element,Hn=yi("button",Ce,this[Ce],z);"fillMode"===Ce&&this.handleThemeColor(this.themeColor,this[Ce],z),Hn.toRemove&&this.renderer.removeClass(on,Hn.toRemove),Hn.toAdd&&this.renderer.addClass(on,Hn.toAdd)}handleThemeColor(z,Ce,on){const Hn=this.element,Fi=on||this.fillMode,os=Li("button",Ce||this.fillMode,Fi,this.themeColor,z);this.renderer.removeClass(Hn,os.toRemove),"none"!==Fi&&"none"!==on&&os.toAdd&&this.renderer.addClass(Hn,os.toAdd)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Si,8),e.Y36(N.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["button","kendoButton",""],["span","kendoButton",""],["kendo-button"]],hostVars:13,hostBindings:function(z,Ce){1&z&&e.NdJ("focus",function(){return Ce.onFocus()})("blur",function(){return Ce.onBlur()}),2&z&&(e.uIk("role",Ce.roleSetter)("aria-disabled",Ce.classDisabled)("dir",Ce.getDirection),e.ekj("k-button",Ce.classButton)("k-toggle-button",Ce.isToggleable)("k-icon-button",Ce.iconButtonClass)("k-disabled",Ce.classDisabled)("k-selected",Ce.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",imageUrl:"imageUrl",iconClass:"iconClass",icon:"icon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",svgIcon:"svgIcon",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[e._Bn([N.oQ,{provide:N.mM,useValue:"kendo.button"}]),e.TTD],attrs:te,ngContentSelectors:ae,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,oe,1,2,"kendo-icon-wrapper",0),e.YNc(1,q,2,1,"span",1),e.YNc(2,we,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&z&&(e.Q6J("ngIf",Ce.icon||Ce.svgIcon),e.xp6(1),e.Q6J("ngIf",Ce.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.iconClass))},dependencies:[P.ZS,y.O5,y.mk],encapsulation:2}),Pe})();class bi{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Zn="tabindex";let mn=(()=>{class Pe{constructor(z,Ce,on){this.service=z,this.element=on,this.selection="multiple",this.navigable=!0,this.navigate=new e.vpe,this._tabIndex=0,this.currentTabIndex=0,this.subs=new T.w0,this.role="group",this.focusHandler=()=>{this.currentTabIndex=-1;const Hn=this.buttons.toArray().findIndex(Fi=>-1!==Fi.element.tabIndex),Mi=-1===Hn?0:Hn;this.focus(this.buttons.filter((Fi,os)=>os===Mi))},(0,R.s)(Ni),this.subs.add(Ce.changes.subscribe(({rtl:Hn})=>this.direction=Hn?"rtl":"ltr"))}set tabIndex(z){this._tabIndex=z,this.currentTabIndex=z}get tabIndex(){return this._tabIndex}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get stretchedClass(){return!!this.width}get dir(){return this.direction}get ariaDisabled(){return this.disabled}get wrapperWidth(){return this.width}get wrapperTabIndex(){return this.disabled?void 0:this.navigable?this.currentTabIndex:void 0}ngOnInit(){this.subs.add(this.service.buttonClicked$.subscribe(z=>{let Ce;this.isSelectionSingle()?(Ce=!0,this.deactivate(this.buttons.filter(on=>on!==z))):(this.navigable&&this.defocus(this.buttons.toArray()),Ce=!z.selected),z.togglable&&z.setSelected(Ce),this.navigable&&z.setAttribute(Zn,"0")})),this.handleSubs("focus",()=>this.navigable,this.focusHandler),this.handleSubs("keydown",()=>this.navigable&&!this.disabled,z=>this.navigateFocus(z)),this.handleSubs("focusout",z=>this.navigable&&z.relatedTarget&&z.relatedTarget.parentNode!==this.element.nativeElement,()=>{this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex}),this.subs.add((0,A.R)(this.element.nativeElement,"focusout").pipe((0,j.h)(z=>this.navigable&&z.relatedTarget&&z.relatedTarget.parentNode!==this.element.nativeElement)).subscribe(()=>{this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex}))}ngOnChanges(z){(0,F.ln)("disabled",z)&&this.buttons.forEach(Ce=>{Vn(this.disabled)&&(Ce.disabled=this.disabled)}),(0,F.ln)("navigable",z)&&(z.navigable.currentValue?(this.setButtonsTabIndex(),this.currentTabIndex=0):(this.currentTabIndex=-1,this.buttons.forEach(Ce=>Ce.setAttribute(Zn,"0"))))}ngAfterContentInit(){this.navigable&&this.setButtonsTabIndex()}ngAfterViewChecked(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}ngOnDestroy(){this.subs.unsubscribe()}ngAfterContentChecked(){this.verifySettings()}navigateFocus(z){const Ce=this.buttons.toArray().findIndex(Fi=>-1!==Fi.element.tabIndex),Hn=this.buttons.length-1,Mi=new bi;z.keyCode===F.R8.ArrowRight&&Ce<Hn&&(this.navigate.emit(Mi),Mi.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((Fi,os)=>os===Ce+1)))),z.keyCode===F.R8.ArrowLeft&&Ce>0&&(this.navigate.emit(Mi),Mi.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((Fi,os)=>os===Ce-1))))}deactivate(z){z.forEach(Ce=>{Ce.setSelected(!1),this.navigable&&Ce.setAttribute(Zn,"-1")})}activate(z){z.forEach(Ce=>{Ce.setSelected(!0),this.navigable&&Ce.setAttribute(Zn,"0"),Ce.focus()})}defocus(z){z.forEach(Ce=>{Ce.setAttribute(Zn,"-1")})}focus(z){z.forEach(Ce=>{Ce.setAttribute(Zn,"0"),Ce.focus()})}verifySettings(){if((0,e.X6Q)()&&this.isSelectionSingle()&&this.buttons.filter(z=>z.selected).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}isSelectionSingle(){return"single"===this.selection}setButtonsTabIndex(){this.buttons.forEach(z=>{z.setAttribute(Zn,z.selected?"0":"-1")})}handleSubs(z,Ce,on){this.subs.add((0,A.R)(this.element.nativeElement,z).pipe((0,j.h)(Ce)).subscribe(on))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(Si),e.Y36(N.oQ),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-buttongroup"]],contentQueries:function(z,Ce,on){if(1&z&&e.Suo(on,fi,4),2&z){let Hn;e.iGM(Hn=e.CRH())&&(Ce.buttons=Hn)}},hostVars:12,hostBindings:function(z,Ce){2&z&&(e.uIk("role",Ce.role)("dir",Ce.dir)("aria-disabled",Ce.ariaDisabled)("tabindex",Ce.wrapperTabIndex),e.Udp("width",Ce.wrapperWidth),e.ekj("k-button-group",Ce.wrapperClass)("k-disabled",Ce.disabledClass)("k-button-group-stretched",Ce.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex",navigable:"navigable"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[e._Bn([Si,N.oQ,{provide:N.mM,useValue:"kendo.buttongroup"}]),e.TTD],ngContentSelectors:pe,decls:1,vars:0,template:function(z,Ce){1&z&&(e.F$t(Q),e.Hsn(0))},encapsulation:2}),Pe})(),ze=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[P.pc]]}),Pe})(),wt=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,ze]]}),Pe})(),ht=(()=>{class Pe{constructor(z){this.templateRef=z}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownButtonItemTemplate",""],["","kendoSplitButtonItemTemplate",""]]}),Pe})(),U=(()=>{class Pe{constructor(){this.onFocus=new e.vpe}isFocused(z){return z===this.focused}focus(z){this.isFocused(z)||(this.focused=z,this.onFocus.emit(z))}resetFocus(){this.focused=-1}get focused(){return this.focusedIndex}set focused(z){this.focusedIndex=z,this.onFocus.emit(z)}}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),gt=(()=>{class Pe{constructor(z,Ce,on){this.focusService=z,this.renderer=on,this.subs=new T.w0,this.element=Ce.nativeElement,this.subscribeEvents()}ngOnInit(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}ngOnDestroy(){this.subs.unsubscribe()}subscribeEvents(){(0,F.X_)()&&this.subs.add(this.focusService.onFocus.subscribe(z=>{this.index===z?(this.renderer.addClass(this.element,"k-focus"),this.renderer.setAttribute(this.element,"tabidnex","0"),this.element.focus()):(this.renderer.setAttribute(this.element,"tabidnex","-1"),this.renderer.removeClass(this.element,"k-focus"))}))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(U),e.Y36(e.SBq),e.Y36(e.Qsj))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),Pe})(),Lt=(()=>{class Pe{constructor(z){this.viewContainerRef=z}set templateContext(z){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),z.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(z.templateRef,z))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.s_b))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),Pe})(),kt=(()=>{class Pe{constructor(){this.onItemClick=new e.vpe,this.onItemBlur=new e.vpe,this.sizeClass="",(0,R.s)(Ni)}set size(z){this.sizeClass=z?`k-menu-group-${rn[z]}`:""}getText(z){if(z)return this.textField?z[this.textField]:z.text||z}getIconClasses(z){const on={};return on[(z.icon?"k-icon k-i-"+z.icon:void 0)||z.iconClass]=!0,on}onClick(z){this.onItemClick.emit(z)}onBlur(){this.onItemBlur.emit()}}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-button-list"]],inputs:{data:"data",textField:"textField",itemTemplate:"itemTemplate",size:"size"},outputs:{onItemClick:"onItemClick",onItemBlur:"onItemBlur"},decls:2,vars:2,consts:[["unselectable","on","role","menu",1,"k-group","k-menu-group","k-reset",3,"ngClass"],["role","menuitem","unselectable","on","kendoButtonFocusable","","tabindex","-1","class","k-item k-menu-item",3,"index","click","blur",4,"ngFor","ngForOf"],["role","menuitem","unselectable","on","kendoButtonFocusable","","tabindex","-1",1,"k-item","k-menu-item",3,"index","click","blur"],[3,"ngIf"],[1,"k-link","k-menu-link"],[3,"templateContext"],[3,"name","svgIcon","customFontClass",4,"ngIf"],["class","k-image","alt","",3,"src",4,"ngIf"],["class","k-menu-link-text",4,"ngIf"],[3,"name","svgIcon","customFontClass"],["alt","",1,"k-image",3,"src"],[1,"k-menu-link-text"]],template:function(z,Ce){1&z&&(e.TgZ(0,"ul",0),e.YNc(1,vt,3,4,"li",1),e.qZA()),2&z&&(e.Q6J("ngClass",Ce.sizeClass),e.xp6(1),e.Q6J("ngForOf",Ce.data))},dependencies:[P.ZS,y.mk,y.sg,gt,y.O5,Lt],encapsulation:2}),Pe})(),jn=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,P.pc]]}),Pe})();var St=(()=>{return(Pe=St||(St={}))[Pe.keydown=0]="keydown",Pe[Pe.keypress=1]="keypress",Pe[Pe.keyup=2]="keyup",St;var Pe})(),De=(()=>{return(Pe=De||(De={}))[Pe.Undefined=0]="Undefined",Pe[Pe.Open=1]="Open",Pe[Pe.Close=2]="Close",Pe[Pe.Enter=3]="Enter",Pe[Pe.EnterPress=4]="EnterPress",Pe[Pe.EnterUp=5]="EnterUp",Pe[Pe.Tab=6]="Tab",Pe[Pe.Esc=7]="Esc",Pe[Pe.Navigate=8]="Navigate",De;var Pe})();const ie=new e.OlP("navigation.config");let je=(()=>{class Pe{constructor(z){this.navigate=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.enter=new e.vpe,this.enterpress=new e.vpe,this.enterup=new e.vpe,this.tab=new e.vpe,this.esc=new e.vpe,this.useLeftRightArrows=z.useLeftRightArrows}process(z){const Ce=z.keyCode;let Hn,Mi=De.Undefined;return z.keyEvent===St.keyup?this.isEnterOrSpace(Ce)&&(Mi=De.EnterUp):z.altKey&&Ce===F.R8.ArrowDown?Mi=De.Open:z.altKey&&Ce===F.R8.ArrowUp?Mi=De.Close:this.isEnterOrSpace(Ce)?Mi=De.Enter:Ce===F.R8.Escape?Mi=De.Esc:Ce===F.R8.Tab?Mi=De.Tab:Ce===F.R8.ArrowUp||this.useLeftRightArrows&&Ce===F.R8.ArrowLeft?(Hn=this.next({current:z.current,start:z.flipNavigation?z.min:z.max,end:z.flipNavigation?z.max:z.min,step:z.flipNavigation?1:-1}),Mi=De.Navigate):Ce===F.R8.ArrowDown||this.useLeftRightArrows&&Ce===F.R8.ArrowRight?(Hn=this.next({current:z.current,start:z.flipNavigation?z.max:z.min,end:z.flipNavigation?z.min:z.max,step:z.flipNavigation?-1:1}),Mi=De.Navigate):Ce===F.R8.Home?(Hn=z.min,Mi=De.Navigate):Ce===F.R8.End&&(Hn=z.max,Mi=De.Navigate),Mi!==De.Undefined&&this[De[Mi].toLowerCase()].emit({index:Hn,target:z.target}),Mi}isEnterOrSpace(z){return z===F.R8.Enter||z===F.R8.Space}next(z){return Vn(z.current)?z.current!==z.end?z.current+z.step:z.end:z.start}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(ie))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),pt=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ut=(()=>{class Pe{constructor(z,Ce,on,Hn,Mi,Fi,os,dn,wi){this.focusService=z,this.navigationService=Ce,this.wrapperRef=on,this._zone=Hn,this.popupService=Mi,this.elRef=Fi,this.cdr=dn,this.containerService=wi,this._open=!1,this._disabled=!1,this._active=!1,this._popupSettings={animate:!0,popupClass:""},this.listId=(0,F.M8)(),this._isFocused=!1,this.subs=new T.w0,this.popupSubs=new T.w0,this.tabIndex=0,this.open=new e.vpe,this.close=new e.vpe,this.isClosePrevented=!1,(0,R.s)(Ni),this.focusService=z,this.navigationService=Ce,this.wrapper=on.nativeElement,this.subs.add(os.changes.subscribe(({rtl:Gt})=>this.direction=Gt?"rtl":"ltr")),this.subscribeEvents()}set disabled(z){z&&this.openState&&(this.openState=!1),this._disabled=z}get disabled(){return this._disabled}get componentTabIndex(){return this.disabled?-1:this.tabIndex}get appendTo(){const{appendTo:z}=this.popupSettings;if(z&&"root"!==z)return"component"===z?this.containerService.container:z}set popupSettings(z){this._popupSettings=Object.assign({animate:!0,popupClass:""},z)}get popupSettings(){return this._popupSettings}get anchorAlign(){const z={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"===this.direction&&!Vn(this.popupSettings.align)&&(z.horizontal="right"),z}get popupAlign(){const z={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"===this.direction&&!Vn(this.popupSettings.align)&&(z.horizontal="right"),z}ngOnChanges(z){if((0,F.ln)("popupSettings",z)&&Vn(this.popupRef)){const Ce=this.popupRef.popup.instance,on=z.popupSettings.currentValue;Ce.popupClass=on.popupClass,Ce.animate=on.animate,Ce.popupAlign=this.popupAlign}}get popupClasses(){const z=["k-menu-popup"];return this._popupSettings.popupClass&&z.push(this._popupSettings.popupClass),z.join(" ")}get openState(){return this._open}set openState(z){this.disabled||(this._open=z)}get isOpen(){return this._open}togglePopupVisibility(){this._disabled||(this._toggle(!this.openState,!0),this.isClosePrevented||this.focusService.focus(this.openState?0:-1))}onItemClick(z){this.togglePopupVisibility(),this.isClosePrevented||(0,F.X_)()&&!this.isClosePrevented&&this.focusButton(),this.emitItemClickHandler(z)}ngOnDestroy(){this.openState=!1,this.subs.unsubscribe(),this.destroyPopup()}subscribeEvents(){(0,F.X_)()&&(this.subscribeListItemFocusEvent(),this.subscribeComponentBlurredEvent(),this.subscribeNavigationEvents())}subscribeListItemFocusEvent(){this.subs.add(this.focusService.onFocus.subscribe(()=>{this._isFocused=!0}))}subscribeComponentBlurredEvent(){this._zone.runOutsideAngular(()=>{this.subs.add(this.navigationService.tab.pipe((0,j.h)(()=>this._isFocused),(0,Y.b)(()=>this.focusButton())).subscribe(this.handleTab.bind(this))),this.subs.add((0,A.R)(document,"click").pipe((0,j.h)(z=>!this.wrapperContains(z.target)),(0,j.h)(()=>this._isFocused)).subscribe(()=>this._zone.run(()=>this.blurWrapper())))})}subscribeNavigationEvents(){this.subs.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subs.add(this.navigationService.enterup.subscribe(this.onNavigationEnterUp.bind(this))),this.subs.add(this.navigationService.open.subscribe(this.onNavigationOpen.bind(this))),this.subs.add((0,G.T)(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}toggle(z){this.disabled||this._toggle(void 0===z?!this.openState:z,!1)}keyDownHandler(z,Ce){this.keyHandler(z,null,Ce)}keyUpHandler(z){this.keyHandler(z,St.keyup)}keyHandler(z,Ce,on){if(this._disabled)return;const Hn=z;on||Hn.stopImmediatePropagation();const Fi=this.navigationService.process({altKey:Hn.altKey,current:this.focusService.focused||0,keyCode:Hn.keyCode,keyEvent:Ce,max:this._data?this._data.length-1:0,min:0,target:z.target});Fi!==De.Undefined&&Fi!==De.Tab&&(Fi!==De.Enter||Fi===De.Enter&&this.openState)&&(z.keyCode===F.R8.Space&&Fi===De.EnterUp||Hn.preventDefault())}emitItemClickHandler(z){const Ce=this._data[z];this._itemClick&&this._itemClick.emit(Ce),Ce&&Ce.click&&!Ce.disabled&&Ce.click(Ce),this.focusService.focus(z)}focusWrapper(){this.openState&&(this.togglePopupVisibility(),this.focusButton())}wrapperContains(z){return this.wrapper===z||this.wrapper.contains(z)}blurWrapper(z=!0){this._isFocused&&(this.openState&&this.togglePopupVisibility(),this._isFocused=!1,z&&(this._blur.emit(),this.cdr.markForCheck()))}focusButton(){this.button&&this.button.nativeElement.focus()}handleTab(){this.blurWrapper()}onNavigationEnterUp(){if(!this._disabled&&!this.openState&&(this._active=!1),this.openState){const z=this.focusService.focused;Vn(z)&&-1!==z&&this.emitItemClickHandler(z)}this.togglePopupVisibility(),!this.openState&&(0,F.X_)()&&this.button.nativeElement.focus()}onNavigationOpen(){!this._disabled&&!this.openState&&this.togglePopupVisibility()}onNavigationClose(){this.openState&&!this.isClosePrevented&&(this.togglePopupVisibility(),(0,F.X_)()&&this.button.nativeElement.focus())}onArrowKeyNavigate({index:z}){this.focusService.focus(z)}_toggle(z,Ce){if(this.openState===z)return;const on=new bi;Ce&&(z&&!this.openState?this.open.emit(on):!z&&this.openState&&this.close.emit(on),on.isDefaultPrevented())?this.isClosePrevented=!0:(this.openState=z,this.destroyPopup(),this.openState&&this.createPopup())}createPopup(){this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.containerService.template,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupSubs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.openState=!1))}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.popupSubs.unsubscribe(),this.isClosePrevented=!1)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(U),e.Y36(je),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(se.qL),e.Y36(e.SBq),e.Y36(N.oQ),e.Y36(e.sBO),e.Y36(pt))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["ng-component"]],inputs:{disabled:"disabled",tabIndex:"tabIndex",buttonClass:"buttonClass",popupSettings:"popupSettings"},outputs:{open:"open",close:"close"},features:[e.TTD],decls:0,vars:0,template:function(z,Ce){},encapsulation:2}),Pe})(),Yi=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,se.Zj,ze,jn],jn]}),Pe})();const gs={provide:ie,useValue:{useLeftRightArrows:!0}};let Es=(()=>{class Pe extends Ut{constructor(z,Ce,on,Hn,Mi,Fi,os,dn,wi){super(z,Ce,on,Hn,Mi,Fi,os,dn,wi),this.containerService=wi,this.icon="",this.iconClass="",this.imageUrl="",this.size="medium",this.rounded="medium",this.themeColor="base",this.itemClick=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.listId=(0,F.M8)(),this.buttonId=(0,F.M8)(),this._fillMode="solid",this._itemClick=this.itemClick,this._blur=this.onBlur}set data(z){this._data=z||[]}get data(){return this._data}set fillMode(z){this._fillMode="clear"===z?"flat":z}get fillMode(){return this._fillMode}get focused(){return this._isFocused&&!this._disabled}get widgetClasses(){return!0}get dir(){return this.direction}get active(){return this._active}keydown(z){this.keyDownHandler(z,!0),(z.keyCode===F.R8.Space||z.keyCode===F.R8.Enter)&&(this._active=!0),z.keyCode===F.R8.Enter&&z.preventDefault()}keyup(z){this.keyUpHandler(z),this._active=!1}mousedown(z){this._disabled&&z.preventDefault(),this._active=!0}mouseup(z){this._disabled&&z.preventDefault(),this._active=!1}openPopup(){this._isFocused=!0,this.togglePopupVisibility()}onButtonBlur(){this.openState||this.blurWrapper()}focus(){(0,F.X_)()&&this.button.nativeElement.focus()}blur(){(0,F.X_)()&&(this.button.nativeElement.blur(),this.blurWrapper())}ngAfterViewInit(){this.containerService.container=this.container,this.containerService.template=this.popupTemplate}handleFocus(z){if(!this._disabled){!this._isFocused&&this.onFocus.emit(),this._isFocused=!0,this.focusService.resetFocus();const Ce=z.relatedTarget&&lt(z.relatedTarget,".k-popup kendo-button-list");this.openState&&!Ce&&this.focusService.focus(0)}}wrapperContains(z){return this.wrapper===z||this.wrapper.contains(z)||this.popupRef&&this.popupRef.popupElement.contains(z)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(U),e.Y36(je),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(se.qL),e.Y36(e.SBq),e.Y36(N.oQ),e.Y36(e.sBO),e.Y36(pt))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-dropdownbutton"]],contentQueries:function(z,Ce,on){if(1&z&&e.Suo(on,ht,5),2&z){let Hn;e.iGM(Hn=e.CRH())&&(Ce.itemTemplate=Hn.first)}},viewQuery:function(z,Ce){if(1&z&&(e.Gf(ln,5,e.SBq),e.Gf(Oe,5),e.Gf(Ft,5),e.Gf(st,5,e.s_b)),2&z){let on;e.iGM(on=e.CRH())&&(Ce.button=on.first),e.iGM(on=e.CRH())&&(Ce.buttonList=on.first),e.iGM(on=e.CRH())&&(Ce.popupTemplate=on.first),e.iGM(on=e.CRH())&&(Ce.container=on.first)}},hostVars:5,hostBindings:function(z,Ce){1&z&&e.NdJ("keydown",function(Hn){return Ce.keydown(Hn)})("keyup",function(Hn){return Ce.keyup(Hn)})("mousedown",function(Hn){return Ce.mousedown(Hn)})("mouseup",function(Hn){return Ce.mouseup(Hn)}),2&z&&(e.uIk("dir",Ce.dir),e.ekj("k-focus",Ce.focused)("k-dropdown-button",Ce.widgetClasses))},inputs:{icon:"icon",svgIcon:"svgIcon",iconClass:"iconClass",imageUrl:"imageUrl",textField:"textField",data:"data",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{itemClick:"itemClick",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownButton"],features:[e._Bn([U,je,gs,N.oQ,{provide:N.mM,useValue:"kendo.dropdownbutton"},pt]),e.qOj],ngContentSelectors:ae,decls:7,vars:18,consts:[["kendoButton","","type","button",3,"id","tabindex","disabled","icon","svgIcon","iconClass","imageUrl","ngClass","size","rounded","fillMode","themeColor","click","focus","blur"],["button",""],["popupTemplate",""],["container",""],[3,"id","data","textField","itemTemplate","size","onItemClick","keydown","keyup"],["buttonList",""]],template:function(z,Ce){1&z&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Ce.openPopup()})("focus",function(Hn){return Ce.handleFocus(Hn)})("blur",function(){return Ce.onButtonBlur()}),e.Hsn(2),e.qZA(),e.YNc(3,Nt,2,7,"ng-template",null,2,e.W1O),e.GkF(5,null,3)),2&z&&(e.ekj("k-active",Ce.active),e.Q6J("id",Ce.buttonId)("tabindex",Ce.componentTabIndex)("disabled",Ce.disabled)("icon",Ce.icon)("svgIcon",Ce.svgIcon)("iconClass",Ce.iconClass)("imageUrl",Ce.imageUrl)("ngClass",Ce.buttonClass)("size",Ce.size)("rounded",Ce.rounded)("fillMode",Ce.fillMode)("themeColor",Ce.fillMode?Ce.themeColor:null),e.uIk("aria-disabled",Ce.disabled)("aria-expanded",Ce.openState)("aria-haspopup",!0)("aria-controls",Ce.listId))},dependencies:[fi,kt,y.mk],encapsulation:2}),Pe})(),ss=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,se.Zj,jn,ze],jn]}),Pe})(),us=(()=>{class Pe{constructor(z,Ce,on,Hn){this.element=z,this.renderer=Ce,this.ngZone=on,this.localizationService=Hn,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new e.vpe,this.contentClick=new e.vpe,this.tabIndex=0,this.hostClass=!0,this.defaultRemoveIcon=he.jKn,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new T.w0,(0,R.s)(Ni),this.direction=Hn.rtl?"rtl":"ltr"}set size(z){const Ce=z||"medium";this.handleClasses(Ce,"size"),this._size=Ce}get size(){return this._size}set rounded(z){const Ce=z||"medium";this.handleClasses(Ce,"rounded"),this._rounded=Ce}get rounded(){return this._rounded}set fillMode(z){const Ce=z||"solid";this.handleClasses(Ce,"fillMode"),this._fillMode=Ce}get fillMode(){return this._fillMode}set themeColor(z){const Ce=z||"base";this.handleThemeColor(Ce),this._themeColor=Ce}get themeColor(){return this._themeColor}get hasIconClass(){return Boolean(this.icon||this.iconClass||this.avatarClass)}get disabledClass(){return this.disabled}get selectedClass(){return this.selected}get focusedClass(){return this.focused}ngOnInit(){this.subs.add(this.localizationService.changes.subscribe(({rtl:z})=>this.direction=z?"rtl":"ltr")),this.renderer.setAttribute(this.element.nativeElement,"role","button")}ngOnDestroy(){this.subs.unsubscribe()}ngOnChanges(z){z&&z.selected&&(this.element.nativeElement.hasAttribute("aria-selected")||this.renderer.setAttribute(this.element.nativeElement,"aria-pressed",`${this.selected}`))}ngAfterViewInit(){const z=this.element.nativeElement;["size","rounded","fillMode"].forEach(on=>{this.handleClasses(this[on],on)}),this.attachElementEventHandlers(z)}get kendoIconClass(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),`k-i-${this.icon}`}get customIconClass(){return this.verifyIconSettings([this.icon,this.avatarClass]),this.iconClass}get chipAvatarClass(){return this.verifyIconSettings([this.icon,this.iconClass]),this.avatarClass}get removeIconClass(){return this.removeIcon?this.removeIcon:"k-i-x-circle"}focus(){(0,F.X_)()&&this.element.nativeElement.focus()}blur(){(0,F.X_)()&&this.element.nativeElement.blur()}onRemoveClick(z){this.removable&&this.remove.emit({sender:this,originalEvent:z})}attachElementEventHandlers(z){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(z,"focus",()=>{this.renderer.addClass(z,"k-focus")})),this.subs.add(this.renderer.listen(z,"blur",()=>{this.renderer.removeClass(z,"k-focus")})),this.subs.add(this.renderer.listen(z,"click",Ce=>{lt(Ce.target,".k-chip-remove-action")||this.ngZone.run(()=>{this.contentClick.emit({sender:this,originalEvent:Ce})})})),this.subs.add(this.renderer.listen(z,"keydown",this.keyDownHandler.bind(this)))})}verifyIconSettings(z){if((0,e.X6Q)()&&z.filter(Ce=>null!=Ce).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}handleClasses(z,Ce){const on=this.element.nativeElement,Hn=yi("chip",Ce,this[Ce],z);"fillMode"===Ce&&this.handleThemeColor(this.themeColor,this[Ce],z),Hn.toRemove&&this.renderer.removeClass(on,Hn.toRemove),Hn.toAdd&&this.renderer.addClass(on,Hn.toAdd)}handleThemeColor(z,Ce,on){const Hn=this.element.nativeElement,Fi=on||this.fillMode,os=Li("chip",Ce||this.fillMode,Fi,this.themeColor,z);this.renderer.removeClass(Hn,os.toRemove),"none"!==Fi&&"none"!==on&&os.toAdd&&this.renderer.addClass(Hn,os.toAdd)}keyDownHandler(z){const on=z.keyCode===F.R8.Delete||z.keyCode===F.R8.Backspace;this.disabled||(z.keyCode===F.R8.Enter||z.keyCode===F.R8.Space?this.ngZone.run(()=>{this.contentClick.emit({sender:this,originalEvent:z})}):on&&this.removable&&this.ngZone.run(()=>{this.remove.emit({sender:this,originalEvent:z})}))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(N.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-chip"]],hostVars:13,hostBindings:function(z,Ce){2&z&&(e.uIk("tabindex",Ce.tabIndex)("aria-disabled",Ce.disabledClass)("dir",Ce.direction),e.ekj("k-chip",Ce.hostClass)("k-chip-has-icon",Ce.hasIconClass)("k-disabled",Ce.disabledClass)("k-selected",Ce.selectedClass)("k-focus",Ce.focusedClass))},inputs:{label:"label",icon:"icon",svgIcon:"svgIcon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",removeSvgIcon:"removeSvgIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[e._Bn([N.oQ,{provide:N.mM,useValue:"kendo.chip"}]),e.TTD],ngContentSelectors:ae,decls:8,vars:6,consts:[["innerCssClass","k-chip-icon",3,"name","svgIcon",4,"ngIf"],["innerCssClass","k-chip-icon",3,"customFontClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],["innerCssClass","k-chip-icon",3,"name","svgIcon"],["innerCssClass","k-chip-icon",3,"customFontClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],["name","x-circle",3,"svgIcon","customFontClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,xt,1,2,"kendo-icon-wrapper",0),e.YNc(1,Ot,1,1,"kendo-icon-wrapper",1),e.YNc(2,Kt,2,1,"span",2),e.TgZ(3,"span",3),e.YNc(4,$t,2,1,"span",4),e.YNc(5,rt,1,0,"ng-content",5),e.qZA(),e.TgZ(6,"span",6),e.YNc(7,We,2,2,"span",7),e.qZA()),2&z&&(e.Q6J("ngIf",Ce.icon||Ce.svgIcon),e.xp6(1),e.Q6J("ngIf",Ce.iconClass),e.xp6(1),e.Q6J("ngIf",Ce.avatarClass),e.xp6(2),e.Q6J("ngIf",Ce.label),e.xp6(1),e.Q6J("ngIf",!Ce.label),e.xp6(2),e.Q6J("ngIf",Ce.removable))},dependencies:[P.ZS,y.O5,y.mk],encapsulation:2}),Pe})(),ps=(()=>{class Pe{constructor(z,Ce,on,Hn){this.localizationService=z,this.renderer=Ce,this.element=on,this.ngZone=Hn,this.hostClass=!0,this.orientation="horizontal",this.selection="none",this.selectedChange=new e.vpe,this.remove=new e.vpe,this.role="listbox",this._size="medium",this.subs=new T.w0,this._navigable=!1,this.currentActiveIndex=0,(0,R.s)(Ni),this.direction=z.rtl?"rtl":"ltr"}set size(z){const Ce=z||"medium";this.handleClasses(Ce,"size"),this._size=Ce}get size(){return this._size}get single(){return"single"===this.selection}get multiple(){return"multiple"===this.selection}onClick(z){const Ce=z.target,on=lt(Ce,".k-chip-remove-action"),Hn=lt(Ce,".k-chip"),Mi=this.chips.find(Fi=>Hn===Fi.element.nativeElement);this.currentActiveIndex=this.chips.toArray().indexOf(Mi),Mi&&Mi.focus(),on&&Hn&&this.remove.emit({sender:this,originalEvent:z,removedChip:Mi}),"none"!==this.selection&&Hn&&!on&&this.setSelection(Mi)}set navigable(z){this._navigable=z,this.chips?.forEach(Ce=>this.renderer.setAttribute(Ce.element.nativeElement,"tabindex",z?"-1":"0")),this.chips?.first&&this.renderer.setAttribute(this.chips.first.element.nativeElement,"tabindex","0")}get navigable(){return this._navigable}ngOnInit(){this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:z})=>this.direction=z?"rtl":"ltr")}ngAfterViewInit(){["size"].forEach(Ce=>{this.handleClasses(this[Ce],Ce)}),this.attachElementEventHandlers()}ngAfterContentInit(){this.updateChips(),this.subs.add(this.chips?.changes.subscribe(()=>this.updateChips()))}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subs.unsubscribe()}selectedChips(){return this.chips.reduce((z,Ce,on)=>Ce.selected?z.concat(on):z,[])}setSelection(z){"single"===this.selection&&this.clearSelection(z),z.selected=!z.selected,this.renderer.setAttribute(z.element.nativeElement,"aria-selected",`${z.selected}`),this.selectedChange.emit(this.selectedChips())}clearSelection(z){this.chips.forEach(Ce=>{z!==Ce&&(Ce.selected=!1,this.renderer.setAttribute(Ce.element.nativeElement,"aria-selected","false"))})}handleClasses(z,Ce){const on=this.element.nativeElement,Hn=yi("chip-list",Ce,this[Ce],z);Hn.toRemove&&this.renderer.removeClass(on,Hn.toRemove),Hn.toAdd&&this.renderer.addClass(on,Hn.toAdd)}attachElementEventHandlers(){const z=this.element.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(z,"keydown",this.keyDownHandler.bind(this)))})}keyDownHandler(z){const on=z.keyCode===F.R8.Delete||z.keyCode===F.R8.Backspace,Hn=z.keyCode===F.R8.ArrowLeft,Mi=z.keyCode===F.R8.ArrowRight;if(z.keyCode===F.R8.Enter||z.keyCode===F.R8.Space){const os=lt(z.target,".k-chip"),dn=this.chips.find(wi=>os===wi.element.nativeElement);this.currentActiveIndex=this.chips.toArray().findIndex(wi=>os===wi.element.nativeElement),"none"!==this.selection&&os&&this.ngZone.run(()=>{this.setSelection(dn)})}else if(on){const os=lt(z.target,".k-chip"),dn=this.chips.find(wi=>os===wi.element.nativeElement);if(os){const wi={sender:this,originalEvent:z,removedChip:dn};this.ngZone.run(()=>{this.remove.emit(wi)})}}else Hn?this.handleArrowKeys("left"):Mi&&this.handleArrowKeys("right")}handleArrowKeys(z){this.navigable&&(this.currentActiveIndex=this.currentActiveIndex+("left"===z?-1:1),this.currentActiveIndex>=this.chips.length?this.currentActiveIndex=0:this.currentActiveIndex<0&&(this.currentActiveIndex=this.chips.length-1),this.chips.forEach((on,Hn)=>{this.renderer.removeAttribute(on.element.nativeElement,"tabindex"),Hn===this.currentActiveIndex&&(this.renderer.setAttribute(on.element.nativeElement,"tabindex","0"),on.focus())}))}updateChips(){this.normalizeActiveIndex(),this.chips.forEach((z,Ce)=>{const on=z.element.nativeElement;this.renderer.removeAttribute(z.element.nativeElement,"tabindex"),Ce===this.currentActiveIndex&&(this.renderer.setAttribute(z.element.nativeElement,"tabindex","0"),(0,F.X_)()&&document.activeElement.closest(".k-chip-list")&&z.focus()),"listbox"===this.role&&this.renderer.setAttribute(on,"role","option"),z.removable&&this.renderer.setAttribute(on,"aria-keyshortcuts","Enter Delete"),this.renderer.removeAttribute(on,"aria-pressed"),this.renderer.setAttribute(on,"aria-selected",`${z.selected}`)})}normalizeActiveIndex(){this.currentActiveIndex>=this.chips.length&&(this.currentActiveIndex=Math.max(this.chips.length-1,0))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(N.oQ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(z,Ce,on){if(1&z&&e.Suo(on,us,4),2&z){let Hn;e.iGM(Hn=e.CRH())&&(Ce.chips=Hn)}},hostVars:10,hostBindings:function(z,Ce){1&z&&e.NdJ("click",function(Hn){return Ce.onClick(Hn)}),2&z&&(e.uIk("aria-orientation",Ce.orientation)("dir",Ce.direction)("aria-multiselectable",Ce.multiple)("role",Ce.role),e.ekj("k-chip-list",Ce.hostClass)("k-selection-single",Ce.single)("k-selection-multiple",Ce.multiple))},inputs:{selection:"selection",size:"size",role:"role",navigable:"navigable"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[e._Bn([N.oQ,{provide:N.mM,useValue:"kendo.chiplist"}])],ngContentSelectors:ae,decls:1,vars:0,template:function(z,Ce){1&z&&(e.F$t(),e.Hsn(0))},encapsulation:2}),Pe})(),Fs=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,P.pc]]}),Pe})(),ti=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[y.ez,se.Zj,jn,F.OY,P.pc]]}),Pe})(),Ui=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[wt,ze,Yi,ss,Fs,ti]}),Pe})()},8416:(fn,ve,_)=>{"use strict";_.d(ve,{EB:()=>pe,EN:()=>Ln,G6:()=>se,GK:()=>en,GX:()=>an,LF:()=>ot,M8:()=>ee,NG:()=>Tt,OY:()=>$e,QY:()=>te,R8:()=>sn,T2:()=>oe,X_:()=>P,aG:()=>j,g$:()=>Y,hC:()=>Ye,ln:()=>y,nV:()=>Ze,oq:()=>q,pD:()=>Se,pn:()=>Ee,qr:()=>gi,r3:()=>we,uv:()=>Nn,vU:()=>he,wY:()=>Ni,y:()=>_n});var e=_(94650),o=_(99912),T=_(53454),A=_(36895),G=_(23601),F=_(56451),N=_(54968),R=_(88996);const P=()=>typeof document<"u",y=(lt,In,rn=!0)=>typeof In[lt]<"u"&&(!In[lt].isFirstChange()||!rn)&&In[lt].previousValue!==In[lt].currentValue,j=(lt,In,rn=!0)=>lt.some(Qt=>y(Qt,In,rn)),Y=lt=>lt&&lt.observers.length>0,ee=()=>{let lt="";for(let In=0;In<32;In++){const rn=16*Math.random()|0;(8===In||12===In||16===In||20===In)&&(lt+="-"),lt+=(12===In?4:16===In?3&rn|8:rn).toString(16)}return lt},se=lt=>(0,o.r4)(lt).safari||(0,o.oh)(lt)&&"mobilesafari"===(0,o.oh)(lt).browser,he=lt=>{const In=(0,o.r4)(lt),rn=(0,o.oh)(lt);return In&&In.mozilla||rn&&"firefox"===rn.browser};let Se=(()=>{class lt{constructor(rn,Qt){this.element=rn,this.ngZone=Qt,this.enableDrag=!0,this.kendoPress=new e.vpe,this.kendoDrag=new e.vpe,this.kendoRelease=new e.vpe}ngOnInit(){this.toggleDraggable()}ngOnChanges(rn){y("enableDrag",rn)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){P()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new T._({drag:rn=>this.kendoDrag.next(rn),press:rn=>this.kendoPress.next(rn),release:rn=>this.kendoRelease.next(rn)}),this.ngZone.runOutsideAngular(()=>this.draggable?.bindTo(this.element.nativeElement))))}destroyDraggable(){this.draggable&&(this.draggable.destroy(),this.draggable=void 0)}}return lt.\u0275fac=function(rn){return new(rn||lt)(e.Y36(e.SBq),e.Y36(e.R0b))},lt.\u0275dir=e.lG2({type:lt,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[e.TTD]}),lt})(),te=(()=>{class lt{}return lt.\u0275fac=function(rn){return new(rn||lt)},lt.\u0275mod=e.oAB({type:lt}),lt.\u0275inj=e.cJS({imports:[[A.ez]]}),lt})();const oe=(lt,In,rn)=>{for(;lt&&lt!==rn&&!In(lt);)lt=lt.parentNode;if(lt!==rn)return lt},q=(lt,In)=>{for(;lt&&!In(lt);)lt=lt.parentNode;return lt},we=(lt,In,rn=!1)=>{if(!q(In,Li=>Li===lt))return!1;const yi=q(In,Li=>Li===In);return yi&&(rn||yi!==lt)},ae=(lt,In,rn=!0)=>{if(lt){if(rn&&In(lt))return lt;for(lt=lt.firstChild;lt;){if(1===lt.nodeType){const Qt=ae(lt,In);if(Qt)return Qt}lt=lt.nextSibling}}},Q=/^(?:a|input|select|option|textarea|button|object)$/i,pe=lt=>{if(!lt.tagName)return!1;const In=lt.tagName.toLowerCase(),rn=Boolean(lt.getAttribute("tabIndex"));return!lt.disabled&&Q.test(In)||rn},Ee=lt=>{const In=lt.getBoundingClientRect();return(In.width>0&&In.height>0||0!==In.x&&0!==In.y)&&"hidden"!==window.getComputedStyle(lt).visibility},Ye=(lt,In=!0)=>ae(lt,rn=>((lt,In=!0)=>{if(!pe(lt))return!1;const rn=lt.getAttribute("tabIndex");return(!In||Ee(lt))&&"-1"!==rn})(rn,In),!1);let Ze=(()=>{class lt{constructor(rn,Qt,yi){this.element=rn,this.ngZone=Qt,this.renderer=yi,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const rn=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(const Qt in rn)Object.hasOwnProperty.call(rn,Qt)&&this.subscriptions?.push(this.renderer.listen(this.element.nativeElement,Qt,this.scope?rn[Qt].bind(this.scope):rn[Qt]))})}ngOnDestroy(){if(this.subscriptions){for(let rn=0;rn<this.subscriptions.length;rn++)this.subscriptions[rn]();this.subscriptions=null}}}return lt.\u0275fac=function(rn){return new(rn||lt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj))},lt.\u0275dir=e.lG2({type:lt,selectors:[["","kendoEventsOutsideAngular",""]],inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"}}),lt})(),$e=(()=>{class lt{}return lt.\u0275fac=function(rn){return new(rn||lt)},lt.\u0275mod=e.oAB({type:lt}),lt.\u0275inj=e.cJS({}),lt})();class Oe{constructor(In){this.resizeBatchService=In,this.resize=new e.vpe,this.acceptedSize=!1,this.state=0}acceptSize(In=this.measure()){this.lastWidth=In.width,this.lastHeight=In.height,this.acceptedSize=!0}checkChanges(){P()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return!1;const{width:In,height:rn}=this.measure();return(In!==this.lastWidth||rn!==this.lastHeight)&&(this.lastWidth=In,this.lastHeight=rn,this.acceptedSize=!1,this.resize.emit(),!0)}initSize(){const In=this.measure();this.lastWidth=In.width,this.lastHeight=In.height}measure(){let In=0,rn=0;return this.parentElement&&(rn=this.parentElement.offsetHeight,In=this.parentElement.offsetWidth),{height:rn,width:In}}}const Nt=lt=>{const In=document.createElement("div");return In.style.cssText=lt,In},Ot="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Kt="position: absolute; left: 0; top: 0; transition: 0s;",$t=Kt+"width: 200%; height: 200%;";class rt extends Oe{constructor(In,rn,Qt){super(In),this.element=rn,this.ngZone=Qt}checkChanges(){2!==this.state?super.checkChanges():this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){const In=this.element?.nativeElement;In.removeChild(this.expand),In.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}checkSize(){return!!super.checkSize()&&(this.reset(),!0)}init(){const In=this.parentElement=this.element?.nativeElement.parentElement;"static"===getComputedStyle(In,null).getPropertyValue("position")&&(In.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){const In=this.element?.nativeElement;In.style.cssText=Ot,In.setAttribute("dir","ltr"),this.expand=Nt(Ot),this.expandChild=Nt(Kt),this.expand.appendChild(this.expandChild),In.appendChild(this.expand),this.shrink=Nt(Ot);const rn=Nt($t);this.shrink.appendChild(rn),In.appendChild(this.shrink)}reset(){const In=this.expandChild;In.style.width="100000px",In.style.height="100000px";const rn=this.expand;rn.scrollLeft=1e5,rn.scrollTop=1e5;const Qt=this.shrink;Qt.scrollLeft=1e5,Qt.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=(0,F.T)((0,N.R)(this.shrink,"scroll"),(0,N.R)(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}}const We=typeof ResizeObserver<"u";class yt extends Oe{constructor(In,rn,Qt){super(In),this.element=rn,this.ngZone=Qt}static supported(){return We}destroy(){super.destroy(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}init(){this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(()=>{this.resizeObserver=new ResizeObserver(()=>{this.checkSize()}),this.resizeObserver.observe(this.parentElement)})}}let it=(()=>{class lt{constructor(rn){this.ngZone=rn,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(rn,Qt){this.scheduled.push({instance:rn,method:Qt}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=(0,R.D)(this.resolvedPromise).subscribe(this.flush)})}isScheduled(rn){return Boolean(this.scheduled.find(Qt=>Qt.instance===rn))}cancel(rn){const Qt=this.scheduled,yi=Qt.length;for(let Li=0;Li<yi;Li++)if(Qt[Li].instance===rn)return Qt.splice(Li,1),void(Qt.length||this.unsubscribe())}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}flush(){this.scheduled.forEach(rn=>{rn.method.call(rn.instance)}),this.scheduled=[],this.unsubscribe()}}return lt.\u0275fac=function(rn){return new(rn||lt)(e.LFG(e.R0b))},lt.\u0275prov=e.Yz7({token:lt,factory:lt.\u0275fac}),lt})(),Tt=(()=>{class lt{constructor(rn,Qt,yi){this.rateLimit=10,this.resize=new e.vpe;const Li=yt.supported()?yt:rt;this.resizeService=new Li(rn,Qt,yi),this.subscription=this.resizeService.resize.pipe((0,G.e)(1e3/(this.rateLimit||10))).subscribe(()=>{this.resizeService.acceptedSize||this.resize.emit()})}ngAfterViewChecked(){this.resizeService.checkChanges()}ngOnDestroy(){this.subscription.unsubscribe(),this.resizeService.destroy()}acceptSize(rn){this.resizeService.acceptSize(rn)}}return lt.\u0275fac=function(rn){return new(rn||lt)(e.Y36(it),e.Y36(e.SBq),e.Y36(e.R0b))},lt.\u0275cmp=e.Xpm({type:lt,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(rn,Qt){},encapsulation:2}),lt})(),Nn=(()=>{class lt{}return lt.\u0275fac=function(rn){return new(rn||lt)},lt.\u0275mod=e.oAB({type:lt}),lt.\u0275inj=e.cJS({providers:[it]}),lt})();class an{}var sn=(()=>{return(lt=sn||(sn={}))[lt.Alt=18]="Alt",lt[lt.ArrowDown=40]="ArrowDown",lt[lt.ArrowLeft=37]="ArrowLeft",lt[lt.ArrowRight=39]="ArrowRight",lt[lt.ArrowUp=38]="ArrowUp",lt[lt.Backspace=8]="Backspace",lt[lt.Control=17]="Control",lt[lt.Delete=46]="Delete",lt[lt.Digit0=48]="Digit0",lt[lt.Digit1=49]="Digit1",lt[lt.Digit2=50]="Digit2",lt[lt.Digit3=51]="Digit3",lt[lt.Digit4=52]="Digit4",lt[lt.Digit5=53]="Digit5",lt[lt.Digit6=54]="Digit6",lt[lt.Digit7=55]="Digit7",lt[lt.Digit8=56]="Digit8",lt[lt.Digit9=57]="Digit9",lt[lt.End=35]="End",lt[lt.Enter=13]="Enter",lt[lt.Escape=27]="Escape",lt[lt.F1=112]="F1",lt[lt.F2=113]="F2",lt[lt.F10=121]="F10",lt[lt.Home=36]="Home",lt[lt.Insert=45]="Insert",lt[lt.KeyA=65]="KeyA",lt[lt.KeyB=66]="KeyB",lt[lt.KeyC=67]="KeyC",lt[lt.KeyD=68]="KeyD",lt[lt.KeyE=69]="KeyE",lt[lt.KeyF=70]="KeyF",lt[lt.KeyG=71]="KeyG",lt[lt.KeyH=72]="KeyH",lt[lt.KeyI=73]="KeyI",lt[lt.KeyJ=74]="KeyJ",lt[lt.KeyK=75]="KeyK",lt[lt.KeyL=76]="KeyL",lt[lt.KeyM=77]="KeyM",lt[lt.KeyN=78]="KeyN",lt[lt.KeyO=79]="KeyO",lt[lt.KeyP=80]="KeyP",lt[lt.KeyQ=81]="KeyQ",lt[lt.KeyR=82]="KeyR",lt[lt.KeyS=83]="KeyS",lt[lt.KeyT=84]="KeyT",lt[lt.KeyU=85]="KeyU",lt[lt.KeyV=86]="KeyV",lt[lt.KeyW=87]="KeyW",lt[lt.KeyX=88]="KeyX",lt[lt.KeyY=89]="KeyY",lt[lt.KeyZ=90]="KeyZ",lt[lt.NumpadDecimal=110]="NumpadDecimal",lt[lt.PageDown=34]="PageDown",lt[lt.PageUp=33]="PageUp",lt[lt.Shift=16]="Shift",lt[lt.Space=32]="Space",lt[lt.Tab=9]="Tab",sn;var lt})();const _n=['a[href]:not([tabindex^="-"]):not([disabled])','area[href]:not([tabindex^="-"]):not([disabled])','input:not([tabindex^="-"]):not([disabled])','select:not([tabindex^="-"]):not([disabled])','textarea:not([tabindex^="-"]):not([disabled])','button:not([tabindex^="-"]):not([disabled])','iframe:not([tabindex^="-"]):not([disabled])','object:not([tabindex^="-"]):not([disabled])','embed:not([tabindex^="-"]):not([disabled])','*[tabindex]:not([tabindex^="-"]):not([disabled])','*[contenteditable]:not([tabindex^="-"]):not([disabled]):not([contenteditable="false"])'].join(","),Ln=lt=>null!=lt,Yn=lt=>lt.trim().replace(/\s+/g," ").split(" "),gi=lt=>Array.isArray(lt)?Si(lt):(lt=>Ln(lt)&&!Array.isArray(lt)&&"object"==typeof lt)(lt)?qn(lt):(lt=>lt instanceof String||"string"==typeof lt)(lt)?ki(lt):void 0,qn=lt=>{const In=[];return Object.keys(lt).forEach(rn=>{const Qt=Yn(rn);lt[rn]&&Qt.length&&In.push(...Qt)}),In},ki=lt=>{const In=[];return Yn(lt).forEach(Qt=>{In.push(Qt)}),In},Si=lt=>{const In=[];return lt.forEach(rn=>{const Qt=Yn(rn);Qt[0]&&In.push(...Qt)}),In};class Ni{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const ot=()=>{let lt=0;if(P()&&document.createElement){const In=document.createElement("div");In.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",In.innerHTML="&nbsp;",document.body.appendChild(In),lt=In.offsetWidth-In.scrollWidth,document.body.removeChild(In)}return lt};let en=(()=>{class lt{constructor(){this.changes=new e.vpe,typeof window<"u"&&P()&&document.body.style.setProperty("--kendo-scrollbar-width",`${ot()}px`)}}return lt.\u0275fac=function(rn){return new(rn||lt)},lt.\u0275prov=e.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})()},1266:(fn,ve,_)=>{"use strict";_.d(ve,{eV:()=>bl,RB:()=>ce,_8:()=>Ad,Y8:()=>fs,IA:()=>xu,nf:()=>nh,Lr:()=>xa,cY:()=>th,I$:()=>Pd,SQ:()=>od,Bd:()=>Ih,zg:()=>Dh,_n:()=>wu,z7:()=>ju,oK:()=>Od,$i:()=>Sa,wY:()=>Do,eQ:()=>qh});var e=_(94650),o=_(24006),T=_(5651),A=_(94046),G=_(27704),F=_(50854),N=_(15971),R=_(28587),P=_(9048),y=_(85254),j=_(14902);const Y=(H,Ae)=>{const h=H.getMonth(),x=(0,y.B)(Ae,h,H.getDate(),H.getHours(),H.getMinutes(),H.getSeconds(),H.getMilliseconds());return x.getMonth()===h?x:(0,j.q)((0,P.z)(x,-1))},ee=(H,Ae)=>(0,R.m)(Y(H,H.getFullYear()+Ae),H.getHours()),se=(H,Ae)=>ee(H,10*Ae),he=(H,Ae)=>ee(H,100*Ae),Se=(H,Ae)=>Y(H,Ae(H.getFullYear())),te=H=>Se(H,Ae=>Ae-Ae%100),oe=H=>Se(H,Ae=>Ae-Ae%100+90),q=H=>Se(H,Ae=>Ae-Ae%10),we=H=>Se(H,Ae=>Ae-Ae%10+9),ae=(H,Ae)=>{const h=H.getDate(),x=(0,y.B)(H.getFullYear(),Ae,h,H.getHours(),H.getMinutes(),H.getSeconds(),H.getMilliseconds());return x.getDate()===h?x:(0,j.q)((0,P.z)(x,-1))},Q=H=>ae(H,11),pe=(H,Ae)=>(te(Ae).getFullYear()-te(H).getFullYear())/100,Ee=(H,Ae)=>(q(Ae).getFullYear()-q(H).getFullYear())/10,ke=(H,Ae)=>(0,G.E)(H,7*Ae);var Ye=_(94991),ct=(()=>{return(H=ct||(ct={}))[H.Forward=1]="Forward",H[H.Backward=-1]="Backward",ct;var H})();const ut=(H,Ae,h=ct.Forward)=>{const x=(0,A.k)(H),ue=(Ae-x.getDay()+7*h)%7;return x.setDate(x.getDate()+ue),(0,R.m)(x,H.getHours())},Ct=(H,Ae)=>12*(Ae.getFullYear()-H.getFullYear())+(Ae.getMonth()-H.getMonth()),Ue=H=>ae(H,0),vt=(H,Ae)=>Ae.getFullYear()-H.getFullYear();var ln=_(79993),Ft=_(94682);const Ze=(H,Ae)=>{const h=(0,y.B)(H.getFullYear(),0,1,-6),ue=((H,Ae)=>Ae!==ln.J.Monday?(0,G.E)(((H,Ae)=>ut(H,Ae,ct.Backward))(H,Ae),4):(0,G.E)(H,4-(H.getDay()||7)))(H,Ae).getTime()-h.getTime(),At=Math.floor(ue/Ft.Mb);return 1+Math.floor(At/7)},$e=(H,Ae=ln.J.Monday)=>{H=(0,F._)(H);const h=(0,G.E)(H,-7),x=(0,G.E)(H,7),ue=Ze(H,Ae);return 0===ue?Ze(h,Ae)+1:53===ue&&Ze(x,Ae)>1?1:ue};var Oe=_(8416),Nt=_(13710),xt=_(87160),Ot=_(77579),Kt=_(50727),$t=_(4707),rt=_(69751),We=_(39841),yt=_(39646),it=_(17445),It=_(66406),Tt=_(54968),wn=_(60515),Nn=_(88996),an=_(61135),sn=_(56451),_n=_(36895),Ln=_(16010),Mn=_(78833),pi=_(54004),Yn=_(22940),gi=_(22529),qn=_(78372),Si=(_(18505),_(39300)),Ni=_(28942),pn=_(5643),Vn=_(41749),ot=_(99912),en=_(94023);const lt=["kendoCalendarView",""];function In(H,Ae){1&H&&(e.TgZ(0,"td",3),e._uU(1,"\xa0"),e.qZA())}function rn(H,Ae){if(1&H&&(e.TgZ(0,"tr",4)(1,"th",5),e._uU(2),e.qZA()()),2&H){const h=e.oxw();e.uIk("aria-hidden",h.ariaHidden),e.xp6(1),e.Q6J("colSpan",h.colSpan),e.xp6(1),e.Oqu(h.title)}}function Qt(H,Ae){if(1&H&&e._uU(0),2&H){const h=e.oxw(3).$implicit,x=e.oxw();e.hij(" ",x.getWeekNumber(x.firstDate(h))," ")}}function yi(H,Ae){}const Li=function(H){return{click:H}},An=function(H,Ae){return{$implicit:H,cellContext:Ae}};function Ht(H,Ae){if(1&H&&(e.TgZ(0,"td",9),e.YNc(1,Qt,1,1,"ng-template",6),e.YNc(2,yi,0,0,"ng-template",10),e.qZA()),2&H){const h=e.oxw(2).$implicit,x=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.VKq(5,Li,x.handleWeekNumberClick.bind(x,h))),e.xp6(1),e.Q6J("ngIf",!x.weekNumberTemplateRef),e.xp6(1),e.Q6J("ngIf",x.weekNumberTemplateRef)("ngTemplateOutlet",x.weekNumberTemplateRef)("ngTemplateOutletContext",e.WLB(7,An,x.firstDate(h),x.getWeekNumberContext(h)))}}function Pn(H,Ae){if(1&H&&e.YNc(0,Ht,3,10,"td",8),2&H){const h=e.oxw().$implicit,x=e.oxw(),ue=e.MAs(1);e.Q6J("ngIf",x.firstDate(h))("ngIfElse",ue)}}function Sn(H,Ae){if(1&H&&e._uU(0),2&H){const h=e.oxw(2).$implicit;e.Oqu(h.formattedValue)}}function Fn(H,Ae){}function Cn(H,Ae){if(1&H&&e.YNc(0,Fn,0,0,"ng-template",15),2&H){const h=e.oxw(2).$implicit,x=e.oxw(2);e.Q6J("ngTemplateOutlet",x.templateRef)("ngTemplateOutletContext",e.WLB(2,An,h.value,h))}}function Un(H,Ae){if(1&H&&(e.TgZ(0,"td",12)(1,"span",13),e.YNc(2,Sn,1,1,"ng-template",6),e.YNc(3,Cn,1,5,null,14),e.qZA()()),2&H){const h=e.oxw(),x=h.$implicit,ue=h.index,At=e.oxw().index,di=e.oxw();e.Q6J("ngClass",di.getStyles(x))("title",x.title),e.uIk("id",x.id)("data-cell-index",di.tableCellIndex(At,ue))("aria-selected",x.isSelected||x.isRangeStart||x.isRangeMid||x.isRangeEnd)("aria-disabled",x.isDisabled)("aria-label",di.getMonthLabel(x.value)),e.xp6(2),e.Q6J("ngIf",!di.templateRef),e.xp6(1),e.Q6J("ngIf",di.templateRef)}}function fi(H,Ae){if(1&H&&(e.ynx(0),e.YNc(1,Un,4,9,"td",11),e.BQk()),2&H){const h=Ae.$implicit,x=e.oxw(2),ue=e.MAs(1);e.xp6(1),e.Q6J("ngIf",x.shouldRenderCellContent(h))("ngIfElse",ue)}}function bi(H,Ae){if(1&H&&(e.TgZ(0,"tr",4),e.YNc(1,Pn,1,2,"ng-template",6),e.YNc(2,fi,2,2,"ng-container",7),e.qZA()),2&H){const h=Ae.$implicit,x=e.oxw();e.xp6(1),e.Q6J("ngIf",x.weekNumber),e.xp6(1),e.Q6J("kForOf",h)}}function Zn(H,Ae){if(1&H&&(e.TgZ(0,"caption",7),e._uU(1),e.qZA()),2&H){const h=e.oxw().date,x=e.oxw();e.Q6J("ngClass",x.getCaptionClass()),e.xp6(1),e.Oqu(x.getCaptionTitle(h))}}function mn(H,Ae){if(1&H&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&H){const h=Ae.$implicit,x=Ae.index,ue=e.oxw(3);e.uIk("aria-label",ue.wideWeekNames[x]),e.xp6(1),e.Oqu(h)}}function ze(H,Ae){if(1&H&&(e.TgZ(0,"thead",8)(1,"tr",9),e.YNc(2,mn,2,2,"th",10),e.qZA()()),2&H){const h=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",h.weekNames)}}function wt(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"table",3),e.NdJ("focus",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleClassicCalendarFocus())})("blur",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleClassicCalendarBlur(ue))}),e.YNc(1,Zn,2,2,"caption",4),e.YNc(2,ze,3,1,"thead",5),e.TgZ(3,"tbody",6),e.NdJ("cellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.cellClick.emit(ue))})("weekNumberCellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.weekNumberCellClick.emit(ue))})("cellEnter",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.cellEnter.emit(ue))})("cellLeave",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.cellLeave.emit(ue))})("focusedCellId",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.focusedCellChange.emit(ue))}),e.qZA()()}if(2&H){const h=Ae.date,x=Ae.className,ue=e.oxw();e.Q6J("ngClass",x),e.uIk("role",2===ue.views?"none":"grid")("aria-labelledby",ue.id)("aria-activedescendant",ue.getActiveDescendant)("tabindex",ue.getTabIndex),e.xp6(1),e.Q6J("ngIf",ue.showViewHeader),e.xp6(1),e.Q6J("ngIf",ue.isMonthView()),e.xp6(1),e.Q6J("activeView",ue.activeView)("isActive",ue.isActive)("min",ue.min)("max",ue.max)("cellUID",ue.cellUID)("focusedDate",ue.focusedDate)("selectedDates",ue.selectedDates)("selectionRange",ue.selectionRange)("activeRangeEnd",ue.activeRangeEnd)("weekNumber",ue.weekNumber)("templateRef",ue.cellTemplateRef)("weekNumberTemplateRef",ue.weekNumberTemplateRef)("viewDate",h)}}function ht(H,Ae){}const U=function(H){return{date:H,className:"k-pointer-events-none"}};function gt(H,Ae){if(1&H&&e.YNc(0,ht,0,0,"ng-template",12),2&H){const h=e.oxw(),x=e.MAs(1);e.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",e.VKq(2,U,h.nextAnimationDate))}}function Lt(H,Ae){}const kt=function(H){return{date:H}};function vn(H,Ae){if(1&H&&e.YNc(0,Lt,0,0,"ng-template",12),2&H){const h=Ae.$implicit;e.oxw();const x=e.MAs(1);e.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",e.VKq(2,kt,h))}}function jn(H,Ae){}function St(H,Ae){if(1&H&&e.YNc(0,jn,0,0,"ng-template",12),2&H){const h=e.oxw(),x=e.MAs(1);e.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",e.VKq(2,U,h.prevAnimationDate))}}function De(H,Ae){if(1&H&&e._uU(0),2&H){const h=e.oxw();e.Oqu(h.title)}}function ie(H,Ae){}function je(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.prevButtonClick.emit())}),e.qZA()}if(2&H){const h=e.oxw();e.Q6J("svgIcon",h.chevronLeftIcon)("disabled",h.isPrevDisabled)("title",h.prevButtonTitle),e.uIk("aria-disabled",h.isPrevDisabled)}}function pt(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.nextButtonClick.emit())}),e.qZA()}if(2&H){const h=e.oxw();e.Q6J("svgIcon",h.chevronRightIcon)("disabled",h.isNextDisabled)("title",h.nextButtonTitle),e.uIk("aria-disabled",h.isNextDisabled)}}const Ut=function(H,Ae,h){return{$implicit:H,activeView:Ae,date:h}},xn=["*"],hn=["list"];function Gn(H,Ae){if(1&H&&e._uU(0),2&H){const h=e.oxw().$implicit,x=e.oxw();e.Oqu(x.service.navigationTitle(h))}}function ri(H,Ae){}function mi(H,Ae){if(1&H&&(e.TgZ(0,"li")(1,"span"),e.YNc(2,Gn,1,1,"ng-template",5),e.YNc(3,ri,0,0,"ng-template",6),e.qZA()()),2&H){const h=Ae.$implicit,x=Ae.index,ue=e.oxw();e.uIk("data-date-index",x),e.xp6(1),e.ekj("k-calendar-navigation-marker",ue.service.isRangeStart(h)),e.xp6(1),e.Q6J("ngIf",!ue.templateRef),e.xp6(1),e.Q6J("ngIf",ue.templateRef)("ngTemplateOutlet",ue.templateRef)("ngTemplateOutletContext",e.kEZ(7,Ut,ue.service.navigationTitle(h),ue.activeViewValue,h))}}function ui(H,Ae){if(1&H&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&H){const h=Ae.$implicit,x=Ae.index,ue=e.oxw(2);e.uIk("aria-label",ue.wideWeekNames[x]),e.xp6(1),e.Oqu(h)}}function Pi(H,Ae){if(1&H&&(e.TgZ(0,"table",7)(1,"thead",8)(2,"tr",9),e.YNc(3,ui,2,2,"th",10),e.qZA()()()),2&H){const h=e.oxw();e.Udp("table-layout","auto"),e.xp6(3),e.Q6J("ngForOf",h.weekNames)}}function Di(H,Ae){1&H&&e._UZ(0,"col")}function Yi(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"tbody",12),e.NdJ("cellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.cellClick.emit(ue))})("weekNumberCellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.weekNumberCellClick.emit(ue))})("focusedCellId",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.focusedCellChange.emit(ue))}),e.qZA()}if(2&H){const h=Ae.$implicit,x=e.oxw();e.Q6J("headerTitle",x.headerTitle)("activeView",x.activeView)("isActive",x.isActive)("min",x.min)("max",x.max)("cellUID",x.cellUID)("focusedDate",x.focusedDate)("selectedDates",x.selectedDates)("weekNumber",x.weekNumber)("templateRef",x.cellTemplateRef)("weekNumberTemplateRef",x.weekNumberTemplateRef)("viewDate",h)}}function ji(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-calendar-navigation",5),e.NdJ("valueChange",function(ue){e.CHM(h);const At=e.oxw(2);return e.KtG(At.handleNavigation(ue))})("pageChange",function(){e.CHM(h);const ue=e.oxw(2);return e.KtG(ue.onPageChange())}),e.qZA()}if(2&H){const h=e.oxw(2);e.Q6J("activeView",h.activeViewEnum)("focusedDate",h.focusedDate)("min",h.min)("max",h.max)("templateRef",null==h.navigationItemTemplateRef?null:h.navigationItemTemplateRef.templateRef)}}function gs(H,Ae){if(1&H){const h=e.EpF();e.ynx(0),e.YNc(1,ji,1,5,"kendo-calendar-navigation",2),e.TgZ(2,"kendo-calendar-viewlist",3),e.NdJ("todayButtonClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleDateChange({selectedDates:[ue],focusedDate:ue}))})("cellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleCellClick(ue))})("weekNumberCellClick",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleWeekNumberClick(ue))})("activeDateChange",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleActiveDateChange(ue))})("pageChange",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.onPageChange())})("focusCalendar",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleFocus())})("blurCalendar",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleBlur(ue))}),e.qZA(),e.TgZ(3,"kendo-resize-sensor",4),e.NdJ("resize",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.onResize())}),e.qZA(),e.BQk()}if(2&H){const h=e.oxw();let x;e.xp6(1),e.Q6J("ngIf",h.navigation),e.xp6(1),e.Q6J("activeView",h.activeViewEnum)("isActive",h.isActive)("id",h.headerId)("cellTemplateRef",null==(x=h.activeCellTemplate())?null:x.templateRef)("headerTitleTemplateRef",null==h.headerTitleTemplateRef?null:h.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==h.weekNumberTemplateRef?null:h.weekNumberTemplateRef.templateRef)("cellUID",h.cellUID)("min",h.min)("max",h.max)("focusedDate",h.focusedDate)("weekNumber",h.weekNumber)("selectedDates",h.selectedDates)("tabIndex",h.tabIndex)("disabled",h.disabled)}}function bs(H,Ae){if(1&H){const h=e.EpF();e.ynx(0),e.TgZ(1,"kendo-multiviewcalendar",6,7),e.NdJ("activeViewChange",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleActiveViewChange(ue))})("navigate",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleNavigate(ue))})("valueChange",function(ue){e.CHM(h);const At=e.MAs(2),di=e.oxw();return e.KtG(di.handleMultiViewCalendarValueChange(ue,At.focusedDate))})("focusCalendar",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleFocus())})("blur",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleBlur(ue))})("blurEvent",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleBlur(ue))})("keydown",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleMultiViewCalendarKeydown(ue))}),e._UZ(3,"kendo-multiviewcalendar-messages",8),e.qZA(),e.BQk()}if(2&H){const h=e.oxw();e.xp6(1),e.Q6J("views",1)("min",h.min)("max",h.max)("id",h.id)("disabled",h.disabled)("isActive",h.isActive)("tabIndex",h.tabIndex)("activeView",h.activeView)("bottomView",h.bottomView)("topView",h.topView)("weekNumber",h.weekNumber)("animateNavigation",h.animateNavigation)("cellTemplate",h.activeCellTemplate())("monthCellTemplate",h.monthCellTemplateRef)("yearCellTemplate",h.yearCellTemplateRef)("decadeCellTemplate",h.decadeCellTemplateRef)("centuryCellTemplate",h.centuryCellTemplateRef)("headerTitleTemplate",h.headerTitleTemplateRef)("weekNumberTemplate",h.weekNumberTemplateRef)("focusedDate",h.focusedDate)("selection",h.selection)("value",h.value)("disabledDates",h.disabledDates),e.xp6(2),e.Q6J("today",h.localization.get("today"))("prevButtonTitle",h.localization.get("prevButtonTitle"))("nextButtonTitle",h.localization.get("nextButtonTitle"))("parentViewButtonTitle",h.localization.get("parentViewButtonTitle"))}}const Es=["dateInput"],ss=["spinup"],zi=["spindown"];function as(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"span",4),e.NdJ("mousedown",function(ue){return ue.preventDefault()}),e.TgZ(1,"button",5,6),e.NdJ("mousedown",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.arrowDirection=ue.arrow.Up)})("mouseleave",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.arrowDirection=ue.arrow.None)})("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleButtonClick(1))}),e._UZ(3,"kendo-icon-wrapper",7),e.qZA(),e.TgZ(4,"button",8,9),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleButtonClick(-1))})("mousedown",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.arrowDirection=ue.arrow.Down)})("mouseleave",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.arrowDirection=ue.arrow.None)}),e._UZ(6,"kendo-icon-wrapper",10),e.qZA()()}if(2&H){const h=e.oxw();e.xp6(1),e.ekj("k-active",h.arrowDirection===h.arrow.Up),e.Q6J("title",h.localization.get("increment")),e.uIk("aria-label",h.localization.get("increment")),e.xp6(2),e.Q6J("svgIcon",h.caretAltUpIcon),e.xp6(1),e.ekj("k-active",h.arrowDirection===h.arrow.Down),e.Q6J("title",h.localization.get("decrement")),e.uIk("aria-label",h.localization.get("decrement")),e.xp6(2),e.Q6J("svgIcon",h.caretAltDownIcon)}}const ds=function(H,Ae,h,x,ue,At,di){return{click:H,focus:Ae,mousedown:h,touchstart:x,dragstart:ue,drop:At,blur:di}},Xi=["container"],us=["popupTemplate"],ps=["toggleButton"],_s=["actionSheet"];function ei(H,Ae){1&H&&e.GkF(0)}function Fs(H,Ae){if(1&H&&e.YNc(0,ei,1,0,"ng-container",13),2&H){e.oxw();const h=e.MAs(15);e.Q6J("ngTemplateOutlet",h)}}function po(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.onResize())}),e.qZA()}}function As(H,Ae){1&H&&e.GkF(0)}function un(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19),e._uU(6),e.qZA()(),e.TgZ(7,"div",20)(8,"button",21),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.show=!1)}),e.qZA()()()(),e.TgZ(9,"div",22),e.YNc(10,As,1,0,"ng-container",13),e.qZA()}if(2&H){const h=e.oxw(),x=e.MAs(15);e.xp6(4),e.Oqu(h.title),e.xp6(2),e.Oqu(h.subtitle),e.xp6(2),e.Q6J("svgIcon",h.xIcon),e.uIk("title",h.localization.get("clearTitle")),e.xp6(2),e.Q6J("ngTemplateOutlet",x)}}const ai=function(H){return{keydown:H}};function Le(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-calendar",23,24),e.NdJ("valueChange",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleChange(At.mergeTime(ue)))}),e._UZ(2,"kendo-calendar-messages",25),e.qZA()}if(2&H){const h=e.oxw();e.Q6J("size",h.isAdaptive?"large":"medium")("type",h.calendarType)("min",h.min)("max",h.max)("navigation",h.navigation)("animateNavigation",h.animateCalendarNavigation)("activeView",h.activeView)("bottomView",h.bottomView)("topView",h.topView)("weekNumber",h.weekNumber)("cellTemplate",h.cellTemplate)("monthCellTemplate",h.monthCellTemplate)("yearCellTemplate",h.yearCellTemplate)("decadeCellTemplate",h.decadeCellTemplate)("centuryCellTemplate",h.centuryCellTemplate)("weekNumberTemplate",h.weekNumberTemplate)("headerTitleTemplate",h.headerTitleTemplate)("navigationItemTemplate",h.navigationItemTemplate)("focusedDate",h.focusedDate)("value",h.value)("kendoEventsOutsideAngular",e.VKq(26,ai,h.handleKeydown))("scope",h)("disabledDates",h.disabledDates),e.xp6(2),e.Q6J("today",h.localization.get("today"))("prevButtonTitle",h.localization.get("prevButtonTitle"))("nextButtonTitle",h.localization.get("nextButtonTitle"))}}const Pt=function(H,Ae){return{click:H,mousedown:Ae}};function Be(H,Ae){if(1&H&&(e.TgZ(0,"li",3)(1,"span"),e._uU(2),e.qZA()()),2&H){const h=Ae.$implicit,x=Ae.index,ue=e.oxw();e.uIk("data-timelist-item-index",x)("role","option")("aria-selected",x===ue.currentSelectedIndex),e.xp6(2),e.Oqu(h.text)}}const Jt=["accept"],xe=["cancel"],Ke=["now"],Qe=["listWrapper"],Et=function(H,Ae,h){return{click:H,focus:Ae,blur:h}};function Dn(H,Ae){if(1&H&&(e.TgZ(0,"button",8,9),e._uU(2),e.qZA()),2&H){const h=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,Et,h.handleNow,h.handleFocus,h.handleBlur))("scope",h)("disabled",h.disabled),e.uIk("title",h.localization.get("nowLabel"))("aria-label",h.localization.get("nowLabel")),e.xp6(2),e.Oqu(h.localization.get("now"))}}const vi=function(H,Ae){return{focus:H,blur:Ae}};function ni(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"div",12,13)(2,"span",2),e._uU(3),e.qZA(),e.TgZ(4,"kendo-timelist",14),e.NdJ("valueChange",function(ue){e.CHM(h);const At=e.oxw(2);return e.KtG(At.current=ue)})("tabOutLastPart",function(){e.CHM(h);const ue=e.oxw(2);return e.KtG(ue.tabOutLastPart.emit())}),e.qZA()()}if(2&H){const h=e.oxw(),x=h.$implicit,ue=h.index,At=e.oxw();e.xp6(3),e.Oqu(At.intl.dateFieldName(x)),e.xp6(1),e.Q6J("isLast",ue===At.dateFormatParts.length-1)("min",At.min)("max",At.max)("part",x)("step",At.partStep(x))("disabled",At.disabled)("value",At.current)("kendoEventsOutsideAngular",e.WLB(11,vi,At.handleListFocus,At.handleBlur))("scope",At),e.uIk("data-timelist-index",ue)}}function qi(H,Ae){if(1&H&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&H){const h=e.oxw().$implicit;e.xp6(1),e.hij(" ",h.pattern," ")}}function ys(H,Ae){if(1&H&&(e.YNc(0,ni,5,14,"div",10),e.YNc(1,qi,2,1,"div",11)),2&H){const h=Ae.$implicit;e.Q6J("ngIf","literal"!==h.type),e.xp6(1),e.Q6J("ngIf","literal"===h.type)}}function Mo(H,Ae){if(1&H&&(e.TgZ(0,"button",19,20),e._uU(2),e.qZA()),2&H){const h=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,Et,h.handleReject,h.handleFocus,h.handleBlur))("scope",h)("disabled",h.disabled),e.uIk("title",h.localization.get("cancelLabel"))("aria-label",h.localization.get("cancelLabel")),e.xp6(2),e.Oqu(h.localization.get("cancel"))}}const bo=function(H,Ae,h,x){return{click:H,focus:Ae,blur:h,keydown:x}};function Ps(H,Ae){if(1&H&&(e.TgZ(0,"button",21,22),e._uU(2),e.qZA()),2&H){const h=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.l5B(6,bo,h.handleAccept,h.handleFocus,h.handleBlur,h.handleTabOut))("scope",h)("disabled",h.disabled),e.uIk("title",h.localization.get("acceptLabel"))("aria-label",h.localization.get("acceptLabel")),e.xp6(2),e.Oqu(h.localization.get("accept"))}}function Wt(H,Ae){if(1&H&&(e.TgZ(0,"div",16),e.YNc(1,Mo,3,10,"button",17),e.YNc(2,Ps,3,11,"button",18),e.qZA()),2&H){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.cancelButton),e.xp6(1),e.Q6J("ngIf",h.setButton)}}function Bn(H,Ae){1&H&&e.GkF(0)}function ti(H,Ae){if(1&H&&e.YNc(0,Bn,1,0,"ng-container",13),2&H){e.oxw();const h=e.MAs(15);e.Q6J("ngTemplateOutlet",h)}}function Ui(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.onResize())}),e.qZA()}}function Pe(H,Ae){1&H&&e.GkF(0)}function gn(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19),e._uU(6),e.qZA()(),e.TgZ(7,"div",20)(8,"button",21),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.show=!1)}),e.qZA()()()(),e.TgZ(9,"div",22),e.YNc(10,Pe,1,0,"ng-container",13),e.qZA(),e.TgZ(11,"div",23)(12,"button",24),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleReject())}),e._uU(13),e.qZA(),e.TgZ(14,"button",25),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleActionSheetAccept())}),e._uU(15),e.qZA()()}if(2&H){const h=e.oxw(),x=e.MAs(15);e.xp6(4),e.Oqu(h.title),e.xp6(2),e.Oqu(h.subtitle),e.xp6(2),e.Q6J("svgIcon",h.xIcon),e.uIk("title",h.localization.get("clearTitle")),e.xp6(2),e.Q6J("ngTemplateOutlet",x),e.xp6(2),e.uIk("title",h.localization.get("cancelLabel"))("aria-label",h.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",h.localization.get("cancel")," "),e.xp6(1),e.uIk("title",h.localization.get("acceptLabel"))("aria-label",h.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",h.localization.get("accept")," ")}}const z=function(H,Ae){return{keydown:H,mousedown:Ae}};function Ce(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-timeselector",26,27),e.NdJ("valueChange",function(ue){e.CHM(h);const At=e.oxw();return e.KtG(At.handleChange(ue))})("valueReject",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleReject())})("tabOutLastPart",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.onTabOutLastPart())}),e._UZ(2,"kendo-timeselector-messages",28),e.qZA()}if(2&H){const h=e.oxw();e.ekj("k-timeselector-lg",h.isAdaptive),e.Q6J("cancelButton",h.cancelButton&&!h.isAdaptive)("setButton",!h.isAdaptive)("nowButton",h.nowButton)("format",h.format)("min",h.min)("max",h.max)("steps",h.steps)("value",h.value)("isAdaptiveEnabled",h.isAdaptiveModeEnabled)("kendoEventsOutsideAngular",e.WLB(24,z,h.handleKeydown,h.handleMousedown))("scope",h),e.xp6(2),e.Q6J("acceptLabel",h.localization.get("acceptLabel"))("accept",h.localization.get("accept"))("cancelLabel",h.localization.get("cancelLabel"))("cancel",h.localization.get("cancel"))("nowLabel",h.localization.get("nowLabel"))("now",h.localization.get("now"))("hour",h.localization.get("hour"))("minute",h.localization.get("minute"))("second",h.localization.get("second"))("millisecond",h.localization.get("millisecond"))("dayperiod",h.localization.get("dayperiod"))}}const Hs=["defaultTemplate"];function Pr(H,Ae){1&H&&e._UZ(0,"kendo-multiviewcalendar",6)}function kr(H,Ae){if(1&H){const h=e.EpF();e.TgZ(0,"kendo-resize-sensor",22),e.NdJ("resize",function(){e.CHM(h);const ue=e.oxw(2);return e.KtG(ue.onResize())}),e.qZA()}}function vs(H,Ae){if(1&H){const h=e.EpF();e.YNc(0,kr,1,0,"kendo-resize-sensor",7),e.TgZ(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),e._uU(5),e.qZA(),e.TgZ(6,"div",12),e._uU(7),e.qZA()(),e.TgZ(8,"div",13)(9,"button",14),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.show=!1)}),e.qZA()()()(),e.TgZ(10,"div",15)(11,"div",16),e._UZ(12,"kendo-multiviewcalendar",17,18),e.qZA()(),e.TgZ(14,"div",19)(15,"button",20),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.show=!1)}),e._uU(16),e.qZA(),e.TgZ(17,"button",21),e.NdJ("click",function(){e.CHM(h);const ue=e.oxw();return e.KtG(ue.handleAccept())}),e._uU(18),e.qZA()()}if(2&H){const h=e.oxw();e.Q6J("ngIf",h.isAdaptiveModeEnabled),e.xp6(5),e.Oqu(h.title),e.xp6(2),e.Oqu(h.subtitle),e.xp6(2),e.Q6J("svgIcon",h.xIcon),e.uIk("title",h.localization.get("clearTitle")),e.xp6(3),e.Q6J("shouldSetRange",!1),e.xp6(3),e.uIk("title",h.localization.get("cancelLabel"))("aria-label",h.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",h.localization.get("cancel")," "),e.xp6(1),e.uIk("title",h.localization.get("acceptLabel"))("aria-label",h.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",h.localization.get("accept")," ")}}function ko(H,Ae){1&H&&e._UZ(0,"kendo-daterange-popup")}const Nr={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310705,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};var so=(()=>{return(H=so||(so={}))[H.Left=0]="Left",H[H.Right=1]="Right",H[H.Up=2]="Up",H[H.Down=3]="Down",H[H.PrevView=4]="PrevView",H[H.NextView=5]="NextView",H[H.FirstInView=6]="FirstInView",H[H.LastInView=7]="LastInView",H[H.LowerView=8]="LowerView",H[H.UpperView=9]="UpperView",so;var H})();const cr={start:null,end:null},fo=new Date(1980,0,1),js=new Date(1900,0,1),fr=new Date(2099,11,31),Ws=new Date(1980,0,1),Lr=new Date(1980,0,1,23,59,59),ur=H=>H&&(!H.touched||H.control&&"blur"===H.control.updateOn),Fr=H=>H.preventDefault(),Ko=H=>H.relatedTarget||document.activeElement,ms=H=>null!=H,Ka=H=>H.shiftKey&&(H.keyCode===Gr.ArrowRight||H.keyCode===Gr.ArrowLeft||H.keyCode===Gr.ArrowDown||H.keyCode===Gr.ArrowUp);var Gr=(()=>{return(H=Gr||(Gr={}))[H.ArrowDown=40]="ArrowDown",H[H.ArrowLeft=37]="ArrowLeft",H[H.ArrowRight=39]="ArrowRight",H[H.ArrowUp=38]="ArrowUp",Gr;var H})();const No=H=>null!=H,Cr=H=>(Ae,h)=>{const x=(0,A.k)(Ae);return x[H](h),x},Er=(H,Ae)=>{const h=(0,A.k)(H);return h.setHours(Ae.getHours(),Ae.getMinutes(),Ae.getSeconds(),Ae.getMilliseconds()),h},zr=(H,Ae,h)=>({candidateValue:Er(fo,H),maxValue:(0,G.E)(Er(fo,h),Ae.getHours()<h.getHours()||Ae.getHours()===h.getHours()&&Ae.getMinutes()<h.getMinutes()?0:1),minValue:Er(fo,Ae)}),or=Cr("setFullYear"),rr=Cr("setHours"),lo=Cr("setMinutes"),nr=Cr("setSeconds"),mt=Cr("setMilliseconds"),dt=(H,Ae,h=1)=>{const x=[];for(let ue=H;ue<Ae;ue+=h)x.push(ue);return x},et=(H,Ae,h)=>!H||!(Ae&&Ae>H||h&&h<H),Tn=(H,Ae,h)=>{if(!H||!Ae||!h)return!0;const{candidateValue:x,minValue:ue,maxValue:At}=zr(H,Ae,h);return ue<=x&&x<=At},Gi=(H,Ae)=>!No(H)||!No(Ae)||H<=Ae,Ys=(H,Ae,h)=>H&&(Ae&&H<Ae?(0,A.k)(Ae):h&&H>h?(0,A.k)(h):H),Hi=()=>new Date,to=()=>(0,F._)(new Date),mo=H=>{},Or=()=>typeof window<"u",aa=(H,Ae)=>H.slice(Ae).concat(H.slice(0,Ae)),ar=H=>(Ae,h="",x={})=>{const ue=document.createElement(H);return ue.className=h,Object.keys(x).map(At=>ue.style[At]=x[At]),"string"==typeof Ae?ue.innerHTML=Ae||"":(Ae||[]).forEach(At=>At&&ue.appendChild(At)),ue},qr=(H,Ae)=>void 0!==H[Ae],bt=(H,Ae)=>H[Ae]&&null!=H[Ae].currentValue,Mt=(H=[])=>H&&H[H.length-1],Xt=(H,Ae)=>{const{start:h,end:x}=Ae||cr;return!(!h||!x)&&h<H&&H<x},yn=(H,Ae)=>H||Ae,Qn=H=>({start:H,end:H}),Ci=(H,Ae)=>{const{start:h,end:x}=H||cr,{start:ue,end:At}=Ae||cr;return(0,N.X)(h,ue)&&(0,N.X)(x,At)},$i=(H,Ae)=>(H=H||[]).length===(Ae=Ae||[]).length&&H.every((h,x)=>(0,N.X)(h,Ae[x])),Us=H=>H.filter(Ae=>ms(Ae)).sort((Ae,h)=>Ae.getTime()-h.getTime()),Vo=(H,Ae)=>({small:`k-${H}-sm`,medium:`k-${H}-md`,large:`k-${H}-lg`}[Ae]),Wr=H=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[H]),Oo=(H,Ae)=>({solid:`k-${H}-solid`,flat:`k-${H}-flat`,outline:`k-${H}-outline`}[Ae]),Ta="medium",ea="medium",la="solid",Br=()=>{if((0,Oe.X_)())return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},Il=[[]],Ur={[so.Left]:H=>se(H,-1),[so.Up]:H=>se(H,-5),[so.Right]:H=>se(H,1),[so.Down]:H=>se(H,5),[so.PrevView]:H=>he(H,-1),[so.NextView]:H=>he(H,1),[so.FirstInView]:H=>te(H),[so.LastInView]:H=>oe(H)};let er=(()=>{class H{constructor(){this.dateRange=(h,x)=>{if(!ms(h)||!ms(x))return[];const ue=[];let At=h;for(;At<=x;)ue.push(At),At=se(At,1);return ue}}addToDate(h,x){return he(h,x)}datesList(h,x){return dt(0,x).map(ue=>he(h,ue))}data(h){const{cellUID:x,focusedDate:ue,isActiveView:At,max:di,min:Qi,selectedDates:Rs,selectionRange:Vs=cr,viewDate:zo}=h;if(!zo)return Il;const xr=dt(0,4),vr=te(zo),Fa=oe(zo),lc=to();return dt(0,3).map(Ul=>{const $c=se(vr,4*Ul);return xr.map($a=>{const Zr=this.normalize(se($c,$a),Qi,di),cc=Zr.getFullYear()>Fa.getFullYear();if(!this.isInRange(Zr,Qi,di)||cc)return null;const hr=this.isEqual(Zr,Vs.start),uc=this.isEqual(Zr,Vs.end),ya=!hr&&!uc&&Xt(Zr,Vs);return{formattedValue:this.value(Zr),id:`${x}${Zr.getTime()}`,isFocused:this.isEqual(Zr,ue),isSelected:At&&Rs.some(dc=>this.isEqual(Zr,dc)),isWeekend:!1,isRangeStart:hr,isRangeMid:ya,isRangeEnd:uc,isRangeSplitEnd:ya&&this.isEqual(Zr,Fa),isRangeSplitStart:ya&&this.isEqual(Zr,vr),isToday:this.isEqual(Zr,lc),title:this.cellTitle(Zr),value:Zr}})})}isEqual(h,x){return!(!h||!x)&&q(h).getFullYear()===q(x).getFullYear()}isInArray(h,x){if(!x.length)return!1;const ue=h.getFullYear();return x[0].getFullYear()<=ue&&ue<=x[x.length-1].getFullYear()+99}isInRange(h,x,ue){const At=q(h).getFullYear(),di=!x||q(x).getFullYear()<=At,Qi=!ue||At<=q(ue).getFullYear();return di&&Qi}beginningOfPeriod(h){if(!h)return h;const x=q(te(h));return(0,y.B)(x.getFullYear(),0,1)}lastDayOfPeriod(h){const x=oe(h),ue=we(x),At=Q(ue);return(0,j.q)(At)}isRangeStart(h){return h.getFullYear()%1e3==0}move(h,x){const ue=Ur[x];return ue?ue(h):h}cellTitle(h){return q(h).getFullYear().toString()}navigationTitle(h){return h?te(h).getFullYear().toString():""}title(h){return h?`${te(h).getFullYear()} - ${oe(h).getFullYear()}`:""}rowLength(){return 4}skip(h,x){return pe(x,h)}total(h,x){return pe(h,x)+1}value(h){return h?q(h).getFullYear().toString():""}viewDate(h,x,ue=1){const At=this.total(h,x);return At<ue?he(h,-1*(ue-At)):h}normalize(h,x,ue){return h<x&&this.isEqual(h,x)?(0,A.k)(x):h>ue&&this.isEqual(h,ue)?(0,A.k)(ue):h}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const ha=[[]],jl={[so.Left]:H=>ee(H,-1),[so.Up]:H=>ee(H,-5),[so.Right]:H=>ee(H,1),[so.Down]:H=>ee(H,5),[so.PrevView]:H=>se(H,-1),[so.NextView]:H=>se(H,1),[so.FirstInView]:H=>q(H),[so.LastInView]:H=>we(H)};let qa=(()=>{class H{constructor(){this.dateRange=(h,x)=>{if(!ms(h)||!ms(x))return[];const ue=[];let At=h;for(;At<=x;)ue.push(At),At=ee(At,1);return ue}}addToDate(h,x){return se(h,x)}datesList(h,x){return dt(0,x).map(ue=>se(h,ue))}data(h){const{cellUID:x,focusedDate:ue,isActiveView:At,max:di,min:Qi,selectedDates:Rs,selectionRange:Vs=cr,viewDate:zo}=h;if(!zo)return ha;const xr=dt(0,4),vr=q(zo),Fa=we(zo),lc=to();return dt(0,3).map(Ul=>{const $c=ee(vr,4*Ul);return xr.map($a=>{const Zr=this.normalize(ee($c,$a),Qi,di),cc=Zr.getFullYear()>Fa.getFullYear();if(!this.isInRange(Zr,Qi,di)||cc)return null;const hr=this.isEqual(Zr,Vs.start),uc=this.isEqual(Zr,Vs.end),ya=!hr&&!uc&&Xt(Zr,Vs);return{formattedValue:this.value(Zr),id:`${x}${Zr.getTime()}`,isFocused:this.isEqual(Zr,ue),isSelected:At&&Rs.some(dc=>this.isEqual(Zr,dc)),isWeekend:!1,isRangeStart:hr,isRangeMid:ya,isRangeEnd:uc,isRangeSplitEnd:ya&&this.isEqual(Zr,Fa),isRangeSplitStart:ya&&this.isEqual(Zr,vr),isToday:this.isEqual(Zr,lc),title:this.cellTitle(Zr),value:Zr}})})}isEqual(h,x){return!(!h||!x)&&h.getFullYear()===x.getFullYear()}isInArray(h,x){if(!x.length)return!1;const ue=h.getFullYear();return x[0].getFullYear()<=ue&&ue<=x[x.length-1].getFullYear()+9}isInRange(h,x,ue){const At=h.getFullYear(),di=!x||x.getFullYear()<=At,Qi=!ue||At<=ue.getFullYear();return di&&Qi}beginningOfPeriod(h){if(!h)return h;const x=q(h);return(0,y.B)(x.getFullYear(),0,1)}lastDayOfPeriod(h){const x=we(h),ue=Q(x);return(0,j.q)(ue)}isRangeStart(h){return h.getFullYear()%100==0}move(h,x){const ue=jl[x];return ue?ue(h):h}cellTitle(h){return h.getFullYear().toString()}navigationTitle(h){return h?q(h).getFullYear().toString():""}title(h){return h?`${q(h).getFullYear()} - ${we(h).getFullYear()}`:""}rowLength(){return 4}skip(h,x){return Ee(x,h)}total(h,x){return Ee(h,x)+1}value(h){return h?h.getFullYear().toString():""}viewDate(h,x,ue=1){const At=this.total(h,x);return At<ue?se(h,-1*(ue-At)):h}normalize(h,x,ue){return h<x&&this.isEqual(h,x)?(0,A.k)(x):h>ue&&this.isEqual(h,ue)?(0,A.k)(ue):h}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const Ml=[[]],Ir={[so.Left]:H=>(0,G.E)(H,-1),[so.Up]:H=>ke(H,-1),[so.Right]:H=>(0,G.E)(H,1),[so.Down]:H=>ke(H,1),[so.PrevView]:H=>(0,P.z)(H,-1),[so.NextView]:H=>(0,P.z)(H,1),[so.FirstInView]:H=>(0,Ye.l)(H),[so.LastInView]:H=>(0,j.q)(H)};let ne=(()=>{class H{constructor(h){this._intlService=h,this.dateRange=(x,ue)=>{if(!ms(x)||!ms(ue))return[];const At=[];let di=x;for(;di<=ue;)At.push(di),di=(0,G.E)(di,1);return At}}addToDate(h,x){return(0,P.z)(h,x)}datesList(h,x){return dt(0,x).map(ue=>(0,P.z)(h,ue))}data(h){const{cellUID:x,focusedDate:ue,isActiveView:At,max:di,min:Qi,selectedDates:Rs,selectionRange:Vs=cr,viewDate:zo,isDateDisabled:xr=(()=>!1)}=h;if(!zo)return Ml;const vr=(0,Ye.l)(zo),Fa=(0,F._)(vr),lc=(0,j.q)(zo),Ul=(0,F._)(lc),$a=ut(vr,this._intlService.firstDay(),-1),Zr=dt(0,7),cc=to();return dt(0,6).map(hr=>{const uc=(0,G.E)($a,7*hr);return Zr.map(Eu=>{const ya=this.normalize((0,G.E)(uc,Eu),Qi,di),dc=(0,F._)(ya),M=dc<Fa||dc>Ul;if(ya<Qi||ya>di)return null;const r=this.isEqual(ya,Vs.start),b=this.isEqual(ya,Vs.end),Te=!r&&!b&&Xt(ya,Vs);return{formattedValue:this.value(ya),id:`${x}${M?ya.getTime()+"1":ya.getTime()}`,isFocused:this.isEqual(ya,ue),isSelected:At&&Rs.some(zn=>this.isEqual(ya,zn)),isWeekend:this.isWeekend(ya),isRangeStart:r,isRangeMid:Te,isRangeEnd:b,isRangeSplitStart:Te&&this.isEqual(ya,vr),isRangeSplitEnd:Te&&this.isEqual(ya,lc),isToday:this.isEqual(ya,cc),title:this.cellTitle(ya),value:ya,isDisabled:xr(ya),isOtherMonth:M}})})}isEqual(h,x){return!(!h||!x)&&(0,F._)(h).getTime()===(0,F._)(x).getTime()}isInArray(h,x){if(0===x.length)return!1;const ue=this.beginningOfPeriod(x[0]),At=this.beginningOfPeriod((0,P.z)(x[x.length-1],1));return ue<=h&&h<At}isInRange(h,x,ue){const At=(0,F._)(h),di=!x||(0,F._)(x)<=At,Qi=!ue||At<=(0,F._)(ue);return di&&Qi}beginningOfPeriod(h){return h&&(0,y.B)(h.getFullYear(),h.getMonth(),1)}lastDayOfPeriod(h){return(0,j.q)(h)}isRangeStart(h){return!h.getMonth()}move(h,x){const ue=Ir[x];return ue?ue(h):h}cellTitle(h){return this._intlService.formatDate(h,"D")}navigationTitle(h){return h?this.isRangeStart(h)?h.getFullYear().toString():this.abbrMonthNames()[h.getMonth()]:""}title(h){return`${this.wideMonthNames()[h.getMonth()]} ${h.getFullYear()}`}rowLength(h={}){return 7+(h.prependCell?1:0)}skip(h,x){return Ct(x,h)}total(h,x){return Ct(h,x)+1}value(h){return h?h.getDate().toString():""}viewDate(h,x,ue=1){const At=this.total(h,x);return At<ue?(0,P.z)(h,-1*(ue-At)):h}isWeekend(h){const{start:x,end:ue}=this._intlService.weekendRange(),At=h.getDay();return ue<x?At<=ue||x<=At:x<=At&&At<=ue}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(h,x,ue){return h<x&&this.isEqual(h,x)?(0,A.k)(x):h>ue&&this.isEqual(h,ue)?(0,A.k)(ue):h}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const qt=[[]],Zt={[so.Left]:H=>(0,P.z)(H,-1),[so.Up]:H=>(0,P.z)(H,(H=>H>4?-5:H<2?-2:-7)(H.getMonth())),[so.Right]:H=>(0,P.z)(H,1),[so.Down]:H=>(0,P.z)(H,(H=>H<7?5:H<10?7:2)(H.getMonth())),[so.PrevView]:H=>ee(H,-1),[so.NextView]:H=>ee(H,1),[so.FirstInView]:H=>Ue(H),[so.LastInView]:H=>Q(H)};let Rn=(()=>{class H{constructor(h){this._intlService=h,this.dateRange=(x,ue)=>{if(!ms(x)||!ms(ue))return[];const At=[];let di=x;for(;di<=ue;)At.push(di),di=(0,P.z)(di,1);return At}}addToDate(h,x){return ee(h,x)}datesList(h,x){return dt(0,x).map(ue=>ee(h,ue))}data(h){const{cellUID:x,focusedDate:ue,isActiveView:At,max:di,min:Qi,selectedDates:Rs,selectionRange:Vs=cr,viewDate:zo}=h;if(!zo)return qt;const xr=this.abbrMonthNames(),vr=Ue(zo),Fa=Q(zo),lc=vr.getFullYear(),Ul=dt(0,4),$c=to();return dt(0,3).map($a=>{const Zr=(0,P.z)(vr,4*$a);return Ul.map(cc=>{const hr=this.normalize((0,P.z)(Zr,cc),Qi,di),uc=lc<hr.getFullYear();if(!this.isInRange(hr,Qi,di)||uc)return null;const Eu=this.isEqual(hr,Vs.start),ya=this.isEqual(hr,Vs.end),M=!Eu&&!ya&&Xt(hr,Vs);return{formattedValue:xr[hr.getMonth()],id:`${x}${hr.getTime()}`,isFocused:this.isEqual(hr,ue),isSelected:At&&Rs.some(Re=>this.isEqual(hr,Re)),isWeekend:!1,isRangeStart:Eu,isRangeMid:M,isRangeEnd:ya,isRangeSplitEnd:M&&this.isEqual(hr,Fa),isRangeSplitStart:M&&this.isEqual(hr,vr),isToday:this.isEqual(hr,$c),title:this.cellTitle(hr),value:hr}})})}isEqual(h,x){return!(!h||!x)&&h.getFullYear()===x.getFullYear()&&h.getMonth()===x.getMonth()}isInArray(h,x){if(!x.length)return!1;const ue=h.getFullYear();return x[0].getFullYear()<=ue&&ue<=x[x.length-1].getFullYear()}isInRange(h,x,ue){const At=(0,y.B)(h.getFullYear(),h.getMonth(),1),di=!x||(0,y.B)(x.getFullYear(),x.getMonth(),1)<=At,Qi=!ue||At<=(0,y.B)(ue.getFullYear(),ue.getMonth(),1);return di&&Qi}beginningOfPeriod(h){return h&&(0,y.B)(h.getFullYear(),0,1)}lastDayOfPeriod(h){const x=Q(h);return(0,j.q)(x)}isRangeStart(h){return h.getFullYear()%10==0}move(h,x){const ue=Zt[x];return ue?ue(h):h}cellTitle(h){return`${h.getFullYear()} ${this.value(h)}`}navigationTitle(h){return this.title(h)}title(h){return h?h.getFullYear().toString():""}rowLength(){return 4}skip(h,x){return vt(x,h)}total(h,x){return vt(h,x)+1}value(h){return h?this.abbrMonthNames()[h.getMonth()]:""}viewDate(h,x,ue=1){const At=this.total(h,x);return At<ue?ee(h,-1*(ue-At)):h}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(h,x,ue){return h<x&&this.isEqual(h,x)?(0,A.k)(x):h>ue&&this.isEqual(h,ue)?(0,A.k)(ue):h}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();var ii=(()=>{return(H=ii||(ii={}))[H.month=0]="month",H[H.year=1]="year",H[H.decade=2]="decade",H[H.century=3]="century",ii;var H})();const $n={[ii.month]:ne,[ii.year]:Rn,[ii.decade]:qa,[ii.century]:er};let ro=0,rs=(()=>{class H{constructor(h){this.injector=h,this.viewChanged=new e.vpe,this.bottom=ii.month,this.top=ii.century,this.calendarId=ro++}configure(h,x){this.bottom=h,this.top=x}service(h){const x=$n[h];return x?this.injector.get(x):null}moveDown(h){this.move(h,-1)}moveUp(h){this.move(h,1)}moveToBottom(h){h!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(h){return this.bottom<h}canMoveUp(h){return h<this.top}clamp(h){return h<this.bottom?this.bottom:h>this.top?this.top:h}move(h,x){const ue=this.clamp(((H,Ae)=>{const h=ii[ii[H+Ae]];return void 0!==h?h:H})(h,x));ue!==h&&this.viewChanged.emit({view:ue})}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(e.zs3))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),Ki=(()=>{class H{constructor(h){this.intl=h}getWeekNames(h=!1,x){const ue=aa(this.intl.dateFormatNames({nameType:x,type:"days"}),this.intl.firstDay());return h?[""].concat(ue):ue}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const Ss=()=>!1;let Ls=(()=>{class H{constructor(){this.changes=new Ot.x,this.isDateDisabled=Ss}initialize(h){if("function"==typeof h)this.isDateDisabled=x=>h((0,F._)(x));else if((H=>Array.isArray(H)&&H.length>0&&H.every(Ae=>"number"==typeof Ae))(h)){const x=new Set(h);this.isDateDisabled=ue=>x.has(ue.getDay())}else if((H=>Array.isArray(H)&&H.length>0&&H.every(Ae=>Ae instanceof Date))(h)){const x=new Set(h.map(ue=>(0,F._)(ue).getTime()));this.isDateDisabled=ue=>x.has((0,F._)(ue).getTime())}else this.isDateDisabled=Ss,this.notifyInvalidInput(h);this.notifyServiceChange()}notifyInvalidInput(h){if(ms(h)&&(0,e.X6Q)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")}notifyServiceChange(){this.changes.next()}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const Ms=(H,Ae,h)=>{for(;H&&H!==h&&!Ae(H);)H=H.parentNode;if(H!==h)return H},ao=(H,Ae)=>{for(;H&&!Ae(H);)H=H.parentNode;return H};class Po{constructor(Ae,h,x,ue){this.$implicit=Ae,this.kForOf=h,this.index=x,this.count=ue}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zs=(()=>{class H{constructor(h,x,ue){this._viewContainer=h,this._template=x,this._differs=ue,this._differ=null}set kForTemplate(h){h&&(this._template=h)}ngOnChanges(h){if("kForOf"in h){const x=h.kForOf.currentValue;if(this._differ||!x)return;try{this._differ=this._differs.find(x).create(this.kForTrackBy)}catch{throw new Error(`Cannot find a differ supporting object '${x}' of type '${function yo(H){return H.name||typeof H}(x)}'.`)}}}ngDoCheck(){if(this._differ){const h=this._differ.diff(this.kForOf);h&&this._applyChanges(h)}}_applyChanges(h){if(!(0,Oe.X_)())return;const x=this._viewContainer.length,ue=this.kForOf.length,At={};h.forEachOperation((di,Qi,Rs)=>{null!==Rs&&(At[Rs]=di.item)});for(let di=x;di<ue;di++)this._viewContainer.createEmbeddedView(this._template,new Po(null,this.kForOf,-1,-1),di);for(let di=this._viewContainer.length;di>ue;di--)this._viewContainer.remove(di-1);for(let di=0;di<this._viewContainer.length;di++){const Qi=this._viewContainer.get(di);Qi.context.index=di,Qi.context.count=length,Qi.context.$implicit=At[di]||null}}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},H.\u0275dir=e.lG2({type:H,selectors:[["","kFor","","kForOf",""]],inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},features:[e.TTD]}),H})(),Uo=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs){this.bus=h,this.intl=x,this.cdr=ue,this.element=At,this.zone=di,this.renderer=Qi,this.disabledDatesService=Rs,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.focusedCellId=new e.vpe,this.colSpan=0,this.subscriptions=new Kt.w0,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===ii.month}set weekNumber(h){this.showWeekNumbers=h}get ariaHidden(){return this.headerTitle!==this.title||null}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(h){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),h.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(h=>h())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===ii.month}shouldRenderCellContent(h){return ms(h)&&!(!this.isHorizontal()&&h.isOtherMonth)}firstDate(h){const x=this.firstWeekDateContext(h);return x?x.value:null}getWeekNumber(h){return this.weekNumber?$e(h,this.intl.firstDay()):null}getWeekNumberContext(h){const x=this.firstWeekDateContext(h);if(!this.weekNumber||!x)return null;const ue=$e(x.value,this.intl.firstDay()).toString();return{formattedValue:ue,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:ue,value:(0,A.k)(x.value)}}getStyles(h){!h.isOtherMonth&&this.isActive&&h.isFocused&&this.focusedCellId.emit(h.id);const{isRangeEnd:x,isRangeStart:ue}=h;return(H=>Object.keys(H).reduce((h,x)=>H[x]?h.concat(x):h,[]).join(" "))({"k-range-end":!h.isOtherMonth&&x,"k-range-mid":!h.isOtherMonth&&h.isRangeMid,"k-range-split-end":!h.isOtherMonth&&h.isRangeSplitEnd,"k-range-split-start":!h.isOtherMonth&&h.isRangeSplitStart,"k-range-start":!h.isOtherMonth&&ue,"k-active":"start"===this.activeRangeEnd&&ue||"end"===this.activeRangeEnd&&x,"k-focus":!h.isOtherMonth&&this.isActive&&h.isFocused,"k-selected":!h.isOtherMonth&&(h.isSelected||ue||x),"k-today":!h.isOtherMonth&&h.isToday,"k-weekend":h.isWeekend,"k-disabled":h.isDisabled,"k-other-month":h.isOtherMonth})}tableCellIndex(h,x){return`${h}:${x}`}handleWeekNumberClick(h){const x=h.map(ue=>ue.value).filter(ue=>!this.disabledDatesService.isDateDisabled(ue));this.weekNumberCellClick.emit(x)}getMonthLabel(h){return 1===this.activeView?this.intl.formatDate(h,"MMMM"):null}firstWeekDateContext(h){if(!this.weekNumber)return null;let x=0,ue=this.shouldRenderCellContent(h[x])?h[x]:null;for(;!ue&&x<h.length;){const At=h[++x];ue=this.shouldRenderCellContent(At)?At:null}return ue}updateData(){const h=Mt(this.selectedDates)||to(),x=Er(this.viewDate,h);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:x,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})}intlChange(){this.updateData(),this.cdr.markForCheck()}disabledDatesChange(){this.updateData(),this.cdr.markForCheck()}bindEvents(){const h=this.element.nativeElement;this.domEvents.push(this.renderer.listen(h,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(h,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(h,"click",this.clickHandler.bind(this)))}clickHandler(h){const x=this.closestCell(h);if(!x)return;const ue=x.getAttribute("data-cell-index"),At=this.cellByIndex(ue);if(!At.isDisabled){const{ctrlKey:di,metaKey:Qi,shiftKey:Rs}=h;this.cellClick.emit({date:At.value,modifiers:{ctrlKey:di,metaKey:Qi,shiftKey:Rs}})}}mouseLeaveHandler(){this.currentCellIndex&&this.emitCellLeave()}cellMouseoverHandler(h){const x=this.closestCell(h);if(x){const ue=x.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==ue&&this.emitCellLeave();const At=this.cellByIndex(ue).value;this.cellEnter.emit(At),this.currentCellIndex=ue}else this.currentCellIndex&&this.emitCellLeave()}closestCell(h){return Ms(h.target,x=>x.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const h=this.cellByIndex(this.currentCellIndex);h&&this.cellLeave.emit(h.value),this.currentCellIndex=null}cellByIndex(h){const[x,ue]=h.split(":");return this.data[x][ue]}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(xt.aJ),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Ls))},H.\u0275cmp=e.Xpm({type:H,selectors:[["","kendoCalendarView",""]],inputs:{direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitle:"headerTitle"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",focusedCellId:"focusedCellId"},features:[e.TTD],attrs:lt,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],["role","gridcell",1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-caption",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td","role","gridcell",3,"kendoEventsOutsideAngular",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-alt","k-calendar-td",3,"kendoEventsOutsideAngular"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,x){1&h&&(e.YNc(0,In,2,0,"ng-template",null,0,e.W1O),e.YNc(2,rn,3,3,"tr",1),e.YNc(3,bi,3,2,"tr",2)),2&h&&(e.xp6(2),e.Q6J("ngIf",!x.isHorizontal()),e.xp6(1),e.Q6J("kForOf",x.data))},dependencies:[_n.O5,zs,Oe.nV,_n.tP,_n.mk],encapsulation:2}),H})(),lr=(()=>{class H{constructor(h,x,ue,At,di,Qi){this.bus=h,this.intl=x,this.weekService=ue,this.cdr=At,this.element=di,this.renderer=Qi,this.activeView=ii.month,this.isActive=!0,this.min=new Date(js),this.max=new Date(fr),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.tabIndex=0,this.disabled=!1,this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.activeDateChange=new e.vpe,this.focusCalendar=new e.vpe,this.blurCalendar=new e.vpe,this.focusedCellChange=new e.vpe,this.getComponentClass=!0,this.weekNames=[],this.wideWeekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}handleMultiViewCalendarFocus(){this.focusCalendar.emit()}handleMultiViewCalendarBlur(h){this.blurCalendar.emit(h)}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(h){this.showWeekNumbers=h}get horizontalHostClass(){return"horizontal"===this.orientation}get verticalHostClass(){return"vertical"===this.orientation}get getComponentMonthClass(){return this.activeView===ii.month}get getComponentYearClass(){return this.activeView===ii.year}get getComponentDecadeClass(){return this.activeView===ii.decade}get getComponentCenturyClass(){return this.activeView===ii.century}get role(){return 2===this.views?"grid":null}get getActiveDescendant(){return 1===this.views?this.activeDescendant:null}get getTabIndex(){return this.disabled||2===this.views?null:this.tabIndex}ngOnChanges(h){if(this.initService(),(0===this.weekNames.length||h.weekNumber)&&(this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide")),!this.service)return;this.views=this.views||2;const x=this.focusedDate,ue=this.clampDate(this.service.viewDate(x,this.max,this.views));this.skip=this.service.skip(ue,this.min),this.total=this.service.total(this.min,this.max);const At=qr(h,"activeView"),di=this.views>0&&qr(h,"views");(At||!this.isInDates(x)||di||!this.activeDate)&&(this.dates=this.service.datesList(ue,this.getTake(this.skip)),this.activeDate=(0,A.k)(this.dates[0]),this.activeDateChange.emit(this.activeDate)),this.setAriaActivedescendant(),2===this.views&&this.renderer.setAttribute(this.element.nativeElement,"tabindex",this.tabIndex.toString())}ngAfterViewInit(){1===this.views&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===ii.month}getCaptionTitle(h){return this.service.title(h)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}handleClassicCalendarFocus(){this.focusCalendar.emit()}handleClassicCalendarBlur(h){this.blurCalendar.emit(h)}animateView(h){const x=this.element.nativeElement,ue=x.querySelector("table"),At=parseFloat(getComputedStyle(x).width),di=parseFloat(getComputedStyle(ue).width);this.renderer.setStyle(x,"width",`${At}px`),this.renderer.setStyle(x,"overflow","visible"),h===so.NextView?this.nextAnimationDate=(0,A.k)(this.dates[0]):this.prevAnimationDate=(0,A.k)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),x.querySelectorAll("table").forEach(xr=>{this.renderer.setStyle(xr,"width",`${di}px`),1===this.views&&this.renderer.setStyle(xr,"min-width",`${At}px`)});const Qi=ue.getBoundingClientRect(),Rs=parseFloat(getComputedStyle(x).columnGap),Vs=h===so.NextView?"translateX(0)":`translateX(-${Qi.width+Rs}px)`,zo=h===so.NextView?`translateX(-${Qi.width+Rs}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=x.animate([{transform:Vs},{transform:zo}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(x,"width"),this.renderer.removeStyle(x,"overflow"),x.querySelectorAll("table").forEach(xr=>{this.renderer.removeStyle(xr,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(h){this.animateNavigation&&(0,Oe.X_)()&&ms(this.element.nativeElement.animate)&&this.animateView(h);const x=this.move(h),ue=this.service.datesList(x,this.getTake(this.skip));return this.isListInRange(ue)&&(this.dates=ue),this.activeDate=(0,A.k)(this.dates[0]),this.focusedDate=(0,A.k)(x),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),(0,A.k)(x)}canNavigate(h){return!!this.service&&this.isListInRange(this.service.datesList(this.move(h),this.getTake(this.skip)))}getWeekNames(h){return this.weekService.getWeekNames(this.weekNumber,h)}setTableMinWidth(){const h=this.element.nativeElement,x=h.querySelector("table");if(x){const ue=parseFloat(getComputedStyle(h).width);this.renderer.setStyle(x,"min-width",`${ue}px`)}}intlChange(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()}clampDate(h){return Ys(h,this.min,this.max)}move(h){return this.service.move(this.dates[0]||this.focusedDate,h)}isListInRange(h){const x=this.service.beginningOfPeriod(this.min),ue=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return x<=h[0]&&h[h.length-1]<ue}isInDates(h){return this.service.isInArray(h,this.dates)}getTake(h){return Math.min(this.total-h,this.views)}setAriaActivedescendant(){2===this.views&&this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",this.activeDescendant)}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(xt.aJ),e.Y36(Ki),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.Qsj))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar-horizontal"]],hostVars:19,hostBindings:function(h,x){1&h&&e.NdJ("focus",function(){return x.handleMultiViewCalendarFocus()})("blur",function(At){return x.handleMultiViewCalendarBlur(At)}),2&h&&(e.uIk("role",x.role),e.ekj("k-calendar-view",x.getComponentClass)("k-align-items-start",x.getComponentClass)("k-justify-content-center",x.getComponentClass)("k-hstack",x.horizontalHostClass)("k-vstack",x.verticalHostClass)("k-calendar-monthview",x.getComponentMonthClass)("k-calendar-yearview",x.getComponentYearClass)("k-calendar-decadeview",x.getComponentDecadeClass)("k-calendar-centuryview",x.getComponentCenturyClass))},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",activeDescendant:"activeDescendant",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[e.TTD],decls:5,vars:3,consts:[["tableTemplate",""],[4,"ngIf"],[4,"kFor","kForOf"],[1,"k-content","k-calendar-table",3,"ngClass","focus","blur"],[3,"ngClass",4,"ngIf"],["class","k-calendar-thead","role","rowgroup",4,"ngIf"],["kendoCalendarView","","role","rowgroup","direction","horizontal",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","selectionRange","activeRangeEnd","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"],[3,"ngClass"],["role","rowgroup",1,"k-calendar-thead"],["role","row",1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,x){1&h&&(e.YNc(0,wt,4,20,"ng-template",null,0,e.W1O),e.YNc(2,gt,1,4,null,1),e.YNc(3,vn,1,4,null,2),e.YNc(4,St,1,4,null,1)),2&h&&(e.xp6(2),e.Q6J("ngIf",x.nextAnimationDate),e.xp6(1),e.Q6J("kForOf",x.dates),e.xp6(1),e.Q6J("ngIf",x.prevAnimationDate))},dependencies:[Uo,_n.mk,_n.O5,_n.sg,_n.tP,zs],encapsulation:2,changeDetection:0}),H})(),Fo=(()=>{class H{constructor(h,x,ue,At,di){this.bus=h,this.cdr=x,this.localization=ue,this.intl=At,this.disabledDatesService=di,this.chevronRightIcon=Ln.oXh,this.chevronLeftIcon=Ln.fL_,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(js),this.max=new Date(fr),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new e.vpe,this.prevButtonClick=new e.vpe,this.nextButtonClick=new e.vpe,this.getComponentClass=!0,this.subscriptions=new Kt.w0}get horizontalHostClass(){return"horizontal"===this.orientation}get verticalHostClass(){return"vertical"===this.orientation}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(h){this.bus.service(this.activeView)&&(this.activeViewValue=ii[this.activeView],this.todayMessage=this.localization.get("today"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(Ys(to(),this.min,this.max)))}handleNavigation(){this.navigate&&this.bus.moveUp(this.activeView)}isDisabled(){return this.navigate?null:""}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const h=this.bus.service(this.activeView),x=this.rangeLength-1,ue=h.title(this.currentDate),At=h.addToDate(this.currentDate,x);return x<1||!h.isInRange(At,this.min,this.max)?ue:`${ue} - ${h.title(At)}`}setTodayAvailability(){const h=to(),x=et(h,(0,F._)(this.min),(0,F._)(this.max)),ue=this.disabledDatesService.isDateDisabled(h);this.todayAvailable=x&&!ue,this.cdr.markForCheck()}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(e.sBO),e.Y36(T.oQ),e.Y36(xt.aJ),e.Y36(Ls))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar-header"]],hostVars:6,hostBindings:function(h,x){2&h&&e.ekj("k-calendar-header",x.getComponentClass)("k-hstack",x.horizontalHostClass)("k-vstack",x.verticalHostClass)},inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation",id:"id"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[e.TTD],decls:9,vars:26,consts:[["role","button","tabindex","-1",1,"k-button","k-nav-fast","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-calendar-title",3,"id","kendoEventsOutsideAngular","title","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-spacer"],[1,"k-calendar-nav","k-hstack"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button","class","k-calendar-nav-prev",3,"svgIcon","disabled","title","click",4,"ngIf"],["tabindex","-1","type","button",1,"k-calendar-nav-today","k-button","k-button-md","k-button-flat","k-button-flat-primary","k-rounded-md",3,"kendoEventsOutsideAngular","scope"],["kendoButton","","fillMode","flat","icon","chevron-right","class","k-calendar-nav-next","tabindex","-1","type","button",3,"svgIcon","disabled","title","click",4,"ngIf"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button",1,"k-calendar-nav-prev",3,"svgIcon","disabled","title","click"],["kendoButton","","fillMode","flat","icon","chevron-right","tabindex","-1","type","button",1,"k-calendar-nav-next",3,"svgIcon","disabled","title","click"]],template:function(h,x){1&h&&(e.TgZ(0,"span",0),e.YNc(1,De,1,1,"ng-template",1),e.YNc(2,ie,0,0,"ng-template",2),e.qZA(),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.YNc(5,je,1,4,"button",5),e.TgZ(6,"button",6),e._uU(7),e.qZA(),e.YNc(8,pt,1,4,"button",7),e.qZA()),2&h&&(e.ekj("k-disabled",!x.navigate),e.Q6J("id",x.id)("kendoEventsOutsideAngular",e.VKq(18,Li,x.handleNavigation))("title",x.parentViewButtonTitle)("scope",x),e.uIk("aria-disabled",x.isDisabled()),e.xp6(1),e.Q6J("ngIf",!x.templateRef),e.xp6(1),e.Q6J("ngIf",x.templateRef)("ngTemplateOutlet",x.templateRef)("ngTemplateOutletContext",e.kEZ(20,Ut,x.title,x.activeViewValue,x.currentDate)),e.xp6(3),e.Q6J("ngIf",x.showNavigationButtons),e.xp6(1),e.ekj("k-disabled",!x.todayAvailable),e.Q6J("kendoEventsOutsideAngular",e.VKq(24,Li,x.handleTodayClick))("scope",x),e.xp6(1),e.hij(" ",x.todayMessage," "),e.xp6(1),e.Q6J("ngIf",x.showNavigationButtons))},dependencies:[Mn.zx,Oe.nV,_n.O5,_n.tP],encapsulation:2}),H})(),no=(()=>{class H{constructor(h){this.bus=h}performSelection(h){let{date:x,modifiers:ue,selectionMode:At,activeViewEnum:di,rangePivot:Qi}=h,Rs=h.selectedDates.slice();if("multiple"===At)if(ue.ctrlKey||ue.metaKey)this.isDateSelected(Rs,x)?Rs=Rs.filter(Vs=>!(0,N.X)(Vs,x)):Rs.push(x),Qi=x;else if(ue.shiftKey){const[Vs,zo]=Us([Qi||x,x]);if(Rs=this.bus.service(di).dateRange(Vs,zo),Qi=x>Rs[0]?Rs[0]:Mt(Rs),ue.anyArrow){const[xr,vr]=Us([this.lastClicked||x,x]);Rs=this.bus.service(0).dateRange(xr,vr)}}else Rs=[x],Qi=x;else Rs=[x],Qi=x;return{selectedDates:Rs,rangePivot:Qi}}isDateSelected(h,x){return h.some(ue=>(0,N.X)(ue,x))}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(rs))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),Tr=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarCellTemplate",""]]}),H})(),Oa=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),H})(),za=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarYearCellTemplate",""]]}),H})(),pa=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),H})(),zl=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),H})(),Sr=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),H})(),$r=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),H})();const el=H=>Ae=>H&&Ae.value&&Ae.value<H?{minError:{minValue:H,value:Ae.value}}:null,Jo=H=>Ae=>H&&Ae.value&&Ae.value>H?{maxError:{maxValue:H,value:Ae.value}}:null,Yl=()=>null,tl={33:so.PrevView,34:so.NextView,35:so.LastInView,36:so.FirstInView,37:so.Left,38:so.Up,39:so.Right,40:so.Down,"meta+38":so.UpperView,"meta+40":so.LowerView};let hl=(()=>{class H{constructor(h){this.bus=h}action(h){return tl[`${h.ctrlKey||h.metaKey?"meta+":""}${h.keyCode}`]}move(h,x,ue){const At=this.bus.service(ue);return At?x===so.UpperView&&this.bus.canMoveUp(ue)?(this.bus.moveUp(ue),h):x===so.LowerView&&this.bus.canMoveDown(ue)?(this.bus.moveDown(ue),h):At.move(h,x):h}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(rs))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),Wl=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[e.qOj]}),H})(),Xl=(()=>{class H extends Wl{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[e._Bn([{provide:Wl,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})();const Ja="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",fc={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>Sa)},nl={multi:!0,provide:o.Cf,useExisting:(0,e.Gpc)(()=>Sa)};let Sa=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs){this.bus=h,this.element=x,this.navigator=ue,this.renderer=At,this.cdr=di,this.zone=Qi,this.disabledDatesService=Rs,this.selectionService=Vs,this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=ii[ii.month],this.bottomView=ii[ii.month],this.topView=ii[ii.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.valueChange=new e.vpe,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.focusCalendar=new e.vpe,this.cellUID=(0,Oe.M8)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=so.PrevView,this.nextView=so.NextView,this.selectedDates=[],this._min=new Date(js),this._max=new Date(fr),this._focusedDate=to(),this.resolvedPromise=Promise.resolve(),this.onControlChange=mo,this.onControlTouched=mo,this.onValidatorChange=mo,this.minValidateFn=mo,this.maxValidateFn=mo,this.disabledDatesRangeValidateFn=mo,this.subscriptions=new Kt.w0,this.setClasses(x.nativeElement),this.id=`kendo-multiviewcalendarid-${this.bus.calendarId}-`}set focusedDate(h){this._focusedDate=h||to()}get focusedDate(){return this._focusedDate}get headerId(){return this.id+"header-"}get multiViewCalendarHeaderIdLabel(){return 2===this.views?this.id+"header-":null}get calendarHeaderIdLabel(){return 1===this.views?this.id+"header-":null}set min(h){this._min=h||new Date(js)}get min(){return this._min}set max(h){this._max=h||new Date(fr)}get max(){return this._max}get value(){return this._value}set value(h){this.verifyValue(h),this._value=Array.isArray(h)?h.filter(ue=>ms(ue)).map(ue=>(0,A.k)(ue)):(0,A.k)(h);const x=[].concat(h).filter(ue=>ms(ue)).map(ue=>(0,A.k)(ue));if(!$i(x,this.selectedDates)){const ue=Mt(x);this.rangePivot=(0,A.k)(ue),this.focusedDate=(0,A.k)(ue)||this.focusedDate,this.selectedDates=x}}set tabIndex(h){this.tabindex=h}get tabIndex(){return this.tabindex}set disabledDates(h){this.disabledDatesService.initialize(h)}set selectionRange(h){this._selectionRange=h,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(h){this._cellTemplateRef=h}get cellTemplateRef(){return this._cellTemplateRef||this.cellTemplate}set monthCellTemplateRef(h){this._monthCellTemplateRef=h}get monthCellTemplateRef(){return this._monthCellTemplateRef||this.monthCellTemplate}set yearCellTemplateRef(h){this._yearCellTemplateRef=h}get yearCellTemplateRef(){return this._yearCellTemplateRef||this.yearCellTemplate}set decadeCellTemplateRef(h){this._decadeCellTemplateRef=h}get decadeCellTemplateRef(){return this._decadeCellTemplateRef||this.decadeCellTemplate}set centuryCellTemplateRef(h){this._centuryCellTemplateRef=h}get centuryCellTemplateRef(){return this._centuryCellTemplateRef||this.centuryCellTemplate}set weekNumberTemplateRef(h){this._weekNumberTemplateRef=h}get weekNumberTemplateRef(){return this._weekNumberTemplateRef||this.weekNumberTemplate}set headerTitleTemplateRef(h){this._headerTitleTemplateRef=h}get headerTitleTemplateRef(){return this._headerTitleTemplateRef||this.headerTitleTemplate}get activeViewEnum(){const h=ii[this.activeView];return h<this.bottomViewEnum?this.bottomViewEnum:h}get bottomViewEnum(){return ii[this.bottomView]}get topViewEnum(){return ii[this.topView]}get widgetId(){return 2===this.views?this.id:null}get ariaDisabled(){return this.disabled}get ariaActivedescendant(){return this.cellUID+this.focusedDate.getTime()}handleFocusout(h){this.element.nativeElement.contains(h.relatedTarget)||(1===this.views?this.blurEvent.emit(h):this.blurEvent.emit(),this.onControlTouched()),this.isActive=!1,this.isHovered=!1}handleFocus(){this.isActive=!0,1===this.views?this.focusCalendar.emit():this.focusEvent.emit(),this.focusEvent.emit()}handleMouseEnter(){this.isHovered=!0}handleMouseLeave(){this.isHovered=!1}handleMousedown(h){h.preventDefault()}handleClick(){this.isActive||this.focus()}keydown(h){const x=-1!==[Oe.R8.ArrowUp,Oe.R8.ArrowDown].indexOf(h.keyCode),ue=h.ctrlKey||h.metaKey,di=h.keyCode===Oe.R8.ArrowLeft&&ue,Qi=h.keyCode===Oe.R8.KeyT,Rs=h.keyCode===Oe.R8.Enter;if(h.keyCode===Oe.R8.ArrowRight&&ue)return h.preventDefault(),void this.navigateView(this.nextView);if(di)return h.preventDefault(),void this.navigateView(this.prevView);if(ue&&x)h.preventDefault();else{if(Qi)return this.focusedDate=to(),void this.bus.moveToBottom(this.activeViewEnum);Rs&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,h))}const Vs=Ys(this.navigator.move(this.focusedDate,this.navigator.action(h),this.activeViewEnum),this.min,this.max);(0,N.X)(this.focusedDate,Vs)||(this.focusedDate=Vs,h.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate),Ka(h)&&(h.anyArrow=!0,this.performSelection(this.focusedDate,h)))}ngOnInit(){this.subscriptions.add(this.bus.viewChanged.subscribe(({view:h})=>{this.activeView=ii[h],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(h){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),bt(h,"focusedDate")&&(this.focusedDate=Ys(h.focusedDate.currentValue,this.min,this.max)),(h.min||h.max||h.rangeValidation||h.disabledDates||h.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?el(this.min):mo,this.maxValidateFn=this.rangeValidation?Jo(this.max):mo,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(H=>ms(H)?Ae=>{if(!(ms(Ae)&&ms(Ae.start)&&ms(Ae.end))||Ae.start>Ae.end)return null;const x=((H,Ae,h)=>{if(!(H&&Ae&&h)||H>Ae)return[];const x=[];let ue=H;for(;ue<=Ae;)h(ue)&&x.push(ue),ue=(0,G.E)(ue,1);return x})(Ae.start,Ae.end,H);return x.length?{disabledDatesInRange:x}:null}:Yl)(this.disabledDatesService.isDateDisabled):mo,this.onValidatorChange()),(h.min||h.max||h.focusedDate||h.activeView)&&this.updateButtonState()}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus({preventScroll:!0})}blur(){this.element&&this.element.nativeElement.querySelector(2===this.views?".k-calendar-view":".k-content.k-calendar-table").blur()}handleDateChange(h){const x=this.bus.canMoveDown(this.activeViewEnum),ue=h.selectedDates.filter(di=>!this.disabledDatesService.isDateDisabled(di));this.focusedDate=h.focusedDate||this.focusedDate;const At=!x&&$i(ue,this.selectedDates);if(!this.disabled&&!At){if(x)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=ue.map(di=>(0,A.k)(di)),this.value=this.parseSelectionToValue(ue),this.onControlChange(this.parseSelectionToValue(ue)),this.valueChange.emit(this.parseSelectionToValue(ue)))}}handleTodayButtonClick(h){const x=h.focusedDate,ue=this.bus.service(this.activeViewEnum).isInArray(x,this.viewList.dates),At=!this.bus.canMoveDown(this.activeViewEnum);!ue&&At&&this.emitNavigate(x),this.handleDateChange(h)}setActiveDate(h){this.activeDate=(0,A.k)(h),this.cdr.detectChanges()}writeValue(h){this.verifyValue(h),this.value=h,this.cdr.markForCheck()}registerOnChange(h){this.onControlChange=h}registerOnTouched(h){this.onControlTouched=h}setDisabledState(h){this.disabled=h,this.cdr.markForCheck()}validate(h){return this.minValidateFn(h)||this.maxValidateFn(h)||this.disabledDatesRangeValidateFn(this.selectionRange)}registerOnValidatorChange(h){this.onValidatorChange=h}activeCellTemplate(){switch(this.activeViewEnum){case ii.month:return this.monthCellTemplateRef||this.cellTemplateRef;case ii.year:return this.yearCellTemplateRef;case ii.decade:return this.decadeCellTemplateRef;case ii.century:return this.centuryCellTemplateRef;default:return null}}navigateView(h){this.focusedDate=this.viewList.navigate(h),this.updateButtonState(),this.emitNavigate(this.focusedDate)}emitNavigate(h){this.navigate.emit({activeView:ii[this.activeViewEnum],focusedDate:h})}emitCellEvent(h,x){(0,Oe.g$)(h)&&this.zone.run(()=>{h.emit(x)})}handleCellClick({date:h,modifiers:x}){this.selectionService.lastClicked=h,this.performSelection(h,x),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}handleWeekNumberClick(h){"single"!==this.selection&&this.zone.run(()=>{this.handleDateChange({selectedDates:h,focusedDate:Mt(h)})})}setClasses(h){this.renderer.addClass(h,"k-widget"),this.renderer.addClass(h,"k-calendar"),this.renderer.addClass(h,"k-calendar-range")}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(h){if((0,e.X6Q)()){if("single"===this.selection&&h&&!(h instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${Ja} for possible resolution.`);if("multiple"===this.selection&&h&&Array.isArray(h)&&!h.every(ue=>ue instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${Ja} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(h){return h=h||[],"single"===this.selection?(0,A.k)(Mt(h)):h.map(x=>(0,A.k)(x))}performSelection(h,x){const ue=this.selectionService.performSelection({date:h,modifiers:x,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=ue.rangePivot,this.handleDateChange({selectedDates:ue.selectedDates,focusedDate:h})}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(e.SBq),e.Y36(hl),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(Ls),e.Y36(no))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(h,x,ue){if(1&h&&(e.Suo(ue,Tr,5),e.Suo(ue,Oa,5),e.Suo(ue,za,5),e.Suo(ue,pa,5),e.Suo(ue,zl,5),e.Suo(ue,Sr,5),e.Suo(ue,$r,5)),2&h){let At;e.iGM(At=e.CRH())&&(x.cellTemplate=At.first),e.iGM(At=e.CRH())&&(x.monthCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.yearCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.decadeCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.centuryCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.weekNumberTemplate=At.first),e.iGM(At=e.CRH())&&(x.headerTitleTemplate=At.first)}},viewQuery:function(h,x){if(1&h&&(e.Gf(Fo,5,e.SBq),e.Gf(lr,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.headerElement=ue.first),e.iGM(ue=e.CRH())&&(x.viewList=ue.first)}},hostVars:4,hostBindings:function(h,x){1&h&&e.NdJ("mouseenter",function(){return x.handleMouseEnter()})("mouseleave",function(){return x.handleMouseLeave()})("mousedown",function(At){return x.handleMousedown(At)})("click",function(){return x.handleClick()})("keydown",function(At){return x.keydown(At)}),2&h&&(e.uIk("id",x.widgetId)("aria-disabled",x.ariaDisabled),e.ekj("k-disabled",x.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur",focusEvent:"focus",focusCalendar:"focusCalendar"},exportAs:["kendo-multiviewcalendar"],features:[e._Bn([rs,fc,nl,T.oQ,Ls,{provide:T.mM,useValue:"kendo.multiviewcalendar"},hl,no]),e.TTD],decls:3,vars:32,consts:function(){let Ae,h,x,ue;return Ae=$localize`:kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today`,h=$localize`:kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view`,x=$localize`:kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view`,ue=$localize`:kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header:Navigate to parent view`,[["kendoMultiViewCalendarLocalizedMessages","","today",Ae,"prevButtonTitle",h,"nextButtonTitle",x,"parentViewButtonTitle",ue],[3,"activeView","currentDate","min","max","id","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"id","activeView","activeDescendant","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","orientation","tabIndex","disabled","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange","focusCalendar","blurCalendar"]]},template:function(h,x){if(1&h&&(e.GkF(0,0),e.TgZ(1,"kendo-calendar-header",1),e.NdJ("todayButtonClick",function(At){return x.handleTodayButtonClick({selectedDates:[At],focusedDate:At})})("prevButtonClick",function(){return x.navigateView(x.prevView)})("nextButtonClick",function(){return x.navigateView(x.nextView)}),e.qZA(),e.TgZ(2,"kendo-calendar-horizontal",2),e.NdJ("cellClick",function(At){return x.handleCellClick(At)})("weekNumberCellClick",function(At){return x.handleWeekNumberClick(At)})("cellEnter",function(At){return x.emitCellEvent(x.cellEnter,At)})("cellLeave",function(At){return x.emitCellEvent(x.cellLeave,At)})("activeDateChange",function(At){return x.setActiveDate(At)})("focusCalendar",function(){return x.handleFocus()})("blurCalendar",function(At){return x.handleFocusout(At)}),e.qZA()),2&h){let ue;e.xp6(1),e.Q6J("activeView",x.activeViewEnum)("currentDate",x.activeDate)("min",x.min)("max",x.max)("id",x.headerId)("rangeLength",x.views)("templateRef",null==x.headerTitleTemplateRef?null:x.headerTitleTemplateRef.templateRef)("isPrevDisabled",x.isPrevDisabled)("isNextDisabled",x.isNextDisabled)("showNavigationButtons",!0)("orientation",x.orientation),e.xp6(1),e.Q6J("id",x.calendarHeaderIdLabel)("activeView",x.activeViewEnum)("activeDescendant",x.ariaActivedescendant)("isActive",x.isActive||x.isHovered)("cellTemplateRef",null==(ue=x.activeCellTemplate())?null:ue.templateRef)("weekNumberTemplateRef",null==x.weekNumberTemplateRef?null:x.weekNumberTemplateRef.templateRef)("cellUID",x.cellUID)("views",x.views)("min",x.min)("max",x.max)("focusedDate",x.focusedDate)("animateNavigation",x.animateNavigation)("showViewHeader",x.showViewHeader)("weekNumber",x.weekNumber)("activeRangeEnd",x.activeRangeEnd)("selectionRange",x.selectionRange)("selectedDates",x.selectedDates)("orientation",x.orientation)("tabIndex",x.tabIndex)("disabled",x.disabled),e.uIk("aria-labelledby",x.multiViewCalendarHeaderIdLabel)}},dependencies:[Fo,lr,Xl],encapsulation:2,changeDetection:0}),H})();const xl=ar("div"),ql=ar("ul"),sc=ar("li"),Aa=ar("td"),al=ar("th"),Va=ar("tr"),Ol=ar("tbody"),Ca=ar("thead"),$l=ar("table"),il=(H,Ae)=>new Array(H).fill("1").map(Ae),ua=H=>xl(H,"k-flex k-content k-scrollable"),Bl=(()=>{let H;return()=>Oe.X_?(H||(H=xl([ua([ql([sc("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),H):null})(),Ya=({cells:H,rows:Ae},h,x)=>{let ue;return()=>Oe.X_?(ue||(ue=((H,Ae,h)=>xl([xl('\n            <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title">March 2017</span>\n            <span class="k-spacer"></span>\n            <span class="k-calendar-nav k-hstack">\n                <button class="k-calendar-nav-today k-button k-button-md k-button-flat k-button-flat-primary k-rounded-md">TODAY</button>\n            </span>\n        ',"k-calendar-header k-hstack"),h?$l([Ca([Va([al("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,ua([H,H])],Ae,{left:"-10000px",position:"absolute"}))(((H,Ae=1)=>$l([Ol([Va([al("1","k-calendar-th")],"k-calendar-tr")].concat(il(H,()=>Va(il(Ae,h=>Aa(`<span class="k-link">${h}</span>`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"))(Ae,H),h,x)),ue):null},yl=H=>H.querySelector(".k-scrollable"),ft=H=>(yl(H).classList.add("k-scrollable-horizontal"),H),fe=Ya({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),ge=Ya({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),He=Ya({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),ci=H=>parseFloat(window.getComputedStyle(H).height)||H.offsetHeight,Oi=H=>{const Ae=window.getComputedStyle(H);return parseFloat(Ae.width)+parseFloat(Ae.paddingLeft)+parseFloat(Ae.paddingRight)||H.offsetWidth},es=H=>H.querySelector("tbody");let Cs=(()=>{class H{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(h){(0,Oe.X_)()&&(this.hostContainer=h,this.batch(fe(),x=>{const ue=es(x);this.calendarHeight=ci(x),this.monthViewHeight=ci(ue),this.headerHeight=ci(ue.children[0]),this.scrollableContentHeight=ci(yl(x))}),this.batch(ft(fe()),x=>{const ue=es(x);this.calendarWidth=Oi(x),this.monthViewWidth=Oi(ue),this.scrollableContentWidth=Oi(yl(x))}),this.batch(ge(),x=>{this.yearViewHeight=ci(es(x)),this.scrollableYearContentHeight=ci(yl(x))}),this.batch(ft(ge()),x=>{this.yearViewWidth=Oi(es(x))}),this.batch(He(),x=>{this.decadeViewHeight=ci(es(x)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(ft(He()),x=>{this.decadeViewWidth=Oi(es(x)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(Bl(),x=>{this.navigationItemHeight=ci(x.querySelector("li"))}))}viewHeight(h){return this.viewDimension(h,"height")}viewWidth(h){return this.viewDimension(h,"width")}viewDimension(h,x){const ue="height"===x?"ViewHeight":"ViewWidth";switch(h){case ii.month:return this[`month${ue}`];case ii.year:return this[`year${ue}`];case ii.decade:return this[`decade${ue}`];case ii.century:return this[`century${ue}`];default:return 1}}batch(h,x){if(!ms(this.hostContainer))return;const ue=this.hostContainer.cloneNode();document.body.appendChild(ue);try{x(ue.appendChild(h))}finally{document.body.removeChild(ue)}}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();class Ne{constructor(Ae=0,h,x){this.total=Ae,this.rowHeight=h,this.detailRowHeight=x,this.offsets=[],this.heights=[];let ue=0;for(let At=0;At<Ae;At++)this.offsets.push(ue),ue+=h,this.heights.push(h)}height(Ae){return this.heights[Ae]}expandDetail(Ae){this.height(Ae)===this.rowHeight&&this.updateRowHeight(Ae,this.detailRowHeight)}collapseDetail(Ae){this.height(Ae)>this.rowHeight&&this.updateRowHeight(Ae,-1*this.detailRowHeight)}index(Ae){if(Ae<0)return;const h=this.offsets.reduce((x,ue,At)=>void 0!==x?x:ue===Ae?At:ue>Ae?At-1:void 0,void 0);return void 0===h?this.total-1:h}offset(Ae){return this.offsets[Ae]}totalHeight(){return this.heights.reduce((Ae,h)=>Ae+h,0)}updateRowHeight(Ae,h){this.heights[Ae]+=h,this.offsets=((H,Ae,h)=>[...H.slice(0,Ae+1),...H.slice(Ae+1).map(x=>x+h)])(this.offsets,Ae,h)}}const v=H=>Math.max(H,0);class D{constructor(Ae){this.offset=Ae}}class W{constructor(Ae){this.skip=Ae}}class L{constructor(Ae){this.scrollObservable=Ae,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(Ae,h,x,ue,At=0,di=0,Qi="vertical"){this.rowHeightService=Ae,this.firstLoaded=h,this.lastLoaded=h+x,this.take=x,this.total=ue,this.lastScroll=0,this.topOffset=At,this.bottomOffset=di,this.direction=Qi;const Rs=new $t.t(2),Vs=this.rowsForHeight(At),zo=v(h-Vs);return Rs.next(new D(this.rowOffset(zo))),Vs&&Rs.next(new W(zo)),this.subscription=new rt.y(xr=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(vr=>this.onScroll(vr,xr))}).subscribe(xr=>Rs.next(xr)),Rs}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:Ae,scrollTop:h,offsetHeight:x,offsetWidth:ue},At){const di="vertical"===this.direction?h:Ae,Qi="vertical"===this.direction?x:ue;if(this.lastScroll===di)return;const Rs=this.lastScroll>=di;this.lastScroll=di;const Vs=this.rowHeightService.index(v(di-this.topOffset)),zo=this.rowHeightService.index(v(di+Qi-this.bottomOffset));if(!Rs&&zo>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=Vs,At.next(new D(this.rowOffset(Vs))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),At.next(new W(this.firstLoaded))),Rs&&Vs<=this.firstLoaded){const xr=Math.floor(.3*this.take);this.firstLoaded=v(Vs-xr),At.next(new D(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),At.next(new W(this.firstLoaded))}}rowOffset(Ae){return this.rowHeightService.offset(Ae)+this.topOffset}rowsForHeight(Ae){return Math.ceil(Ae/this.rowHeightService.height(0))}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)}}const Me=new e.OlP("dateinputs-scroll-service-factory");function tn(H){return new L(H)}var oi=(()=>{return(H=oi||(oi={}))[H.Backward=0]="Backward",H[H.Forward=1]="Forward",oi;var H})();const hs={[oi.Forward]:H=>Ae=>Ae+H,[oi.Backward]:H=>Ae=>Ae-H},Eo={[oi.Forward]:H=>Ae=>Math.min(Ae,H),[oi.Backward]:H=>Ae=>Math.max(Ae,H)},jo={[oi.Forward]:H=>Ae=>Ae<H,[oi.Backward]:H=>Ae=>Ae>H};let Hr=(()=>{class H{constructor(h,x,ue,At,di){this.container=x,this.renderer=ue,this.zone=At,this.scrollBarWidthService=di,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new e.vpe,this.pageChange=new e.vpe,this.scrollChange=new e.vpe,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ot.x,this.scroller=h(this.dispatcher)}get horizontalClass(){return"horizontal"===this.direction}get totalVertexLength(){const h=`${this.totalSize}px`;return"vertical"===this.direction?{height:h}:{width:h}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}ngOnChanges(h){(h.direction||h.take||h.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe((0,pi.U)(h=>h.target)).subscribe(h=>{this.dispatcher.next(h),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(h){return this.container.nativeElement[h]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(h){return this.rowHeightService.index(h)}itemOffset(h){return this.rowHeightService.offset(h)}isIndexVisible(h){if(!this.rowHeightService)return!1;const x=this.containerScrollPosition,ue=x+this.containerOffsetSize,At=this.rowHeightService.offset(h),di=At+this.rowHeightService.height(h);return At>=x&&di<=ue}isListScrolled(h){return this.containerScrollPosition!==this.rowHeightService.offset(h)}scrollTo(h){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",h)}scrollToIndex(h){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(h))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(h){this.animationSubscription&&this.animationSubscription.unsubscribe();const x=this.rowHeightService.offset(h),ue=this.getContainerScrollDirection(x),{start:At,end:di}=this.scrollRange(x,ue);if(At===di)return;const Qi=this.scrollStep(At,di),Rs=hs[ue](Qi),Vs=Eo[ue](di),zo=jo[ue](Rs(di));this.zone.runOutsideAngular(()=>{this.animationSubscription=(0,We.a)((0,yt.of)(At),(0,it.F)(0,It.Z)).pipe((0,pi.U)(xr=>xr[0]),(0,Yn.R)(Rs),(0,gi.o)(zo),(0,pi.U)(Vs)).subscribe(xr=>this.scrollTo(xr))})}scrollRange(h,x){const ue=this.containerScrollPosition;if(parseInt(h,10)===parseInt(ue,10))return{start:h,end:h};const At=this.containerMaxScroll(),di=x===oi.Backward?1:-1,Qi=((H,Ae,h)=>Math.min(Math.abs(Ae-H),h))(ue,h,this.maxScrollDifference),Rs=Math.min(h,At);return{start:Math.min(Math.max(Rs+di*Qi,0),At),end:Rs}}scrollStep(h,x){return Math.abs(x-h)/(this.scrollDuration/17)}scroll$(){return(0,Oe.X_)()?(0,Tt.R)(this.container.nativeElement,"scroll"):wn.E}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(h=>{h instanceof W?this.pageChange.emit(h):this.scrollChange.emit(h)})}createRowHeightService(){return new Ne(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const h=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==h&&(this.lastActiveIndex=h,this.activeIndexChange.emit(h))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(h){return h<this.containerScrollPosition?oi.Backward:oi.Forward}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(Me),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Oe.GK))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-virtualization"]],hostVars:8,hostBindings:function(h,x){2&h&&e.ekj("k-flex",x.wrapperClasses)("k-content",x.wrapperClasses)("k-scrollable",x.wrapperClasses)("k-scrollable-horizontal",x.horizontalClass)},inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},features:[e._Bn([{provide:Me,useValue:tn}]),e.TTD],ngContentSelectors:xn,decls:2,vars:3,consts:[[1,"k-scrollable-placeholder",3,"ngStyle"]],template:function(h,x){1&h&&(e.F$t(),e.Hsn(0),e._UZ(1,"div",0)),2&h&&(e.xp6(1),e.ekj("k-scrollable-horizontal-placeholder","horizontal"===x.direction),e.Q6J("ngStyle",x.totalVertexLength))},dependencies:[_n.PC],encapsulation:2}),H})(),wa=(()=>{class H{constructor(h,x,ue,At,di){this.bus=h,this.dom=x,this.intl=ue,this.cdr=At,this.renderer=di,this.min=new Date(js),this.max=new Date(fr),this.focusedDate=new Date,this.valueChange=new e.vpe,this.pageChange=new e.vpe,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const h=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(h-this.itemHeight)/2,this.bottomOffset=h-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(h){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=ii[this.activeView];const x=Ys(this.focusedDate,this.min,this.max),ue=this.service.total(this.min,this.max),At=this.total&&this.total!==ue;this.skip=this.service.skip(x,this.min),this.total=ue,(At||!this.service.isInArray(x,this.dates))&&(this.dates=this.service.datesList(x,this.getTake(this.skip))),(h.focusedDate||At)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:h}){this.dates=this.service.datesList(this.service.addToDate(this.min,h),this.getTake(h)),this.pageChange.emit()}scrollChange({offset:h}){const x=this.list.nativeElement,ue=`translateY(${h}px)`;this.renderer.setStyle(x,"transform",ue),this.renderer.setStyle(x,"-ms-transform",ue)}handleDateChange(h){const x=Ms(h.target,ue=>ue.hasAttribute("data-date-index"),this.list.nativeElement);if(x){const ue=parseInt(x.getAttribute("data-date-index"),10);this.valueChange.emit((0,A.k)(this.dates[ue]))}}getTake(h){return Math.min(this.total-h,this.take)}intlChange(){this.activeView===ii.month&&this.cdr.markForCheck()}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(Cs),e.Y36(xt.aJ),e.Y36(e.sBO),e.Y36(e.Qsj))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar-navigation"]],viewQuery:function(h,x){if(1&h&&(e.Gf(Hr,5),e.Gf(hn,7)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.virtualization=ue.first),e.iGM(ue=e.CRH())&&(x.list=ue.first)}},hostVars:2,hostBindings:function(h,x){2&h&&e.ekj("k-calendar-navigation",x.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[e.TTD],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,x){1&h&&(e._UZ(0,"span",0),e.TgZ(1,"kendo-virtualization",1),e.NdJ("pageChange",function(At){return x.onPageChange(At)})("scrollChange",function(At){return x.scrollChange(At)}),e.TgZ(2,"ul",2,3),e.YNc(4,mi,4,11,"li",4),e.qZA()()),2&h&&(e.xp6(1),e.Q6J("skip",x.skip)("take",x.take)("total",x.total)("itemHeight",x.itemHeight)("topOffset",x.topOffset)("bottomOffset",x.bottomOffset)("maxScrollDifference",x.maxViewHeight),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(10,Li,x.handleDateChange))("scope",x),e.xp6(2),e.Q6J("kForOf",x.dates))},dependencies:[Hr,Oe.nV,zs,_n.O5,_n.tP],encapsulation:2,changeDetection:0}),H})(),ll=(()=>{class H{constructor(h,x,ue,At,di){this.bus=h,this.cdr=x,this.intl=ue,this.dom=At,this.renderer=di,this.isActive=!0,this.min=new Date(js),this.max=new Date(fr),this.selectedDates=[],this.tabIndex=0,this.disabled=!1,this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.activeDateChange=new e.vpe,this.todayButtonClick=new e.vpe,this.pageChange=new e.vpe,this.focusCalendar=new e.vpe,this.blurCalendar=new e.vpe,this.focusedCellChange=new e.vpe,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.wideWeekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(h){this.showWeekNumbers=h}get headerTitle(){return this.headerComponent?.title}get getComponentMonthClass(){return this.activeView===ii.month}get getComponentYearClass(){return this.activeView===ii.year}get getComponentDecadeClass(){return this.activeView===ii.decade}get getComponentCenturyClass(){return this.activeView===ii.century}ngOnInit(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(h){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=qr(h,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=qr(h,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames;const x=qr(h,"activeView"),ue=this.focusedDate,At=Ys(this.service.viewDate(ue,this.max,this.minViewsToRender),this.min,this.max),di=this.service.total(this.min,this.max),Rs=this.total&&this.total!==di||!this.service.isInArray(ue,this.dates);this.skip=this.service.skip(At,this.min),this.total=di,this.animateToIndex=!x,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),Rs&&(this.dates=this.service.datesList(At,this.getTake(this.skip))),((H,Ae)=>H&&Ae&&H.getFullYear()===Ae.getFullYear()&&H.getMonth()===Ae.getMonth())(this.activeDate,ue)||(this.activeDate=(0,A.k)(ue));const Vs=qr(h,"focusedDate")||x;(Rs||Vs||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(ue,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:h}){this.dates=this.service.datesList(this.service.addToDate(this.min,h),this.getTake(h)),this.pageChange.emit()}scrollChange({offset:h}){const x=this.list.nativeElement,ue=`translateY(${h}px)`;this.renderer.setStyle(x,"transform",ue),this.renderer.setStyle(x,"-ms-transform",ue)}setActiveDate(h){const x=this.service.addToDate(this.min,h);this.activeDate=x,this.activeDateChange.emit(x),this.cdr.detectChanges()}isMonthView(){return this.activeView===ii.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getTabIndex(){return this.disabled?null:this.tabIndex}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===ii.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(h){return Math.min(this.total-h,this.take)}getWeekNames(h){const x=aa(this.intl.dateFormatNames({nameType:h,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(x):x}intlChange(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(e.sBO),e.Y36(xt.aJ),e.Y36(Cs),e.Y36(e.Qsj))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(h,x){if(1&h&&(e.Gf(Hr,5),e.Gf(Fo,5),e.Gf(hn,7)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.virtualization=ue.first),e.iGM(ue=e.CRH())&&(x.headerComponent=ue.first),e.iGM(ue=e.CRH())&&(x.list=ue.first)}},hostVars:12,hostBindings:function(h,x){2&h&&e.ekj("k-vstack",x.getComponentClass)("k-calendar-view",x.getComponentClass)("k-calendar-monthview",x.getComponentMonthClass)("k-calendar-yearview",x.getComponentYearClass)("k-calendar-decadeview",x.getComponentDecadeClass)("k-calendar-centuryview",x.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[e.TTD],decls:8,vars:20,consts:[[3,"currentDate","min","max","id","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table",3,"table-layout",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table",3,"focus","blur"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","focusedCellId",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","focusedCellId"]],template:function(h,x){1&h&&(e.TgZ(0,"kendo-calendar-header",0),e.NdJ("todayButtonClick",function(At){return x.todayButtonClick.emit(At)}),e.qZA(),e.YNc(1,Pi,4,3,"table",1),e.TgZ(2,"kendo-virtualization",2),e.NdJ("pageChange",function(At){return x.onPageChange(At)})("scrollChange",function(At){return x.scrollChange(At)})("activeIndexChange",function(At){return x.setActiveDate(At)}),e.TgZ(3,"table",3,4),e.NdJ("focus",function(){return x.focusCalendar.emit()})("blur",function(At){return x.blurCalendar.emit(At)}),e.TgZ(5,"colgroup"),e.YNc(6,Di,1,0,"col",5),e.qZA(),e.YNc(7,Yi,1,12,"tbody",6),e.qZA()()),2&h&&(e.Q6J("currentDate",x.activeDate)("min",x.min)("max",x.max)("id",x.id)("activeView",x.activeView)("templateRef",x.headerTitleTemplateRef),e.xp6(1),e.Q6J("ngIf",x.isMonthView()),e.xp6(1),e.Q6J("tabindex",-1)("skip",x.skip)("take",x.take)("total",x.total)("itemHeight",x.viewHeight)("topOffset",x.viewOffset)("bottomOffset",x.bottomOffset)("scrollOffsetSize",x.viewOffset)("maxScrollDifference",x.viewHeight),e.xp6(1),e.uIk("tabindex",x.getTabIndex())("aria-labelledby",x.id),e.xp6(3),e.Q6J("ngForOf",x.cols),e.xp6(1),e.Q6J("kForOf",x.dates))},dependencies:[Fo,Hr,Uo,_n.O5,_n.sg,zs],encapsulation:2,changeDetection:0}),H})(),Ao=(()=>{class H{constructor(h,x){this.dom=h,this.zone=x}configure(h){const x=Math.max(this.dom.viewHeight(h)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(H=>Ae=>Math.floor(Ae/H))(x),this.powerByMagnitude=(H=>Ae=>Ae*H)(x)}sync(h,x){this.unsubscribe(),h&&x&&(this.navigator=h,this.view=x,this.zone.runOutsideAngular(()=>{let ue,At;this.navSubscription=h.scroll$().subscribe(di=>{At?At=!1:(ue=!0,this.scrollSiblingOf(di.target))}),this.viewSubscription=x.scroll$().subscribe(di=>{ue?ue=!1:(At=!0,this.scrollSiblingOf(di.target))})}))}scrollSiblingOf(h){const x=this.siblingComponent(h),ue=this.calculateScroll(x,h.scrollTop);x.scrollTo(ue)}siblingComponent(h){return this.navigator.container.nativeElement===h?this.view:this.navigator}calculateScroll(h,x){return(h===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(x)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(Cs),e.LFG(e.R0b))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),Wo=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),H})();class tr{constructor(){this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.sameDateSelected=new e.vpe,this.dateCompletenessChange=new e.vpe}}let Ra=(()=>{class H extends Wl{constructor(h){super(),this.service=h}get override(){return!0}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-multiviewcalendar-messages"]],features:[e._Bn([{provide:Wl,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj],decls:0,vars:0,template:function(h,x){},encapsulation:2}),H})(),pl=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[e.qOj]}),H})(),sl=(()=>{class H extends pl{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[e._Bn([{provide:pl,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})();const va="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Mr=H=>H?H.virtualization:null,Ba={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>bl)},Mc={multi:!0,provide:o.Cf,useExisting:(0,e.Gpc)(()=>bl)},gc={provide:Oe.GX,useExisting:(0,e.Gpc)(()=>bl)};let bl=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs,zo,xr,vr,Fa,lc){this.bus=h,this.dom=x,this.element=ue,this.navigator=At,this.renderer=di,this.cdr=Qi,this.ngZone=Rs,this.injector=Vs,this.scrollSyncService=zo,this.disabledDatesService=xr,this.localization=vr,this.selectionService=Fa,this.pickerService=lc,this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=ii[ii.month],this.bottomView=ii[ii.month],this.topView=ii[ii.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.activeViewDateChange=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.valueChange=new e.vpe,this._size=ea,this.isActive=!1,this.cellUID=(0,Oe.M8)(),this.selectedDates=[],this._min=new Date(js),this._max=new Date(fr),this._focusedDate=to(),this.onControlChange=mo,this.onControlTouched=mo,this.onValidatorChange=mo,this.minValidateFn=mo,this.maxValidateFn=mo,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,(0,Nt.s)(Nr),this.id=`kendo-calendarid-${this.bus.calendarId}`,this.setClasses(ue.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}get popupId(){return`kendo-popup-${this.bus.calendarId}`}set focusedDate(h){if(this.activeViewDate&&!(0,N.X)(this._focusedDate,h)){const x=this.bus.service(this.activeViewEnum),ue=x.lastDayOfPeriod(this.activeViewDate);x.isInRange(h,this.activeViewDate,ue)||this.emitNavigate(h)}this._focusedDate=h||to(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate}get headerId(){return this.id+"-header"}set min(h){this._min=h||new Date(js)}get min(){return this._min}set max(h){this._max=h||new Date(fr)}get max(){return this._max}get value(){return this._value}set value(h){this.verifyValue(h),this._value=Array.isArray(h)?h.filter(ue=>ms(ue)).map(ue=>(0,A.k)(ue)):(0,A.k)(h);const x=[].concat(h).filter(ue=>ms(ue)).map(ue=>(0,A.k)(ue));if(!$i(x,this.selectedDates)){const ue=Mt(x);this.rangePivot=(0,A.k)(ue),this.focusedDate=(0,A.k)(ue)||this.focusedDate,this.selectedDates=x}}set tabIndex(h){this.tabindex=h}get tabIndex(){return this.tabindex}set disabledDates(h){this.disabledDatesService.initialize(h),this._disabledDates=h}get disabledDates(){return this._disabledDates}set type(h){this.renderer.removeClass(this.element.nativeElement,`k-calendar-${this.type}`),this.renderer.addClass(this.element.nativeElement,`k-calendar-${h}`),this._type=h}get type(){return this._type}set cellTemplateRef(h){this._cellTemplateRef=h}get cellTemplateRef(){return this._cellTemplateRef||this.cellTemplate}set monthCellTemplateRef(h){this._monthCellTemplateRef=h}get monthCellTemplateRef(){return this._monthCellTemplateRef||this.monthCellTemplate}set yearCellTemplateRef(h){this._yearCellTemplateRef=h}get yearCellTemplateRef(){return this._yearCellTemplateRef||this.yearCellTemplate}set decadeCellTemplateRef(h){this._decadeCellTemplateRef=h}get decadeCellTemplateRef(){return this._decadeCellTemplateRef||this.decadeCellTemplate}set centuryCellTemplateRef(h){this._centuryCellTemplateRef=h}get centuryCellTemplateRef(){return this._centuryCellTemplateRef||this.centuryCellTemplate}set weekNumberTemplateRef(h){this._weekNumberTemplateRef=h}get weekNumberTemplateRef(){return this._weekNumberTemplateRef||this.weekNumberTemplate}set headerTitleTemplateRef(h){this._headerTitleTemplateRef=h}get headerTitleTemplateRef(){return this._headerTitleTemplateRef||this.headerTitleTemplate}set navigationItemTemplateRef(h){this._navigationItemTemplateRef=h}get navigationItemTemplateRef(){return this._navigationItemTemplateRef||this.navigationItemTemplate}set size(h){const x="infinite"===this.type?this.element:this.multiViewCalendar.element;this.renderer.removeClass(x.nativeElement,Vo("calendar",this.size));const ue=h||ea;"none"!==ue&&this.renderer.addClass(x.nativeElement,Vo("calendar",ue)),this._size=ue}get size(){return this._size}get activeViewEnum(){const h=ii[this.activeView];return h<this.bottomViewEnum?this.bottomViewEnum:h}get bottomViewEnum(){return ii[this.bottomView]}get topViewEnum(){return ii[this.topView]}get widgetId(){return this.id}get ariaDisabled(){return"classic"===this.type?void 0:this.disabled}ngOnInit(){"infinite"===this.type&&(this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum)),this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:h})=>this.handleActiveViewChange(ii[h])),this.control=this.injector.get(o.a5,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(h){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),bt(h,"focusedDate")&&(this.focusedDate=Ys(h.focusedDate.currentValue,this.min,this.max)),h.navigation&&(this.syncNavigation=!0),(h.min||h.max||h.rangeValidation)&&(this.minValidateFn=this.rangeValidation?el(this.min):mo,this.maxValidateFn=this.rangeValidation?Jo(this.max):mo,this.onValidatorChange())}ngAfterViewInit(){this.setAriaActivedescendant(),"none"!==this.size&&this.renderer.addClass(("infinite"===this.type?this.element:this.multiViewCalendar.element).nativeElement,Vo("calendar",this.size))}ngAfterViewChecked(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Mr(this.navigationView),Mr(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.domEvents.forEach(h=>h()),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onResize(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()}focus(){this.currentlyFocusedElement="infinite"===this.type?this.element?.nativeElement.querySelector(".k-content .k-calendar-table"):this.currentlyFocusedElement=this.element?.nativeElement.querySelector(".k-content.k-calendar-table"),this.currentlyFocusedElement?.focus()}blur(){const h="infinite"===this.type?this.currentlyFocusedElement:this.multiViewCalendar;ms(h)&&h.blur()}containsElement(h){return Boolean(ao(h,x=>x===this.element.nativeElement))}handleNavigation(h){if(this.disabled)return;const x=h?new Date((0,A.k)(h).setDate(1)):this.focusedDate;this.focusedDate=Ys(x,this.min,this.max),this.detectChanges()}onPageChange(){e.R0b.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=(0,Nn.D)(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(h,x){const ue=Array.isArray(h)?h:[h];this.handleDateChange({selectedDates:ue,focusedDate:x})}handleDateChange(h){const x=Array.isArray(h.selectedDates)?h.selectedDates:[h.selectedDates],ue=this.bus.canMoveDown(this.activeViewEnum),At=x.filter(di=>!this.disabledDatesService.isDateDisabled(di));if(this.focusedDate=h.focusedDate||this.focusedDate,!this.disabled){if(!ue&&$i(At,this.selectedDates))return void this.emitSameDate();if(ue)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(()=>{this.selectedDates=At.map(di=>(0,A.k)(di)),this.value=this.parseSelectionToValue(At),this.onControlChange(this.parseSelectionToValue(At)),this.valueChange.emit(this.parseSelectionToValue(At)),this.cdr.markForCheck()})}}writeValue(h){this.verifyValue(h),this.value=h,this.cdr.markForCheck()}registerOnChange(h){this.onControlChange=h}registerOnTouched(h){this.onControlTouched=h}setDisabledState(h){this.disabled=h,this.cdr.markForCheck()}validate(h){return this.minValidateFn(h)||this.maxValidateFn(h)}registerOnValidatorChange(h){this.onValidatorChange=h}activeCellTemplate(){switch(this.activeViewEnum){case ii.month:return this.monthCellTemplateRef||this.cellTemplateRef;case ii.year:return this.yearCellTemplateRef;case ii.decade:return this.decadeCellTemplateRef;case ii.century:return this.centuryCellTemplateRef;default:return null}}handleNavigate(h){this.focusedDate=h.focusedDate,this.activeView=h.activeView,this.emitNavigate(this.focusedDate)}emitNavigate(h){this.navigate.emit({activeView:ii[this.activeViewEnum],focusedDate:h})}emitEvent(h,x){(0,Oe.g$)(h)&&this.ngZone.run(()=>{h.emit(x)})}handleActiveDateChange(h){this.activeViewDate=h,this.emitEvent(this.activeViewDateChange,h)}handleActiveViewChange(h){this.activeView=h,this.emitEvent(this.activeViewChange,h),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:h,modifiers:x}){this.focus(),this.selectionService.lastClicked=h,this.performSelection(h,x)}handleWeekNumberClick(h){"single"!==this.selection&&this.ngZone.run(()=>{this.handleDateChange({selectedDates:h,focusedDate:Mt(h)})})}handleBlur(h){this.element.nativeElement.contains(h.relatedTarget)||(this.isActive=!1,!this.pickerService&&ur(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(h),this.cdr.markForCheck()}):(this.emitBlur(h),this.detectChanges()))}handleFocus(){this.isActive=!0,e.R0b.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleMultiViewCalendarKeydown(h){ms(this.pickerService)&&h.keyCode===Oe.R8.Enter&&h.preventDefault()}setClasses(h){this.renderer.addClass(h,"k-widget"),this.renderer.addClass(h,"k-calendar"),this.renderer.addClass(h,`k-calendar-${this.type}`)}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(h){if((0,e.X6Q)()){if("single"===this.selection&&h&&!(h instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${va} for possible resolution.`);if("multiple"===this.selection&&h&&Array.isArray(h)&&!h.every(ue=>ue instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${va} for possible resolution.`)}}bindEvents(){const h=this.element.nativeElement;this.domEvents.push(this.renderer.listen(h,"focus",this.handleFocus.bind(this)),this.renderer.listen(h,"mousedown",Fr),this.renderer.listen(h,"click",this.handleComponentClick.bind(this)),this.renderer.listen(h,"keydown",this.handleKeydown.bind(this)))}emitBlur(h){this.pickerService&&this.pickerService.onBlur.emit(h),this.onBlur.emit()}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit(),this.onFocus.emit()}handleComponentClick(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=(0,A.k)(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(h){if("infinite"===this.type){const x=h.ctrlKey||h.metaKey,ue=-1!==[Oe.R8.ArrowUp,Oe.R8.ArrowRight,Oe.R8.ArrowDown,Oe.R8.ArrowLeft].indexOf(h.keyCode);if(ms(this.pickerService)&&ue&&h.altKey)return;x&&ue&&h.preventDefault(),ms(this.pickerService)&&h.keyCode===Oe.R8.Enter&&h.preventDefault();const Qi=Ys(this.navigator.move(this.focusedDate,this.navigator.action(h),this.activeViewEnum),this.min,this.max);(0,N.X)(this.focusedDate,Qi)||(this.focusedDate=Qi,this.detectChanges(),h.preventDefault()),h.keyCode===Oe.R8.Enter&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,h)),h.keyCode===Oe.R8.KeyT&&this.focusToday(),Ka(h)&&(h.anyArrow=!0,this.performSelection(this.focusedDate,h))}}focusToday(){this.focusedDate=to(),this.bus.moveToBottom(this.activeViewEnum),this.cdr.detectChanges()}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){const h=this.element.nativeElement?.querySelector(".k-content .k-calendar-table");if(!ms(h)||"classic"===this.type&&!h.hasAttribute("aria-activedescendant"))return;if("classic"===this.type)return void this.renderer.removeAttribute(h,"aria-activedescendant");const ue=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(h,"aria-activedescendant",ue)}parseSelectionToValue(h){return h=h||[],"single"===this.selection?(0,A.k)(Mt(h)):h.map(x=>(0,A.k)(x))}performSelection(h,x){const ue=this.selectionService.performSelection({date:h,modifiers:x,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=ue.rangePivot,this.handleDateChange({selectedDates:ue.selectedDates,focusedDate:h})}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(Cs),e.Y36(e.SBq),e.Y36(hl),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(Ao),e.Y36(Ls),e.Y36(T.oQ),e.Y36(no),e.Y36(tr,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar"]],contentQueries:function(h,x,ue){if(1&h&&(e.Suo(ue,Tr,5),e.Suo(ue,Oa,5),e.Suo(ue,za,5),e.Suo(ue,pa,5),e.Suo(ue,zl,5),e.Suo(ue,Sr,5),e.Suo(ue,$r,5),e.Suo(ue,Wo,5)),2&h){let At;e.iGM(At=e.CRH())&&(x.cellTemplate=At.first),e.iGM(At=e.CRH())&&(x.monthCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.yearCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.decadeCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.centuryCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.weekNumberTemplate=At.first),e.iGM(At=e.CRH())&&(x.headerTitleTemplate=At.first),e.iGM(At=e.CRH())&&(x.navigationItemTemplate=At.first)}},viewQuery:function(h,x){if(1&h&&(e.Gf(wa,5),e.Gf(ll,5),e.Gf(Sa,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.navigationView=ue.first),e.iGM(ue=e.CRH())&&(x.monthView=ue.first),e.iGM(ue=e.CRH())&&(x.multiViewCalendar=ue.first)}},hostVars:6,hostBindings:function(h,x){2&h&&(e.uIk("id",x.widgetId)("aria-disabled",x.ariaDisabled),e.ekj("k-week-number",x.weekNumber)("k-disabled",x.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],size:"size"},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",onBlur:"blur",onFocus:"focus",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[e._Bn([rs,Ba,Mc,gc,T.oQ,Ls,{provide:T.mM,useValue:"kendo.calendar"},hl,Ao,no]),e.TTD],decls:3,vars:2,consts:function(){let Ae,h,x,ue;return Ae=$localize`:kendo.calendar.today|The label for the today button in the calendar header:Today`,h=$localize`:kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`,x=$localize`:kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`,ue=$localize`:kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header:Navigate to parent view`,[["kendoCalendarLocalizedMessages","","today",Ae,"prevButtonTitle",h,"nextButtonTitle",x,"parentViewButtonTitle",ue],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","id","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","tabIndex","disabled","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange","focusCalendar","blurCalendar"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","id","disabled","isActive","tabIndex","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focusCalendar","blur","blurEvent","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle","parentViewButtonTitle"]]},template:function(h,x){1&h&&(e.GkF(0,0),e.YNc(1,gs,4,15,"ng-container",1),e.YNc(2,bs,4,27,"ng-container",1)),2&h&&(e.xp6(1),e.Q6J("ngIf","infinite"===x.type),e.xp6(1),e.Q6J("ngIf","classic"===x.type))},dependencies:[wa,ll,Oe.NG,Sa,Ra,sl,_n.O5],encapsulation:2,changeDetection:0}),H})();const qc=()=>(H,Ae)=>!ms(H.value)&&Ae?{incompleteDate:!0}:null;var Hc=(()=>{return(H=Hc||(Hc={}))[H.Up=0]="Up",H[H.Down=1]="Down",H[H.None=2]="None",Hc;var H})();let Nu=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[e.qOj]}),H})(),Kl=(()=>{class H extends Nu{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[e._Bn([{provide:Nu,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})(),cl=0;const Lu=/year|month|<day>/,vu=/hour|minute|second|millisecond/,Xu=/d|M|H|h|m|s/,En=H=>H.replace(/^0*/,"");class Bi{constructor(){this.symbols=""}}class Ts{constructor(Ae,h,x,ue,At=68){if(this.intl=Ae,this.formatPlaceholder=h,this.format=x,this.twoDigitYearMax=At,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=(0,F._)(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},(0,Nt.s)(Nr),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),ue)this.value=(0,A.k)(ue);else{this.value=(0,F._)(new Date);const di=this.dateFormatString(this.value,this.format).symbols;for(let Qi=0;Qi<di.length;Qi++)this.setExisting(di[Qi],!1)}}hasValue(){return this.intl.splitDateFormat(this.format).reduce((h,x)=>h||"literal"!==x.type&&"dayperiod"!==x.type&&this.getExisting(x.pattern[0]),!1)}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(Ae=>"yy"===Ae.pattern)}getDateObject(){for(let Ae=0;Ae<this.knownParts.length;Ae++)if(!this.getExisting(this.knownParts[Ae]))return null;return(0,A.k)(this.value)}getTextAndFormat(Ae){return this.merge(this.intl.formatDate(this.value,Ae),this.dateFormatString(this.value,Ae))}getExisting(Ae){switch(Ae){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}}setExisting(Ae,h){switch(Ae){case"y":this.year=h,!1===h&&this.value.setFullYear(2e3);break;case"M":this.month=h,!1===h&&this.value.setMonth(0);break;case"d":this.date=h;break;case"h":case"H":this.hours=h;break;case"m":this.minutes=h;break;case"s":this.seconds=h;break;case"S":this.milliseconds=h;break;default:return}}modifyPart(Ae,h){let x=(0,A.k)(this.value);switch(Ae){case"y":x.setFullYear(x.getFullYear()+h);break;case"M":x=(0,P.z)(this.value,h);break;case"d":case"E":x.setDate(x.getDate()+h);break;case"h":case"H":x.setHours(x.getHours()+h);break;case"m":x.setMinutes(x.getMinutes()+h);break;case"s":x.setSeconds(x.getSeconds()+h);break;case"S":x.setMilliseconds(x.getMilliseconds()+h);break;case"a":x.setHours(x.getHours()+12*h)}this.shouldNormalizeCentury()&&(x=this.normalizeCentury(x)),x.getFullYear()>0&&(this.setExisting(Ae,!0),this.value=x)}parsePart(Ae,h,x){if(!h)return this.resetLeadingZero(),this.setExisting(Ae,!1),{value:null,switchToNext:!1};const ue=this.intl.formatDate(this.value,this.format),At=this.dateFormatString(this.value,this.format),di=At.symbols;let Qi=!1,Rs="",Vs="",zo="";for(let $a=0;$a<ue.length;$a++)di[$a]===Ae?(Vs+=this.getExisting(Ae)?ue[$a]:"0",Qi=!0):Qi?zo+=ue[$a]:Rs+=ue[$a];const xr=Vs.length-3;let vr=null;const Fa=this.matchMonth(h),lc=this.matchDayPeriod(h,Ae),Ul="0"===h,$c=(this.leadingZero||{})[Ae]||0;Ul?0===parseInt(x?h:Vs+h,10)&&!this.isAbbrMonth(At.partMap,Ae)&&this.incrementLeadingZero(Ae):this.resetLeadingZero();for(let $a=Math.max(0,xr);$a<=Vs.length;$a++){let Zr=x?h:Vs.substring($a)+h;"S"===Ae&&x&&(Zr=Array(di.match(/S+(\1)/)[0].length).join("0")+Zr);const cc=parseInt(Zr,10);if(vr=this.intl.parseDate(Rs+Zr+zo,this.format),!vr&&!isNaN(cc)&&!isNaN(parseInt(h,10))){if("M"===Ae&&!Fa){const hr=cc-1;hr>-1&&hr<12&&(vr=(0,A.k)(this.value),vr.setMonth(hr),vr.getMonth()!==hr&&(vr=(0,j.q)((0,P.z)(vr,-1))))}"y"===Ae&&(vr=(0,y.B)(parseInt(Zr,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&vr.getDate()!==this.value.getDate()&&(vr=(0,j.q)((0,P.z)(vr,-1))))}if(vr){const hr=this.partPattern(At.partMap,Ae).pattern,uc=this.intl.parseDate(`${Rs}${this.peek(Zr,hr)}${zo}`,this.format),Eu=this.patternLength(hr)||hr.length,ya=$c+(En(Zr)||h).length>=Eu,dc=null===uc||ya;return this.shouldNormalizeCentury()&&(vr=this.normalizeCentury(vr)),this.value=vr,this.setExisting(Ae,!0),{value:this.value,switchToNext:dc}}}return Fa&&(vr=this.intl.parseDate(Rs+Fa+zo,this.format),vr)?(this.value=vr,this.setExisting(Ae,!0),{value:this.value,switchToNext:!1}):lc&&(vr=this.intl.parseDate(Rs+lc+zo,this.format),vr)?(this.value=vr,{value:this.value,switchToNext:!0}):(Ul&&this.setExisting(Ae,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const Ae=null!==this.leadingZero;return this.setLeadingZero(null),Ae}setLeadingZero(Ae){this.leadingZero=Ae}normalizeCentury(Ae){if(!ms(Ae))return Ae;const h=!ms(H=Ae)||isNaN(H.getTime())?0:Number(H.getFullYear().toString().slice(-2)),x=this.getNormalizedCenturyBase(h);var H;return or(Ae,x+h)}incrementLeadingZero(Ae){const h=this.leadingZero||{};h[Ae]=(h[Ae]||0)+1,this.leadingZero=h}isAbbrMonth(Ae,h){const x=this.partPattern(Ae,h);return"month"===x.type&&x.names}partPattern(Ae,h){return Ae.filter(x=>-1!==x.pattern.indexOf(h))[0]}peek(Ae,h){const x=En(Ae)+"0";return new Array(Math.max(h.length-x.length,0)).fill("0").join("")+x}matchMonth(Ae){if(this.typedMonthPart+=Ae.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let x=0;x<this.monthNames.length;x++)if(0===this.monthNames[x].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[x];const h=parseInt(this.typedMonthPart,10);if(h>=1&&h<=12&&h.toString()===this.typedMonthPart)return this.monthNames[h-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(Ae,h){const x=String(Ae).toLowerCase();if("a"===h&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(x))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(x))return this.dayPeriods.pm}return""}allFormatedMonths(){const Ae=this.intl.splitDateFormat(this.format);for(let h=0;h<Ae.length;h++)if("month"===Ae[h].type&&Ae[h].names)return this.intl.dateFormatNames(Ae[h].names);return null}allDayPeriods(){const Ae=this.intl.splitDateFormat(this.format);for(let h=0;h<Ae.length;h++)if("dayperiod"===Ae[h].type&&Ae[h].names)return this.intl.dateFormatNames(Ae[h].names);return null}patternLength(Ae){return"y"===Ae[0]?4:Xu.test(Ae)?2:0}dateFormatString(Ae,h){const x=this.intl.splitDateFormat(h),ue=[],At=[];for(let Qi=0;Qi<x.length;Qi++){let Rs=this.intl.formatDate(Ae,{pattern:x[Qi].pattern}).length;for(;Rs>0;)ue.push(this.symbols[x[Qi].pattern[0]]||"_"),At.push(x[Qi]),Rs--}const di=new Bi;return di.symbols=ue.join(""),di.partMap=At,di}merge(Ae,h){let x="",ue="";const At=h.symbols;for(let di=At.length-1;di>=0;di--)if(-1===this.knownParts.indexOf(At[di])||this.getExisting(At[di]))x=Ae[di]+x,ue=At[di]+ue;else{const Qi=At[di];for(;di>=0&&Qi===At[di];)di--;for(di++,x=this.leadingZero&&this.leadingZero[Qi]?"0"+x:this.dateFieldName(h.partMap[di])+x;ue.length<x.length;)ue=At[di]+ue}return[x,ue]}dateFieldName(Ae){const h=this.formatPlaceholder||"wide";return h[Ae.type]?h[Ae.type]:"formatPattern"===h?Ae.pattern:this.intl.dateFieldName(Object.assign(Ae,{nameType:h}))}getNormalizedCenturyBase(Ae){return Ae>this.twoDigitYearMax?1900:2e3}}let fs=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs){this.cdr=h,this.intl=x,this.renderer=ue,this.wrapper=At,this.ngZone=di,this.injector=Qi,this.localization=Rs,this.pickerService=Vs,this.caretAltUpIcon=Ln.fRI,this.caretAltDownIcon=Ln.M7i,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="textbox",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.valueChange=new e.vpe,this.valueUpdate=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.arrow=Hc,this.arrowDirection=Hc.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=mo,this.maxValidator=mo,this.incompleteValidator=mo,this._value=null,this._active=!1,this._focusableId="dateinput-"+cl++,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=mo,this.onControlTouched=mo,this.onValidatorChange=mo,this._size=ea,this._rounded=Ta,this._fillMode=la,this.subs=new Kt.w0,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}set focusableId(h){h&&(this._focusableId=h)}get focusableId(){return this._focusableId}set pickerType(h){h&&(this.focusableId=`${h}-${cl}`)}set tabIndex(h){this.tabindex=h}get tabIndex(){return this.tabindex}set value(h){this.verifyValue(h),(!this.autoCorrect||et(h,this.min,this.max))&&(this._value=(0,A.k)(h),this.valueUpdate.emit((0,A.k)(h)))}get value(){return this._value}set size(h){this.renderer.removeClass(this.wrapper.nativeElement,Vo("input",this.size));const x=h||ea;"none"!==x&&this.renderer.addClass(this.wrapper.nativeElement,Vo("input",x)),this._size=x}get size(){return this._size}set rounded(h){this.renderer.removeClass(this.wrapper.nativeElement,Wr(this.rounded));const x=h||Ta;"none"!==x&&this.renderer.addClass(this.wrapper.nativeElement,Wr(x)),this._rounded=x}get rounded(){return this._rounded}set fillMode(h){this.renderer.removeClass(this.wrapper.nativeElement,Oo("input",this.fillMode));const x=h||la;"none"!==x&&(this.renderer.addClass(this.wrapper.nativeElement,Oo("input",x)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,x,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,x,this.fillMode))),this._fillMode=x}get fillMode(){return this._fillMode}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(h){if(this._active=h,this.wrapper&&!ms(this.pickerService)){const x=this.wrapper.nativeElement;h?this.renderer.addClass(x,"k-focus"):this.renderer.removeClass(x,"k-focus")}}get formControl(){return this.injector.get(o.a5,null)?.control||null}get inputFormat(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}get displayFormat(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(h){return Boolean(ao(h,x=>x===this.wrapper.nativeElement))}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.subs.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.ngControl=this.injector.get(o.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(h){this.verifyRange(),(h.min||h.max||h.rangeValidation||h.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?el(this.min):mo,this.maxValidator=this.rangeValidation?Jo(this.max):mo,this.incompleteValidator=this.incompleteDateValidation?qc():mo,this.onValidatorChange()),h.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const x=this.kendoDate&&(0,N.X)(this.value,this.kendoDate.getDateObject());(h.format||!x||h.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngAfterViewInit(){this.setComponentClasses();const h=this.injector.get(o.a5,null)?.control;this.control=h,this.subs.add(this.formControl?.statusChanges.subscribe(()=>this.setAriaInvalid())),this.setAriaInvalid()}ngOnDestroy(){this.subs.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(h=>h())}setAriaInvalid(){this.control&&this.renderer.setAttribute(this.inputElement,"aria-invalid",this.control.invalid?"true":"false")}validate(h){return this.minValidator(h)||this.maxValidator(h)||this.incompleteValidator(h,this.isDateIncomplete)}registerOnValidatorChange(h){this.onValidatorChange=h}setDisabledState(h){this.disabled=h,this.cdr.markForCheck()}writeValue(h){this.verifyValue(h),this.kendoDate=this.getKendoDate(h),this.value=(0,A.k)(h),this.updateElementValue(this.isActive)}triggerChange(){const h=this.kendoDate.getDateObject();+h!=+this.value&&(this.value=(0,A.k)(h),this.notify())}notify(){this.ngZone.run(()=>{this.onControlChange((0,A.k)(this.value)),this.valueChange.emit((0,A.k)(this.value))})}registerOnChange(h){this.onControlChange=h}registerOnTouched(h){this.onControlTouched=h}focus(){const h=this.inputElement;h&&(h.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const h=this.inputElement;h&&h.blur()}handleButtonClick(h){this.arrowDirection=Hc.None,this.modifyDateSegmentValue(h)}modifyDateSegmentValue(h){const x=this.caret(),ue=this.currentFormat[x[0]];let At=(this.steps||{})[this.symbolsMap[ue]]||1;if("S"===ue&&!this.steps.millisecond){const di=(H=>{const Ae=H&&H.match(/S+(\1)/);return Ae?Ae[0].length:0})(this.inputFormat);At=(H=>Math.pow(10,3-H))(di)}this.kendoDate.modifyPart(ue,h*At),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(ue),this.updateIncompleteValidationStatus()}switchDateSegment(h){const x=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),x[0]<x[1]&&this.currentFormat[x[0]]!==this.currentFormat[x[1]-1])return this.selectNearestSegment(h>0?x[0]:x[1]-1),this.resetSegmentValue=!0,!0;const ue=this.currentFormat[x[0]];let At=x[0]+h;for(;At>0&&At<this.currentFormat.length&&(this.currentFormat[At]===ue||"_"===this.currentFormat[At]);)At+=h;if("_"===this.currentFormat[At])return!1;let di=At;for(;di>=0&&di<this.currentFormat.length&&this.currentFormat[di]===this.currentFormat[At];)di+=h;return At>di&&(di+1!==x[0]||At+1!==x[1])?(this.caret(di+1,At+1),this.resetSegmentValue=!0,!0):At<di&&(At!==x[0]||di!==x[1])&&(this.caret(At,di),this.resetSegmentValue=!0,!0)}selectDateSegment(h){let x=-1,ue=0;for(let At=0;At<this.currentFormat.length;At++)this.currentFormat[At]===h&&(ue=At+1,-1===x&&(x=At));x<0&&(x=0),this.caret(0,0),this.caret(x,ue)}handleClick(){if(this.hasMousedown=!1,this.isActive){const h=this.inputElement.selectionStart!==this.inputElement.selectionEnd,x=ms(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,At=!h&&x?0:this.caret()[0];this.selectNearestSegment(At)}}handleDragAndDrop(h){h.preventDefault()}handleMousedown(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive}handleFocus(h){this.renderer.removeAttribute(this.inputElement,"aria-activedescendant"),this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,(0,Oe.g$)(this.onFocus)?this.ngZone.run(()=>{this.emitFocus(h)}):this.emitFocus(h)}handleBlur(h){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),(0,Oe.g$)(this.onBlur)||ur(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(h),this.cdr.markForCheck()}):this.emitBlur(h)}getKendoDate(h){const{leadingZero:x}=this.kendoDate||{},ue=new Ts(this.intl,this.formatPlaceholder,this.inputFormat,h,this.twoDigitYearMax);return ue.setLeadingZero(this.isActive?x:null),ue}dateSymbolMap(){return this.intl.splitDateFormat(this.inputFormat).reduce((x,ue)=>(x[ue.pattern[0]]=ue.type,x),{})}updateElementValue(h){const x=this.caret()[0],At=this.kendoDate.getTextAndFormat(this.isActive?this.inputFormat:this.displayFormat),di=!this.isActive&&ms(this.placeholder)&&!this.kendoDate.hasValue(),Qi=this.inputElement;this.currentFormat=At[1],this.currentValue=di?"":At[0],this.renderer.setProperty(Qi,"value",this.currentValue),Qi.placeholder!==this.placeholder&&this.renderer.setProperty(Qi,"placeholder",this.placeholder),h&&this.selectNearestSegment(x)}caret(h,x=h){const ue=void 0!==h;let At=[h,h];const di=this.inputElement;if(!ue||!this.disabled&&!this.readonly){try{void 0!==di.selectionStart&&(ue&&((0,Oe.X_)()&&document.activeElement!==di&&di.focus(),di.setSelectionRange(h,x)),At=[di.selectionStart,di.selectionEnd])}catch{At=[]}return At}}selectNearestSegment(h){for(let x=h,ue=h-1;x<this.currentFormat.length||ue>=0;x++,ue--){if(x<this.currentFormat.length&&"_"!==this.currentFormat[x])return void this.selectDateSegment(this.currentFormat[x]);if(ue>=0&&"_"!==this.currentFormat[ue])return void this.selectDateSegment(this.currentFormat[ue])}}verifyRange(){if((0,e.X6Q)()&&!Gi(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(h){if((0,e.X6Q)()&&h&&!(h instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const h=this.kendoDate.getDateObject(),x=Ys(h,this.min,this.max);this.autoCorrect&&!(0,N.X)(h,x)&&(this.kendoDate=this.getKendoDate(x))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(({date:h,time:x},ue)=>({date:h||Lu.test(ue.type),time:x||vu.test(ue.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){let h=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;ms(h)&&this.kendoDate.shouldNormalizeCentury()&&(h=this.kendoDate.normalizeCentury(h));const x=+h!=+this.value;this.writeValue(h),x&&this.notify()}bindEvents(){const h=this.wrapper.nativeElement,x=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(h,"DOMMouseScroll",x),this.renderer.listen(h,"mousewheel",x),this.renderer.listen(h,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(h,"paste",this.handlePaste.bind(this)),this.renderer.listen(h,"input",this.handleInput.bind(this)))}handleMouseWheel(h){this.disabled||this.readonly||!this.isActive||((h=window.event||h).shiftKey?this.switchDateSegment((h.wheelDelta||-h.detail)>0?-1:1):this.modifyDateSegmentValue((h.wheelDelta||-h.detail)>0?1:-1),h.returnValue=!1,h.preventDefault&&h.preventDefault(),h.stopPropagation&&h.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(h){if(!(this.disabled||this.readonly||h.altKey||h.ctrlKey||h.metaKey)){if(h.keyCode===Oe.R8.Backspace)return void(this.backspace=!0);switch(h.keyCode){case Oe.R8.ArrowDown:this.modifyDateSegmentValue(-1);break;case Oe.R8.ArrowUp:this.modifyDateSegmentValue(1);break;case Oe.R8.ArrowRight:this.switchDateSegment(1);break;case Oe.R8.ArrowLeft:this.switchDateSegment(-1);break;case Oe.R8.Home:this.selectNearestSegment(0);break;case Oe.R8.End:this.selectNearestSegment(this.inputValue.length);break;default:return}h.preventDefault()}}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const h=((H,Ae,h,x)=>{const ue=x+H.length-h.length,At=H[ue],di=H.substring(0,x+H.length-h.length),Qi=h.substring(0,x),Rs=[];if(di===Qi&&x>0)return Rs.push([Ae[x-1],Qi[x-1]]),Rs;if(0===di.indexOf(Qi)&&(0===Qi.length||Ae[Qi.length-1]!==Ae[Qi.length])){let Vs="";1===Qi.length&&Rs.push([Ae[0],Qi[0]]);for(let zo=Qi.length;zo<di.length;zo++)Ae[zo]!==Vs&&"_"!==Ae[zo]&&(Vs=Ae[zo],Rs.push([Vs,""]));return Rs}if(0===Qi.indexOf(di)||"_"===Ae[x-1]){let Vs=Ae[0];for(let zo=Math.max(0,di.length-1);zo<Ae.length;zo++)if("_"!==Ae[zo]){Vs=Ae[zo];break}return[[Vs,Qi[x-1]]]}return" "===Qi[Qi.length-1]||Qi[Qi.length-1]===At&&"_"===Ae[ue]?[[Ae[x-1],"_"]]:[[Ae[x-1],Qi[x-1]]]})(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),x=1===h.length&&"_"===h[0][1];let ue=!1;if(!x){let At;for(let Qi=0;Qi<h.length;Qi++)At=this.kendoDate.parsePart(h[Qi][0],h[Qi][1],this.resetSegmentValue),ue=At.switchToNext;const di=this.kendoDate.getDateObject();this.value&&di&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(Er(this.value,di)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),h.length&&"_"!==h[0][0]&&this.selectDateSegment(h[0][0]),(ue||x)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}emitFocus(h){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(h)}emitBlur(h){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(h)}updateIncompleteValidationStatus(){const h=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,h!==this.isDateIncomplete&&this.incompleteDateValidation&&(ms(this.ngControl)&&!ms(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())):ms(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}setSpinnerFill(h,x,ue){"none"!==ue&&(this.renderer.removeClass(h,`k-button-${ue}`),this.renderer.removeClass(h,`k-button-${ue}-base`)),this.renderer.addClass(h,`k-button-${x}`),this.renderer.addClass(h,`k-button-${x}-base`)}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Vo("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Wr(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,Oo("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.sBO),e.Y36(xt.aJ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(T.oQ),e.Y36(tr,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-dateinput"]],viewQuery:function(h,x){if(1&h&&(e.Gf(Es,7),e.Gf(ss,5),e.Gf(zi,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.dateInput=ue.first),e.iGM(ue=e.CRH())&&(x.spinup=ue.first),e.iGM(ue=e.CRH())&&(x.spindown=ue.first)}},hostVars:6,hostBindings:function(h,x){2&h&&e.ekj("k-input",x.wrapperClass)("k-dateinput",x.wrapperClass)("k-disabled",x.disabledClass)},inputs:{focusableId:"focusableId",pickerType:"pickerType",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[e._Bn([{provide:o.JU,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:o.Cf,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:T.mM,useValue:"kendo.dateinput"},{provide:Oe.GX,useExisting:(0,e.Gpc)(()=>H)},T.oQ]),e.TTD],decls:4,vars:21,consts:function(){let Ae,h;return Ae=$localize`:kendo.dateinput.increment|The label for the **Increment** button in the DateInput:Increase value`,h=$localize`:kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput:Decrease value`,[["kendoDateInputLocalizedMessages","","increment",Ae,"decrement",h],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input-inner",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["dateInput",""],["class","k-input-spinner k-spin-button",3,"mousedown",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"mousedown"],["tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button",3,"title","mousedown","mouseleave","click"],["spinup",""],["name","caret-alt-up","innerCssClass","k-button-icon",3,"svgIcon"],["tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button",3,"title","click","mousedown","mouseleave"],["spindown",""],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"]]},template:function(h,x){1&h&&(e.GkF(0,0),e._UZ(1,"input",1,2),e.YNc(3,as,7,10,"span",3)),2&h&&(e.xp6(1),e.Q6J("id",x.focusableId)("title",x.title)("tabindex",x.tabindex)("disabled",x.disabled)("readonly",x.readonly)("placeholder",x.placeholder)("kendoEventsOutsideAngular",e.Hh0(13,ds,x.handleClick,x.handleFocus,x.handleMousedown,x.handleMousedown,x.handleDragAndDrop,x.handleDragAndDrop,x.handleBlur))("scope",x),e.uIk("role",x.role)("aria-readonly",x.ariaReadOnly)("aria-expanded",x.isPopupOpen)("aria-haspopup",x.hasPopup),e.xp6(2),e.Q6J("ngIf",x.spinners))},dependencies:[Ni.ZS,Kl,Oe.nV,_n.O5],encapsulation:2,changeDetection:0}),H})();class Do{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Qo=new e.OlP("dateinputs-touch-enabled");let ce=(()=>{class H extends pl{constructor(h){super(),this.service=h}get override(){return!0}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-calendar-messages"]],features:[e._Bn([{provide:pl,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj],decls:0,vars:0,template:function(h,x){},encapsulation:2}),H})(),Fe=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-datepicker-messages-base"]],inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),H})(),Dt=(()=>{class H extends Fe{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[e._Bn([{provide:Fe,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})(),xa=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs,zo,xr){this.zone=h,this.localization=x,this.cdr=ue,this.popupService=At,this.wrapper=di,this.renderer=Qi,this.injector=Rs,this.pickerService=Vs,this.disabledDatesService=zo,this.touchEnabled=xr,this.calendarIcon=Ln.CHk,this.activeView=ii[ii.month],this.bottomView=ii[ii.month],this.topView=ii[ii.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this._navigation=!0,this.min=(0,A.k)(js),this.max=(0,A.k)(fr),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.adaptiveMode="none",this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.xIcon=Ln.FZE,this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=mo,this.onControlTouched=mo,this.onValidatorChange=mo,this.minValidateFn=mo,this.maxValidateFn=mo,this.disabledDatesValidateFn=mo,this.incompleteValidator=mo,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=ea,this._rounded=Ta,this._fillMode=la,(0,Nt.s)(Nr),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(h){this.cellTemplate=h}set monthCellTemplateRef(h){this.monthCellTemplate=h}set yearCellTemplateRef(h){this.yearCellTemplate=h}set decadeCellTemplateRef(h){this.decadeCellTemplate=h}set centuryCellTemplateRef(h){this.centuryCellTemplate=h}set weekNumberTemplateRef(h){this.weekNumberTemplate=h}set headerTitleTemplateRef(h){this.headerTitleTemplate=h}set navigationItemTemplateRef(h){this.navigationItemTemplate=h}set popupSettings(h){this._popupSettings=Object.assign({},{animate:!0},h)}get popupSettings(){return this._popupSettings}set navigation(h){this._navigation=h}get navigation(){if(!this.isAdaptive)return this._navigation}set value(h){this.verifyValue(h),this._value=(0,A.k)(h)}get value(){return this._value}set tabIndex(h){this.tabindex=h}get tabIndex(){return this.tabindex}set disabledDates(h){this._disabledDates=h,this.disabledDatesService.initialize(h)}get disabledDates(){return this._disabledDates}set subtitle(h){this._subtitle=h}get subtitle(){return this._subtitle||this.placeholder}set size(h){this.renderer.removeClass(this.wrapper.nativeElement,Vo("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Vo("button",this.size));const x=h||ea;"none"!==x&&(this.renderer.addClass(this.wrapper.nativeElement,Vo("input",x)),this.renderer.addClass(this.toggleButton.nativeElement,Vo("button",x))),this._size=x}get size(){return this._size}set rounded(h){this.renderer.removeClass(this.wrapper.nativeElement,Wr(this.rounded));const x=h||Ta;"none"!==x&&this.renderer.addClass(this.wrapper.nativeElement,Wr(x)),this._rounded=x}get rounded(){return this._rounded}set fillMode(h){this.renderer.removeClass(this.wrapper.nativeElement,Oo("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Oo("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);const x=h||la;"none"!==x&&(this.renderer.addClass(this.toggleButton.nativeElement,Oo("button",x)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${x}-base`),this.renderer.addClass(this.wrapper.nativeElement,Oo("input",x))),this._fillMode=x}get fillMode(){return this._fillMode}get disabledClass(){return this.disabled}get popupUID(){return this.calendar?.popupId}get isActive(){return this._active}set isActive(h){if(this._active=h,!this.wrapper)return;const x=this.wrapper.nativeElement;h?this.renderer.addClass(x,"k-focus"):this.renderer.removeClass(x,"k-focus")}get show(){return this._show}set show(h){h&&(this.disabled||this.readonly)||(h||this._show&&((0,Oe.g$)(this.close)||(0,Oe.g$)(this.open))?this.zone.run(()=>{const ue=new Do;!this._show&&h?this.open.emit(ue):this._show&&!h&&this.close.emit(ue),!ue.isDefaultPrevented()&&this.toggleCalendar(h)}):this.toggleCalendar(h))}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(o.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngAfterViewInit(){this.setComponentClasses(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnChanges(h){this.verifySettings(),(h.min||h.max||h.rangeValidation||h.disabledDatesValidation||h.disabledDates||h.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?el(this.min):mo,this.maxValidateFn=this.rangeValidation?Jo(this.max):mo,this.disabledDatesValidateFn=this.disabledDatesValidation?(H=>Ae=>H&&Ae.value&&H(Ae.value)?{disabledDate:!0}:null)(this.disabledDatesService.isDateDisabled):mo,this.incompleteValidator=this.incompleteDateValidation?qc():mo,this.onValidatorChange())}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(h=>h()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(h){this.verifyValue(h),this.value=(0,A.k)(h),this.cdr.markForCheck(),!h&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(h))}registerOnChange(h){this.onControlChange=h}registerOnTouched(h){this.onControlTouched=h}setDisabledState(h){this.disabled=h,this.cdr.markForCheck()}validate(h){return this.minValidateFn(h)||this.maxValidateFn(h)||this.disabledDatesValidateFn(h)||this.incompleteValidator(h,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(h){this.onValidatorChange=h}handleActionSheetCollapse(){this.cdr.markForCheck()}handleActionSheetClick(h){h.preventDefault()}focus(){this.input.focus()}blur(){(this.calendar||this.input).blur()}toggle(h){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this.toggleCalendar(void 0===h?!this.show:h)})}handleIconClick(h){this.disabled||this.readonly||(h.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleDateInputClick(){this.windowSize=Br(),this.isAdaptive&&(this.show=!0)}handleMousedown(h){h.preventDefault()}handleChange(h){this.cdr.markForCheck(),this.focusInput(),this.value=h,this.show=!1,this.onControlChange((0,A.k)(h)),this.valueChange.emit((0,A.k)(h))}handleInputChange(h){this.handleChange(this.input.formatSections.time?h:this.mergeTime(h))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:h}=this.popupSettings;if(h&&"root"!==h)return"component"===h?this.container:h}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}onResize(){!this.isOpen||this.windowSize===Br()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=Br())}mergeTime(h){return this.value&&h?Er(h,this.value):h}handleKeydown(h){const{altKey:x,shiftKey:ue,keyCode:At,target:di}=h;At===Oe.R8.Escape&&(this.show=!1),x&&(At===Oe.R8.ArrowDown&&!this.show&&(this.show=!0),At===Oe.R8.ArrowUp&&(this.show=!1)),At===Oe.R8.Tab&&this.show&&this.calendar.isActive&&((H,Ae,h)=>!!ms(Ae)&&("infinite"===H||"classic"===H&&h&&Ae.classList.contains("k-calendar-table")||!h&&Ae.classList.contains("k-calendar-table")))(this.calendarType,di,ue)&&(this.input.focus(),this.show=!1)}toggleCalendar(h){this.windowSize=Br(),this.isAdaptive?this.toggleActionSheet(h):this.togglePopup(h),this.toggleFocus()}togglePopup(h){if(h===this._show)return;this._show=h;const x=this.wrapper.nativeElement.querySelector("input");if(h){const ue=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:ue},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:ue},popupClass:this.popupClasses,positionMode:"absolute"}),this.setAriaActiveDescendant(),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(x,"aria-controls",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(x,"aria-controls"),this.renderer.removeAttribute(x,"aria-activedescendant"),this.cdr.detectChanges()}toggleActionSheet(h){h!==this._show&&(h&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance(),this.setAriaActiveDescendant()):!h&&this.isOpen&&(this.actionSheet.toggle(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.input.inputElement,"aria-activedescendant")),this._show=h)}updateActionSheetAdaptiveAppearance(){let h,x;this.actionSheet&&(h=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),x=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(h,"k-actionsheet-fullscreen"),this.renderer.removeStyle(x,"height")):"small"===this.windowSize&&(this.renderer.addClass(h,"k-actionsheet-fullscreen"),this.renderer.setStyle(x,"height","100%")),this.renderer.addClass(h,"k-adaptive-actionsheet"),this.renderer.addClass(h,"k-actionsheet-bottom"),this.renderer.setStyle(x,"bottom","0px"))}setAriaActiveDescendant(){this.ariaActiveDescendantSubscription=("infinite"===this.calendar.type?this.calendar.monthView.focusedCellChange:this.calendar.multiViewCalendar.viewList.focusedCellChange).subscribe(x=>this.renderer.setAttribute(this.input.inputElement,"aria-activedescendant",x))}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifySettings(){if((0,e.X6Q)()&&!Gi(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(h){if((0,e.X6Q)()&&h&&!(h instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),Or()&&(this.windowBlurSubscription=(0,Tt.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,(0,Oe.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||this.actionSheet.expanded||(this.show=!1)}handleBlur(h){const x=h&&Ko(h),At=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(h&&h.target)||this.actionSheet.element.nativeElement.contains(x));x&&(this.input.containsElement(x)||this.calendar&&this.calendar.containsElement(x)||At)||((0,Oe.g$)(this.onBlur)||this.show&&(0,Oe.g$)(this.close)||ur(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Vo("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Vo("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Wr(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Oo("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Oo("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.R0b),e.Y36(T.oQ),e.Y36(e.sBO),e.Y36(pn.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(tr),e.Y36(Ls),e.Y36(Qo,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-datepicker"]],contentQueries:function(h,x,ue){if(1&h&&(e.Suo(ue,Tr,5),e.Suo(ue,Oa,5),e.Suo(ue,za,5),e.Suo(ue,pa,5),e.Suo(ue,zl,5),e.Suo(ue,Sr,5),e.Suo(ue,$r,5),e.Suo(ue,Wo,5)),2&h){let At;e.iGM(At=e.CRH())&&(x.cellTemplate=At.first),e.iGM(At=e.CRH())&&(x.monthCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.yearCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.decadeCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.centuryCellTemplate=At.first),e.iGM(At=e.CRH())&&(x.weekNumberTemplate=At.first),e.iGM(At=e.CRH())&&(x.headerTitleTemplate=At.first),e.iGM(At=e.CRH())&&(x.navigationItemTemplate=At.first)}},viewQuery:function(h,x){if(1&h&&(e.Gf(Xi,7,e.s_b),e.Gf(us,7),e.Gf(ps,7),e.Gf(_s,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.container=ue.first),e.iGM(ue=e.CRH())&&(x.popupTemplate=ue.first),e.iGM(ue=e.CRH())&&(x.toggleButton=ue.first),e.iGM(ue=e.CRH())&&(x.actionSheet=ue.first)}},hostVars:6,hostBindings:function(h,x){2&h&&e.ekj("k-datepicker",x.wrapperClasses)("k-input",x.wrapperClasses)("k-disabled",x.disabledClass)},inputs:{focusableId:"focusableId",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",subtitle:"subtitle",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode",adaptiveMode:"adaptiveMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-datepicker"],features:[e._Bn([{provide:o.JU,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:o.Cf,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:Oe.GX,useExisting:(0,e.Gpc)(()=>H)},T.oQ,tr,Ls,{provide:T.mM,useValue:"kendo.datepicker"}]),e.TTD],decls:16,vars:30,consts:function(){let Ae,h,x,ue;return Ae=$localize`:kendo.datepicker.today|The label for the today button in the calendar header:Today`,h=$localize`:kendo.datepicker.toggle|The title of the toggle button in the datepicker component:Toggle calendar`,x=$localize`:kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`,ue=$localize`:kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`,[["kendoDatePickerLocalizedMessages","","today",Ae,"toggle",h,"prevButtonTitle",x,"nextButtonTitle",ue],["pickerType","datepicker","hasPopup","grid","fillMode","none","rounded","none","size","none",3,"role","isPopupOpen","disabled","readonly","ariaReadOnly","tabindex","title","focusableId","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","value","valueChange","click"],["input",""],["type","button",1,"k-input-button","k-button","k-icon-button",3,"tabindex","kendoEventsOutsideAngular","scope"],["toggleButton",""],["name","calendar","innerCssClass","k-button-icon",3,"svgIcon"],["container",""],["popupTemplate",""],[3,"resize",4,"ngIf"],[3,"kendoEventsOutsideAngular","scope","overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["calendarTemplate",""],[4,"ngTemplateOutlet"],[3,"resize"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","size","large","innerCssClass","k-button-icon",3,"svgIcon","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[3,"size","type","min","max","navigation","animateNavigation","activeView","bottomView","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(h,x){1&h&&(e.GkF(0,0),e.TgZ(1,"kendo-dateinput",1,2),e.NdJ("valueChange",function(At){return x.handleInputChange(At)})("click",function(){return x.handleDateInputClick()}),e.qZA(),e.TgZ(3,"button",3,4),e._UZ(5,"kendo-icon-wrapper",5),e.qZA(),e.GkF(6,null,6),e.YNc(8,Fs,1,1,"ng-template",null,7,e.W1O),e.YNc(10,po,1,0,"kendo-resize-sensor",8),e.TgZ(11,"kendo-actionsheet",9,10),e.NdJ("overlayClick",function(){return x.show=!1})("collapse",function(){return x.handleActionSheetCollapse()}),e.YNc(13,un,11,5,"ng-template",11),e.qZA(),e.YNc(14,Le,3,28,"ng-template",null,12,e.W1O)),2&h&&(e.xp6(1),e.Q6J("role","combobox")("isPopupOpen",x.show)("disabled",x.disabled)("readonly",x.readonly||x.readOnlyInput)("ariaReadOnly",x.readonly)("tabindex",x.tabindex)("title",x.title)("focusableId",x.focusableId)("format",x.format)("twoDigitYearMax",x.twoDigitYearMax)("formatPlaceholder",x.formatPlaceholder)("placeholder",x.placeholder)("min",x.min)("max",x.max)("incompleteDateValidation",x.incompleteDateValidation)("value",x.value),e.xp6(2),e.Q6J("tabindex",-1)("kendoEventsOutsideAngular",e.WLB(25,Pt,x.handleIconClick,x.handleMousedown))("scope",x),e.uIk("title",x.localization.get("toggle"))("aria-label",x.localization.get("toggle")),e.xp6(2),e.Q6J("svgIcon",x.calendarIcon),e.xp6(5),e.Q6J("ngIf",x.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(28,Li,x.handleActionSheetClick))("scope",x))},dependencies:[fs,Ni.ZS,Oe.NG,Vn._G,Mn.zx,bl,ce,Dt,Oe.nV,_n.tP,_n.O5,Vn.DL],encapsulation:2,changeDetection:0}),H})();const fa=ar("div"),qu=ar("ul"),Fu=ar("li"),eu=ar("span"),Kd=()=>eu("hour","k-title k-timeselector-title"),oo=()=>fa([qu([Fu("<span>02</span>","k-item")],"k-reset")],"k-time-container k-flex k-content k-scrollable"),bd=H=>[H?fa([fa("button","k-button k-button-lg")],"k-datetime-buttongroup"):null,fa([fa([eu("title","k-title")],"k-time-header"),fa([Kd(),fa([oo()],"k-time-list")],"k-time-list-wrapper")],"k-timeselector k-timeselector-lg")],du=(H=!1,Ae,h)=>(0,Oe.X_)()?H?fa([fa([fa([fa([fa([],"k-i-x k-button-icon k-icon")],"k-icon-wrapper-host")],"k-button k-icon-button k-button-lg")],"k-actionsheet-titlebar"),fa([h?fa([...bd(h)],"k-datetime-wrap k-time-tab"):bd(h)[1]],"k-actionsheet-content"),fa([fa("button","k-button k-button-lg")],"k-adaptive-actionsheet k-actionsheet-footer")],"k-actionsheet k-adaptive-actionsheet "+("small"===Ae?"k-actionsheet-fullscreen":""),{height:"small"===Ae?"100%":"60vh",left:"-10000px",position:"absolute",top:0}):fa([Kd(),fa([oo()],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null;let Qa=(()=>{class H{get windowSize(){return Br()}ensureHeights(){void 0===this.timeListHeight&&this.calculateHeights()}calculateHeights(h){if(!(0,Oe.X_)())return;let x,ue;this.isAdaptiveEnabled&&"large"!==this.windowSize?(ue=document.body,x=ue.appendChild(du(!0,this.windowSize,this.isDateTimePicker))):(ue=h&&h.querySelector(".k-time-list-container")||document.body,x=ue.appendChild(du())),this.timeListHeight=x.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=x.querySelector("li").getBoundingClientRect().height,ue.removeChild(x)}isActive(h){return!(!(0,Oe.X_)()||!h)&&(h.nativeElement||h)===document.activeElement}}return H.\u0275fac=function(h){return new(h||H)},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const ed=Ae=>Ae%24,_c=(H,Ae)=>ed(24+H-Ae),Bu=H=>(Ae,h)=>h&&(0,F._)(Ae).getTime()!==(0,F._)(h).getTime()?rr(Ae,H):Ae,td=Bu(0),hu=Bu(23);let kc=(()=>{class H{constructor(h){this.intl=h,this.boundRange=!1,this.insertUndividedMax=!1}apply(h,x){return rr(h,x.getHours())}configure(h){const{boundRange:x=this.boundRange,insertUndividedMax:ue=this.insertUndividedMax,min:At=this.min,max:di=this.max,part:Qi,step:Rs=this.step}=h;this.boundRange=x,this.insertUndividedMax=ue,this.toListItem=Vs=>{const zo=rr(fo,Vs);return{text:this.intl.formatDate(zo,Qi.pattern),value:zo}},this.min=At,this.max=di,this.step=Rs}data(h){const[x]=this.range(h),ue=((H,Ae)=>h=>ed(H+h*Ae))(x,this.step),di=dt(0,this.countFromMin(h)).map(Qi=>this.toListItem(ue(Qi)));return this.addLast(di),this.addMissing(di,h),di}isRangeChanged(h,x){return!(0,N.X)(this.min,h)||!(0,N.X)(this.max,x)}limitRange(h,x,ue){return this.boundRange?[td(h,ue),hu(x,ue)]:[h,x]}total(h){const x=this.insertUndividedMax&&this.isLastMissing(h)?1:0,ue=this.isMissing(h)?1:0;return this.countFromMin(h)+ue+x}selectedIndex(h){return Math.ceil(this.divideByStep(h))}valueInList(h){return!h||this.insertUndividedMax&&this.lastHour(h)===h.getHours()||!this.isMissing(h)}addLast(h,x){return this.insertUndividedMax&&this.isLastMissing(x)&&h.push(this.toListItem(this.lastHour(x))),h}addMissing(h,x){if(this.valueInList(x))return h;const ue=this.toListItem(x.getHours());return h.splice(this.selectedIndex(x),0,ue),h}countFromMin(h){const[x,ue]=this.range(h);return Math.floor(_c(ue,x)/this.step)+1}isMissing(h){return!!h&&this.selectedIndex(h)!==this.divideByStep(h)}isLastMissing(h){return this.isMissing(rr(this.max,this.lastHour(h)))}divideByStep(h){return _c(h.getHours(),this.min.getHours())/this.step}lastHour(h){return this.range(h)[1]}range(h){const[x,ue]=this.limitRange(this.min,this.max,h);return[x.getHours(),ue.getHours()]}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const rc=Ae=>Ae%60,Xe=(H,Ae)=>rc(60+H-Ae),w=H=>(Ae,h)=>h&&Ae.getHours()!==h.getHours()?lo(Ae,H):Ae,X=w(0),tt=w(59);let cn=(()=>{class H{constructor(h){this.intl=h,this.insertUndividedMax=!1}apply(h,x){return lo(h,x.getMinutes())}configure(h){const{insertUndividedMax:x=this.insertUndividedMax,min:ue=this.min,max:At=this.max,part:di,step:Qi=this.step}=h;this.insertUndividedMax=x,this.toListItem=Rs=>{const Vs=lo(fo,Rs);return{text:this.intl.formatDate(Vs,di.pattern),value:Vs}},this.min=ue,this.max=At,this.step=Qi}data(h){const[x]=this.range(h),ue=((H,Ae)=>h=>rc(H+h*Ae))(x,this.step),di=dt(0,this.countFromMin(h)).map(Qi=>this.toListItem(ue(Qi)));return this.addLast(di),this.addMissing(di,h),di}isRangeChanged(h,x){return!(0,N.X)(this.min,h)||!(0,N.X)(this.max,x)}limitRange(h,x,ue){return[X(h,ue),tt(x,ue)]}total(h){const x=this.insertUndividedMax&&this.isLastMissing(h)?1:0,ue=this.isMissing(h)?1:0;return this.countFromMin(h)+ue+x}selectedIndex(h){return Math.ceil(this.divideByStep(h))}valueInList(h){return!h||this.insertUndividedMax&&this.lastMinute(h)===h.getMinutes()||!this.isMissing(h)}addLast(h,x){return this.insertUndividedMax&&this.isLastMissing(x)&&h.push(this.toListItem(this.lastMinute(x))),h}addMissing(h,x){if(this.valueInList(x))return h;const ue=this.toListItem(x.getMinutes());return h.splice(this.selectedIndex(x),0,ue),h}countFromMin(h){const[x,ue]=this.range(h);return Math.floor(Xe(ue,x)/this.step)+1}isMissing(h){return!!h&&this.selectedIndex(h)!==this.divideByStep(h)}isLastMissing(h){return this.isMissing(lo(this.max,this.lastMinute(h)))}divideByStep(h){return Xe(h.getMinutes(),this.min.getMinutes())/this.step}lastMinute(h){return this.range(h)[1]}range(h){const[x,ue]=this.limitRange(this.min,this.max,h);return[x.getMinutes(),ue.getMinutes()]}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const Zi=Ae=>Ae%60,Io=(H,Ae)=>Zi(60+H-Ae),dr=H=>(Ae,h)=>!h||Ae.getHours()===h.getHours()&&Ae.getMinutes()===h.getMinutes()?Ae:nr(Ae,H),_r=dr(0),Kr=dr(59);let ma=(()=>{class H{constructor(h){this.intl=h,this.insertUndividedMax=!1}apply(h,x){return nr(h,x.getSeconds())}configure(h){const{insertUndividedMax:x=this.insertUndividedMax,min:ue=this.min,max:At=this.max,part:di,step:Qi=this.step}=h;this.insertUndividedMax=x,this.toListItem=Rs=>{const Vs=nr(fo,Rs);return{text:this.intl.formatDate(Vs,di.pattern),value:Vs}},this.min=ue,this.max=At,this.step=Qi}data(h){const[x]=this.range(h),ue=((H,Ae)=>h=>Zi(H+h*Ae))(x,this.step),di=dt(0,this.countFromMin(h)).map(Qi=>this.toListItem(ue(Qi)));return this.addLast(di),this.addMissing(di,h),di}isRangeChanged(h,x){return!(0,N.X)(this.min,h)||!(0,N.X)(this.max,x)}limitRange(h,x,ue){return[_r(h,ue),Kr(x,ue)]}total(h){const x=this.insertUndividedMax&&this.isLastMissing(h)?1:0,ue=this.isMissing(h)?1:0;return this.countFromMin(h)+ue+x}selectedIndex(h){return Math.ceil(this.divideByStep(h))}valueInList(h){return!h||this.insertUndividedMax&&this.lastSecond(h)===h.getSeconds()||!this.isMissing(h)}divideByStep(h){return Io(h.getSeconds(),this.min.getSeconds())/this.step}addLast(h,x){return this.insertUndividedMax&&this.isLastMissing(x)&&h.push(this.toListItem(this.lastSecond(x))),h}addMissing(h,x){if(this.valueInList(x))return h;const ue=this.toListItem(x.getSeconds());return h.splice(this.selectedIndex(x),0,ue),h}countFromMin(h){const[x,ue]=this.range(h);return Math.floor(Io(ue,x)/this.step)+1}isMissing(h){return!!h&&this.selectedIndex(h)!==this.divideByStep(h)}isLastMissing(h){return this.isMissing(nr(this.max,this.lastSecond(h)))}lastSecond(h){return this.range(h)[1]}range(h){const[x,ue]=this.limitRange(this.min,this.max,h);return[x.getSeconds(),ue.getSeconds()]}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const fl=Ae=>Ae%1e3,tc=(H,Ae)=>fl(1e3+H-Ae),rl=H=>(Ae,h)=>!h||Ae.getHours()===h.getHours()&&Ae.getMinutes()===h.getMinutes()&&Ae.getSeconds()===h.getSeconds()?Ae:mt(Ae,H),Sl=rl(0),ul=rl(999);let ho=(()=>{class H{constructor(h){this.intl=h,this.insertUndividedMax=!1}apply(h,x){return mt(h,x.getMilliseconds())}configure(h){const{insertUndividedMax:x=this.insertUndividedMax,min:ue=this.min,max:At=this.max,step:di=this.step}=h;this.insertUndividedMax=x,this.toListItem=Qi=>{const Rs=mt(fo,Qi);return{text:this.intl.formatDate(Rs,"SSS"),value:Rs}},this.min=ue,this.max=At,this.step=di}data(h){const[x]=this.range(h),ue=((H,Ae)=>h=>fl(H+h*Ae))(x,this.step),di=dt(0,this.countFromMin(h)).map(Qi=>this.toListItem(ue(Qi)));return this.addLast(di),this.addMissing(di,h),di}isRangeChanged(h,x){return!(0,N.X)(this.min,h)||!(0,N.X)(this.max,x)}limitRange(h,x,ue){return[Sl(h,ue),ul(x,ue)]}total(h){const x=this.insertUndividedMax&&this.isLastMissing(h)?1:0,ue=this.isMissing(h)?1:0;return this.countFromMin(h)+ue+x}selectedIndex(h){return Math.ceil(this.divideByStep(h))}valueInList(h){return!h||this.insertUndividedMax&&this.lastMillisecond(h)===h.getMilliseconds()||!this.isMissing(h)}divideByStep(h){return tc(h.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(h,x){return this.insertUndividedMax&&this.isLastMissing(x)&&h.push(this.toListItem(this.lastMillisecond(x))),h}addMissing(h,x){if(this.valueInList(x))return h;const ue=this.toListItem(x.getMilliseconds());return h.splice(this.selectedIndex(x),0,ue),h}countFromMin(h){const[x,ue]=this.range(h);return Math.floor(tc(ue,x)/this.step)+1}isMissing(h){return!!h&&this.selectedIndex(h)!==this.divideByStep(h)}isLastMissing(h){return this.isMissing(mt(this.max,this.lastMillisecond(h)))}lastMillisecond(h){return this.range(h)[1]}range(h){const[x,ue]=this.limitRange(this.min,this.max,h);return[x.getMilliseconds(),ue.getMilliseconds()]}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const La=(H,Ae)=>{const h=(0,A.k)(H);return h.setHours(Ae),h},Ea=H=>null!==H&&H<12,nc=(H,Ae,h)=>!Ae&&!h||H>=Ae&&H<=h,Uu=(H,Ae,h)=>!Ae&&!h||H>=Ae||H<=h;let Dc=(()=>{class H{constructor(h){this.intl=h}apply(h,x){const ue=h.getHours(),At=Ea(ue),di=Ea(x.getHours());if(At&&di||!At&&!di)return h;const[Qi,Rs=24]=this.normalizedRange();return La(h,Math.min(Math.max(Qi,ue+(di?-12:12)),Rs||24))}configure(h){const{min:x=this.min,max:ue=this.max,part:At=this.part}=h;this.min=x,this.max=ue,this.part=At}data(h){const x=this.part.names;if(!x)return[];const ue=[],[At,di]=this.normalizedRange(),Qi=this.intl.dateFormatNames(x);return Ea(At)&&ue.push({text:Qi.am,value:La(this.min,At)}),(H=>null!==H&&(!H||H>11))(di)&&ue.push({text:Qi.pm,value:La(this.min,Math.max(12,di))}),this.min.getHours()!==At?ue.reverse():ue}isRangeChanged(h,x){return!1}limitRange(h,x,ue){return[h,x]}total(){const[h,x]=this.normalizedRange();return(h||x)&&(h>11||x<12)?1:2}selectedIndex(h){if(!this.valueInList(h))return-1;const x=Math.floor(h.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?x:0===x?1:0}valueInList(h){return(this.min.getHours()!==this.normalizedRange()[0]?Uu:nc)(h.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){const h=this.min.getHours(),x=this.max.getHours();return[Math.min(h,x),Math.max(h,x)]}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(xt.aJ))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})();const id=()=>null,wd={35:(H,Ae)=>H[H.length-1],36:(H,Ae)=>H[0],38:(H,Ae)=>H[Ae-1],40:(H,Ae)=>H[Ae+1]},nu={dayperiod:Dc,hour:kc,minute:cn,second:ma,millisecond:ho};let bu=(()=>{class H{constructor(h,x,ue,At,di,Qi){this.element=h,this.injector=x,this.dom=ue,this.renderer=At,this.zone=di,this.localization=Qi,this.min=(0,A.k)(fo),this.max=(0,A.k)(Lr),this.step=1,this.disabled=!1,this.isLast=!1,this.valueChange=new e.vpe,this.tabOutLastPart=new e.vpe,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}get roleAttribute(){return"listbox"}get ariaLabel(){return this.localization.get(this.part?.type)}get tabIndex(){return this.disabled?void 0:0}get isDayPeriod(){return"dayperiod"===this.part?.type}get currentSelectedIndex(){return this.selectedIndex(this.value)}ngOnChanges(h){h.part&&(this.service=this.injector.get(nu[this.part.type]),this.service.configure(this.serviceSettings()));const x=this.value,ue=h.value||{},[At,di]=this.service.limitRange(this.min,this.max,x);(this.service.isRangeChanged(At,di)||h.min||h.max||h.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:At,max:di}))),(!this.data.length||this.hasMissingValue(ue))&&(this.animateToIndex=!1,this.data=this.service.data(x)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(ue),this.total=this.service.total(x),this.indexToScroll=this.selectedIndex(x)}ngOnInit(){this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;const h=`translateY(${this.topOffset}px)`;this.style={transform:h,"-ms-transform":h},this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnDestroy(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(h=>h())}ngAfterViewInit(){this.scrollOnce(h=>this.virtualization.scrollToIndex(h))}ngAfterViewChecked(){this.scrollOnce(h=>{this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](h),this.animateToIndex=!0})}getCurrentItem(){return this.indexToScroll>=0?this.data[this.indexToScroll]:null}handleChange(h){const x=this.service.apply(this.value,h.value);this.value.getTime()!==x.getTime()&&(this.indexToScroll=this.data.indexOf(h),this.value=x,this.valueChange.emit(x))}handleItemClick(h){const x=Ms(h.target,ue=>ue.hasAttribute("data-timelist-item-index"),this.element.nativeElement);if(x){const ue=x.getAttribute("data-timelist-item-index");this.handleChange(this.data[ue])}}focus(){this.element&&this.element.nativeElement.focus()}blur(){this.element&&this.element.nativeElement.blur()}itemOffset(h){const x=this.selectedIndex(this.value),ue=this.virtualization.activeIndex(),At=this.virtualization.itemOffset(ue),di=Math.abs(Math.ceil(h)-At);if(x===ue&&di<2)return At;const Qi=x>ue;return Qi&&di>=this.bottomThreshold||!Qi&&di>this.topThreshold?this.virtualization.itemOffset(ue+1):At}hasMissingValue({previousValue:h,currentValue:x}){const ue=h&&!this.service.valueInList(h),At=x&&!this.service.valueInList(x);return ue||At}scrollOnce(h){-1!==this.indexToScroll&&(h(this.indexToScroll),this.indexToScroll=-1)}serviceSettings(h){const ue=Object.assign({},{boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},h);return ue.boundRange="hour"!==ue.part.type,ue}selectedIndex(h){return h?this.service.selectedIndex(h):-1}textHasChanged({previousValue:h,currentValue:x}){if(!h||!x)return!1;const ue=this.data[this.selectedIndex(h)],At=this.data[this.selectedIndex(x)];return ue&&At&&ue.text!==At.text}handleKeyDown(h){h.keyCode===Oe.R8.Tab&&!h.shiftKey&&this.isLast&&(h.preventDefault(),this.tabOutLastPart.emit());const ue=(wd[h.keyCode]||id)(this.data,this.service.selectedIndex(this.value));ue&&(this.handleChange(ue),h.preventDefault())}bindEvents(){this.scrollSubscription=this.virtualization.scroll$().pipe((0,qn.b)(100),(0,pi.U)(x=>x.target.scrollTop),(0,pi.U)(x=>this.itemOffset(x)),(0,pi.U)(x=>this.virtualization.itemIndex(x))).subscribe(x=>{this.virtualization.scrollToIndex(x),this.handleChange(this.data[x])});const h=this.element.nativeElement;this.domEvents.push(this.renderer.listen(h,"mouseover",()=>!this.isActive&&this.focus()),this.renderer.listen(h,"click",()=>this.focus()),this.renderer.listen(h,"blur",()=>this.isActive=!1),this.renderer.listen(h,"focus",()=>this.isActive=!0),this.renderer.listen(h,"keydown",this.handleKeyDown.bind(this)))}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.SBq),e.Y36(e.zs3),e.Y36(Qa),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(T.oQ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-timelist"]],viewQuery:function(h,x){if(1&h&&e.Gf(Hr,7),2&h){let ue;e.iGM(ue=e.CRH())&&(x.virtualization=ue.first)}},hostVars:5,hostBindings:function(h,x){2&h&&(e.uIk("role",x.roleAttribute)("aria-label",x.ariaLabel)("tabindex",x.tabIndex),e.ekj("k-time-list",x.componentClass))},inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value",isLast:"isLast"},outputs:{valueChange:"valueChange",tabOutLastPart:"tabOutLastPart"},features:[e.TTD],decls:3,vars:14,consts:[["role","presentation",1,"k-time-container",3,"skip","take","total","itemHeight","maxScrollDifference","topOffset","bottomOffset"],[1,"k-reset",3,"ngStyle","kendoEventsOutsideAngular","scope"],["class","k-item",4,"ngFor","ngForOf"],[1,"k-item"]],template:function(h,x){1&h&&(e.TgZ(0,"kendo-virtualization",0)(1,"ul",1),e.YNc(2,Be,3,4,"li",2),e.qZA()()),2&h&&(e.Q6J("skip",x.skip)("take",x.total)("total",x.total)("itemHeight",x.itemHeight)("maxScrollDifference",x.listHeight)("topOffset",x.topOffset)("bottomOffset",x.bottomOffset),e.xp6(1),e.Q6J("ngStyle",x.style)("kendoEventsOutsideAngular",e.VKq(12,Li,x.handleItemClick))("scope",x),e.uIk("role","presentation"),e.xp6(1),e.Q6J("ngForOf",x.data))},dependencies:[Hr,_n.PC,Oe.nV,_n.sg],encapsulation:2}),H})();const Vc=(H,Ae)=>H.getHours()===Ae.getHours()&&H.getMinutes()===Ae.getMinutes(),Jl=(H,Ae)=>Vc(H,Ae)&&H.getSeconds()===Ae.getSeconds(),jc=[{type:"hour",getter:H=>H.getHours(),minGetter:(H,Ae)=>Ae.getHours()},{type:"minute",getter:H=>H.getMinutes(),minGetter:(H,Ae)=>Vc(H,Ae)?Ae.getMinutes():0},{type:"second",getter:H=>H.getSeconds(),minGetter:(H,Ae)=>Jl(H,Ae)?Ae.getSeconds():0},{type:"millisecond",getter:H=>H.getMilliseconds(),minGetter:(H,Ae)=>((H,Ae)=>Jl(H,Ae)&&H.getMilliseconds()===Ae.getMilliseconds())(H,Ae)?Ae.getMilliseconds():0}],Pl=(H=jc,Ae=>H.map((H=>Ae=>H[Ae.type]?(H=>(Ae,h)=>H(h))(Ae.getter):(H=>(Ae,h)=>H(Ae))(Ae.getter))((H=>H.reduce((Ae,h)=>(Ae[h.type]=h.type,Ae),{}))(Ae)))),bh=(H=>Ae=>H.map(h=>{const x=Ae[h.type];return x?((H,Ae,h)=>(x,ue)=>{const At=H(x),di=Ae(x,ue),Qi=At-di;if(Qi<0)return di;const Rs=Qi%h;return At-Rs+(Rs>h/2?h:0)})(h.getter,h.minGetter,x):h.getter}))(jc),iu=H=>(Ae,h)=>(Ae.setHours(...H.map(x=>x(Ae,h))),Ae);var H;let Ec=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-timepicker-messages-base"]],inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",dayperiod:"dayperiod"},features:[e.qOj]}),H})(),Jd=(()=>{class H extends Ec{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoTimeSelectorLocalizedMessages",""]],features:[e._Bn([{provide:Ec,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})();const ac=(H,Ae,h,x)=>H.length||!Ae.isActive?H:[{next:x[h+1]||Ae,prev:x[h-1]||Ae}];var Su=(()=>(function(H){H[H.Left=0]="Left",H[H.Right=1]="Right"}(Su||(Su={})),Su))();let Oc=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs){this.localization=h,this.cdr=x,this.element=ue,this.intl=At,this.dom=di,this.zone=Qi,this.renderer=Rs,this.pickerService=Vs,this.format="t",this.min=(0,A.k)(Ws),this.max=(0,A.k)(Lr),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new e.vpe,this.valueReject=new e.vpe,this.tabOutLastPart=new e.vpe,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}get disabledClass(){return this.disabled}set steps(h){this._steps=h||{}}get steps(){return this._steps}set current(h){this._current=((H,Ae,h)=>{if(!H||!Ae||!h)return H;const{candidateValue:x,minValue:ue,maxValue:At}=zr(H,Ae,h);return x<ue?Er(H,Ae):x>At?Er(H,h):H})(this.snapTime((0,A.k)(h||fo),this.min),this.min,this.max),e.R0b.isInAngularZone()||this.cdr.detectChanges()}get current(){return this._current}get activeListIndex(){return this._activeListIndex}set activeListIndex(h){if(this._activeListIndex=h,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(x=>{this.renderer.removeClass(x.nativeElement,"k-focus")}),h>=0)){const x=this.listIndex(h),ue=this.timeListWrappers.toArray()[x];ue&&this.renderer.addClass(ue.nativeElement,"k-focus")}}ngOnInit(){this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.isAdaptiveEnabled=this.isAdaptiveEnabled,this.dom.isDateTimePicker=this.isDateTimePicker,this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()}ngAfterViewInit(){this.subscriptions.add((0,Tt.R)(this.timeListWrappers.first.nativeElement,"keydown").subscribe(h=>{const{keyCode:x,shiftKey:ue}=h;x===Oe.R8.Tab&&ue&&(h.preventDefault(),this.renderer.removeClass(this.timeListWrappers.first.nativeElement,"k-focus"),this.accept.nativeElement.focus())})),this.subscriptions.add((0,Tt.R)(this.timeListWrappers.last.nativeElement,"keydown").subscribe(h=>{const{keyCode:x,shiftKey:ue}=h;x===Oe.R8.Tab&&!ue&&this.renderer.removeClass(this.timeListWrappers.last.nativeElement,"k-focus")}))}ngOnChanges(h){this.init()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(h=>h())}focus(){const h=this.timeLists.first;h&&h.focus()}blur(){const h=this.timeLists.first;h&&h.blur()}handleAccept(){this.handleChange(this.mergeValue((0,A.k)(this.value||(0,F._)(Hi())),this.current))}handleNow(){this.current=Hi(),this.handleChange(this.current),this.cdr.markForCheck()}handleReject(){this.current=this.value,this.valueReject.emit()}handleFocus(h){this.isActive||(this.isActive=!0,this.emitFocus(h))}handleListFocus(h){const x=parseInt(h.target.getAttribute("data-timelist-index"),10);this.activeListIndex=x,this.handleFocus(h)}handleBlur(h){const x=Ko(h);x&&this.containsElement(x)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(h))}containsElement(h){return Boolean(ao(h,x=>x===this.element.nativeElement))}handleTabOut(h){const{keyCode:x,shiftKey:ue}=h;x===Oe.R8.Tab&&!ue&&(h.preventDefault(),this.timeLists.first.focus())}partStep(h){return this.steps[h.type]||1}init(h){(!h||qr(h,"format"))&&(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=iu(Pl(this.dateFormatParts))),(!h||qr(h,"steps"))&&(this.snapTime=(H=>(Ae,h)=>{const x=(0,A.k)(Ae);return x.setHours(...H.map(ue=>ue(x,h))),x})(bh(this.steps))),(!h||qr(h,"value"))&&(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&Tn(Hi(),this.min,this.max)}focusList(h){this.timeLists.length&&this.timeLists.reduce(ac,[]).map(x=>h===Su.Right?x.next:x.prev).map(x=>x&&x.focus())}handleChange(h){this.value=h,this.valueChange.emit((0,A.k)(h))}hasActiveButton(){return!!this.accept&&[this.accept,this.cancel,this.now].reduce((h,x)=>h||this.dom.isActive(x),!1)}hasSteps(){const h=Object.keys(this.steps);return h.length!==h.reduce((x,ue)=>x+this.steps[ue],0)}intlChange(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=iu(Pl(this.dateFormatParts)),this.cdr.markForCheck()}bindEvents(){this.element&&this.zone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))})}handleKeydown(h){const{keyCode:x,altKey:ue}=h,At=-1!==[Oe.R8.ArrowLeft,Oe.R8.ArrowRight].indexOf(x);ms(this.pickerService)&&At&&ue||(x!==Oe.R8.Enter||this.hasActiveButton()?(x===Oe.R8.ArrowLeft||x===Oe.R8.ArrowRight)&&this.focusList(x===Oe.R8.ArrowLeft?Su.Left:Su.Right):this.handleAccept())}emitBlur(h){this.pickerService&&this.pickerService.onBlur.emit(h)}emitFocus(h){this.pickerService&&this.pickerService.onFocus.emit(h)}listIndex(h){let x=0,ue=0;for(;ue<h;)"literal"!==this.dateFormatParts[ue].type&&x++,ue++;return x}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(xt.aJ),e.Y36(Qa),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(tr,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-timeselector"]],viewQuery:function(h,x){if(1&h&&(e.Gf(Jt,5),e.Gf(xe,5),e.Gf(Ke,5),e.Gf(bu,5),e.Gf(Qe,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.accept=ue.first),e.iGM(ue=e.CRH())&&(x.cancel=ue.first),e.iGM(ue=e.CRH())&&(x.now=ue.first),e.iGM(ue=e.CRH())&&(x.timeLists=ue),e.iGM(ue=e.CRH())&&(x.timeListWrappers=ue)}},hostVars:2,hostBindings:function(h,x){2&h&&e.ekj("k-disabled",x.disabledClass)},inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",isAdaptiveEnabled:"isAdaptiveEnabled",isDateTimePicker:"isDateTimePicker",steps:"steps",value:"value"},outputs:{valueChange:"valueChange",valueReject:"valueReject",tabOutLastPart:"tabOutLastPart"},exportAs:["kendo-timeselector"],features:[e._Bn([T.oQ,{provide:T.mM,useValue:"kendo.timeselector"}]),e.TTD],decls:9,vars:4,consts:function(){let Ae,h,x,ue,At,di;return Ae=$localize`:kendo.timeselector.accept|The Accept button text in the timeselector component:Set`,h=$localize`:kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component:Set time`,x=$localize`:kendo.timeselector.cancel|The Cancel button text in the timeselector component:Cancel`,ue=$localize`:kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component:Cancel changes`,At=$localize`:kendo.timeselector.now|The Now button text in the timeselector component:Now`,di=$localize`:kendo.timeselector.nowLabel|The label for the Now button in the timeselector component:Select now`,[["kendoTimeSelectorLocalizedMessages","","accept",Ae,"acceptLabel",h,"cancel",x,"cancelLabel",ue,"now",At,"nowLabel",di],[1,"k-time-header"],[1,"k-title","k-timeselector-title"],["type","button","class","k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],[1,"k-time-list-container"],[1,"k-time-highlight"],["ngFor","",3,"ngForOf"],["class","k-time-footer k-action-buttons k-actions k-actions-stretched",4,"ngIf"],["type","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-primary","k-time-now",3,"kendoEventsOutsideAngular","scope","disabled"],["now",""],["class","k-time-list-wrapper","role","presentation","tabindex","-1",4,"ngIf"],["class","k-time-separator",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-time-list-wrapper"],["listWrapper",""],[3,"isLast","min","max","part","step","disabled","value","kendoEventsOutsideAngular","scope","valueChange","tabOutLastPart"],[1,"k-time-separator"],[1,"k-time-footer","k-action-buttons","k-actions","k-actions-stretched"],["class","k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base","type","button",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["type","button","class","k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["type","button",1,"k-button","k-time-cancel","k-button-md","k-rounded-md","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","scope","disabled"],["cancel",""],["type","button",1,"k-button","k-time-accept","k-button-md","k-rounded-md","k-button-solid","k-button-solid-primary",3,"kendoEventsOutsideAngular","scope","disabled"],["accept",""]]},template:function(h,x){1&h&&(e.GkF(0,0),e.TgZ(1,"div",1)(2,"span",2),e._uU(3),e.qZA(),e.YNc(4,Dn,3,10,"button",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"span",5),e.YNc(7,ys,2,2,"ng-template",6),e.qZA(),e.YNc(8,Wt,3,2,"div",7)),2&h&&(e.xp6(3),e.hij(" ",x.intl.formatDate(x.current,x.format)," "),e.xp6(1),e.Q6J("ngIf",x.showNowButton),e.xp6(3),e.Q6J("ngForOf",x.dateFormatParts),e.xp6(1),e.Q6J("ngIf",x.setButton||x.cancelButton))},dependencies:[bu,Jd,_n.O5,Oe.nV,_n.sg],encapsulation:2,changeDetection:0}),H})(),Id=(()=>{class H extends Ec{constructor(h){super(),this.service=h}get override(){return!0}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-timeselector-messages"]],features:[e._Bn([{provide:Ec,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj],decls:0,vars:0,template:function(h,x){},encapsulation:2}),H})(),Qd=(()=>{class H extends Ec{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoTimePickerLocalizedMessages",""]],features:[e._Bn([{provide:Ec,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})();const Sh=new RegExp("hour|minute|second|millisecond|dayperiod|literal");let qh=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs,zo,xr,vr){this.bus=h,this.zone=x,this.localization=ue,this.cdr=At,this.popupService=di,this.wrapper=Qi,this.renderer=Rs,this.injector=Vs,this.pickerService=zo,this.intl=xr,this.touchEnabled=vr,this.clockIcon=Ln.aYQ,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.adaptiveMode="none",this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.xIcon=Ln.FZE,this.onControlChange=mo,this.onControlTouched=mo,this.onValidatorChange=mo,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=mo,this.incompleteValidator=mo,this._min=(0,A.k)(Ws),this._max=(0,A.k)(Lr),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=ea,this._rounded=Ta,this._fillMode=la,(0,Nt.s)(Nr),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set min(h){this._min=(0,A.k)(h||Ws)}get min(){return this._min}set max(h){this._max=(0,A.k)(h||Lr)}get max(){return this._max}set steps(h){this._steps=h||{}}get steps(){return this._steps}set popupSettings(h){this._popupSettings=Object.assign({},{animate:!0},h)}get popupSettings(){return this._popupSettings}set tabIndex(h){this.tabindex=h}get tabIndex(){return this.tabindex}set subtitle(h){this._subtitle=h}get subtitle(){return this._subtitle||this.placeholder}set value(h){this.verifyValue(h),this._value=(0,A.k)(h)}get value(){return this._value}set size(h){this.renderer.removeClass(this.wrapper.nativeElement,Vo("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Vo("button",this.size));const x=h||ea;"none"!==x&&(this.renderer.addClass(this.wrapper.nativeElement,Vo("input",x)),this.renderer.addClass(this.toggleButton.nativeElement,Vo("button",x))),this._size=x}get size(){return this._size}set rounded(h){this.renderer.removeClass(this.wrapper.nativeElement,Wr(this.rounded));const x=h||Ta;"none"!==x&&this.renderer.addClass(this.wrapper.nativeElement,Wr(x)),this._rounded=x}get rounded(){return this._rounded}set fillMode(h){this.renderer.removeClass(this.wrapper.nativeElement,Oo("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Oo("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);const x=h||la;"none"!==x&&(this.renderer.addClass(this.wrapper.nativeElement,Oo("input",x)),this.renderer.addClass(this.toggleButton.nativeElement,Oo("button",x)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${x}-base`)),this._fillMode=x}get fillMode(){return this._fillMode}get disabledClass(){return this.disabled}get popupUID(){return`k-timepicker-popup-${this.bus.calendarId}-`}get isActive(){return this._active}set isActive(h){if(this._active=h,!this.wrapper)return;const x=this.wrapper.nativeElement;h?this.renderer.addClass(x,"k-focus"):this.renderer.removeClass(x,"k-focus")}get show(){return this._show}set show(h){h&&(this.disabled||this.readonly)||(h||this._show&&((0,Oe.g$)(this.close)||(0,Oe.g$)(this.open))?this.zone.run(()=>{const ue=new Do;!this._show&&h?this.open.emit(ue):this._show&&!h&&this.close.emit(ue),!ue.isDefaultPrevented()&&this.toggleTimeSelector(h)}):this.toggleTimeSelector(h))}get input(){return this.pickerService.input}get timeSelector(){return this.pickerService.timeSelector}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(o.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngAfterViewInit(){this.setComponentClasses(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnChanges(h){(h.min||h.max||h.rangeValidation||h.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?((H,Ae)=>h=>{if(!H||!Ae||!h.value)return null;const x={timeRangeError:{maxValue:Ae,minValue:H,value:h.value}};return Tn(h.value,H,Ae)?null:x})(this.min,this.max):mo,this.incompleteValidator=this.incompleteDateValidation?qc():mo,this.onValidatorChange()),h.format&&this.verifyFormat()}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(h=>h()),this.pickerSubscriptions.unsubscribe()}handleKeydown(h){const{altKey:x,keyCode:ue}=h;if(ue===Oe.R8.Escape)return this.show=!1,void this.cdr.detectChanges();x&&(ue===Oe.R8.ArrowUp&&(h.preventDefault(),this.show=!1,this.cdr.detectChanges()),ue===Oe.R8.ArrowDown&&!this.show&&(h.preventDefault(),this.show=!0))}writeValue(h){this.verifyValue(h),this.value=(0,A.k)(h),this.cdr.markForCheck(),!h&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(h))}registerOnChange(h){this.onControlChange=h}registerOnTouched(h){this.onControlTouched=h}setDisabledState(h){this.disabled=h,this.cdr.markForCheck()}validate(h){return this.timeRangeValidateFn(h)||this.incompleteValidator(h,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(h){this.onValidatorChange=h}focus(){this.input.focus()}blur(){(this.timeSelector||this.input).blur()}toggle(h){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this.toggleTimeSelector(void 0===h?!this.show:h)})}get isOpen(){return this.show}get appendTo(){const{appendTo:h}=this.popupSettings;if(h&&"root"!==h)return"component"===h?this.container:h}handleChange(h){if((0,N.X)(this.value,h))return this.focusInput(),void(this.show=!1);this.value=(0,A.k)(h),this.zone.run(()=>{this.focusInput(),this.show=!1,this.onControlChange((0,A.k)(h)),this.valueChange.emit((0,A.k)(h))})}handleActionSheetAccept(){this.timeSelector.handleAccept()}handleActionSheetCollapse(){this.cdr.markForCheck()}handleReject(){this.show=!1}handleInputChange(h){const x=this.input.formatSections.date?h:this.mergeTime(h);this.handleChange(x)}handleDateInputClick(){this.windowSize=Br(),this.isAdaptive&&(this.show=!0)}handleMousedown(h){h.preventDefault()}handleIconClick(h){this.disabled||this.readonly||(h.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.detectChanges())}get popupClasses(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}normalizeTime(h){return Er(fo,h)}mergeTime(h){return this.value&&h?Er(this.value,h):h}onResize(){!this.isOpen||this.windowSize===Br()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=Br())}onTabOutLastPart(){this.cancelButton?this.timeSelector.cancel.nativeElement.focus():this.timeSelector.accept.nativeElement.focus()}toggleTimeSelector(h){this.windowSize=Br(),this.isAdaptive?this.toggleActionSheet(h):this.togglePopup(h),this.toggleFocus()}toggleActionSheet(h){h!==this._show&&(h&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance()):!h&&this.isOpen&&(this.renderer.setStyle(this.timeSelector.element.nativeElement,"pointer-events","none"),this.actionSheet.toggle()),this._show=h)}togglePopup(h){if(h===this.isOpen)return;this._show=h,this.cdr.markForCheck();const x=this.wrapper.nativeElement.querySelector("input");if(h){const ue=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:ue},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:ue},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(x,"aria-controls",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(x,"aria-controls")}updateActionSheetAdaptiveAppearance(){let h,x;this.actionSheet&&(h=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),x=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(h,"k-actionsheet-fullscreen"),this.renderer.removeStyle(x,"height")):"small"===this.windowSize&&(this.renderer.addClass(h,"k-actionsheet-fullscreen"),this.renderer.setStyle(x,"height","100%")),this.renderer.addClass(h,"k-adaptive-actionsheet"),this.renderer.addClass(h,"k-actionsheet-bottom"),this.renderer.setStyle(x,"bottom","0px"))}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifyValue(h){if((0,e.X6Q)()&&h&&!(h instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")}verifyFormat(){if((0,e.X6Q)()&&this.intl.splitDateFormat(this.format).some(x=>!Sh.test(x.type)))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")}bindEvents(){this.domEvents.push(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),Or()&&(this.windowBlurSubscription=(0,Tt.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleWindowBlur(){!this.isOpen||this.actionSheet.expanded||(this.show=!1)}handleFocus(){this.isActive||(this.isActive=!0,(0,Oe.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(h){const x=h&&Ko(h),At=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(h&&h.target)||this.actionSheet.element.nativeElement.contains(x));x&&(this.input.containsElement(x)||this.timeSelector&&this.timeSelector.containsElement(x)||At)||((0,Oe.g$)(this.onBlur)||this.show&&(0,Oe.g$)(this.close)||ur(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent(),this.cdr.detectChanges())}blurComponent(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Vo("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Vo("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Wr(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Oo("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Oo("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(rs),e.Y36(e.R0b),e.Y36(T.oQ),e.Y36(e.sBO),e.Y36(pn.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(tr),e.Y36(xt.aJ),e.Y36(Qo,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-timepicker"]],viewQuery:function(h,x){if(1&h&&(e.Gf(Xi,5,e.s_b),e.Gf(us,5),e.Gf(ps,7),e.Gf(_s,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.container=ue.first),e.iGM(ue=e.CRH())&&(x.popupTemplate=ue.first),e.iGM(ue=e.CRH())&&(x.toggleButton=ue.first),e.iGM(ue=e.CRH())&&(x.actionSheet=ue.first)}},hostVars:6,hostBindings:function(h,x){2&h&&e.ekj("k-timepicker",x.wrapperClasses)("k-input",x.wrapperClasses)("k-disabled",x.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",steps:"steps",popupSettings:"popupSettings",tabindex:"tabindex",tabIndex:"tabIndex",title:"title",subtitle:"subtitle",rangeValidation:"rangeValidation",adaptiveMode:"adaptiveMode",value:"value",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-timepicker"],features:[e._Bn([{provide:o.JU,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:o.Cf,useExisting:(0,e.Gpc)(()=>H),multi:!0},{provide:Oe.GX,useExisting:(0,e.Gpc)(()=>H)},T.oQ,rs,{provide:T.mM,useValue:"kendo.timepicker"},tr]),e.TTD],decls:16,vars:28,consts:function(){let Ae,h,x,ue,At,di,Qi,Rs,Vs,zo,xr,vr;return Ae=$localize`:kendo.timepicker.accept|The Accept button text in the timepicker component:Set`,h=$localize`:kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component:Set time`,x=$localize`:kendo.timepicker.cancel|The Cancel button text in the timepicker component:Cancel`,ue=$localize`:kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component:Cancel changes`,At=$localize`:kendo.timepicker.now|The Now button text in the timepicker component:Now`,di=$localize`:kendo.timepicker.nowLabel|The label for the Now button in the timepicker component:Select now`,Qi=$localize`:kendo.timepicker.toggle|The label for the toggle button in the timepicker component:Toggle time list`,Rs=$localize`:kendo.timepicker.hour|The label for the hour part in the timepicker component:Hour`,Vs=$localize`:kendo.timepicker.minute|The label for the minute part in the timepicker component:Minute`,zo=$localize`:kendo.timepicker.second|The label for the second part in the timepicker component:Second`,xr=$localize`:kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component:Millisecond`,vr=$localize`:kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component:Dayperiod`,[["kendoTimePickerLocalizedMessages","","accept",Ae,"acceptLabel",h,"cancel",x,"cancelLabel",ue,"now",At,"nowLabel",di,"toggle",Qi,"hour",Rs,"minute",Vs,"second",zo,"millisecond",xr,"dayperiod",vr],["pickerType","timepicker","hasPopup","dialog",3,"isPopupOpen","disabled","readonly","role","ariaReadOnly","format","formatPlaceholder","placeholder","focusableId","min","max","incompleteDateValidation","fillMode","rounded","size","steps","tabindex","title","value","valueChange","click"],["input",""],["type","button","tabindex","-1",1,"k-input-button","k-button","k-icon-button",3,"kendoEventsOutsideAngular","scope"],["toggleButton",""],["name","clock","innerCssClass","k-button-icon",3,"svgIcon"],["popupTemplate",""],["container",""],[3,"resize",4,"ngIf"],[3,"overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["timeSelectorTemplate",""],[4,"ngTemplateOutlet"],[3,"resize"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","size","large","innerCssClass","k-button-icon",3,"svgIcon","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-actions","k-actions-stretched","k-actions-horizontal","k-actionsheet-footer"],["kendoButton","","size","large",3,"click"],["kendoButton","","size","large","themeColor","primary",3,"click"],[3,"cancelButton","setButton","nowButton","format","min","max","steps","value","isAdaptiveEnabled","kendoEventsOutsideAngular","scope","valueChange","valueReject","tabOutLastPart"],["timeSelector",""],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now","hour","minute","second","millisecond","dayperiod"]]},template:function(h,x){1&h&&(e.GkF(0,0),e.TgZ(1,"kendo-dateinput",1,2),e.NdJ("valueChange",function(At){return x.handleInputChange(At)})("click",function(){return x.handleDateInputClick()}),e.qZA(),e.TgZ(3,"button",3,4),e._UZ(5,"kendo-icon-wrapper",5),e.qZA(),e.YNc(6,ti,1,1,"ng-template",null,6,e.W1O),e.GkF(8,null,7),e.YNc(10,Ui,1,0,"kendo-resize-sensor",8),e.TgZ(11,"kendo-actionsheet",9,10),e.NdJ("overlayClick",function(){return x.show=!1})("collapse",function(){return x.handleActionSheetCollapse()}),e.YNc(13,gn,16,11,"ng-template",11),e.qZA(),e.YNc(14,Ce,3,27,"ng-template",null,12,e.W1O)),2&h&&(e.xp6(1),e.Q6J("isPopupOpen",x.show)("disabled",x.disabled)("readonly",x.readonly||x.readOnlyInput)("role","combobox")("ariaReadOnly",x.readonly)("format",x.format)("formatPlaceholder",x.formatPlaceholder)("placeholder",x.placeholder)("focusableId",x.focusableId)("min",x.normalizeTime(x.min))("max",x.normalizeTime(x.max))("incompleteDateValidation",x.incompleteDateValidation)("fillMode",x.fillMode)("rounded",x.rounded)("size",x.size)("steps",x.steps)("tabindex",x.show?-1:x.tabindex)("title",x.title)("value",x.value),e.xp6(2),e.Q6J("kendoEventsOutsideAngular",e.WLB(25,Pt,x.handleIconClick,x.handleMousedown))("scope",x),e.uIk("title",x.localization.get("toggle"))("aria-label",x.localization.get("toggle")),e.xp6(2),e.Q6J("svgIcon",x.clockIcon),e.xp6(5),e.Q6J("ngIf",x.isAdaptiveModeEnabled))},dependencies:[fs,Ni.ZS,Oe.NG,Vn._G,Mn.zx,Oc,Id,Qd,Oe.nV,_n.tP,_n.O5,Vn.DL],encapsulation:2,changeDetection:0}),H})();new RegExp("hour|minute|second|dayperiod|literal");let wu=(()=>{class H{constructor(h){this.templateRef=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(e.Rgc))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateRangePopupTemplate",""]]}),H})();const wh=H=>H&&H.isActive||!1;let Vu=(()=>{class H{constructor(h){this.renderer=h,this.activeRangeEnd$=new an.X(null),this.focusedDate$=new an.X(null),this.endInput$=new an.X(null),this.startInput$=new an.X(null),this.dateRangePopup$=new an.X(null),this.range$=new an.X(cr)}get activeRangeEnd(){return this.activeRangeEnd$.value}get focusedDate(){return this.focusedDate$.value}get min(){return(this.startInput$.value||{}).min||null}get max(){return(this.endInput$.value||{}).max||null}get selectionRange(){return this.range$.value}get inputStartElement(){return this.startInput$.value.dateInput.nativeElement}get inputEndElement(){return this.endInput$.value.dateInput.nativeElement}activatePopup(){const h=this.dateRangePopup$.value;h&&(this.startInput$.value&&(this.renderer.setAttribute(this.inputStartElement,"aria-controls",h.popupUID),this.renderer.setAttribute(this.inputStartElement,"aria-expanded","true"),this.renderer.setAttribute(this.inputEndElement,"aria-controls",h.popupUID),this.renderer.setAttribute(this.inputEndElement,"aria-expanded","true")),h.activate())}deactivatePopup(){const h=this.dateRangePopup$.value;h&&h.show&&(this.startInput$.value&&(this.renderer.removeAttribute(this.inputStartElement,"aria-controls"),this.renderer.setAttribute(this.inputStartElement,"aria-expanded","false"),this.renderer.removeAttribute(this.inputStartElement,"aria-activedescendant"),this.renderer.removeAttribute(this.inputEndElement,"aria-controls"),this.renderer.setAttribute(this.inputEndElement,"aria-expanded","false"),this.renderer.removeAttribute(this.inputEndElement,"aria-activedescendant")),h.show=!1)}setActiveDescendent(h){this.renderer.setAttribute(this.inputStartElement,"aria-activedescendant",h),this.renderer.setAttribute(this.inputEndElement,"aria-activedescendant",h)}cancelPopup(){const h=this.dateRangePopup$.value;h&&h.show&&h.cancelPopup()}destroy(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()}hasActiveComponent(){const h=this.dateRangePopup$.value,x=wh(h),ue=wh(this.startInput$.value),At=wh(this.endInput$.value);return x||ue||At||(H=>H&&H.hasActiveContent())(h)||!1}registerStartInput(h){this.startInput$.next(h)}registerEndInput(h){this.endInput$.next(h)}registerPopup(h){this.dateRangePopup$.next(h)}setActiveRangeEnd(h){!h||this.activeRangeEnd===h||this.activeRangeEnd$.next(h)}setFocusedDate(h){(0,N.X)(this.focusedDate$.value,h)||this.focusedDate$.next(h)}setRange(h=cr){this.range$.next(h)}}return H.\u0275fac=function(h){return new(h||H)(e.LFG(e.Qsj,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac}),H})(),ju=(()=>{class H{constructor(h,x,ue,At,di){this.calendar=h,this.cdr=x,this.element=ue,this.dateRangeService=di,this.autoCorrectOn="change",this.shouldSetRange=!0,this.activeRangeEndChange=new e.vpe,this.selectionRangeChange=new e.vpe,this.calendarSubscriptions=new Kt.w0,this.dateRangeService=this.dateRangeService||new Vu(At),At.setAttribute(ue.nativeElement,"aria-multiselectable","true")}get selectionRange(){return this.calendar?this.calendar.selectionRange:null}set selectionRange(h){this.isEqualCalendarRange(h)||this.setSelectionRange(h),Ci(this.dateRangeService.selectionRange,h)||this.dateRangeService.setRange(h),this.updateFocusedDate(h)}get activeRangeEnd(){return this.calendar.activeRangeEnd}set activeRangeEnd(h){this.dateRangeService.activeRangeEnd!==h&&(this.calendar.activeRangeEnd=h,this.dateRangeService.setActiveRangeEnd(h))}get calendarRange(){return this.selectionRange||cr}ngOnInit(){const h=this.calendar,x=this.dateRangeService;h.min=yn(x.min,h.min),h.max=yn(x.max,h.max),this.addSubscriptions(h.cellEnter.subscribe(ue=>this.handleHover(ue)),h.valueChange.subscribe(ue=>this.handleChange(ue)),x.focusedDate$.subscribe(ue=>{(0,N.X)(h.focusedDate,ue)||(h.focusedDate=ue)}),x.activeRangeEnd$.subscribe(ue=>{h.activeRangeEnd!==ue&&(h.activeRangeEnd=ue,this.activeRangeEndChange.emit(ue),this.cdr.markForCheck())}),x.range$.subscribe(ue=>{this.isEqualCalendarRange(ue)||this.acceptAndEmit(ue),this.updateFocusedDate(ue)}),(0,Tt.R)(this.element.nativeElement,"blur").subscribe(()=>this.handleBlur()))}ngOnDestroy(){this.calendarSubscriptions.unsubscribe()}handleChange(h){const x=this.dateRangeService,ue="change"===this.autoCorrectOn&&this.shouldAutoCorrect(h),At="end"!==this.calendar.activeRangeEnd||ue?"end":"start";this.range=ue?Qn(h):this.updateRange(h),Ci(x.selectionRange,this.range)||(this.acceptAndEmit(this.range),x.setActiveRangeEnd(At),this.shouldSetRange&&this.setRange())}setRange(h){this.dateRangeService.setRange(this.range?this.range:h)}addSubscriptions(...h){h.map(x=>this.calendarSubscriptions.add(x))}isEqualCalendarRange(h){return Ci(this.calendar.selectionRange,h)}handleBlur(){const{start:h,end:x}=this.calendarRange;"blur"===this.autoCorrectOn&&null!==h&&null!==x&&x<h&&this.dateRangeService.setRange(Qn(h))}handleHover(h){if(this.hasCompleteRange())return;const{start:x,end:ue}=this.calendarRange,At=this.calendar.activeRangeEnd;(x&&"end"===At||ue&&"start"===At)&&this.setSelectionRange(this.updateRange(h))}hasCompleteRange(){const{start:h,end:x}=this.dateRangeService.selectionRange||cr;return Boolean(h)&&Boolean(x)}shouldAutoCorrect(h){const{end:x,start:ue}=this.calendarRange;return"end"!==this.calendar.activeRangeEnd?null!==x&&h>x:null!==ue&&h<ue}updateFocusedDate(h){!h||this.dateRangeService.focusedDate||this.dateRangeService.setFocusedDate(h.start||h.end)}updateRange(h){const{end:x,start:ue}=this.calendarRange;return"end"!==this.calendar.activeRangeEnd?{start:h,end:x}:{start:ue,end:h}}setSelectionRange(h){this.calendar.selectionRange=h,this.calendar.writeValue(null)}acceptAndEmit(h){this.setSelectionRange(h),this.selectionRangeChange.emit(h)}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(Sa),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Vu,8))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateRangeSelection",""]],inputs:{autoCorrectOn:"autoCorrectOn",selectionRange:"selectionRange",activeRangeEnd:"activeRangeEnd",shouldSetRange:"shouldSetRange"},outputs:{activeRangeEndChange:"activeRangeEndChange",selectionRangeChange:"selectionRangeChange"}}),H})(),kd=(()=>{class H extends T.Z1{}return H.\u0275fac=function(){let Ae;return function(x){return(Ae||(Ae=e.n5z(H)))(x||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["kendo-daterangepopup-messages-base"]],inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel"},features:[e.qOj]}),H})(),Ep=(()=>{class H extends kd{constructor(h){super(),this.service=h}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateRangePopupLocalizedMessages",""]],features:[e._Bn([{provide:kd,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj]}),H})(),Dh=(()=>{class H{constructor(h,x,ue,At,di,Qi,Rs,Vs){this.popupService=h,this.dateRangeService=x,this.ref=ue,this.zone=At,this.renderer=di,this.localization=Qi,this.cdr=Rs,this.rtl=Vs,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.adaptiveMode="none",this.title="",this.open=new e.vpe,this.close=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.cancel=new e.vpe,this.popupUID=(0,Oe.M8)(),this.xIcon=Ln.FZE,this.calendarSubscriptions=new Kt.w0,this.popupSubscriptions=new Kt.w0,this.localizationSubscriptions=new Kt.w0,this.resolvedPromise=Promise.resolve()}set subtitle(h){this._subtitle=h}get subtitle(){return this._subtitle}get calendar(){return this._calendar}set calendar(h){this._calendar=h,this.subscribeFocusBlur(h)}get isActive(){return this.calendar&&this.calendar.isActive||this.actionSheet&&this.actionSheet.expanded}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}set show(h){if(this._show===h)return;const x=new Do;h?this.open.emit(x):this.close.emit(x),!x.isDefaultPrevented()&&this.toggleDateRange(h)}get show(){return this._show}ngOnInit(){this.dateRangeService.registerPopup(this),this.localization&&this.localizationSubscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck()))}ngAfterViewInit(){this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(h=>this.calendar=h.first)),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(h=>this.calendar=h.first)),Or()&&this.zone.runOutsideAngular(()=>this.windowBlurSubscription=(0,Tt.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this))),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnDestroy(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()}activate(){!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular(()=>{this.activateSubscription=(0,sn.T)(this.contentCalendar.changes,this.viewCalendar.changes).pipe((0,Si.h)(h=>h&&h.first),(0,pi.U)(h=>h.first)).subscribe(h=>setTimeout(()=>{h.focus(),this.calendarSubscriptions.add(h.viewList.focusedCellChange.subscribe(x=>{this.dateRangeService.setActiveDescendent(x)}))}))}))}focus(){this.calendar&&this.calendar.focus()}hasActiveContent(){return!(!(0,Oe.X_)()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)}toggle(h){this.resolvedPromise.then(()=>{this.toggleDateRange(void 0===h?!this.show:h)})}cancelPopup(){this.show=!1,this.cancel.emit()}handleAccept(){this.dateRangeSelectionDirective.setRange(this.dateRangeService.selectionRange),this.show=!1}onResize(){!this.show||this.windowSize===Br()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=Br())}handleWindowBlur(){!this.show||this.actionSheet.expanded||((0,Oe.g$)(this.close)?this.zone.run(()=>this.show=!1):this.show=!1)}handleMouseLeave(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)}handleKeydown(h){const{altKey:x,keyCode:ue}=h;(ue===Oe.R8.Escape||x&&ue===Oe.R8.ArrowUp)&&this.zone.run(()=>this.cancelPopup())}subscribeFocusBlur(h){if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),!h)return;const x=h.element.nativeElement.querySelector(".k-calendar-view");this.blurSubscription=(0,Tt.R)(x,"blur").subscribe(()=>this.onBlur.emit()),this.focusSubscription=(0,Tt.R)(x,"focus").subscribe(()=>this.onFocus.emit())}addPopupSubscriptions(...h){ms(this.popupSubscriptions)||(this.popupSubscriptions=new Kt.w0),h.map(x=>this.popupSubscriptions.add(x))}get _appendTo(){const h=this.appendTo;if(h&&"root"!==h)return"component"===h?this.container:h}togglePopup(h){if(this._show=h,this.popupRef&&this.destroyPopup(),this._show){const x=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:x},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:x},positionMode:"absolute"});const{popupElement:ue,popupAnchorViewportLeave:At}=this.popupRef;ue.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(()=>(0,Tt.R)(ue,"keydown").subscribe(this.handleKeydown.bind(this))),(0,Tt.R)(ue,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),At.subscribe(()=>this.cancelPopup()))}}destroyPopup(){ms(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),ms(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()}toggleDateRange(h){this.windowSize=Br(),this.isAdaptive?this.toggleActionSheet(h):this.togglePopup(h)}toggleActionSheet(h){h!==this._show&&(h&&!this.actionSheet.expanded?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance()):!h&&this.actionSheet.expanded&&this.actionSheet.toggle(),this._show=h)}updateActionSheetAdaptiveAppearance(){let h,x;this.actionSheet&&(h=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),x=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(h,"k-actionsheet-fullscreen"),this.renderer.removeStyle(x,"height")):"small"===this.windowSize&&(this.renderer.addClass(h,"k-actionsheet-fullscreen"),this.renderer.setStyle(x,"height","100%")),this.renderer.addClass(h,"k-adaptive-actionsheet"),this.renderer.addClass(h,"k-actionsheet-bottom"),this.renderer.setStyle(x,"bottom","0px"))}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(pn.qL),e.Y36(Vu),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(T.oQ),e.Y36(e.sBO),e.Y36(T.lw,8))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-daterange-popup"]],contentQueries:function(h,x,ue){if(1&h&&(e.Suo(ue,wu,5),e.Suo(ue,Sa,4)),2&h){let At;e.iGM(At=e.CRH())&&(x.contentTemplate=At.first),e.iGM(At=e.CRH())&&(x.contentCalendar=At)}},viewQuery:function(h,x){if(1&h&&(e.Gf(Xi,5,e.s_b),e.Gf(_s,5),e.Gf(Hs,5),e.Gf(ju,5),e.Gf(Sa,5)),2&h){let ue;e.iGM(ue=e.CRH())&&(x.container=ue.first),e.iGM(ue=e.CRH())&&(x.actionSheet=ue.first),e.iGM(ue=e.CRH())&&(x.defaultTemplate=ue.first),e.iGM(ue=e.CRH())&&(x.dateRangeSelectionDirective=ue.first),e.iGM(ue=e.CRH())&&(x.viewCalendar=ue)}},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",appendTo:"appendTo",collision:"collision",popupAlign:"popupAlign",margin:"margin",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle"},outputs:{open:"open",close:"close",onBlur:"blur",onFocus:"focus",cancel:"cancel"},exportAs:["kendo-daterange-popup"],features:[e._Bn([T.oQ,{provide:T.mM,useValue:"kendo.daterangepopup"}])],decls:8,vars:0,consts:function(){let Ae,h,x,ue;return Ae=$localize`:kendo.daterangepopup.accept|The Accept button text in the timepicker component:Set`,h=$localize`:kendo.daterangepopup.acceptLabel|The label for the Accept button in the timepicker component:Set time`,x=$localize`:kendo.daterangepopup.cancel|The Cancel button text in the timepicker component:Cancel`,ue=$localize`:kendo.daterangepopup.cancelLabel|The label for the Cancel button in the timepicker component:Cancel changes`,[["kendoDateRangePopupLocalizedMessages","","accept",Ae,"acceptLabel",h,"cancel",x,"cancelLabel",ue],["container",""],["defaultTemplate",""],[3,"overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["kendoDateRangeSelection",""],[3,"resize",4,"ngIf"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","size","large","innerCssClass","k-button-icon",3,"svgIcon","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-scrollable-wrap"],["orientation","vertical","kendoDateRangeSelection","",1,"k-calendar-lg",3,"shouldSetRange"],["test",""],[1,"k-actions","k-actions-stretched","k-actions-horizontal","k-actionsheet-footer"],["kendoButton","","size","large",3,"click"],["kendoButton","","size","large","themeColor","primary",3,"click"],[3,"resize"]]},template:function(h,x){1&h&&(e.GkF(0,0)(1,null,1),e.YNc(3,Pr,1,0,"ng-template",null,2,e.W1O),e.TgZ(5,"kendo-actionsheet",3,4),e.NdJ("overlayClick",function(){return x.show=!1})("collapse",function(){return x.onBlur.emit()}),e.YNc(7,vs,19,12,"ng-template",5),e.qZA())},dependencies:[Sa,Vn._G,Oe.NG,Mn.zx,Ep,ju,Vn.DL,_n.O5],encapsulation:2}),H})(),od=(()=>{class H{constructor(h){this.dateRangeService=h,this.wrapperClass=!0,this.showDefault=!1,(0,Nt.s)(Nr)}keydown(h){h.keyCode===Oe.R8.ArrowDown&&h.altKey&&this.dateRangeService.activatePopup(),(h.keyCode===Oe.R8.ArrowUp&&h.altKey||h.keyCode===Oe.R8.Escape)&&this.dateRangeService.deactivatePopup()}get hasContentPopup(){return this.contentPopup.length>0}ngAfterContentInit(){this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(()=>{this.showDefault=!this.hasContentPopup})}ngOnDestroy(){this.subscription?.unsubscribe()}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(Vu))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-daterange"]],contentQueries:function(h,x,ue){if(1&h&&e.Suo(ue,Dh,4),2&h){let At;e.iGM(At=e.CRH())&&(x.contentPopup=At)}},hostVars:2,hostBindings:function(h,x){1&h&&e.NdJ("keydown",function(At){return x.keydown(At)}),2&h&&e.ekj("k-daterangepicker",x.wrapperClass)},features:[e._Bn([Vu])],ngContentSelectors:xn,decls:2,vars:1,consts:[[4,"ngIf"]],template:function(h,x){1&h&&(e.F$t(),e.Hsn(0),e.YNc(1,ko,1,0,"kendo-daterange-popup",0)),2&h&&(e.xp6(1),e.Q6J("ngIf",x.showDefault))},dependencies:[Dh,_n.O5],encapsulation:2}),H})(),Eh=(()=>{class H{constructor(h,x,ue,At,di,Qi){this.activeRangeEnd=h,this.dateRangeService=x,this.input=ue,this.element=At,this.renderer=di,this.zone=Qi,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new Kt.w0,this.subscriptions=new Kt.w0}get isActiveEnd(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd}get popupCalendarActivated(){const h=this.dateRangeService.dateRangePopup$.value;return ms(h)&&ms(h.calendar)}init(){this.input.role="combobox",this.input.hasPopup="grid",this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(()=>this.deactivate()),this.input.onFocus.pipe((0,Si.h)(()=>!this.popupCalendarActivated)).subscribe(()=>this.activate()),this.input.valueUpdate.subscribe(h=>this.updateRange(h,"change")),this.dateRangeService.activeRangeEnd$.subscribe(()=>{this.navigateCalendarOnFocus&&this.focusActiveDate(),this.toggleActiveClass(this.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(h=>this.initPopup(h)),this.dateRangeService.range$.subscribe(h=>this.updateInputValue(h)),(0,Tt.R)(this.element.nativeElement,"click").subscribe(()=>this.activate()),(0,Tt.R)(this.element.nativeElement,"keydown").subscribe(h=>this.togglePopup(h||{}))].map(h=>this.subscriptions.add(h))}destroy(){this.subscriptions.unsubscribe(),this.unsubscribePopup()}initPopup(h){h?(h.anchor||(h.anchor=this.element.nativeElement),[h.cancel.subscribe(()=>this.isActiveEnd&&this.input.focus()),h.onFocus.subscribe(()=>this.toggleActiveClass(this.isActiveEnd)),h.onBlur.subscribe(()=>this.deactivate())].map(x=>this.popupSubscriptions.add(x))):this.unsubscribePopup()}unsubscribePopup(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new Kt.w0}activate(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()}deactivate(){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.updateRange(this.input.value,"blur"),!this.dateRangeService.hasActiveComponent()&&(this.toggleActiveClass(!1),this.zone.run(()=>this.dateRangeService.deactivatePopup()))})})}updateRange(h,x){const ue=this.getRange(h,x);ue&&(this.focusActiveDate(),this.dateRangeService.setRange(ue))}togglePopup({altKey:h,keyCode:x}){x===Oe.R8.Escape?this.dateRangeService.cancelPopup():h&&x===Oe.R8.ArrowDown&&this.dateRangeService.activatePopup()}focusActiveDate(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate((0,A.k)(this.input.value))}toggleActiveClass(h){const ue=this.element.nativeElement;ue&&ue.querySelector&&this.renderer[h?"addClass":"removeClass"](ue,"k-focus")}}return H.\u0275fac=function(h){e.$Z()},H.\u0275dir=e.lG2({type:H}),H})(),Ih=(()=>{class H extends Eh{constructor(h,x,ue,At,di){super("end",h,x,ue,At,di),this.rangeService=h,this.dateInput=x,this.navigateCalendarOnFocus=!1}ngOnInit(){this.rangeService.registerEndInput(this.dateInput),super.init(),this.dateInput.pickerType="daterangeend"}ngAfterViewInit(){this.renderer.setAttribute(this.dateInput.inputElement,"aria-expanded","false")}ngOnDestroy(){super.destroy()}getRange(h,x){const{min:ue,max:At}=this.dateInput;if(!et(h,ue,At))return null;const{start:di}=this.rangeService.selectionRange||cr;return this.autoCorrectOn===x&&ms(h)&&h<di?Qn(h):{start:di,end:(0,A.k)(h)}}updateInputValue(h){const{end:x}=h||cr,{min:ue,max:At}=this.dateInput;(0,N.X)(this.dateInput.value,x)||!et(x,ue,At)||(this.dateInput.writeValue((0,A.k)(x)),this.dateInput.notify())}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(Vu),e.Y36(fs),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateRangeEndInput",""]],inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},features:[e.qOj]}),H})(),Od=(()=>{class H extends Eh{constructor(h,x,ue,At,di){super("start",h,x,ue,At,di),this.rangeService=h,this.dateInput=x,this.renderer=At,this.navigateCalendarOnFocus=!1}ngOnInit(){this.rangeService.registerStartInput(this.dateInput),super.init(),this.dateInput.pickerType="daterangestart"}ngAfterViewInit(){this.renderer.setAttribute(this.dateInput.inputElement,"aria-expanded","false")}ngOnDestroy(){super.destroy()}getRange(h,x){const{min:ue,max:At}=this.dateInput;if(!et(h,ue,At))return null;const{end:di}=this.rangeService.selectionRange||cr;return this.autoCorrectOn===x&&di&&h>di?Qn(h):{start:(0,A.k)(h),end:di}}updateInputValue(h){const{start:x}=h||cr,{min:ue,max:At}=this.dateInput;(0,N.X)(this.dateInput.value,x)||!et(x,ue,At)||(this.dateInput.writeValue((0,A.k)(x)),this.dateInput.notify())}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(Vu),e.Y36(fs),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},H.\u0275dir=e.lG2({type:H,selectors:[["","kendoDateRangeStartInput",""]],inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},features:[e.qOj]}),H})(),Wc=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[_n.ez,Oe.OY,Mn.hJ]]}),H})(),ic=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})(),Yu=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:[hl,er,qa,ne,Rn,Ki],imports:[[_n.ez,Wc,xt.o0,ic,pn.Zj,Oe.OY],Wc,ic]}),H})(),eh=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[_n.ez]]}),H})(),Ad=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:[Cs,er,qa,ne,Rn,Ki],imports:[[_n.ez,Wc,Yu,xt.o0,ic,eh,Oe.OY,Oe.uv],Wc,ic]}),H})(),Ip=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[Ad,Yu],Ad,Yu]}),H})(),xu=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[_n.ez,xt.o0,Oe.OY,Ni.pc]]}),H})(),th=(()=>{class H extends Fe{constructor(h){super(),this.service=h}get override(){return!0}}return H.\u0275fac=function(h){return new(h||H)(e.Y36(T.oQ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["kendo-datepicker-messages"]],features:[e._Bn([{provide:Fe,useExisting:(0,e.Gpc)(()=>H)}]),e.qOj],decls:0,vars:0,template:function(h,x){},encapsulation:2}),H})();const Rd=[Vn.AG,Oe.uv,Mn.hJ,en.oc];let Th=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[...Rd],Vn.AG,Oe.uv,Mn.hJ,en.oc]}),H})(),Pd=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:[{provide:Qo,useValue:ot.Pt}],imports:[[_n.ez,xu,Ad,xt.o0,pn.Zj,ic,Oe.OY,Ni.pc,Th],ic]}),H})();const Mp=[Yu,xu,pn.Zj,Oe.OY,Th];let np=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[_n.ez,Mp]]}),H})();const kh=[xu,xt.o0,pn.Zj,eh,Oe.OY,Ni.pc,Th],sp=[Qa,kc,cn,ma,ho,Dc,{provide:Qo,useValue:ot.Pt}];let Du=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:sp,imports:[[_n.ez,...kh]]}),H})(),Ah=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({providers:[{provide:Qo,useValue:ot.Pt}],imports:[[_n.ez,xt.o0,xu,Ad,Du,pn.Zj,Oe.OY,ic,Ni.pc,Th],ic]}),H})();const op=[Ip,xu,Pd,Du,np,Ah];let nh=(()=>{class H{}return H.\u0275fac=function(h){return new(h||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[op,Ip,xu,Pd,Du,np,Ah]}),H})()},52097:(fn,ve,_)=>{"use strict";_.d(ve,{Su:()=>Mo,Tg:()=>St,au:()=>Di,cy:()=>Ui,lw:()=>xn,nw:()=>Gn,xA:()=>as});var e=_(94650),o=_(37340),T=_(50727),A=_(77579),G=_(56451),F=_(39646),N=_(95698),R=_(39300),P=_(54004),y=_(13099),j=_(82722),Y=_(18505),ee=_(63900),se=_(36895),he=_(5651),Se=_(16010),te=_(78833),oe=_(13710),q=_(8416),we=_(66069),ae=_(28942);function Q(Pe,gn){1&Pe&&e.Hsn(0,0,["*ngIf","!actions"])}function pe(Pe,gn){if(1&Pe){const z=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(on){const Mi=e.CHM(z).$implicit,Fi=e.oxw(2);return e.KtG(Fi.onButtonClick(Mi,on))}),e._uU(1),e.qZA()}if(2&Pe){const z=gn.$implicit,Ce=e.oxw(2);e.Q6J("ngClass",Ce.buttonClass(z)),e.uIk("aria-label",z.text),e.xp6(1),e.hij(" ",z.text," ")}}function Ee(Pe,gn){if(1&Pe&&(e.ynx(0),e.YNc(1,pe,2,3,"button",4),e.BQk()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("ngForOf",z.actionsArray)}}function ke(Pe,gn){}const Ye=["*"],ct=["dialog"];function ut(Pe,gn){if(1&Pe&&(e.TgZ(0,"kendo-dialog-titlebar",8),e._uU(1),e.qZA()),2&Pe){const z=e.oxw();e.Q6J("closeTitle",z.closeTitle)("id",z.titleId),e.xp6(1),e.Oqu(z.title)}}function Ct(Pe,gn){1&Pe&&e.Hsn(0,0,["*ngIf","!title"])}function Ue(Pe,gn){1&Pe&&e.Hsn(0,1,["*ngIf","!contentTemplate"])}function vt(Pe,gn){}function ln(Pe,gn){if(1&Pe&&e.YNc(0,vt,0,0,"ng-template",9),2&Pe){const z=e.oxw();e.Q6J("ngTemplateOutlet",z.contentTemplate)}}function Je(Pe,gn){1&Pe&&e.Hsn(0,2,["*ngIf","!actions"])}function Ft(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-dialog-actions",10),2&Pe){const z=e.oxw();e.Q6J("actions",z.actions)("layout",z.actionsLayout)}}const st=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],Ze=["kendo-dialog-titlebar","*","kendo-dialog-actions"];function $e(Pe,gn){1&Pe&&e.Hsn(0,0,["*ngIf","!template"])}function Oe(Pe,gn){}const Nt=function(Pe){return{$implicit:Pe}};function xt(Pe,gn){if(1&Pe&&e.YNc(0,Oe,0,0,"ng-template",1),2&Pe){const z=e.oxw();e.Q6J("ngTemplateOutlet",z.template)("ngTemplateOutletContext",e.VKq(2,Nt,z.service))}}const Ot=["kendoWindowMinimizeAction",""];function Kt(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",4),2&Pe){const z=e.oxw();e.Q6J("svgIcon",z.windowMinimizeIcon)}}function $t(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("src",z.imageUrl,e.LSH)}}function rt(Pe,gn){if(1&Pe&&e._UZ(0,"span",7),2&Pe){const z=e.oxw();e.Q6J("ngClass",z.iconClass)}}const We=["kendoWindowMaximizeAction",""];function yt(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",4),2&Pe){const z=e.oxw();e.Q6J("svgIcon",z.windowIcon)}}function it(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("src",z.imageUrl,e.LSH)}}function It(Pe,gn){if(1&Pe&&e._UZ(0,"span",7),2&Pe){const z=e.oxw();e.Q6J("ngClass",z.iconClass)}}const Tt=["kendoWindowRestoreAction",""];function wn(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",4),2&Pe){const z=e.oxw();e.Q6J("svgIcon",z.windowRestoreIcon)}}function Nn(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("src",z.imageUrl,e.LSH)}}function an(Pe,gn){if(1&Pe&&e._UZ(0,"span",7),2&Pe){const z=e.oxw();e.Q6J("ngClass",z.iconClass)}}const sn=["kendoWindowCloseAction",""];function _n(Pe,gn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",4),2&Pe){const z=e.oxw();e.Q6J("svgIcon",z.xIcon)}}function Ln(Pe,gn){if(1&Pe&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&Pe){const z=e.oxw();e.xp6(1),e.Q6J("src",z.imageUrl,e.LSH)}}function Mn(Pe,gn){if(1&Pe&&e._UZ(0,"span",7),2&Pe){const z=e.oxw();e.Q6J("ngClass",z.iconClass)}}function pi(Pe,gn){if(1&Pe&&(e.TgZ(0,"kendo-window-titlebar",5)(1,"span",6),e._uU(2),e.qZA(),e.TgZ(3,"div",7),e._UZ(4,"button",8)(5,"button",9)(6,"button",10)(7,"button",11),e.qZA()()),2&Pe){const z=e.oxw();e.Q6J("template",z.titleBarTemplate)("id",z.titleId),e.xp6(2),e.Oqu(z.title),e.xp6(2),e.uIk("title",z.minimizeButtonTitle)("aria-label",z.minimizeButtonTitle),e.xp6(1),e.uIk("title",z.maximizeButtonTitle)("aria-label",z.maximizeButtonTitle),e.xp6(1),e.uIk("title",z.restoreButtonTitle)("aria-label",z.restoreButtonTitle),e.xp6(1),e.uIk("title",z.closeButtonTitle)("aria-label",z.closeButtonTitle)}}function Yn(Pe,gn){1&Pe&&e.Hsn(0,0,["*ngIf","!showDefaultTitleBar"])}function gi(Pe,gn){1&Pe&&e.Hsn(0,1,["*ngIf","!contentTemplate"])}function qn(Pe,gn){}function ki(Pe,gn){if(1&Pe&&e.YNc(0,qn,0,0,"ng-template",13),2&Pe){const z=e.oxw(2);e.Q6J("ngTemplateOutlet",z.contentTemplate)}}function Si(Pe,gn){if(1&Pe&&(e.TgZ(0,"div",12),e.YNc(1,gi,1,0,"ng-content",2),e.YNc(2,ki,1,1,null,2),e.qZA()),2&Pe){const z=e.oxw();e.Q6J("hidden","minimized"===z.state&&z.keepContent),e.xp6(1),e.Q6J("ngIf",!z.contentTemplate),e.xp6(1),e.Q6J("ngIf",z.contentTemplate)}}function Ni(Pe,gn){1&Pe&&e._UZ(0,"div",15),2&Pe&&e.Q6J("direction",gn.$implicit)}function pn(Pe,gn){if(1&Pe&&e.YNc(0,Ni,1,1,"div",14),2&Pe){const z=e.oxw();e.Q6J("ngForOf",z.resizeDirections)}}const Vn=[[["kendo-window-titlebar"]],"*"],ot=["kendo-window-titlebar","*"],en=Pe=>null!=Pe,In=Pe=>String(Pe).trim().split(" "),rn=/^(?:a|input|select|textarea|button|object)$/i;var Qt=(()=>{return(Pe=Qt||(Qt={}))[Pe.esc=27]="esc",Pe[Pe.tab=9]="tab",Pe[Pe.enter=13]="enter",Pe[Pe.space=32]="space",Pe[Pe.ctrl=17]="ctrl",Pe[Pe.shift=16]="shift",Pe[Pe.left=37]="left",Pe[Pe.up=38]="up",Pe[Pe.right=39]="right",Pe[Pe.down=40]="down",Qt;var Pe})();const yi="k-dialog-wrapper k-actions k-dialog-titlebar-action",Ht=(Pe,gn)=>{const z=In(gn);return Boolean(In(Pe.className).find(Ce=>z.indexOf(Ce)>=0))},Sn=(Pe,gn=!0)=>{if(Pe.tagName){const z=Pe.tagName.toLowerCase(),Ce=Pe.getAttribute("tabIndex"),on=null!==Ce&&!isNaN(Ce)&&Ce>-1;let Hn=!1;return Hn=rn.test(z)?!Pe.disabled:on,Hn&&(!gn||(Pe=>{const gn=Pe.getBoundingClientRect();return!(!gn.width||!gn.height)&&"hidden"!==window.getComputedStyle(Pe).visibility})(Pe))}return!1},Fn=(Pe,gn,z)=>{for(const Ce in Pe)Ce&&gn.setAttribute(z,Ce,Pe[Ce])},Cn=Pe=>gt(Pe)?Un(Pe):U(Pe)?fi(Pe):Array.isArray(Pe)?bi(Pe):void 0,Un=Pe=>{const gn=[];return Object.keys(Pe).forEach(z=>{const Ce=vn(z);Pe[z]&&Ce[0]&&gn.push(...Ce)}),gn},fi=Pe=>{const gn=[];return vn(Pe).forEach(Ce=>{gn.push(Ce)}),gn},bi=Pe=>{const gn=[];return Pe.forEach(z=>{const Ce=vn(z);Ce[0]&&gn.push(...Ce)}),gn},Zn=({originalEvent:Pe})=>{Pe.stopPropagation(),Pe.preventDefault()},wt=["n","e","s","w","se","sw","ne","nw"],ht=["top","left","width","height"],U=Pe=>Pe instanceof String||"string"==typeof Pe,gt=Pe=>en(Pe)&&!Array.isArray(Pe)&&"object"==typeof Pe,kt=Pe=>Pe+((Pe=>"number"==typeof Pe&&isFinite(Pe))(Pe)?"px":""),vn=Pe=>Pe.trim().replace(/\s+/g," ").split(" ");let St=(()=>{class Pe{constructor(z){this.el=z,this.layout="stretched",this.action=new e.vpe,this.hostClasses=!0}set actions(z){if(z instanceof e.Rgc)this.actionsTemplate=z;else{if(!Array.isArray(z))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=z}}get startClassName(){return"start"===this.layout}get centerClassName(){return"center"===this.layout}get endClassName(){return"end"===this.layout}get stretchedClassName(){return"stretched"===this.layout}onButtonClick(z,Ce){this.action.emit(z)}buttonClass(z){let Ce=["k-button k-button-md k-rounded-md"];const on=z.fillMode?z.fillMode:"solid",Hn=z.themeColor?z.themeColor:"base",Mi=z.cssClass?Cn(z.cssClass):[];return Ce.push(`k-button-${on} k-button-${on}-${Hn}`),Mi.length>0&&(Ce=Ce.concat(Mi)),Ce.join(" ")}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-dialog-actions"]],hostVars:16,hostBindings:function(z,Ce){2&z&&e.ekj("k-actions",Ce.hostClasses)("k-actions-horizontal",Ce.hostClasses)("k-window-actions",Ce.hostClasses)("k-dialog-actions",Ce.hostClasses)("k-actions-start",Ce.startClassName)("k-actions-center",Ce.centerClassName)("k-actions-end",Ce.endClassName)("k-actions-stretched",Ce.stretchedClassName)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:Ye,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(z,Ce){if(1&z&&(e.F$t(),e.YNc(0,Q,1,0,"ng-content",0),e.YNc(1,Ee,2,1,"ng-container",1),e.YNc(2,ke,0,0,"ng-template",2,3,e.W1O)),2&z){const on=e.MAs(3);e.Q6J("ngIf",!Ce.actions),e.xp6(1),e.Q6J("ngIf",Ce.actionsArray)("ngIfElse",on),e.xp6(1),e.Q6J("ngTemplateOutlet",Ce.actionsTemplate)}},dependencies:[se.O5,se.sg,se.mk,se.tP],encapsulation:2}),Pe})();class De{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const ie=new e.OlP("Dialog LocalizationService");let je=(()=>{class Pe extends he.oQ{constructor(z,Ce,on,Hn){super(z,Ce,on),this.dialogLocalization=Hn}get(z){return this.dialogLocalization?this.dialogLocalization.get(z):super.get(z)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(he.mM),e.LFG(he.ez,8),e.LFG(he.lw,8),e.LFG(ie,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),pt=(()=>{class Pe extends he.Z1{}return Pe.\u0275fac=function(){let gn;return function(Ce){return(gn||(gn=e.n5z(Pe)))(Ce||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[e.qOj]}),Pe})(),Ut=(()=>{class Pe extends pt{constructor(z){super(),this.service=z}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(he.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[e._Bn([{provide:pt,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})(),xn=(()=>{class Pe{constructor(z,Ce,on){this.zone=z,this.hostElement=Ce,this.localizationService=on,this.close=new e.vpe,this.xIcon=Se.FZE}get className(){return!0}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}ngAfterViewInit(){this.zone.onStable.pipe((0,N.q)(1)).subscribe(()=>{this.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",this.id)})}onCloseClick(z){z.preventDefault();const Ce=new De;this.close.emit(Ce)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(he.oQ,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(z,Ce){2&z&&e.ekj("k-window-titlebar",Ce.className)("k-dialog-titlebar",Ce.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[e._Bn([je,{provide:he.oQ,useExisting:je},{provide:he.mM,useValue:"kendo.dialog"}])],ngContentSelectors:Ye,decls:5,vars:3,consts:function(){let gn;return gn=$localize`:kendo.dialog.closeTitle|The title of the close button:Close`,[["kendoDialogTitleBarLocalizedMessages","","closeTitle",gn],[1,"k-window-title","k-dialog-title"],[1,"k-window-titlebar-actions","k-dialog-titlebar-actions"],["kendoButton","","fillMode","flat","role","button","icon","close",1,"k-window-titlebar-action","k-dialog-titlebar-action",3,"svgIcon","click"]]},template:function(z,Ce){1&z&&(e.F$t(),e.ynx(0,0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2)(4,"button",3),e.NdJ("click",function(Hn){return Ce.onCloseClick(Hn)}),e.qZA()(),e.BQk()),2&z&&(e.xp6(4),e.Q6J("svgIcon",Ce.xIcon),e.uIk("title",Ce.closeButtonTitle)("aria-label",Ce.closeButtonTitle))},dependencies:[te.zx,Ut],encapsulation:2}),Pe})();const hn={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310630,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};class Gn{}const Pi={duration:300,type:"translate"};let Di=(()=>{class Pe{constructor(z,Ce,on,Hn,Mi,Fi){this.wrapper=z,this.renderer=Ce,this.cdr=Hn,this.ngZone=Mi,this.builder=Fi,this.actionsLayout="stretched",this.animation=!0,this.titleId=null,this.contentId=null,this.action=new e.vpe,this.close=new e.vpe,this.tabIndex=0,this._themeColor=null,this.subscriptions=[],this.domSubs=new T.w0,(0,oe.s)(hn),this.direction=on.rtl?"rtl":"ltr",this.subscriptions.push(on.changes.subscribe(({rtl:os})=>this.direction=os?"rtl":"ltr")),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}set themeColor(z){this.handleThemeColorClass(this.themeColor,z),this._themeColor=z}get themeColor(){return this._themeColor}set htmlAttributes(z){Fn(z,this.renderer,this.wrapper.nativeElement);const Ce=this.wrapper.nativeElement,on=Ce.getAttribute("dir"),Hn=Ce.getAttribute("tabindex");this.direction!==on&&on&&(this.direction=on),this.tabIndex!==Hn&&Hn&&(this.tabIndex=Hn),this._htmlAttributes=z}get htmlAttributes(){return this._htmlAttributes}set cssClass(z){this.setServiceClasses(this._cssClass,z),this._cssClass=z}get cssClass(){return this._cssClass}get dir(){return this.direction}ngAfterContentInit(){this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(()=>{en(this.titlebarContent.first)&&(this.titlebarContent.first.id=this.titleId,this.ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))}))}ngAfterViewInit(){(0,q.X_)()&&(this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(()=>{en(this.titlebarView.first)&&(this.titlebarView.first.id=this.titleId,this.ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{this.bubble("close",this.titlebarView.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))})),this.initDomEvents(),this.handleThemeColorClass(null,this.themeColor))}ngOnInit(){this.animation&&((Pe,gn,z,Ce)=>{let on=gn;"boolean"!=typeof Pe&&(on=Pe,on.duration=on.duration?on.duration:gn.duration);const Hn=function ri(Pe,gn,z){switch(z){case"slide":{const Ce="left"===gn||"right"===gn?"translateX":"translateY",Hn=0;return[(0,o.oB)({transform:`${Ce}(${"right"===gn||"down"===gn?-100:100}%)`}),(0,o.jt)(`${Pe}ms ease-in`,(0,o.oB)({transform:`${Ce}(${Hn}%)`}))]}case"expand":{const Ce="up"===gn||"down"===gn?"scaleY":"scaleX",Hn=1;let Mi;return Mi="down"===gn?"top":"left"===gn?"right":"right"===gn?"left":"bottom",[(0,o.oB)({transform:`${Ce}(0)`,transformOrigin:Mi}),(0,o.jt)(`${Pe}ms ease-in`,(0,o.oB)({transform:`${Ce}(${Hn})`}))]}case"zoom":return[(0,o.jt)(Pe,(0,o.F4)([(0,o.oB)({transform:"scale(0)"}),(0,o.oB)({transform:"scale(1)"})]))];case"fade":return[(0,o.jt)(Pe,(0,o.F4)([(0,o.oB)({opacity:"0"}),(0,o.oB)({opacity:"1"})]))];default:return[(0,o.oB)({transform:"translate(0, -10%)"}),(0,o.jt)(`${Pe}ms cubic-bezier(.2, 1, .2, 1)`)]}}(on.duration,on.direction,on.type);((Pe,gn,z)=>{let on=Pe.build(gn).create(z);return on.onDone(()=>{on&&(on.destroy(),on=null)}),on})(Ce,Hn,z).play()})(this.animation,Pi,this.dialog.nativeElement,this.builder),this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(z=>z.unsubscribe()),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}focus(){const z=this.wrapper.nativeElement;en(z)&&z.focus()}initDomEvents(){this.wrapper&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",z=>{this.onKeyDown(z)}))})}onKeyDown(z){const Ce=z.target,on=Ce.parentElement;(Ht(Ce,yi)||Ht(on,yi))&&z.keyCode===Qt.esc&&this.ngZone.run(()=>{this.close.emit(new Gn)}),Ht(Ce,"k-button")&&Ht(on,"k-actions")&&(z.keyCode===Qt.left||z.keyCode===Qt.right)&&this.ngZone.run(()=>{this.handleActionButtonFocus(on,z.keyCode)}),z.keyCode===Qt.tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(Ce,z)})}setServiceClasses(z,Ce){const on=this.wrapper.nativeElement;z&&Cn(z).forEach(Hn=>{this.renderer.removeClass(on,Hn)}),Ce&&Cn(Ce).forEach(Hn=>{this.renderer.addClass(on,Hn)})}handleInitialFocus(){const z=this.wrapper.nativeElement,Ce=this.findPrimary(z);if(this.autoFocusedElement){const on=z.querySelector(this.autoFocusedElement);on&&on.focus()}else this.shouldFocusPrimary(Ce)?Ce.focus():z.focus()}findPrimary(z){return(Pe=>{for(let gn=Pe.length-1;gn>=0;gn--){const z=Pe[gn].classList;for(let Ce=0;Ce<z.length;Ce++)if(z[Ce].endsWith("-primary"))return Pe[gn]}})(z.querySelectorAll(".k-actions .k-button"))}handleActionButtonFocus(z,Ce){const on=this.getAllFocusableChildren(z);for(let Hn=0;Hn<on.length;Hn++)if(on[Hn]===document.activeElement){if(Ce===Qt.left&&Hn>0){on[Hn-1].focus();break}if(Ce===Qt.right&&Hn<on.length-1){on[Hn+1].focus();break}}}keepFocusWithinComponent(z,Ce){const on=this.wrapper.nativeElement,[Hn,Mi]=this.getFirstAndLastFocusable(on),os=Ce.shiftKey&&z===Hn;!Ce.shiftKey&&z===Mi&&(Ce.preventDefault(),Hn.focus()),os&&(Ce.preventDefault(),Mi.focus())}shouldFocusPrimary(z){return en(z)&&Sn(z)}getAllFocusableChildren(z){return z.querySelectorAll(q.y)}getFirstAndLastFocusable(z){const Ce=this.getAllFocusableChildren(z);return[Ce.length>0?Ce[0]:z,Ce.length>0?Ce[Ce.length-1]:z]}generateTitleId(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}generateContentId(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}get wrapperClass(){return!0}get styles(){const z={};return this.width&&(z.width=kt(this.width)),this.height&&(z.height=kt(this.height)),this.minWidth&&(z.minWidth=kt(this.minWidth)),this.maxWidth&&(z.maxWidth=kt(this.maxWidth)),this.minHeight&&(z.minHeight=kt(this.minHeight)),this.maxHeight&&(z.maxHeight=kt(this.maxHeight)),z}bubble(z,Ce){if(Ce){const Hn=Ce[z].subscribe(Mi=>this[z].emit(Mi));this.subscriptions.push(Hn)}}handleThemeColorClass(z,Ce){const on=this.dialog.nativeElement;z&&this.renderer.removeClass(on,`k-dialog-${z}`),Ce&&this.renderer.addClass(on,`k-dialog-${Ce}`)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(he.oQ),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(o._j))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-dialog"]],contentQueries:function(z,Ce,on){if(1&z&&e.Suo(on,xn,4),2&z){let Hn;e.iGM(Hn=e.CRH())&&(Ce.titlebarContent=Hn)}},viewQuery:function(z,Ce){if(1&z&&(e.Gf(St,5),e.Gf(ct,7),e.Gf(xn,5)),2&z){let on;e.iGM(on=e.CRH())&&(Ce.actionsView=on.first),e.iGM(on=e.CRH())&&(Ce.dialog=on.first),e.iGM(on=e.CRH())&&(Ce.titlebarView=on)}},hostVars:4,hostBindings:function(z,Ce){2&z&&(e.uIk("dir",Ce.dir)("tabIndex",Ce.tabIndex),e.ekj("k-dialog-wrapper",Ce.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight",animation:"animation",themeColor:"themeColor"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[e._Bn([he.oQ,{provide:ie,useExisting:he.oQ},{provide:he.mM,useValue:"kendo.dialog"}])],ngContentSelectors:Ze,decls:11,vars:9,consts:function(){let gn;return gn=$localize`:kendo.dialog.closeTitle|The title of the close button:Close`,[["kendoDialogLocalizedMessages","","closeTitle",gn],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],["dialog",""],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(z,Ce){1&z&&(e.F$t(st),e.ynx(0,0),e._UZ(1,"div",1),e.TgZ(2,"div",2,3),e.YNc(4,ut,2,3,"kendo-dialog-titlebar",4),e.YNc(5,Ct,1,0,"ng-content",5),e.TgZ(6,"div",6),e.YNc(7,Ue,1,0,"ng-content",5),e.YNc(8,ln,1,1,null,5),e.qZA(),e.YNc(9,Je,1,0,"ng-content",5),e.YNc(10,Ft,1,2,"kendo-dialog-actions",7),e.qZA(),e.BQk()),2&z&&(e.xp6(1),e.Q6J("@overlayAppear",void 0),e.xp6(1),e.Q6J("ngStyle",Ce.styles),e.xp6(2),e.Q6J("ngIf",Ce.title),e.xp6(1),e.Q6J("ngIf",!Ce.title),e.xp6(1),e.Q6J("id",Ce.contentId),e.xp6(1),e.Q6J("ngIf",!Ce.contentTemplate),e.xp6(1),e.Q6J("ngIf",Ce.contentTemplate),e.xp6(1),e.Q6J("ngIf",!Ce.actions),e.xp6(1),e.Q6J("ngIf",Ce.actions))},dependencies:[xn,St,Ut,se.PC,se.O5,se.tP],encapsulation:2,data:{animation:[(0,o.X$)("overlayAppear",[(0,o.SB)("in",(0,o.oB)({opacity:1})),(0,o.eR)("void => *",[(0,o.oB)({opacity:.1}),(0,o.jt)(".3s cubic-bezier(.2, .6, .4, 1)")])])]}}),Pe})();class Yi{}let ji=(()=>{class Pe{constructor(z){this.dialog=z}ngAfterViewInit(){this.dialogTitleBar&&this.dialogTitleBar.close.pipe((0,R.h)(z=>!z.isDefaultPrevented())).subscribe(()=>{this.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(z=>this.dialog.dialog.instance.action.emit(z))}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(Yi))},Pe.\u0275dir=e.lG2({type:Pe,viewQuery:function(z,Ce){if(1&z&&(e.Gf(xn,5),e.Gf(St,5)),2&z){let on;e.iGM(on=e.CRH())&&(Ce.dialogTitleBar=on.first),e.iGM(on=e.CRH())&&(Ce.dialogActions=on.first)}}}),Pe})(),gs=(()=>{class Pe{set container(z){Pe.container=z}get container(){return Pe.container}}return Pe.container=null,Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class zi{constructor(gn,z){this.getDialogRef=gn,this.parentInjector=z}get(gn,z){return gn===Yi?this.getDialogRef():this.parentInjector.get(gn,z)}}let as=(()=>{class Pe{constructor(z,Ce){this.resolver=z,this.containerService=Ce}open(z){const Ce=this.resolver.resolveComponentFactory(Di),on=z.appendTo||this.containerService.container;if(!on)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n          ");return this.initializeDialog(z.content,Ce,on,{close:()=>{},content:null,dialog:null,result:null},z)}initializeDialog(z,Ce,on,Hn,Mi){const Fi=this.contentFrom(z,on,Hn),os=on.createComponent(Ce,void 0,void 0,Fi.nodes);Hn.dialog=os,os.changeDetectorRef.markForCheck(),this.applyOptions(os.instance,Mi);const dn=new A.x,wi=_i=>{_i instanceof De&&(_i=new Gn),dn.next(_i||new Gn),Fi.componentRef&&Fi.componentRef.destroy(),os.destroy()},Gt=(0,G.T)(dn,(0,G.T)(os.instance.close,os.instance.action).pipe((0,P.U)(_i=>_i instanceof De?new Gn:_i),(0,R.h)(_i=>{if(Mi.preventAction){const Wi=(Pe=>U(Pe)||Pe instanceof e.Rgc)(z)?void 0:Hn;return!Mi.preventAction(_i,Wi)}return!0}))).pipe((0,N.q)(1),(0,y.B)());if(Gt.subscribe(wi),Hn.close=wi,Hn.result=Gt,z&&(0,e.X6Q)()){const _i=Fi.nodes[0]&&Fi.nodes[0].length>0,Wi=Fi.nodes[2]&&Fi.nodes[2].length>0;z.prototype instanceof ji?(Mi.title&&_i||Mi.actions&&Wi)&&console.warn("\n                    Multiple Title and/or Actions configurations detected.\n                    When using a component as content, provide the title and actions either in the component's markup\n                    or via the title and actions properties of the DialogSettings object, but not both.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(_i||Wi)&&console.warn("\n                    When Title and/or Actions markup is provided in content component's template,\n                    the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return Hn}applyOptions(z,Ce){z.title=Ce.title,z.actions=Ce.actions,z.actionsLayout=Ce.actionsLayout||"stretched",z.width=Ce.width,z.minWidth=Ce.minWidth,z.maxWidth=Ce.maxWidth,z.height=Ce.height,z.minHeight=Ce.minHeight,z.maxHeight=Ce.maxHeight,z.autoFocusedElement=Ce.autoFocusedElement,z.closeTitle=Ce.closeTitle,z.cssClass=Ce.cssClass,z.htmlAttributes=Ce.htmlAttributes,z.animation=void 0===Ce.animation||Ce.animation,Ce.content instanceof e.Rgc&&(z.contentTemplate=Ce.content)}contentFrom(z,Ce,on){const Hn=Ce.injector.get(e.Qsj);let Mi=[],Fi=[],os=[],dn=null;if("string"==typeof z)Mi=[Hn.createText(z)];else if(z&&!(z instanceof e.Rgc)){const wi=new zi(()=>on,Ce.injector),Gt=this.resolver.resolveComponentFactory(z);dn=Ce.createComponent(Gt,void 0,wi),Fi=Array.from(dn.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),Mi=[dn.location.nativeElement],os=Array.from(dn.location.nativeElement.querySelectorAll("kendo-dialog-actions")),on.content=dn}return{componentRef:dn,nodes:[Fi,Mi,os]}}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(e._Vd),e.LFG(gs))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),ds=10002;const Xi={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},us=(Pe,gn)=>z=>Pe.kendoDrag.pipe((0,j.R)(Pe.kendoRelease.pipe((0,Y.b)(()=>{gn.emit()}))),(0,P.U)(({pageX:Ce,pageY:on})=>({originalX:z.pageX,originalY:z.pageY,pageX:Ce,pageY:on})));let ps=(()=>{class Pe{constructor(z){this.ngZone=z,this.close=new e.vpe,this.focus=new e.vpe,this.change=new e.vpe,this.stateChange=new e.vpe,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.resizeStart=new e.vpe,this.resizeEnd=new e.vpe,this.options=Object.assign({},Xi),this.lastAction=null,this.subscriptions=new T.w0,this.dragSubscription=new T.w0}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()}init(z){const Ce=this.options.state,on=this.options;this.window=z,"default"!==Ce&&(this.restoreOptions=Object.assign({},on)),"minimized"===Ce&&(on.height=0,on.minHeight=0),"maximized"===Ce&&(on.position="fixed")}onDrag(z){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let Ce,on;this.dragSubscription=z.kendoPress.pipe((0,Y.b)(Hn=>{Hn.isTouch||Zn(Hn),this.focus.emit(),Ce=this.currentPosition(),on=!1}),(0,ee.w)(us(z,this.dragEnd))).subscribe(({pageX:Hn,pageY:Mi,originalX:Fi,originalY:os})=>{on||(this.ensureWidth(),this.dragStart.emit(),on=!0),this.handleDrag({originalX:Fi,originalY:os,pageX:Hn,pageY:Mi,startPosition:Ce})})}))}handleDrag({originalX:z,originalY:Ce,pageX:on,pageY:Hn,startPosition:Mi}){this.options.left=Mi.x+on-z,this.options.top=Mi.y+Hn-Ce,"minimized"===this.options.state&&en(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:Mi.x+on-z,top:Mi.y+Hn-Ce})}onResize(z,Ce){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let on,Hn=!1;z.kendoPress.pipe((0,Y.b)(Mi=>{Zn(Mi),this.focus.emit(),on=this.currentOffsetAndPosition(),Hn=!1}),(0,ee.w)(us(z,this.resizeEnd))).subscribe(({pageX:Mi,pageY:Fi,originalX:os,originalY:dn})=>{Hn||(this.resizeStart.emit(Ce),Hn=!0),this.handleResize(on,Ce,Mi-os,Fi-dn)})}))}handleResize(z,Ce,on,Hn){const Mi=this.options,Fi={};if(Ce.indexOf("e")>=0){const os=z.width+on;os!==Mi.width&&os>=Mi.minWidth&&(Fi.width=os)}if(Ce.indexOf("n")>=0){const os=z.height-Hn,dn=z.y+Hn;os!==Mi.height&&os>=Mi.minHeight&&dn!==Mi.top&&(Fi.height=os,Fi.top=dn)}if(Ce.indexOf("s")>=0){const os=z.height+Hn;os!==Mi.height&&os>=Mi.minHeight&&(Fi.height=os)}if(Ce.indexOf("w")>=0){const os=z.x+on,dn=z.width-on;dn!==Mi.width&&dn>=Mi.minWidth&&os!==Mi.left&&(Fi.width=dn,Fi.left=os)}(en(Fi.width)||en(Fi.height))&&(ht.forEach(os=>{en(Fi[os])&&(this.options[os]=Fi[os])}),this.change.emit(Fi))}restoreAction(){this.lastAction="restore",this.defaultState()}defaultState(){en(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")}storeOptions(){this.restoreOptions=Object.assign({},this.options)}maximizeAction(){this.lastAction="maximize",this.maximizeState()}maximizeState(){this.storeOptions();const z=this.windowViewPort;this.options=Object.assign({},this.options,{height:z.height,left:0,position:"fixed",state:"maximized",top:0,width:z.width}),this.stateChange.emit("maximized")}minimizeAction(){this.lastAction="minimize",this.minimizeState()}minimizeState(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")}applyManualState(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}}closeAction(){this.close.emit()}ensureWidth(){const z=(0,we.cv)(this.window.nativeElement);en(this.options.width)||(this.options.width=z.width,this.change.emit({width:z.width}))}clearHeight(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight}center(){if("maximized"===this.options.state)return;const z=(0,we.on)(this.window.nativeElement),Ce=this.windowViewPort,on=(0,we.cv)(this.window.nativeElement),Hn={};en(this.options.left)||(this.options.left=z.x+Math.max(0,(Ce.width-on.width)/2),Hn.left=this.options.left),en(this.options.top)||(this.options.top=z.y+Math.max(0,(Ce.height-on.height)/2),Hn.top=this.options.top),this.change.emit(Hn)}currentOffsetAndPosition(){const z=this.options,Ce=(0,we.cv)(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:z.height?z.height:Ce.height,width:z.width?z.width:Ce.width})}currentPosition(){const z=this.options;return(!z.top||!z.left)&&this.setPosition(),{x:this.options.left,y:this.options.top}}setPosition(){const z=(0,we.Wl)(this.window.nativeElement,(0,we.tF)(this.window.nativeElement));this.options.left=z.left,this.options.top=z.top}setRestoreOption(z,Ce){en(this.restoreOptions)&&(this.restoreOptions[z]=Ce)}get nextPossibleZIndex(){return ds}get nextZIndex(){return ds++}get windowViewPort(){return(0,we.qS)(this.window.nativeElement)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(e.R0b))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),_s=(()=>{class Pe{constructor(z,Ce,on,Hn){this.draggable=z,this.el=Ce,this.renderer=on,this.service=Hn,this.subscriptions=new T.w0}get hostClass(){return!0}ngOnInit(){this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add((0,F.of)(this.draggable).subscribe(z=>{this.service.onResize(z,this.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(z=>{z!==this.direction&&this.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(()=>{this.setDisplay("none")})),this.subscriptions.add((0,G.T)(this.service.resizeEnd,this.service.dragEnd).subscribe(()=>{this.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(z=>{this.setDisplay("default"===z?"block":"none")}))}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisplay(z="block"){this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?z:"none")}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(q.pD,1),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoWindowResizeHandle",""]],hostVars:2,hostBindings:function(z,Ce){2&z&&e.ekj("k-resize-handle",Ce.hostClass)},inputs:{direction:"direction"}}),Pe})(),ei=(()=>{class Pe{constructor(z,Ce,on){this.el=z,this.ngZone=on,this.service=Ce}ngOnInit(){this.dragDirective=new q.pD(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()}ngAfterViewInit(){const z=this.el.nativeElement.querySelector(".k-window-title");en(z)&&z.setAttribute("id",this.id)}ngOnDestroy(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()}subscribeDrag(){this.unsubscribeDrag(),this.dragSubscription=(0,F.of)(this.dragDirective).subscribe(z=>{this.service.onDrag(z)})}subscribeStateChange(){this.stateSubscription=this.service.stateChange.subscribe(z=>{this.service.options.draggable&&("maximized"===z?this.unsubscribeDrag():this.subscribeDrag())})}unsubscribeDrag(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)}unsubscribeState(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)}get className(){return!0}get touchAction(){if(this.isDraggable)return"none"}handle(z){const Ce=z.target,on=this.service.options.state;!Ht(Ce,"k-icon")&&!Sn(Ce,!1)&&this.service.options.resizable&&("default"===on?this.service.maximizeAction():"maximized"===on&&this.service.restoreAction())}get isDraggable(){const z=this.service.options;return z.draggable&&"maximized"!==z.state}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(ps),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-window-titlebar"]],hostVars:4,hostBindings:function(z,Ce){1&z&&e.NdJ("dblclick",function(Hn){return Ce.handle(Hn)}),2&z&&(e.Udp("touch-action",Ce.touchAction),e.ekj("k-window-titlebar",Ce.className))},inputs:{template:"template",id:"id"},ngContentSelectors:Ye,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,$e,1,0,"ng-content",0),e.YNc(1,xt,1,4,null,0)),2&z&&(e.Q6J("ngIf",!Ce.template),e.xp6(1),e.Q6J("ngIf",Ce.template))},dependencies:[se.O5,se.tP],encapsulation:2}),Pe})(),Fs=(()=>{class Pe{constructor(z,Ce){this.window=z,this.ngZone=Ce}process(z){const Ce=z.keyCode;switch(Ce){case Qt.up:case Qt.down:case Qt.left:case Qt.right:z.preventDefault(),this.ngZone.run(()=>{this.handleArrow(Ce,z)});break;case Qt.esc:this.ngZone.run(()=>{this.handleEscape()})}}handleArrow(z,Ce){const on=this.window.options;Ce.altKey?this.handleStateChange(z,on.state):(Ce.ctrlKey||Ce.metaKey)&&"default"===on.state?this.handleResize(z):this.handleDrag(z)}handleEscape(){this.window.closeAction()}handleDrag(z){const Ce=this.window.options;if(!Ce.draggable)return;const on=this.window.currentOffsetAndPosition(),Hn=this.window.restoreOptions,Mi={};let Fi=10;switch((z===Qt.left||z===Qt.up)&&(Fi*=-1),z){case Qt.left:case Qt.right:Mi.left=on.x+Fi,Ce.left=Mi.left;break;case Qt.up:case Qt.down:Mi.top=on.y+Fi,Ce.top=Mi.top}"minimized"===Ce.state&&en(Hn)&&(Hn.left=Ce.left,Hn.top=Ce.top),this.window.change.emit(Mi)}handleResize(z){const Ce=this.window.options;if(!Ce.resizable)return;const on=this.window.currentOffsetAndPosition();let Hn,Mi;const Fi={};let os=10;switch((z===Qt.left||z===Qt.up)&&(os*=-1),z){case Qt.left:case Qt.right:Hn=on.width+os,Hn!==Ce.width&&Hn>=Ce.minWidth&&(Fi.width=Hn);break;case Qt.up:case Qt.down:Mi=on.height+os,Mi!==Ce.height&&Mi>=Ce.minHeight&&(Fi.height=Mi)}(en(Fi.width)||en(Fi.height))&&(ht.forEach(dn=>{en(Fi[dn])&&(this.window.options[dn]=Fi[dn])}),this.window.change.emit(Fi))}handleStateChange(z,Ce){"minimized"===Ce&&z===Qt.up||"maximized"===Ce&&z===Qt.down?this.window.restoreAction():"default"===Ce&&(z===Qt.up?this.window.maximizeAction():z===Qt.down&&this.window.minimizeAction())}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(ps),e.LFG(e.R0b))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),po=(()=>{class Pe extends te.zx{constructor(z,Ce,on,Hn,Mi){super(z,Ce,null,Hn,Mi),this.buttonType="button",this.buttonClass=!0,this.windowMinimizeIcon=Se.YS7,this.window=on,this.fillMode="flat",this.icon="window-minimize"}onClick(){this.isDisabled||this.window.minimizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps,8),e.Y36(he.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["button","kendoWindowMinimizeAction",""]],hostVars:5,hostBindings:function(z,Ce){1&z&&e.NdJ("click",function(){return Ce.onClick()}),2&z&&(e.uIk("type",Ce.buttonType),e.Udp("display",Ce.visible),e.ekj("k-window-titlebar-action",Ce.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowMinimizeAction"],features:[e._Bn([he.oQ,{provide:he.mM,useValue:"kendo.button"}]),e.qOj],attrs:Ot,ngContentSelectors:Ye,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window-minimize",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window-minimize",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,Kt,1,1,"kendo-icon-wrapper",0),e.YNc(1,$t,2,1,"span",1),e.YNc(2,rt,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&z&&(e.Q6J("ngIf",!Ce.imageUrl&&!Ce.iconClass),e.xp6(1),e.Q6J("ngIf",Ce.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.iconClass))},dependencies:[ae.ZS,se.O5,se.mk],encapsulation:2}),Pe})(),As=(()=>{class Pe extends te.zx{constructor(z,Ce,on,Hn,Mi){super(z,Ce,null,Hn,Mi),this.buttonType="button",this.buttonClass=!0,this.windowIcon=Se.IHW,this.window=on,this.fillMode="flat",this.icon="window"}onClick(){this.isDisabled||this.window.maximizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps,8),e.Y36(he.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["button","kendoWindowMaximizeAction",""]],hostVars:5,hostBindings:function(z,Ce){1&z&&e.NdJ("click",function(){return Ce.onClick()}),2&z&&(e.uIk("type",Ce.buttonType),e.Udp("display",Ce.visible),e.ekj("k-window-titlebar-action",Ce.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowMaximizeAction"],features:[e._Bn([he.oQ,{provide:he.mM,useValue:"kendo.button"}]),e.qOj],attrs:We,ngContentSelectors:Ye,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,yt,1,1,"kendo-icon-wrapper",0),e.YNc(1,it,2,1,"span",1),e.YNc(2,It,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&z&&(e.Q6J("ngIf",!Ce.imageUrl&&!Ce.iconClass),e.xp6(1),e.Q6J("ngIf",Ce.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.iconClass))},dependencies:[ae.ZS,se.O5,se.mk],encapsulation:2}),Pe})(),un=(()=>{class Pe extends te.zx{constructor(z,Ce,on,Hn,Mi){super(z,Ce,null,Hn,Mi),this.windowRestoreIcon=Se.LOr,this.buttonType="button",this.buttonClass=!0,this.window=on,this.fillMode="flat",this.icon="window-restore"}onClick(){this.isDisabled||this.window.restoreAction()}get visible(){return"default"===this.window.options.state?"none":"inline-flex"}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps,8),e.Y36(he.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["button","kendoWindowRestoreAction",""]],hostVars:5,hostBindings:function(z,Ce){1&z&&e.NdJ("click",function(){return Ce.onClick()}),2&z&&(e.uIk("type",Ce.buttonType),e.Udp("display",Ce.visible),e.ekj("k-window-titlebar-action",Ce.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowRestoreAction"],features:[e._Bn([he.oQ,{provide:he.mM,useValue:"kendo.button"}]),e.qOj],attrs:Tt,ngContentSelectors:Ye,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window-restore",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window-restore",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,wn,1,1,"kendo-icon-wrapper",0),e.YNc(1,Nn,2,1,"span",1),e.YNc(2,an,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&z&&(e.Q6J("ngIf",!Ce.imageUrl&&!Ce.iconClass),e.xp6(1),e.Q6J("ngIf",Ce.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.iconClass))},dependencies:[ae.ZS,se.O5,se.mk],encapsulation:2}),Pe})(),ai=(()=>{class Pe extends te.zx{constructor(z,Ce,on,Hn,Mi){super(z,Ce,null,Hn,Mi),this.xIcon=Se.FZE,this.buttonType="button",this.buttonClass=!0,this.window=on,this.fillMode="flat",this.icon="x"}onClick(){this.isDisabled||this.window.closeAction()}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps,8),e.Y36(he.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["button","kendoWindowCloseAction",""]],hostVars:3,hostBindings:function(z,Ce){1&z&&e.NdJ("click",function(){return Ce.onClick()}),2&z&&(e.uIk("type",Ce.buttonType),e.ekj("k-window-titlebar-action",Ce.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowCloseAction"],features:[e._Bn([he.oQ,{provide:he.mM,useValue:"kendo.button"}]),e.qOj],attrs:sn,ngContentSelectors:Ye,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","close",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","close",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(z,Ce){1&z&&(e.F$t(),e.YNc(0,_n,1,1,"kendo-icon-wrapper",0),e.YNc(1,Ln,2,1,"span",1),e.YNc(2,Mn,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&z&&(e.Q6J("ngIf",!Ce.imageUrl&&!Ce.iconClass),e.xp6(1),e.Q6J("ngIf",Ce.imageUrl),e.xp6(1),e.Q6J("ngIf",Ce.iconClass))},dependencies:[ae.ZS,se.O5,se.mk],encapsulation:2}),Pe})(),Le=(()=>{class Pe{constructor(z,Ce,on,Hn,Mi,Fi){this.el=z,this.renderer=Ce,this.service=on,this.navigation=Hn,this.ngZone=Mi,this.localization=Fi,this.keepContent=!1,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.resizeStart=new e.vpe,this.resizeEnd=new e.vpe,this.close=new e.vpe,this.widthChange=new e.vpe,this.heightChange=new e.vpe,this.topChange=new e.vpe,this.leftChange=new e.vpe,this.stateChange=new e.vpe,this.messages={},this.tabIndex=0,this.role="dialog",this.hostClass=!0,this.titleId=null,this._themeColor=null,this.draged=!1,this.resized=!1,this.windowSubscription=new T.w0,this.domSubs=new T.w0,(0,oe.s)(hn),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:os})=>this.direction=os?"rtl":"ltr"),this.resizeDirections=wt,this.subscribeEvents(),this.titleId=this.generateTitleId()}set draggable(z){this.options.draggable=z}get draggable(){return this.options.draggable}set resizable(z){this.options.resizable=z}get resizable(){return this.options.resizable}set themeColor(z){this.handleThemeColorClass(this.themeColor,z),this._themeColor=z}get themeColor(){return this._themeColor}set cssClass(z){this.setServiceClasses(this._cssClass,z),this._cssClass=z}get cssClass(){return this._cssClass}set htmlAttributes(z){Fn(z,this.renderer,this.el.nativeElement);const Ce=this.el.nativeElement,on=Ce.getAttribute("dir"),Hn=Ce.getAttribute("tabindex");this.direction!==on&&(this.direction=on),this.tabIndex!==Hn&&(this.tabIndex=Hn),this._htmlAttributes=z}get htmlAttributes(){return this._htmlAttributes}set state(z){this.options.state=z}get state(){return this.options.state}set minWidth(z){this.setOption("minWidth",z)}get minWidth(){return this.options.minWidth}set minHeight(z){this.setOption("minHeight",z)}get minHeight(){return this.options.minHeight}set width(z){this.setOption("width",z)}get width(){return this.options.width}set height(z){this.setOption("height",z)}get height(){return this.options.height}set top(z){this.setOption("top",z)}get top(){return this.options.top}set left(z){this.setOption("left",z)}get left(){return this.options.left}get closeButtonTitle(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")}get restoreButtonTitle(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")}get maximizeButtonTitle(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")}get minimizeButtonTitle(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")}get dir(){return this.direction}ngAfterViewInit(){(0,q.X_)()&&(this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setInitialOffset())),this.initDomEvents(),(this.titleBarView||this.titleBarContent)&&this.renderer.setAttribute(this.el.nativeElement,"aria-labelledby",this.titleId),this.handleThemeColorClass(null,this.themeColor))}ngOnInit(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)}ngOnChanges(z){if(ht.forEach(Ce=>{(0,q.ln)(Ce,z)&&this.setStyle(Ce,this.options[Ce])}),(0,q.ln)("draggable",z)){const Ce=en(this.titleBarContent)?this.titleBarContent:this.titleBarView;(Pe=>!!Pe)(z.draggable.currentValue)?Ce.subscribeDrag():Ce.unsubscribeDrag()}(0,q.ln)("state",z)&&(en(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))}ngOnDestroy(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()}focus(){const z=this.el.nativeElement;en(z)&&z.focus()}bringToFront(){this.setNextZIndex()}setDimension(z,Ce){this.setOption(z,Ce),this.setStyle(z,Ce)}setOffset(z,Ce){this.setOption(z,Ce),this.setStyle(z,Ce)}get showDefaultTitleBar(){return!en(this.titleBarContent)}get styleMinWidth(){return this.minWidth+"px"}get styleMinHeight(){return this.minHeight+"px"}get stylePosition(){return this.options.position}get wrapperMaximizedClass(){return"maximized"===this.state}get wrapperMinimizedClass(){return"minimized"===this.state}onComponentFocus(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()}onComponentBlur(){this.renderer.removeClass(this.el.nativeElement,"k-focus")}subscribeEvents(){(0,q.X_)()&&(this.windowSubscription.add(this.service.focus.subscribe(()=>{this.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(()=>{this.draged=!0,this.ngZone.run(()=>{this.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(()=>{this.draged&&(this.draged=!1,this.ngZone.run(()=>{this.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(()=>{this.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(()=>{this.resized=!0,this.ngZone.run(()=>{this.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(()=>{this.resized&&(this.resized=!1,this.ngZone.run(()=>{this.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(z=>{ht.forEach(Ce=>{if(en(z[Ce])&&(this.setStyle(Ce,z[Ce]),"maximized"!==this.state)){const on=this[Ce+"Change"];on.observers.length&&this.ngZone.run(()=>{on.emit(z[Ce])})}})})),this.windowSubscription.add(this.service.stateChange.subscribe(z=>{en(this.service.lastAction)&&(this.updateAllOffset(),this.stateChange.emit(z))})))}initDomEvents(){this.el&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.el.nativeElement,"keydown",z=>{this.onKeyDown(z)}))})}onKeyDown(z){Ht(z.target,"k-window")&&this.navigation.process(z)}setServiceClasses(z,Ce){const on=this.el.nativeElement;z&&Cn(z).forEach(Hn=>{this.renderer.removeClass(on,Hn)}),Ce&&Cn(Ce).forEach(Hn=>{this.renderer.addClass(on,Hn)})}setNextZIndex(){const z=this.el.nativeElement.style["z-index"];(!z||this.service.nextPossibleZIndex-z>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)}setInitialOffset(){if("maximized"!==this.state)this.updateAllOffset(),(!en(this.left)||!en(this.top))&&this.service.center();else{const z=this.service.windowViewPort;this.setStyle("width",z.width),this.setStyle("height",z.height),this.setStyle("top",0),this.setStyle("left",0)}}updateAllOffset(){ht.forEach(z=>{en(this[z])?this.setStyle(z,this[z]):this.removeStyle(z)})}setStyle(z,Ce){this.renderer.setStyle(this.el.nativeElement,z,Ce+"px")}removeStyle(z){this.renderer.removeStyle(this.el.nativeElement,z)}get options(){return this.service.options}setOption(z,Ce){if("number"!=typeof Ce&&"string"!=typeof Ce)return;const on="number"==typeof Ce?Ce:parseInt(Ce,10);this.options[z]=on,this.service.setRestoreOption(z,on)}handleInitialFocus(){if(this.autoFocusedElement){const Ce=this.el.nativeElement.querySelector(this.autoFocusedElement);Ce&&Ce.focus()}else this.focus()}generateTitleId(){return"kendo-window-title-"+Math.ceil(1e6*Math.random()).toString()}handleThemeColorClass(z,Ce){const on=this.el.nativeElement;z&&this.renderer.removeClass(on,`k-window-${z}`),Ce&&this.renderer.addClass(on,`k-window-${Ce}`)}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ps),e.Y36(Fs),e.Y36(e.R0b),e.Y36(he.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-window"]],contentQueries:function(z,Ce,on){if(1&z&&e.Suo(on,ei,5),2&z){let Hn;e.iGM(Hn=e.CRH())&&(Ce.titleBarContent=Hn.first)}},viewQuery:function(z,Ce){if(1&z&&(e.Gf(ei,5),e.Gf(_s,5)),2&z){let on;e.iGM(on=e.CRH())&&(Ce.titleBarView=on.first),e.iGM(on=e.CRH())&&(Ce.resizeHandles=on)}},hostVars:15,hostBindings:function(z,Ce){1&z&&e.NdJ("focus",function(){return Ce.onComponentFocus()})("blur",function(){return Ce.onComponentBlur()}),2&z&&(e.uIk("tabIndex",Ce.tabIndex)("role",Ce.role)("dir",Ce.dir),e.Udp("min-width",Ce.styleMinWidth)("min-height",Ce.styleMinHeight)("position",Ce.stylePosition),e.ekj("k-window",Ce.hostClass)("k-window-maximized",Ce.wrapperMaximizedClass)("k-window-minimized",Ce.wrapperMinimizedClass))},inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",themeColor:"themeColor",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},exportAs:["kendoWindow"],features:[e._Bn([ps,Fs,he.oQ,{provide:he.mM,useValue:"kendo.window"}]),e.TTD],ngContentSelectors:ot,decls:6,vars:4,consts:function(){let gn,z,Ce,on;return gn=$localize`:kendo.window.closeTitle|The title of the close button:Close`,z=$localize`:kendo.window.restoreTitle|The title of the restore button:Restore`,Ce=$localize`:kendo.window.maximizeTitle|The title of the maximize button:Maximize`,on=$localize`:kendo.window.minimizeTitle|The title of the minimize button:Minimize`,[["kendoWindowLocalizedMessages","","closeTitle",gn,"restoreTitle",z,"maximizeTitle",Ce,"minimizeTitle",on],[3,"template","id",4,"ngIf"],[4,"ngIf"],["class","k-window-content",3,"hidden",4,"ngIf"],[3,"ngIf"],[3,"template","id"],[1,"k-window-title"],[1,"k-window-titlebar-actions"],["kendoWindowMinimizeAction",""],["kendoWindowMaximizeAction",""],["kendoWindowRestoreAction",""],["kendoWindowCloseAction",""],[1,"k-window-content",3,"hidden"],[3,"ngTemplateOutlet"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction",4,"ngFor","ngForOf"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction"]]},template:function(z,Ce){1&z&&(e.F$t(Vn),e.ynx(0,0)(1),e.YNc(2,pi,8,11,"kendo-window-titlebar",1),e.YNc(3,Yn,1,0,"ng-content",2),e.YNc(4,Si,3,3,"div",3),e.YNc(5,pn,1,1,"ng-template",4),e.BQk()()),2&z&&(e.xp6(2),e.Q6J("ngIf",Ce.showDefaultTitleBar),e.xp6(1),e.Q6J("ngIf",!Ce.showDefaultTitleBar),e.xp6(1),e.Q6J("ngIf","minimized"!==Ce.state||Ce.keepContent),e.xp6(1),e.Q6J("ngIf",Ce.resizable))},dependencies:[ei,po,As,un,ai,Ut,se.O5,se.tP,se.sg,_s,q.pD],encapsulation:2}),Pe})();class Pt{}class Be{}let xe=(()=>{class Pe{set container(z){Pe.container=z}get container(){return Pe.container}}return Pe.container=null,Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Qe{constructor(gn,z){this.getWindowRef=gn,this.parentInjector=z}get(gn,z){return gn===Be?this.getWindowRef():this.parentInjector.get(gn,z)}}let Et=(()=>{class Pe{constructor(z,Ce){this.resolver=z,this.containerService=Ce}open(z){const Ce=this.resolver.resolveComponentFactory(Le),on=z.appendTo||this.containerService.container;if(!on)throw new Error("Cannot attach window to the page.\n                Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n                See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n            ");const Hn={close:()=>{},content:null,result:null,window:null},Mi=this.contentFrom(z.content,on,Hn),Fi=on.createComponent(Ce,void 0,void 0,Mi.nodes);Hn.window=Fi,this.applyOptions(Fi.instance,z);const os=new A.x,dn=Gt=>{os.next(Gt||new Pt),Mi.componentRef&&Mi.componentRef.destroy(),Fi.destroy()},wi=(0,G.T)(os,Fi.instance.close.pipe((0,P.U)(Gt=>Gt||new Pt),(0,R.h)(Gt=>{if(z.preventClose){const _i=(Pe=>U(Pe)||Pe instanceof e.Rgc)(z.content)?void 0:Hn;return!z.preventClose(Gt,_i)}return!0}))).pipe((0,N.q)(1),(0,y.B)());return wi.subscribe(dn),Hn.close=dn,Hn.result=wi,Fi.changeDetectorRef.markForCheck(),Hn}applyOptions(z,Ce){en(Ce.htmlAttributes)&&(z.htmlAttributes=Ce.htmlAttributes),en(Ce.cssClass)&&(z.cssClass=Ce.cssClass),en(Ce.title)&&(z.title=Ce.title),en(Ce.keepContent)&&(z.keepContent=Ce.keepContent),en(Ce.width)&&(z.width=Ce.width),en(Ce.minWidth)&&(z.minWidth=Ce.minWidth),en(Ce.height)&&(z.height=Ce.height),en(Ce.minHeight)&&(z.minHeight=Ce.minHeight),en(Ce.left)&&(z.left=Ce.left),en(Ce.top)&&(z.top=Ce.top),en(Ce.draggable)&&(z.draggable=Ce.draggable),en(Ce.resizable)&&(z.resizable=Ce.resizable),en(Ce.messages&&Ce.messages.closeTitle)&&(z.messages.closeTitle=Ce.messages.closeTitle),en(Ce.messages&&Ce.messages.restoreTitle)&&(z.messages.restoreTitle=Ce.messages.restoreTitle),en(Ce.messages&&Ce.messages.maximizeTitle)&&(z.messages.maximizeTitle=Ce.messages.maximizeTitle),en(Ce.messages&&Ce.messages.minimizeTitle)&&(z.messages.minimizeTitle=Ce.messages.minimizeTitle),en(Ce.autoFocusedElement)&&(z.autoFocusedElement=Ce.autoFocusedElement),en(Ce.state)&&(z.state=Ce.state,"minimized"===Ce.state&&(z.keepContent=!0)),Ce.content instanceof e.Rgc&&(z.contentTemplate=Ce.content),Ce.titleBarContent instanceof e.Rgc&&(z.titleBarTemplate=Ce.titleBarContent)}contentFrom(z,Ce,on){const Hn=Ce.injector.get(e.Qsj);let Mi=[],Fi=null;if("string"==typeof z)Mi=[Hn.createText(z)];else if(z&&!(z instanceof e.Rgc)){const os=new Qe(()=>on,Ce.injector),dn=this.resolver.resolveComponentFactory(z);Fi=Ce.createComponent(dn,void 0,os),Mi=[Fi.location.nativeElement],on.content=Fi}return{componentRef:Fi,nodes:[[],Mi]}}}return Pe.\u0275fac=function(z){return new(z||Pe)(e.LFG(e._Vd),e.LFG(xe))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),qi=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[se.ez,ae.pc,te.hJ],se.ez,ae.pc,te.hJ]}),Pe})(),Mo=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[gs,as],imports:[[qi]]}),Pe})(),ti=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[xe,Et],imports:[[qi,q.QY]]}),Pe})(),Ui=(()=>{class Pe{}return Pe.\u0275fac=function(z){return new(z||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[Mo,ti]}),Pe})()},17115:(fn,ve,_)=>{"use strict";_.d(ve,{jf:()=>Gu,WN:()=>$a,oX:()=>Id,Rl:()=>cc,rI:()=>Td,g9:()=>uc,q2:()=>dc,uc:()=>Da,OP:()=>Ac,q4:()=>ya,Sw:()=>nc,Ul:()=>Vs,m8:()=>xr,Gq:()=>Ch,Cu:()=>Qd});var e=_(94650),o=_(8416),T=_(24006),A=_(13710),G=_(99912),F=_(5651),N=_(50727),R=_(56451),P=_(54968),y=_(77579),j=_(39646),Y=_(17445),ee=_(5643),se=_(54004),he=_(63900),Se=_(95698),te=_(23601),oe=_(18505),q=_(39300);function we(M,Re){return(r,b)=>!M.call(Re,r,b)}var Q=_(59468),pe=_(70262),Ee=_(54244),ke=_(24351),Ye=_(82722),ut=(_(78372),_(36895)),Ct=_(16010),Ue=_(41749),vt=_(94023),ln=_(78833),Je=_(28942),Ft=_(60515),st=_(61135),Ze=_(37340),$e=_(91005),Oe=_(28746);_(53454);const xt=["kendoTreeViewGroup",""];function Ot(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(r);const J=e.oxw(),Te=J.index,zn=J.$implicit,Ei=e.oxw();return e.KtG(Ei.expandNode(Ei.nodeIndex(Te),zn,!Ei.isExpanded(zn,Ei.nodeIndex(Te))))}),e._UZ(1,"kendo-icon-wrapper",13),e.qZA()}if(2&M){const r=e.oxw(),b=r.$implicit,J=r.index,Te=e.oxw();e.ekj("k-disabled",!Te.isItemExpandable(b,J)),e.Q6J("kendoTreeViewLoading",Te.nodeIndex(J)),e.xp6(1),e.Q6J("name",Te.getFontIcon(b,Te.nodeIndex(J)))("svgIcon",Te.getSvgIcon(b,Te.nodeIndex(J)))}}function Kt(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-checkbox",14),e.NdJ("checkStateChange",function(){e.CHM(r);const J=e.oxw().index,Te=e.oxw();return e.KtG(Te.checkNode(Te.nodeIndex(J)))}),e.qZA()}if(2&M){const r=e.oxw(),b=r.$implicit,J=r.index,Te=e.oxw();e.ekj("k-disabled",Te.isItemDisabled(b,J)),e.Q6J("size",Te.size)("node",b)("index",Te.nodeIndex(J))("isChecked",Te.isChecked)("tabindex",-1)}}function $t(M,Re){}const rt=function(M,Re){return{$implicit:M,index:Re}};function We(M,Re){if(1&M&&(e.ynx(0),e.YNc(1,$t,0,0,"ng-template",15),e.BQk()),2&M){const r=e.oxw(),b=r.$implicit,J=r.index,Te=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",Te.nodeTemplateRef)("ngTemplateOutletContext",e.WLB(2,rt,b,Te.nodeIndex(J)))}}function yt(M,Re){if(1&M&&(e.ynx(0),e._uU(1),e.BQk()),2&M){const r=e.oxw().$implicit,b=e.oxw();e.xp6(1),e.hij(" ",b.nodeText(r)," ")}}function it(M,Re){if(1&M&&e._UZ(0,"ul",16),2&M){const r=e.oxw(),b=r.$implicit,J=r.index,Te=e.oxw();e.Q6J("nodes",Te.fetchChildren)("loadOnDemand",Te.loadOnDemand)("checkboxes",Te.checkboxes)("expandIcons",Te.expandIcons)("selectable",Te.selectable)("touchActions",Te.touchActions)("children",Te.children)("hasChildren",Te.hasChildren)("isChecked",Te.isChecked)("isDisabled",Te.isDisabled)("disabled",Te.isItemDisabled(b,J))("expandDisabledNodes",Te.expandDisabledNodes)("isExpanded",Te.isExpanded)("isSelected",Te.isSelected)("isVisible",Te.isVisible)("nodeTemplateRef",Te.nodeTemplateRef)("loadMoreButtonTemplateRef",Te.loadMoreButtonTemplateRef)("parentIndex",Te.nodeIndex(J))("parentDataItem",b)("textField",Te.nextFields)("loadMoreService",Te.loadMoreService)("@toggle",!0)("trackBy",Te.trackBy)("disableParentNodesOnly",Te.disableParentNodesOnly)}}function It(M,Re){if(1&M&&(e.TgZ(0,"li",2)(1,"div",3),e.YNc(2,Ot,2,5,"span",4),e.YNc(3,Kt,1,7,"kendo-checkbox",5),e.TgZ(4,"span",6)(5,"span",7),e.ynx(6,8),e.YNc(7,We,2,5,"ng-container",9),e.YNc(8,yt,2,1,"ng-container",10),e.BQk(),e.qZA()()(),e.YNc(9,it,1,24,"ul",11),e.qZA()),2&M){const r=Re.$implicit,b=Re.index,J=e.oxw();e.ekj("k-hidden",!J.isVisible(r,J.nodeIndex(b))),e.Q6J("dataItem",r)("index",J.nodeIndex(b))("parentDataItem",J.parentDataItem)("parentIndex",J.parentIndex)("loadOnDemand",J.loadOnDemand)("checkable",J.checkboxes)("isChecked",J.isChecked(r,J.nodeIndex(b)))("isDisabled",J.isItemDisabled(r,b))("isVisible",J.isVisible(r,J.nodeIndex(b)))("expandable",J.expandIcons&&J.hasChildren(r))("isExpanded",J.isExpanded(r,J.nodeIndex(b)))("selectable",J.selectable)("isSelected",J.isSelected(r,J.nodeIndex(b))),e.uIk("aria-setsize",J.totalNodesCount)("data-treeindex",J.nodeIndex(b)),e.xp6(1),e.Q6J("ngClass",J.setItemClasses(J.data.length,b)),e.xp6(1),e.Q6J("ngIf",J.expandIcons&&J.hasChildren(r)),e.xp6(1),e.Q6J("ngIf",J.checkboxes),e.xp6(1),e.Udp("touch-action",J.touchActions?"":"none"),e.ekj("k-disabled",J.isItemDisabled(r,b)),e.Q6J("dataItem",r)("index",J.nodeIndex(b))("initialSelection",J.isSelected(r,J.nodeIndex(b)))("isSelected",J.isSelected),e.uIk("data-treeindex",J.nodeIndex(b)),e.xp6(2),e.Q6J("ngSwitch",J.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.Q6J("ngIf",J.isExpanded(r,J.nodeIndex(b))&&J.hasChildren(r))}}function Tt(M,Re){1&M&&e._UZ(0,"span",22)}function wn(M,Re){}const Nn=function(M){return{index:M}};function an(M,Re){if(1&M&&e.YNc(0,wn,0,0,"ng-template",15),2&M){const r=e.oxw(2);e.Q6J("ngTemplateOutlet",r.loadMoreButtonTemplateRef)("ngTemplateOutletContext",e.VKq(2,Nn,r.loadMoreButtonIndex))}}function sn(M,Re){1&M&&(e.ynx(0),e._uU(1," Load more "),e.BQk())}function _n(M,Re){if(1&M&&(e.TgZ(0,"li",17)(1,"div",18),e.YNc(2,Tt,1,0,"span",19),e.TgZ(3,"span",20)(4,"span",7),e.YNc(5,an,1,4,null,21),e.YNc(6,sn,2,0,"ng-container",21),e.qZA()()()()),2&M){const r=e.oxw();e.ekj("k-treeview-load-more-checkboxes-container",r.checkboxes),e.Q6J("selectable",!1)("checkable",!1)("expandable",!1)("index",r.loadMoreButtonIndex)("parentDataItem",r.parentDataItem)("parentIndex",r.parentIndex),e.uIk("data-treeindex",r.loadMoreButtonIndex),e.xp6(2),e.Q6J("ngIf",r.loadingMoreNodes),e.xp6(1),e.Q6J("index",r.loadMoreButtonIndex),e.uIk("data-treeindex",r.loadMoreButtonIndex),e.xp6(2),e.Q6J("ngIf",r.loadMoreButtonTemplateRef),e.xp6(1),e.Q6J("ngIf",!r.loadMoreButtonTemplateRef)}}const Ln=["assetsContainer"],Mn=["searchbox"];function pi(M,Re){if(1&M&&e._UZ(0,"kendo-icon-wrapper",7),2&M){const r=e.oxw(2);e.Q6J("svgIcon",r.searchIcon)}}function Yn(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"span",3)(1,"kendo-textbox",4,5),e.NdJ("valueChange",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.filterChange.emit(J))}),e.YNc(3,pi,1,1,"ng-template",6),e.qZA()()}if(2&M){const r=e.oxw();e.xp6(1),e.Q6J("size",r.size)("value",r.filter)("clearButton",!0)("placeholder",r.filterInputPlaceholder)}}const lt={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310682,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};class In{constructor(){this.changes=new e.vpe}notify(){this.changes.emit()}}const rn=()=>!1,Qt=()=>"none",yi=()=>!1,Li=()=>!0,An=()=>!1,Ht=()=>!0,Pn=(M,Re)=>Re;let Sn=(()=>{class M{constructor(){this.changes=new y.x}expand(r,b){this.changes.next({dataItem:b,index:r,expand:!0})}collapse(r,b){this.changes.next({dataItem:b,index:r,expand:!1})}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),Fn=(()=>{class M{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(r="",b=""){return`${b}${b?this.INDEX_SEPARATOR:""}${r}`}indexForLevel(r,b){return r.split(this.INDEX_SEPARATOR).slice(0,b).join(this.INDEX_SEPARATOR)}lastLevelIndex(r=""){const b=r.split(this.INDEX_SEPARATOR);return b.length?parseInt(b[b.length-1],10):NaN}level(r){return r.split(this.INDEX_SEPARATOR).length}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),Cn=(()=>{class M{constructor(){this.changes=new y.x}notifyLoaded(r){this.changes.next(r)}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})();const Un=/^(?:a|input|select|option|textarea|button|object)$/i,fi=(M,Re)=>{const r=M.matches||M.msMatchesSelector||M.webkitMatchesSelector;return!!r&&r.call(M,Re)},bi=(M,Re)=>{if(!document.documentElement.contains(M))return null;let r=M;for(;null!==r&&1===r.nodeType;){if(fi(r,Re))return r;r=r.parentElement||r.parentNode}return null},mn=M=>null!=M,wt=M=>Array.isArray(M),gt=M=>{const Re="li.k-treeview-item";return(0,o.X_)()?M.closest?M.closest(Re):bi(M,Re):null},Lt=M=>{if(M.tagName){const Re=M.tagName.toLowerCase(),r=M.getAttribute("tabIndex"),b="-1"===r;let J=null!==r&&!b;return Un.test(Re)&&(J=!M.disabled&&!b),J}return!1},jn=M=>mn(bi(M,".k-treeview-leaf.k-treeview-load-more-button")),De=(M,Re)=>Boolean(((M,Re)=>{for(;M&&!Re(M);)M=M.parentNode;return M})(M,r=>r===Re)),ie=M=>M.nativeElement.querySelector('li[tabindex="0"]'),pt=M=>M?M.getAttribute("data-treeindex"):"",Ut=M=>(M||{}).index,ji=(M,Re)=>[M,Re].filter(r=>mn(r)).join("_"),ss=(M,Re)=>({small:`k-${M}-sm`,medium:`k-${M}-md`,large:`k-${M}-lg`}[Re]),zi=M=>M||{},as=M=>zi(M).children||[],ds=M=>{if(!Array.isArray(M)||0===M.length)return null;for(let b=M.length-1;b>=0;b-=1){const J=M[b];if(J.visible)return J}return null};class Xi{constructor(){this.ib=new Fn,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(Re=>Re.visible)}lastVisibleNode(){let Re=ds(this.nodes);for(;mn(Re)&&as(Re).length>0;){const r=as(Re),b=ds(r);if(!mn(b))return Re;Re=b}return Re}closestNode(Re){const{prev:r}=zi(this.findNode(Re)),b=r||this.firstVisibleNode();return zi(b).index===Re?this.visibleSibling(b,1):b}firstFocusableNode(){return this.nodes.find(Re=>!Re.disabled&&Re.visible)}findNode(Re){return this.find(Re,this.nodes)}findParent(Re){const r=this.ib.level(Re)-1;return this.findNode(this.ib.indexForLevel(Re,r))}findVisibleChild(Re){const r=this.findNode(Re);return as(r).find(J=>J.visible)}findVisiblePrev(Re){const r=Re.index,b=this.findParent(r),J=this.ib.lastLevelIndex(r),zn=this.container(b).slice(0,J).every(Bs=>!Bs.visible);if(0===J||zn)return b;const Ei=this.findNode(r);let Xn=this.visibleSibling(Ei,-1);if(Xn){let Bs=this.container(Xn);for(;Bs.length>0&&Bs.some(Ro=>Ro.visible);)Xn=ds(Bs),Bs=this.container(Xn)}return Xn}findVisibleNext(Re){const r=this.container(Re),b=r.some(J=>J.visible);return 0!==r.length&&b?r.find(J=>J.visible):this.visibleSibling(Re,1)}registerItem(Re,r,b,J=!1,Te=!0){const zn=[],Ei=this.ib.level(r),Xn=this.findParent(r);(Xn||1===Ei)&&this.insert({id:Re,children:zn,index:r,parent:Xn,disabled:b,loadMoreButton:J,visible:Te},Xn)}unregisterItem(Re,r){const b=this.find(r,this.nodes);if(!b||b.id!==Re)return;const J=this.container(b.parent);J.splice(J.indexOf(b),1)}childLevel(Re){const r=Re.filter(b=>mn(b));return r&&r.length?this.ib.level(r[0].index):1}container(Re){return Re?Re.children:this.nodes}find(Re,r){const b=this.childLevel(r),J=this.ib.indexForLevel(Re,b),Te=b===this.ib.level(Re),zn=r.find(Ei=>Ei&&Ei.index===J);return zn?Te?zn:this.find(Re,zn.children):null}insert(Re,r){this.container(r).splice(this.ib.lastLevelIndex(Re.index),0,Re)}visibleSibling(Re,r){if(!Re)return null;const b=this.findParent(Re.index),J=this.container(b);let Te=J.indexOf(Re)+r,zn=J[Te];for(;mn(zn);){if(zn.visible)return zn;Te+=r,zn=J[Te]}return this.visibleSibling(b,r)}}let us=(()=>{class M{constructor(r){this.localization=r,this.expands=new y.x,this.moves=new y.x,this.checks=new y.x,this.selects=new y.x,this.deselectAllButCurrentItem=new y.x,this.loadMore=new y.x,this.navigable=!0,this.selection="single",this.actions={[o.R8.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem),!0),[o.R8.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem),!0),[o.R8.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[o.R8.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[o.R8.Home]:()=>this.activate(this.model.firstVisibleNode(),!0),[o.R8.End]:()=>this.activate(this.model.lastVisibleNode(),!0),[o.R8.Enter]:b=>this.handleEnter(b),[o.R8.Space]:()=>this.handleSpace()},this.isFocused=!1,this.shouldScroll=!1,this._model=new Xi,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(r){this._model=r}get activeIndex(){return Ut(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(r,b=!1){!this.navigable||!r||this.isActive(Ut(r))||(this.isFocused=!0,this.activeItem=r||this.activeItem,this.shouldScroll=b,this.notifyMove())}activateParent(r){this.activate(this.model.findParent(r))}activateIndex(r){r&&this.activate(this.model.findNode(r))}activateClosest(r){!r||Ut(this.focusableItem)!==r||(this.activeItem=this.model.closestNode(r),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(r){this.isDisabled(r)||this.checks.next(r)}selectIndex(r){this.isDisabled(r)||this.selects.next(r)}notifyLoadMore(r){mn(r)&&this.loadMore.next(r)}isActive(r){return!!r&&this.isFocused&&this.activeIndex===r}isFocusable(r){return Ut(this.focusableItem)===r}isDisabled(r){return!!r&&this.model.findNode(r).disabled}registerItem(r,b,J,Te=!1,zn=!0){const Ei=this.model.findNode(b);mn(Ei)&&(this.model.unregisterItem(Ei.id,Ei.index),this.isActive(b)&&this.deactivate()),this.model.registerItem(r,b,J,Te,zn)}updateItem(r,b,J=!0){const Te=this.model.findNode(r);mn(Te)&&this.isActive(r)&&this.deactivate(),Te.disabled=b,Te.visible=J}unregisterItem(r,b){this.isActive(b)&&this.activateParent(b),this.model.unregisterItem(r,b)}move(r){if(!this.navigable)return;const b=this.actions[r.keyCode];b&&(b(r),r.preventDefault())}expand({expand:r,intercept:b}){const J=Ut(this.activeItem);!J||b(J)||this.notifyExpand(r)}moveToParent(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Ut(this.activeItem))),!0)}moveToFirstVisibleChild(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Ut(this.activeItem))),!0)}notifyExpand(r){this.expands.next(this.navigationState(r))}notifyMove(){this.moves.next(this.navigationState())}navigationState(r=!1){return{expand:r,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}handleEnter(r){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):r.ctrlKey||r.metaKey?this.selectIndex(this.activeIndex):"multiple"===this.selection?this.deselectAllButCurrentItem.next({dataItem:this.activeItem,index:this.activeIndex}):this.selectIndex(this.activeIndex))}handleSpace(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}return M.\u0275fac=function(r){return new(r||M)(e.LFG(F.oQ))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),ps=(()=>{class M{constructor(){this.changes=new y.x}childrenLoaded(r,b){this.changes.next({item:r,children:b})}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),_s=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc,8))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoTreeViewNodeTemplate",""]]}),M})(),ei=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc,8))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),M})(),Fs=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),po=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),As=(()=>{class M{constructor(){this.changes=new y.x}isFirstSelected(r){return this.firstIndex===r}setFirstSelected(r,b){this.firstIndex===r&&!1===b?this.firstIndex=null:!this.firstIndex&&b&&(this.firstIndex=r)}select(r,b){this.changes.next({dataItem:b,index:r})}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})();const un=/\d+$/;let ai=(()=>{class M{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(r,b){const J={children:[],item:r,parent:this.item(Ut(b))};this.map.set(r.index,J)}registerChildren(r,b){const J=this.item(r);J&&(J.children=b)}unregisterItem(r,b){const J=this.item(r);J&&J.item.dataItem===b&&(this.map.delete(r),J.parent&&J.parent.children&&(J.parent.children=J.parent.children.filter(Te=>Te.dataItem!==b)))}replaceItem(r,b,J){b&&(this.unregisterItem(r,b.dataItem),this.registerItem(b,J),this.addToParent(b,J))}itemLookup(r){const b=this.item(r);return b?{children:this.mapChildren(b.children),item:b.item,parent:b.parent}:null}hasItem(r){return this.map.has(r)}item(r){return this.map.get(r)||null}addToParent(r,b){if(b){const J=this.item(b.index),Te=parseInt(un.exec(r.index)[0],10);J.children=J.children||[],J.children.splice(Te,0,r)}}mapChildren(r=[]){return r.map(b=>{const{item:J,parent:Te,children:zn}=this.item(b.index);return{children:this.mapChildren(zn),item:J,parent:Te}})}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),Le=(()=>{class M{constructor(r,b,J){this.element=r,this.renderer=b,this.changeDetector=J,this.id=`_${(0,o.M8)()}`,this.tabindex=0,this.size="medium",this.checkStateChange=new e.vpe,this.checkState="none"}get classWrapper(){return!0}get indeterminate(){return"indeterminate"===this.checkState}get checked(){return"checked"===this.checkState}get checkBoxClasses(){return`k-checkbox ${this.size?ss("checkbox",this.size):""} k-rounded-md`}ngOnInit(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}ngDoCheck(){this.checkState=this.isChecked(this.node,this.index)}handleChange(r){const b=r.target.checked?"checked":"none";this.checkState=b,this.changeDetector.detectChanges(),this.checkStateChange.emit(b)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(r,b){2&r&&e.ekj("k-checkbox-wrapper",b.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:9,consts:[["type","checkbox","role","none",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(r,b){1&r&&(e.TgZ(0,"input",0),e.NdJ("change",function(Te){return b.handleChange(Te)}),e.qZA(),e.TgZ(1,"label",1),e._uU(2),e.qZA()),2&r&&(e.Tol(b.checkBoxClasses),e.Q6J("id",b.id)("checked",b.checked)("indeterminate",b.indeterminate)("tabindex",b.tabindex),e.uIk("aria-hidden","true"),e.xp6(1),e.Q6J("for",b.id),e.xp6(1),e.Oqu(b.labelText))},encapsulation:2}),M})();const Pt=(M,Re)=>({dataItem:Re,index:M});let Be=0,Ke=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn){this.element=r,this.expandService=b,this.navigationService=J,this.selectionService=Te,this.lookupService=zn,this.renderer=Ei,this.ib=Xn,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=Be++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(r){this.ariaChecked="checked"===r?"true":"indeterminate"===r?"mixed":"false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(r){this._isExpanded=r}get isSelected(){return this._isSelected||!1}set isSelected(r){this._isSelected=r}get isButton(){return"button"===this.role}get treeItem(){return Pt(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?Pt(this.parentIndex,this.parentDataItem):null}ngOnInit(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.updateTabIndex()}ngOnChanges(r){const{index:b}=r;(0,o.aG)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],r)&&this.setAriaAttributes(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(r),this.moveNavigationItem(b),(0,o.aG)(["isDisabled","isVisible"],r)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((r,b)=>(b.unsubscribe(),r),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(r=>{this.updateTabIndex(),this.focusItem(r.shouldScroll)}),this.navigationService.expands.pipe((0,q.h)(({index:r})=>r===this.index&&!this.isDisabled)).subscribe(({expand:r})=>this.expand(r))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;const r=this.navigationService,b=this.selectionService,J=this.index;b.setFirstSelected(J,this.isSelected),!r.isActive(J)&&b.isFirstSelected(J)&&r.activateIndex(J)}expand(r){this.expandService[r?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(r=!1){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!r})}moveLookupItem(r={}){const{dataItem:b,index:J,parentDataItem:Te,parentIndex:zn}=r;J&&J.firstChange||!(b||J||Te||zn)||this.lookupService.replaceItem((J||{}).previousValue||this.index,this.treeItem,this.parentTreeItem)}moveNavigationItem(r={}){const{currentValue:b,firstChange:J,previousValue:Te}=r;!J&&mn(b)&&mn(Te)&&(this.navigationService.unregisterItem(this.id,Te),this.navigationService.registerItem(this.id,b,this.isDisabled,this.isButton))}updateNodeAvailability(){const r=this.navigationService;this.isDisabled||!this.isVisible?r.activateClosest(this.index):r.activateFocusable(),r.updateItem(this.index,this.isDisabled,this.isVisible)}setAriaAttributes(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(r,b){mn(b)?this.renderer.setAttribute(this.element.nativeElement,r,b):this.renderer.removeAttribute(this.element.nativeElement,r)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(Sn),e.Y36(us),e.Y36(As),e.Y36(ai),e.Y36(e.Qsj),e.Y36(Fn))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[e.TTD]}),M})(),Qe=(()=>{class M{constructor(r,b,J){this.expandService=r,this.loadingService=b,this.cd=J,this._loading=!1}get loading(){return this._loading}set loading(r){this._loading=r,this.cd.markForCheck()}ngOnInit(){const r=this.loadingService.changes.pipe((0,q.h)(b=>b===this.index));this.subscription=this.expandService.changes.pipe((0,q.h)(({index:b})=>b===this.index),(0,oe.b)(({expand:b})=>{!b&&this.loading&&(this.loading=!1)}),(0,q.h)(({expand:b})=>b),(0,he.w)(b=>(0,j.of)(b).pipe((0,$e.g)(100),(0,Ye.R)(r)))).subscribe(()=>this.loading=!0),this.subscription.add(r.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(Sn),e.Y36(Cn),e.Y36(e.sBO))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(r,b){2&r&&e.ekj("k-i-loading",b.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),M})(),Et=(()=>{class M{constructor(r,b,J,Te){this.element=r,this.navigationService=b,this.selectionService=J,this.renderer=Te,this.initialSelection=!1,this.isSelected=An,this.subscriptions=new N.w0,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe((0,q.h)(zn=>zn===this.index)).subscribe(zn=>this.selectionService.select(zn,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(r){r.initialSelection&&this.updateSelectionClass(this.initialSelection),r.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-focus")}updateSelectionClass(r){this.render(r,"k-selected")}render(r,b){this.renderer[r?"addClass":"removeClass"](this.element.nativeElement,b)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(us),e.Y36(As),e.Y36(e.Qsj))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[e.TTD]}),M})();const Dn="k-treeview-top",vi="k-treeview-mid",ni="k-treeview-bot";let qi=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs){this.expandService=r,this.loadingService=b,this.indexBuilder=J,this.treeViewLookupService=Te,this.navigationService=zn,this.nodeChildrenService=Ei,this.dataChangeNotification=Xn,this.changeDetectorRef=Bs,this.caretAltDownIcon=Ct.M7i,this.caretAltRightIcon=Ct.bI8,this.kGroupClass=!0,this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this.isItemExpandable=(Ro,Go)=>this.expandDisabledNodes||!this.isItemDisabled(Ro,Go),this._data=[],this.singleRecordSubscriptions=new N.w0,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>(0,j.of)([]),this.hasChildren=()=>!1}get role(){return this.parentIndex?"group":"tree"}getFontIcon(r,b){return this.isExpanded(r,b)?"caret-alt-down":"caret-alt-right"}getSvgIcon(r,b){return this.isExpanded(r,b)?Ct.M7i:Ct.bI8}get moreNodesAvailable(){return!(!mn(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount}get pageSize(){return mn(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null}set pageSize(r){this.loadMoreService.setGroupSize(this.parentDataItem,r)}get data(){return mn(this.pageSize)?this._data.slice(0,this.pageSize>0?this.pageSize:0):this._data}set data(r){this._data=r,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return mn(this.nodeTemplateRef)}expandNode(r,b,J){J?this.expandService.expand(r,b):this.expandService.collapse(r,b)}checkNode(r){this.navigationService.checkIndex(r),this.navigationService.activateIndex(r)}nodeIndex(r){return this.indexBuilder.nodeIndex(r.toString(),this.parentIndex)}nodeText(r){const b=wt(this.textField)?this.textField[0]:this.textField;return(0,G.Yn)(b)(r)}ngOnDestroy(){mn(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),mn(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe((0,q.h)(r=>r===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this)))}ngOnChanges(r){r.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}fetchChildren(r,b){return this.children(r).pipe((0,pe.K)(()=>(this.loadingService.notifyLoaded(b),Ft.E)),(0,oe.b)(()=>this.loadingService.notifyLoaded(b)))}get nextFields(){return wt(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){mn(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}isItemDisabled(r,b){return this.disabled&&!this.disableParentNodesOnly||this.isDisabled(r,this.nodeIndex(b))}setItemClasses(r,b){return 1===r?this.parentIndex?ni:`${Dn} ${ni}`:0===b?Dn:b>0&&b<r-1?vi:b===this.totalNodesCount-1?ni:vi}loadMoreLocalNodes(){const r=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(r)}fetchMoreNodes(){this.loadingMoreNodes||(this.loadingMoreNodes=!0,mn(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe((0,Oe.x)(()=>this.loadingMoreNodes=!1)).subscribe(r=>{if(!(Array.isArray(r)&&r.length>0))return;const b=this.loadMoreButtonIndex;this.pageSize+=r.length,this.data=this.data.concat(r),this.navigationService.isActive(b)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(b))}))}setNodeChildren(r){this.treeViewLookupService.registerChildren(this.parentIndex,r)}mapToTreeItem(r){return this.parentIndex?r.map((b,J)=>({dataItem:b,index:this.nodeIndex(J)})):[]}emitChildrenLoaded(r){if(!this.parentIndex)return;const b=r.filter(J=>J.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},b)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(r=>{this.data=r,this.initialNodesLoaded=!0})}reselectItemAt(r){mn(r)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(r))}registerLoadedNodes(r=[]){const b=this.mapToTreeItem(r);this.loadOnDemand&&this.setNodeChildren(b),this.emitChildrenLoaded(b)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(Sn),e.Y36(Cn),e.Y36(Fn),e.Y36(ai),e.Y36(us),e.Y36(ps),e.Y36(In),e.Y36(e.sBO))},M.\u0275cmp=e.Xpm({type:M,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(r,b){2&r&&(e.uIk("role",b.role),e.ekj("k-treeview-group",b.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",disableParentNodesOnly:"disableParentNodesOnly",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",expandDisabledNodes:"expandDisabledNodes",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[e.TTD],attrs:xt,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-hidden","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"k-disabled","kendoTreeViewLoading","click",4,"ngIf"],[3,"k-disabled","size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[3,"name","svgIcon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading"]],template:function(r,b){1&r&&(e.YNc(0,It,10,32,"li",0),e.YNc(1,_n,7,14,"li",1)),2&r&&(e.Q6J("ngForOf",b.data)("ngForTrackBy",b.trackBy),e.xp6(1),e.Q6J("ngIf",b.initialNodesLoaded&&b.moreNodesAvailable))},dependencies:[Je.ZS,Le,M,ut.sg,Ke,ut.mk,ut.O5,Qe,Et,ut.RF,ut.n9,ut.tP,ut.ED],encapsulation:2,data:{animation:[(0,Ze.X$)("toggle",[(0,Ze.eR)("void => *",[(0,Ze.oB)({height:0}),(0,Ze.jt)("0.1s ease-in",(0,Ze.oB)({height:"*"}))]),(0,Ze.eR)("* => void",[(0,Ze.oB)({height:"*"}),(0,Ze.jt)("0.1s ease-in",(0,Ze.oB)({height:0}))])])]}}),M})(),ys=0;const bo=[Sn,Fn,ai,Cn,ps,us,As,In,F.oQ,{provide:F.mM,useValue:"kendo.treeview"},{provide:Fs,useExisting:(0,e.Gpc)(()=>Ps)},{provide:po,useExisting:(0,e.Gpc)(()=>Ps)}];let Ps=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go,Bo){this.element=r,this.changeDetectorRef=b,this.expandService=J,this.navigationService=Te,this.nodeChildrenService=zn,this.selectionService=Ei,this.treeViewLookupService=Xn,this.ngZone=Bs,this.renderer=Ro,this.dataChangeNotification=Go,this.localization=Bo,this.searchIcon=Ct.RL9,this.classNames=!0,this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.nodeDragStart=new e.vpe,this.nodeDrag=new e.vpe,this.filterStateChange=new e.vpe,this.nodeDrop=new e.vpe,this.nodeDragEnd=new e.vpe,this.addItem=new e.vpe,this.removeItem=new e.vpe,this.checkedChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.nodeClick=new e.vpe,this.nodeDblClick=new e.vpe,this.trackBy=Pn,this.isDisabled=yi,this.isVisible=Ht,this.navigable=!0,this.children=()=>(0,j.of)([]),this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.disableParentNodesOnly=!1,this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new st.X([]),this._animate=!0,this._size="medium",this.subscriptions=new N.w0,this.domSubscriptions=[],this._nextId=ys,(0,A.s)(lt),ys++}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(r){this._animate=r}get animate(){return!this._animate}set nodeTemplateRef(r){this._nodeTemplateRef=r}get nodeTemplateRef(){return this._nodeTemplateRef||this.nodeTemplateQuery}set loadMoreButtonTemplateRef(r){this._loadMoreButtonTemplateRef=r}get loadMoreButtonTemplateRef(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery}set nodes(r){this.data.next(r||[]),this.dataChangeNotification.notify()}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||rn}set hasChildren(r){this._hasChildren=r,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isChecked(){return this._isChecked||Qt}set isChecked(r){this._isChecked=r,this.checkboxes=Boolean(this._isChecked)}get isExpanded(){return this._isExpanded||Li}set isExpanded(r){this._isExpanded=r,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isSelected(){return this._isSelected||An}set isSelected(r){this._isSelected=r,this.selectable=Boolean(this._isSelected)}set size(r){const b=r||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,ss("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,ss("treeview",b)),this._size=r}get size(){return this._size}get treeviewId(){return`treeview_${this._nextId}`}ngOnChanges(r){this.navigationService.navigable=Boolean(this.navigable),(0,o.aG)(["nodes","children","hasChildren","loadOnDemand"],r,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(r=>r())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(r=>this.childrenLoaded.emit(r))),this.subscriptions.add(this.expandService.changes.subscribe(({index:r,dataItem:b,expand:J})=>J?this.expand.emit({index:r,dataItem:b}):this.collapse.emit({index:r,dataItem:b}))),this.subscriptions.add(this.navigationService.checks.subscribe(r=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(r)))),this.subscriptions.add(this.selectionService.changes.subscribe(r=>{(0,o.g$)(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(r)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,ss("treeview",this.size))}ngAfterViewInit(){this.searchbox&&(this.renderer.setAttribute(this.searchbox.input.nativeElement,"role","searchbox"),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-controls",this.treeviewId),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-label","searchbar"))}blur(){if(!(0,o.X_)())return;const r=ie(this.element);document.activeElement===r&&r.blur()}focus(r){const b=r||Ut(this.navigationService.focusableItem);this.navigationService.activateIndex(b);const J=ie(this.element);J&&J.focus()}itemLookup(r){return this.treeViewLookupService.itemLookup(r)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(r,b){this.expandService.expand(b,r)}collapseNode(r,b){this.expandService.collapse(b,r)}getNodePageSize(r){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(r)}setNodePageSize(r,b){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(r,b)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){const r=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(r,"contextmenu",this.clickHandler),this.renderer.listen(r,"click",this.clickHandler),this.renderer.listen(r,"dblclick",this.clickHandler),this.renderer.listen(r,"focusin",this.focusHandler.bind(this)),this.renderer.listen(r,"focusout",this.blurHandler.bind(this)),this.renderer.listen(r,"keydown",this.keydownHandler.bind(this)))}focusHandler(r){let b;if(fi(r.target,".k-treeview-item")?b=r.target:Lt(r.target)||(b=gt(r.target)),b){const J=pt(r.target);if(this.navigationService.isDisabled(J))return;this.navigationService.activateIndex(J),!this.isActive&&(0,o.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0}}blurHandler(r){this.isActive&&fi(r.target,".k-treeview-item")&&(!r.relatedTarget||!fi(r.relatedTarget,".k-treeview-item")||!De(r.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,(0,o.g$)(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(r){const b=r.target;if("contextmenu"===r.type&&!(0,o.g$)(this.nodeClick)||"click"===r.type&&!(0,o.g$)(this.nodeClick)&&!(0,o.g$)(this.selectionChange)&&!jn(b)||"dblclick"===r.type&&!(0,o.g$)(this.nodeDblClick)||Lt(b)||!(M=>{if(!(0,o.X_)())return null;let r=M;for(;r&&!fi(r,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)r=r.parentNode;return r?fi(r,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0})(b)&&!jn(b)||!De(b,this.element.nativeElement))return;const J=pt(gt(b));!J||this.navigationService.isDisabled(J)||this.ngZone.run(()=>{const Te=this.treeViewLookupService.itemLookup(J);if("click"===r.type){if(this.navigationService.model.findNode(J).loadMoreButton)return void this.navigationService.notifyLoadMore(J);this.navigationService.selectIndex(J)}("dblclick"===r.type?this.nodeDblClick:this.nodeClick).emit({item:Te.item,originalEvent:r,type:r.type})})}keydownHandler(r){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(r)})}verifyLoadMoreService(){if((0,e.X6Q)()&&!mn(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")}registerLookupItems(r,b=null){if(!mn(r)||0===r.length)return;const J=Ut(b),Te=r.map((zn,Ei)=>((M,Re,r)=>mn(M)?{dataItem:M,index:ji(r,Re)}:null)(zn,Ei,J));mn(b)&&this.treeViewLookupService.registerChildren(J,Te),Te.forEach(zn=>{this.treeViewLookupService.registerItem(zn,b),this.hasChildren(zn.dataItem)&&this.children(zn.dataItem).subscribe(Ei=>this.registerLookupItems(Ei,zn))})}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Sn),e.Y36(us),e.Y36(ps),e.Y36(As),e.Y36(ai),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(In),e.Y36(F.oQ))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-treeview"]],contentQueries:function(r,b,J){if(1&r&&(e.Suo(J,_s,5),e.Suo(J,ei,5)),2&r){let Te;e.iGM(Te=e.CRH())&&(b.nodeTemplateQuery=Te.first),e.iGM(Te=e.CRH())&&(b.loadMoreButtonTemplateQuery=Te.first)}},viewQuery:function(r,b){if(1&r&&(e.Gf(Ln,7,e.s_b),e.Gf(Mn,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.assetsContainer=J.first),e.iGM(J=e.CRH())&&(b.searchbox=J.first)}},hostVars:4,hostBindings:function(r,b){2&r&&(e.uIk("dir",b.direction),e.d8E("@.disabled",b.animate),e.ekj("k-treeview",b.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",expandDisabledNodes:"expandDisabledNodes",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size",disableParentNodesOnly:"disableParentNodesOnly"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[e._Bn(bo),e.TTD],decls:4,vars:23,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","tree",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disableParentNodesOnly","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy","expandDisabledNodes"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["searchbox",""],["kendoTextBoxPrefixTemplate",""],["innerCssClass","k-input-icon","name","search",3,"svgIcon"]],template:function(r,b){1&r&&(e.YNc(0,Yn,4,4,"span",0),e._UZ(1,"ul",1),e.GkF(2,null,2)),2&r&&(e.Q6J("ngIf",b.filterable),e.xp6(1),e.Q6J("size",b.size)("loadOnDemand",b.loadOnDemand)("checkboxes",b.checkboxes)("expandIcons",b.expandIcons)("selectable",b.selectable)("touchActions",b.touchActions)("children",b.children)("hasChildren",b.hasChildren)("isChecked",b.isChecked)("isDisabled",b.isDisabled)("disableParentNodesOnly",b.disableParentNodesOnly)("isExpanded",b.isExpanded)("isSelected",b.isSelected)("isVisible",b.isVisible)("nodeTemplateRef",null==b.nodeTemplateRef?null:b.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==b.loadMoreButtonTemplateRef?null:b.loadMoreButtonTemplateRef.templateRef)("textField",b.textField)("nodes",b.fetchNodes)("loadMoreService",b.loadMoreService)("trackBy",b.trackBy)("expandDisabledNodes",b.expandDisabledNodes),e.uIk("id",b.treeviewId))},dependencies:[vt.PL,Je.ZS,qi,ut.O5,vt.Em],encapsulation:2}),M})();!function Gt(M){let Re,r=!1}(()=>{if(!(0,o.X_)()||!mn(document.body))return!1;const Re=document.createElement("div");Re.style.transform="matrix(10, 0, 0, 10, 0, 0)";const r=document.createElement("div");r.innerText="child",r.style.position="fixed",r.style.top="10px",Re.appendChild(r),document.body.appendChild(Re);const b=10!==Re.children[0].getBoundingClientRect().top;return document.body.removeChild(Re),b}),new RegExp("(auto|scroll)"),new Fn,new Fn;let lo=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({}),M})(),Tn=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[ut.ez,lo,vt.rw,Je.pc]]}),M})(),Ys=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[Tn]]}),M})();const co=["input"],Hi=function(M,Re){return{focus:M,blur:Re}},to=["content"],mo=["list"],Or=["virtualContainer"];function sa(M,Re){}const aa=function(M,Re){return{templateRef:M,$implicit:Re}};function Xa(M,Re){if(1&M&&e.YNc(0,sa,0,0,"ng-template",10),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.WLB(1,aa,r.fixedGroupTemplate.templateRef,r.currentGroup))}}function ar(M,Re){if(1&M&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&M){const r=e.oxw(2);e.Tol(r.listGroupStickyHeaderTextClass),e.xp6(1),e.Oqu(r.currentGroup)}}const qr=function(M,Re,r){return{"height.px":M,"minHeight.px":Re,boxSizing:r}};function bt(M,Re){if(1&M&&(e.TgZ(0,"div",8),e.YNc(1,Xa,1,4,null,5),e.YNc(2,ar,2,3,"ng-template",9),e.qZA()),2&M){const r=e.oxw();e.Tol(r.listGroupStickyHeaderClass),e.Q6J("ngStyle",e.kEZ(5,qr,null==r.virtual?null:r.virtual.itemHeight,null==r.virtual?null:r.virtual.itemHeight,r.virtual?"border-box":"inherit")),e.xp6(1),e.Q6J("ngIf",r.fixedGroupTemplate),e.xp6(1),e.Q6J("ngIf",!r.fixedGroupTemplate)}}function Mt(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"input",14),e.NdJ("change",function(J){e.CHM(r);const Te=e.oxw().index,zn=e.oxw(2);return e.KtG(zn.onCheckedChange(J,Te))}),e.qZA()}if(2&M){const r=e.oxw().index,b=e.oxw(2);e.Q6J("ngClass",b.checkboxClasses)("checked",b.isChecked(r))}}function Xt(M,Re){}function yn(M,Re){if(1&M&&e.YNc(0,Xt,0,0,"ng-template",10),2&M){const r=e.oxw().$implicit,b=e.oxw(2);e.Q6J("templateContext",e.WLB(1,aa,b.template.templateRef,r))}}function Qn(M,Re){if(1&M&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&M){const r=e.oxw().$implicit,b=e.oxw(2);e.xp6(1),e.Oqu(b.getText(r))}}const Ci=function(M,Re){return{"k-disabled":M,"k-table-alt-row":Re}};function $i(M,Re){if(1&M&&(e.TgZ(0,"li",12),e.YNc(1,Mt,1,2,"input",13),e.YNc(2,yn,1,4,null,5),e.YNc(3,Qn,2,1,"ng-template",9),e.qZA()),2&M){const r=Re.$implicit,b=Re.index,J=e.oxw(2);e.Tol(J.listItemClass),e.Q6J("checkboxes",J.checkboxes)("height",null==J.virtual?null:J.virtual.itemHeight)("index",b+J.startFrom)("multipleSelection",J.multipleSelection)("ngClass",e.WLB(13,Ci,J.isDisabled(b),J.isAltRow(b))),e.uIk("id",J.optionPrefix+"-"+J.getValue(r))("tabIndex",-1)("aria-selected",J.isItemSelected(b)),e.xp6(1),e.Q6J("ngIf",J.checkboxes.enabled),e.xp6(1),e.Q6J("ngIf",J.template),e.xp6(1),e.Q6J("ngIf",!J.template)}}function Us(M,Re){if(1&M&&e.YNc(0,$i,4,16,"ng-template",11),2&M){const r=e.oxw();e.Q6J("ngForOf",r.data)}}function Is(M,Re){}function Ns(M,Re){if(1&M&&e.YNc(0,Is,0,0,"ng-template",10),2&M){const r=e.oxw(2).$implicit,b=e.oxw(2);e.Q6J("templateContext",e.WLB(1,aa,b.groupTemplate.templateRef,r.value))}}function Js(M,Re){if(1&M&&e._uU(0),2&M){const r=e.oxw(2).$implicit;e.Oqu(r.value)}}function $s(M,Re){if(1&M&&(e.TgZ(0,"li",18,19)(2,"span"),e.YNc(3,Ns,1,4,null,5),e.YNc(4,Js,1,1,"ng-template",9),e.qZA()()),2&M){const r=e.oxw(),b=r.index,J=r.$implicit,Te=e.oxw(2);e.Tol(Te.listGroupItemClass),e.ekj("k-table-alt-row",Te.isAltRow(b-1)),e.Q6J("ngStyle",e.kEZ(12,qr,null==Te.virtual?null:Te.virtual.itemHeight,null==Te.virtual?null:Te.virtual.itemHeight,Te.virtual?"border-box":"inherit")),e.uIk("group-index",J.index)("id",Te.optionPrefix+"-"+Te.getValue(J.value))("tabIndex",-1),e.xp6(2),e.Tol(Te.listGroupItemTextClass),e.xp6(1),e.Q6J("ngIf",Te.groupTemplate),e.xp6(1),e.Q6J("ngIf",!Te.groupTemplate)}}function mr(M,Re){}function Lo(M,Re){if(1&M&&e.YNc(0,mr,0,0,"ng-template",10),2&M){const r=e.oxw(2).$implicit,b=e.oxw(2);e.Q6J("templateContext",e.WLB(1,aa,b.template.templateRef,r.value))}}function yr(M,Re){if(1&M&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&M){const r=e.oxw(2).$implicit,b=e.oxw(2);e.xp6(1),e.Oqu(b.getText(r.value))}}function Yr(M,Re){if(1&M&&(e.TgZ(0,"li",20,19),e.YNc(2,Lo,1,4,null,5),e.YNc(3,yr,2,1,"ng-template",9),e.qZA()),2&M){const r=e.oxw(),b=r.$implicit,J=r.index,Te=e.oxw(2);e.Tol(Te.listItemClass),e.Q6J("height",null==Te.virtual?null:Te.virtual.itemHeight)("index",b.offsetIndex)("multipleSelection",Te.multipleSelection)("ngClass",e.WLB(12,Ci,Te.isDisabled(b.offsetIndex),Te.isAltRow(J-1))),e.uIk("absolute-index",b.index)("id",Te.optionPrefix+"-"+Te.getValue(b.value))("tabIndex",-1)("aria-selected",Te.isItemSelected(b.offsetIndex)),e.xp6(2),e.Q6J("ngIf",Te.template),e.xp6(1),e.Q6J("ngIf",!Te.template)}}function Vo(M,Re){if(1&M&&(e.YNc(0,$s,5,16,"li",16),e.YNc(1,Yr,4,15,"li",17)),2&M){const r=Re.$implicit;e.Q6J("ngIf",r.header&&r.index>0),e.xp6(1),e.Q6J("ngIf",!r.header)}}function Wr(M,Re){if(1&M&&e.YNc(0,Vo,2,2,"ng-template",11),2&M){const r=e.oxw();e.Q6J("ngForOf",r.data)}}function Oo(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-resize-sensor",21),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.listResize.emit())}),e.qZA()}}function Ta(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"div",22,23)(2,"div")(3,"kendo-resize-sensor",21),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.listResize.emit())}),e.qZA()()()}if(2&M){const r=e.oxw();e.xp6(2),e.Udp("height",r.scrollHeight,"px")}}const ea=["actionSheetSearchBar"];function la(M,Re){1&M&&e._UZ(0,"kendo-icon",19)}function Br(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-textbox",16,17),e.NdJ("valueChange",function(J){e.CHM(r);const Te=e.oxw(2);return e.KtG(Te.onValueChange(J))}),e.YNc(2,la,1,0,"ng-template",18),e.qZA()}if(2&M){const r=e.oxw(2);e.Q6J("value",r.searchBarValue)("size",r.size)}}function Il(M,Re){1&M&&e.GkF(0)}function br(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"div",20)(1,"button",21),e.NdJ("click",function(){e.CHM(r);const J=e.oxw(2);return e.KtG(J.onCancel.emit())})("keydown.enter",function(J){return J.stopImmediatePropagation()}),e._uU(2),e.qZA(),e.TgZ(3,"button",22),e.NdJ("click",function(){e.CHM(r);const J=e.oxw(2);return e.KtG(J.onApply.emit())})("keydown.enter",function(J){return J.stopImmediatePropagation()}),e._uU(4),e.qZA()()}if(2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("size",r.size),e.xp6(1),e.hij(" ",r.messageFor("cancelButton")," "),e.xp6(1),e.Q6J("size",r.size),e.xp6(1),e.hij(" ",r.messageFor("applyButton")," ")}}function wl(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),e._uU(4),e.qZA(),e.TgZ(5,"div",7),e._uU(6),e.qZA()(),e.TgZ(7,"div",8)(8,"button",9),e.NdJ("click",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.closePopup.emit())}),e.qZA()()(),e.TgZ(9,"div",10),e.YNc(10,Br,3,2,"kendo-textbox",11),e.qZA()(),e.TgZ(11,"div",12)(12,"div",13),e.YNc(13,Il,1,0,"ng-container",14),e.qZA()(),e.YNc(14,br,5,4,"div",15)}if(2&M){const r=e.oxw();e.xp6(4),e.Oqu(r.title),e.xp6(2),e.Oqu(r.subtitle),e.xp6(2),e.Q6J("svgIcon",r.xIcon)("size",r.size)("tabIndex",-1),e.uIk("title",r.messageFor("clearTitle")),e.xp6(2),e.Q6J("ngIf",r.showTextInput),e.xp6(3),e.Q6J("ngTemplateOutlet",r.sharedPopupActionSheetTemplate),e.xp6(1),e.Q6J("ngIf",r.showActionButtons)}}const Ur=function(M){return{duration:M}},er=["container"],ha=["popupTemplate"],ir=["optionsList"];function Tl(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.clearValue(J))})("mousedown",function(J){return J.preventDefault()}),e._UZ(1,"kendo-icon-wrapper",11),e.qZA()}if(2&M){const r=e.oxw();e.Udp("visibility",r.clearButtonVisiblity),e.uIk("title",r.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",r.xIcon)}}function jl(M,Re){1&M&&e._UZ(0,"span",12)}function qa(M,Re){1&M&&e.GkF(0)}function Ml(M,Re){if(1&M&&e.YNc(0,qa,1,0,"ng-container",13),2&M){e.oxw();const r=e.MAs(12);e.Q6J("ngTemplateOutlet",r)}}function ca(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.onResize())}),e.qZA()}}function Ma(M,Re){}const Ir=function(M){return{templateRef:M}};function ne(M,Re){if(1&M&&e.YNc(0,Ma,0,0,"ng-template",19),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.headerTemplate.templateRef))}}function qt(M,Re){}function V(M,Re){if(1&M&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&M){const r=e.oxw(3);e.xp6(1),e.Oqu(r.messageFor("noDataText"))}}function re(M,Re){if(1&M&&(e.TgZ(0,"div",20),e.YNc(1,qt,0,0,"ng-template",21),e.YNc(2,V,2,1,"ng-template",22),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.noDataTemplate)("templateContext",e.VKq(3,Ir,null==r.noDataTemplate?null:r.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!r.noDataTemplate)}}function Ie(M,Re){}function qe(M,Re){if(1&M&&e.YNc(0,Ie,0,0,"ng-template",19),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.footerTemplate.templateRef))}}function Zt(M,Re){if(1&M){const r=e.EpF();e.YNc(0,ne,1,3,null,15),e.TgZ(1,"kendo-list",16,17),e.NdJ("pageChange",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.pageChange(J))}),e.qZA(),e.YNc(3,re,3,5,"div",18),e.YNc(4,qe,1,3,null,15)}if(2&M){const r=e.oxw();e.Q6J("ngIf",r.headerTemplate),e.xp6(1),e.Q6J("size",r.size)("rounded",r.rounded)("id",r.listBoxId)("optionPrefix",r.optionPrefix)("data",r.data)("textField",r.valueField)("valueField",r.valueField)("template",r.template)("groupTemplate",r.groupTemplate)("fixedGroupTemplate",r.fixedGroupTemplate)("height",r.listHeight)("show",r.isOpen)("virtual",r.virtual),e.xp6(2),e.Q6J("ngIf",0===r.data.length),e.xp6(1),e.Q6J("ngIf",r.footerTemplate)}}const Rn=["select"],ii=function(M){return{mousedown:M}};function $n(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.clearValue(J))}),e._UZ(1,"kendo-icon-wrapper",14),e.qZA()}if(2&M){const r=e.oxw();e.Udp("visibility",r.clearButtonVisiblity),e.Q6J("kendoEventsOutsideAngular",e.VKq(5,ii,r.preventEventDefault)),e.uIk("title",r.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",r.xIcon)}}function Ii(M,Re){if(1&M&&e._UZ(0,"kendo-icon-wrapper",15),2&M){const r=e.oxw();e.Q6J("svgIcon",r.caretAltDownIcon)}}function ro(M,Re){if(1&M&&e._UZ(0,"span",16),2&M){const r=e.oxw();e.Q6J("ngClass",r.buttonClasses)}}function rs(M,Re){1&M&&e.GkF(0)}function Ki(M,Re){if(1&M&&e.YNc(0,rs,1,0,"ng-container",17),2&M){e.oxw();const r=e.MAs(15);e.Q6J("ngTemplateOutlet",r)}}function Ss(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-resize-sensor",18),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.onResize())}),e.qZA()}}function go(M,Re){}function Ls(M,Re){if(1&M&&e.YNc(0,go,0,0,"ng-template",23),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.headerTemplate.templateRef))}}function Ms(M,Re){}function ao(M,Re){if(1&M&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&M){const r=e.oxw(3);e.xp6(1),e.Oqu(r.messageFor("noDataText"))}}function Po(M,Re){if(1&M&&(e.TgZ(0,"div",24),e.YNc(1,Ms,0,0,"ng-template",25),e.YNc(2,ao,2,1,"ng-template",26),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.noDataTemplate)("templateContext",e.VKq(3,Ir,r.noDataTemplate?r.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!r.noDataTemplate)}}function zs(M,Re){}function yo(M,Re){if(1&M&&e.YNc(0,zs,0,0,"ng-template",23),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.footerTemplate.templateRef))}}function Uo(M,Re){if(1&M){const r=e.EpF();e.YNc(0,Ls,1,3,null,19),e.TgZ(1,"kendo-list",20,21),e.NdJ("pageChange",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.pageChange(J))}),e.qZA(),e.YNc(3,Po,3,5,"div",22),e.YNc(4,yo,1,3,null,19)}if(2&M){const r=e.oxw();e.Q6J("ngIf",r.headerTemplate),e.xp6(1),e.Q6J("size",r.size)("rounded",r.rounded)("id",r.listBoxId)("optionPrefix",r.optionPrefix)("data",r.data)("textField",r.textField)("valueField",r.valueField)("template",r.template)("groupTemplate",r.groupTemplate)("fixedGroupTemplate",r.fixedGroupTemplate)("height",r.listHeight)("show",r.isOpen)("virtual",r.virtual),e.xp6(2),e.Q6J("ngIf",0===r.data.length),e.xp6(1),e.Q6J("ngIf",r.footerTemplate)}}function Xs(M,Re){}function lr(M,Re){if(1&M&&e.YNc(0,Xs,0,0,"ng-template",13),2&M){const r=e.oxw();e.Q6J("templateContext",e.WLB(1,aa,r.valueTemplate.templateRef,r.dataItem))}}function Fo(M,Re){if(1&M&&e._uU(0),2&M){const r=e.oxw();e.Oqu(r.getText())}}function no(M,Re){if(1&M&&e._UZ(0,"kendo-icon-wrapper",14),2&M){const r=e.oxw();e.Q6J("svgIcon",r.caretAltDownIcon)}}function Tr(M,Re){if(1&M&&e._UZ(0,"span",15),2&M){const r=e.oxw();e.Q6J("ngClass",r.buttonClasses)}}function Oa(M,Re){1&M&&e.GkF(0)}function za(M,Re){if(1&M&&e.YNc(0,Oa,1,0,"ng-container",16),2&M){e.oxw();const r=e.MAs(15);e.Q6J("ngTemplateOutlet",r)}}function pa(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-resize-sensor",17),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.onResize())}),e.qZA()}}function zl(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(J){return J.stopImmediatePropagation()}),e.TgZ(1,"span",22),e._UZ(2,"kendo-icon-wrapper",23),e.TgZ(3,"input",24,25),e.NdJ("ngModelChange",function(J){e.CHM(r);const Te=e.oxw(2);return e.KtG(Te.filterText=J)})("keydown",function(J){e.CHM(r);const Te=e.MAs(4),zn=e.oxw(2);return e.KtG(zn.keydown(J,Te))})("input",function(J){e.CHM(r);const Te=e.oxw(2);return e.KtG(Te.handleFilter(J))})("focus",function(){e.CHM(r);const J=e.oxw(2);return e.KtG(J.onFilterFocus())})("blur",function(){e.CHM(r);const J=e.oxw(2);return e.KtG(J.blurFilterInput())})("click",function(){e.CHM(r);const J=e.oxw(2);return e.KtG(J.handleClick())}),e.qZA()()()}if(2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngClass",r.filterInputClasses),e.xp6(1),e.Q6J("svgIcon",r.searchIcon),e.xp6(1),e.Q6J("filterInput",r.isFocused&&!r.touchEnabled)("dir",r.direction)("ngModel",r.filterText),e.uIk("aria-controls",r.isOpen?r.ariaControls:void 0)("aria-activedescendant",r.ariaActivedescendant)("aria-label",r.messageFor("filterInputLabel"))}}const Sr=function(M){return{"k-disabled":M}};function $r(M,Re){if(1&M&&(e.TgZ(0,"div",26)(1,"div",27),e._uU(2),e.qZA()()),2&M){const r=e.oxw(2);e.Q6J("ngClass",r.optionLabelSizeClass),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Sr,r.isDisabledDefaultItem))("index",-1),e.xp6(1),e.hij(" ",r.getDefaultItemText()," ")}}function el(M,Re){}function Jo(M,Re){if(1&M&&(e.TgZ(0,"div",26)(1,"div",27),e.YNc(2,el,0,0,"ng-template",13),e.qZA()()),2&M){const r=e.oxw(2);e.Q6J("ngClass",r.optionLabelSizeClass),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Sr,r.isDisabledDefaultItem))("index",-1),e.xp6(1),e.Q6J("templateContext",e.WLB(6,aa,r.itemTemplate.templateRef,r.defaultItem))}}function Yl(M,Re){}function Uc(M,Re){if(1&M&&e.YNc(0,Yl,0,0,"ng-template",13),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.headerTemplate.templateRef))}}function tl(M,Re){}function hl(M,Re){if(1&M&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&M){const r=e.oxw(3);e.xp6(1),e.Oqu(r.messageFor("noDataText"))}}function Wl(M,Re){if(1&M&&(e.TgZ(0,"div",28),e.YNc(1,tl,0,0,"ng-template",29),e.YNc(2,hl,2,1,"ng-template",4),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.noDataTemplate)("templateContext",e.VKq(3,Ir,r.noDataTemplate?r.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!r.noDataTemplate)}}function Xl(M,Re){}function gl(M,Re){if(1&M&&e.YNc(0,Xl,0,0,"ng-template",13),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.footerTemplate.templateRef))}}function kl(M,Re){if(1&M){const r=e.EpF();e.YNc(0,zl,5,8,"ng-template",4),e.YNc(1,$r,3,6,"ng-template",4),e.YNc(2,Jo,3,9,"ng-template",4),e.YNc(3,Uc,1,3,null,3),e.TgZ(4,"kendo-list",18,19),e.NdJ("pageChange",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.pageChange(J))}),e.qZA(),e.YNc(6,Wl,3,5,"div",20),e.YNc(7,gl,1,3,null,3)}if(2&M){const r=e.oxw();e.Q6J("ngIf",r.filterable&&!r.isActionSheetExpanded),e.xp6(1),e.Q6J("ngIf",r.defaultItem&&!r.itemTemplate),e.xp6(1),e.Q6J("ngIf",r.defaultItem&&r.itemTemplate),e.xp6(1),e.Q6J("ngIf",r.headerTemplate),e.xp6(1),e.Q6J("id",r.listBoxId)("size",r.size)("rounded",r.rounded)("optionPrefix",r.optionPrefix)("data",r.data)("textField",r.textField)("valueField",r.valueField)("template",r.itemTemplate)("groupTemplate",r.groupTemplate)("fixedGroupTemplate",r.fixedGroupTemplate)("height",r.listHeight)("show",r.isOpen)("virtual",r.virtual)("ariaLive",r.ariaLive),e.xp6(2),e.Q6J("ngIf",0===r.data.length),e.xp6(1),e.Q6J("ngIf",r.footerTemplate)}}function ta(M,Re){}function _l(M,Re){1&M&&e.YNc(0,ta,0,0,"ng-template")}function Ja(M,Re){}function fc(M,Re){if(1&M&&e.YNc(0,Ja,0,0,"ng-template",12),2&M){const r=e.oxw(2).$implicit,b=e.oxw();e.Q6J("templateContext",e.WLB(1,aa,b.groupTemplate.templateRef,r))}}function nl(M,Re){if(1&M&&e._uU(0),2&M){const r=e.oxw(2).$implicit;e.AsE("",r.length," ",1===r.length?"item":"items"," selected")}}function Sa(M,Re){if(1&M&&(e.TgZ(0,"span",9),e.YNc(1,fc,1,4,null,10),e.YNc(2,nl,1,2,"ng-template",11),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.groupTemplate),e.xp6(1),e.Q6J("ngIf",!r.groupTemplate)}}function xl(M,Re){}function ql(M,Re){if(1&M&&e.YNc(0,xl,0,0,"ng-template",12),2&M){const r=e.oxw(2).$implicit,b=e.oxw();e.Q6J("templateContext",e.WLB(1,aa,b.template.templateRef,r))}}function sc(M,Re){if(1&M&&e._uU(0),2&M){const r=e.oxw(2),b=r.$implicit,J=r.index,Te=e.oxw();e.Oqu(Te.tagProp(b,Te.textField,J))}}function Aa(M,Re){if(1&M&&(e.TgZ(0,"span",9),e.YNc(1,ql,1,4,null,10),e.YNc(2,sc,1,1,"ng-template",11),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.template),e.xp6(1),e.Q6J("ngIf",!r.template)}}const al=function(M,Re,r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go){return{"k-focus":M,"k-disabled":Re,"k-chip-sm":r,"k-chip-md":b,"k-chip-lg":J,"k-rounded-sm":Te,"k-rounded-md":zn,"k-rounded-lg":Ei,"k-rounded-full":Xn,"k-chip-solid k-chip-solid-base":Bs,"k-chip-flat k-chip-flat-base":Ro,"k-chip-outline k-chip-outline-base":Go}};function Va(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"div",1)(1,"span",2),e.YNc(2,_l,1,0,null,3),e.YNc(3,Sa,3,2,"ng-template",null,4,e.W1O),e.YNc(5,Aa,3,2,"ng-template",null,5,e.W1O),e.qZA(),e.TgZ(7,"span",6)(8,"span",7)(9,"kendo-icon-wrapper",8),e.NdJ("mousedown",function(J){const Te=e.CHM(r),zn=Te.$implicit,Ei=Te.index,Xn=e.oxw();return e.KtG(Xn.deleteTag(J,zn,Ei))}),e.qZA()()()()}if(2&M){const r=Re.$implicit,b=Re.index,J=e.MAs(4),Te=e.MAs(6),zn=e.oxw();e.Q6J("ngClass",e.rFY(8,al,[b===zn.focused,zn.isTagDisabled(r,b),"small"===zn.size,"medium"===zn.size,"large"===zn.size,"small"===zn.rounded,"medium"===zn.rounded,"large"===zn.rounded,"full"===zn.rounded,"solid"===zn.fillMode,"flat"===zn.fillMode,"outline"===zn.fillMode])),e.uIk("id",zn.itemId(r,b))("aria-hidden",zn.tagAriaHidden(b)),e.xp6(2),e.Q6J("ngIf",zn.isGroupTag(r))("ngIfThen",J)("ngIfElse",Te),e.xp6(6),e.uIk("aria-hidden",b!==zn.focused),e.xp6(1),e.Q6J("svgIcon",zn.xCircleIcon)}}const Ol=["*"];function Ca(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"span",11),e.NdJ("mousedown",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.clearAll(J))}),e._UZ(1,"kendo-icon-wrapper",12),e.qZA()}if(2&M){const r=e.oxw();e.Udp("visibility",r.clearButtonVisiblity),e.uIk("title",r.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",r.xIcon)}}function $l(M,Re){1&M&&e._UZ(0,"span",13)}function vl(M,Re){1&M&&e.GkF(0)}function ja(M,Re){if(1&M&&e.YNc(0,vl,1,0,"ng-container",14),2&M){e.oxw();const r=e.MAs(13);e.Q6J("ngTemplateOutlet",r)}}function il(M,Re){if(1&M){const r=e.EpF();e.TgZ(0,"kendo-resize-sensor",15),e.NdJ("resize",function(){e.CHM(r);const J=e.oxw();return e.KtG(J.onResize())}),e.qZA()}}function Tc(M,Re){}function ua(M,Re){if(1&M&&e.YNc(0,Tc,0,0,"ng-template",21),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.headerTemplate.templateRef))}}function Gc(M,Re){}function Bl(M,Re){if(1&M&&e.YNc(0,Gc,0,0,"ng-template",21),2&M){const r=e.oxw(3);e.Q6J("templateContext",e.WLB(1,aa,r.customItemTemplate.templateRef,r.text))}}function Ya(M,Re){if(1&M&&e._uU(0),2&M){const r=e.oxw(3);e.Oqu(r.text)}}function yl(M,Re){if(1&M&&(e.TgZ(0,"div",22)(1,"div",23),e.YNc(2,Bl,1,4,null,24),e.YNc(3,Ya,1,1,"ng-template",null,25,e.W1O),e._UZ(5,"kendo-icon-wrapper",26),e.qZA()()),2&M){const r=e.MAs(4),b=e.oxw(2);e.Q6J("ngClass",b.customItemSizeClass),e.xp6(1),e.Q6J("multipleSelection",!0)("index",-1),e.xp6(1),e.Q6J("ngIf",b.customItemTemplate)("ngIfElse",r),e.xp6(3),e.Q6J("svgIcon",b.plusIcon)}}function ft(M,Re){}function fe(M,Re){if(1&M&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&M){const r=e.oxw(3);e.xp6(1),e.Oqu(r.messageFor("noDataText"))}}function ge(M,Re){if(1&M&&(e.TgZ(0,"div",27),e.YNc(1,ft,0,0,"ng-template",28),e.YNc(2,fe,2,1,"ng-template",29),e.qZA()),2&M){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.noDataTemplate)("templateContext",e.VKq(3,Ir,r.noDataTemplate?r.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!r.noDataTemplate)}}function He(M,Re){}function Bt(M,Re){if(1&M&&e.YNc(0,He,0,0,"ng-template",21),2&M){const r=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ir,r.footerTemplate.templateRef))}}function bn(M,Re){if(1&M){const r=e.EpF();e.YNc(0,ua,1,3,null,16),e.YNc(1,yl,6,6,"div",17),e.TgZ(2,"kendo-list",18,19),e.NdJ("pageChange",function(J){e.CHM(r);const Te=e.oxw();return e.KtG(Te.pageChange(J))}),e.qZA(),e.YNc(4,ge,3,5,"div",20),e.YNc(5,Bt,1,3,null,16)}if(2&M){const r=e.oxw();e.Q6J("ngIf",r.headerTemplate),e.xp6(1),e.Q6J("ngIf",r.allowCustom&&r.text),e.xp6(1),e.Q6J("size",r.size)("rounded",r.rounded)("id",r.listBoxId)("optionPrefix",r.optionPrefix)("data",r.data)("textField",r.textField)("valueField",r.valueField)("template",r.template)("groupTemplate",r.groupTemplate)("fixedGroupTemplate",r.fixedGroupTemplate)("height",r.listHeight)("show",r.isOpen)("multipleSelection",!0)("virtual",r.virtual)("checkboxes",r.checkboxes)("isMultiselect",!0)("isActionSheetExpanded",r.isActionSheetExpanded),e.xp6(2),e.Q6J("ngIf",0===r.data.length),e.xp6(1),e.Q6J("ngIf",r.footerTemplate)}}const hi={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310712,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},kn=M=>null!=M,qs=()=>{let Re,r,M="";for(Re=0;Re<32;Re++)r=16*Math.random()|0,(8===Re||12===Re||16===Re||20===Re)&&(M+="-"),M+=(12===Re?4:16===Re?3&r|8:r).toString(16);return M},Ua=M=>Array.isArray(M),fa=M=>kn(M)&&"object"==typeof M,qu=M=>"string"==typeof M&&0===M.length,zu=M=>Ua(M)&&M.every(Re=>fa(Re)),Rl=(M,Re,r)=>{const b=Re.map(J=>kn(J)&&kn(oo(J,r))?oo(J,r):J);return M.reduce((J,Te)=>{const zn=kn(Te)&&kn(oo(Te,r))?oo(Te,r):Te,Ei=b.indexOf(zn);return-1!==Ei&&J.push(Ei),J},[])},oo=(M,Re)=>kn(M)?kn(Re)&&fa(M)?(0,G.Yn)(Re)(M):M:null,xc=(M,Re,r)=>{if(!kn(M))return!1;let b=String(M);return r&&(b=b.toLowerCase()),0===b.indexOf(Re)},yu=M=>M.className.includes("ng-untouched"),_c=M=>{},Bu=(M,Re)=>{const r=M.matches||M.msMatchesSelector||M.webkitMatchesSelector;return!!r&&r.call(M,Re)},kc=(M,Re,r)=>M.nativeElement.contains(Re)||r&&r.popupElement.contains(Re),ye=(M,Re)=>({small:`k-${M}-sm`,medium:`k-${M}-md`,large:`k-${M}-lg`}[Re]),Xe=M=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[M]),w=(M,Re)=>({solid:`k-${M}-solid`,flat:`k-${M}-flat`,outline:`k-${M}-outline`}[Re]),Zi=()=>{if(typeof window<"u")return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},ks=M=>!!M,Io=(M,Re,r)=>{const b=M.element.nativeElement.querySelector(".k-actionsheet"),J=M.element.nativeElement.querySelector(".k-child-animation-container");"medium"===Re?(r.removeClass(b,"k-actionsheet-fullscreen"),r.addClass(b,"k-actionsheet-bottom"),r.addClass(b,"k-adaptive-actionsheet"),r.removeStyle(J,"top"),r.removeStyle(J,"height"),r.setStyle(J,"bottom","0px")):"small"===Re&&(r.removeClass(b,"k-actionsheet-bottom"),r.addClass(b,"k-actionsheet-fullscreen"),r.addClass(b,"k-adaptive-actionsheet"),r.setStyle(J,"bottom","0px"),r.setStyle(J,"height","100%"))},dr=(M,Re,r)=>{const b=M.wrapper.nativeElement.querySelector("kendo-list ul"),J=Re.nativeElement.getAttribute("aria-labelledby");J&&r.setAttribute(b,"aria-labelledby",J)},_r=(M,Re)=>{const r=M.nativeElement.getAttribute("aria-labelledby");return!Re&&r?document.getElementById(r).innerText:Re};let ma=(()=>{class M{constructor(r,b,J){this.localization=r,this.injector=J,this.ariaExpanded=null,this.valueChange=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.onClick=new e.vpe,this.onNavigate=new e.vpe,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this._isSuggestable=!1,this._isFilterable=!1,this.subs=new N.w0,this.direction=r.rtl?"rtl":"ltr",this.renderer=b}set isSuggestable(r){this._isSuggestable=r,this.setAriaAutocomplete()}get isSuggestable(){return this._isSuggestable}set isFilterable(r){this._isFilterable=r,this.setAriaAutocomplete()}get isFilterable(){return this._isFilterable}get userInput(){return this._userInput}set userInput(r){this._userInput=r||""}get formControl(){return this.injector.get(T.a5,null)?.control||null}get value(){return this.input.nativeElement.value}set placeholder(r){this._placeholder=r||"",this.setInputSize()}get placeholder(){return this._placeholder}ngOnInit(){this.subs.add(this.localization.changes.subscribe(({rtl:r})=>this.direction=r?"rtl":"ltr"))}ngOnChanges(r){if(!(0,o.X_)())return;let b;if(this.input&&(r.userInput||r.suggestedText)){b=r.userInput&&r.userInput.previousValue?this._previousValue===r.userInput.previousValue?this._previousValue:r.userInput.currentValue||"":this._previousValue;const J=this.input.nativeElement.selectionStart,Te=b.length===J;this.writeInputValue(this.suggestedText?((M,Re)=>M.concat(Re.substr(Re.toLowerCase().indexOf(M.toLowerCase())+M.length)))(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):(0,o.G6)(navigator.userAgent)&&!Te?this.setInputSelection(J,this.userInput.length):Te?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(J,J),this._previousValue=this.userInput}}ngOnDestroy(){this.subs.unsubscribe()}writeInputValue(r){(0,o.X_)()&&this.renderer.setProperty(this.input.nativeElement,"value",r)}setInputSelection(r,b){if((0,o.X_)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(r,b)}catch{}}setAriaAutocomplete(){this.isFilterable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","list"),this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","inline"),this.isFilterable&&this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","both"),!this.isFilterable&&!this.isSuggestable&&this.renderer.removeAttribute(this.input.nativeElement,"aria-autocomplete")}handleInput(r){const b=r.target,Te=(0,o.G6)(navigator.userAgent)&&(M=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(M))(b.value)?r.data:b.value;Te!==this.userInput&&(this._previousValue=Te,this.valueChange.emit(Te))}handleFocus(r){this.onFocus.emit(r)}handleBlur(r){this.onBlur.emit(r)}handleKeydown(r){[o.R8.ArrowUp,o.R8.ArrowDown,o.R8.ArrowLeft,o.R8.ArrowRight,o.R8.Enter,o.R8.Escape,o.R8.Delete,o.R8.Backspace,o.R8.Home,o.R8.End,o.R8.PageDown,o.R8.PageUp].indexOf(r.keyCode)>-1&&this.onNavigate.emit(r)}focus(){(0,o.X_)()&&this.input.nativeElement.focus()}blur(){(0,o.X_)()&&this.input.nativeElement.blur()}setInputSize(){const r=Ei=>Ei?Ei.length:0,b=this.input.nativeElement,J=r(this.placeholder),Te=r(this.value),zn=Math.max(J,Te,1);this.renderer.setAttribute(b,"size",zn.toString())}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(F.oQ),e.Y36(e.Qsj),e.Y36(e.zs3))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-searchbar"]],viewQuery:function(r,b){if(1&r&&e.Gf(co,7),2&r){let J;e.iGM(J=e.CRH())&&(b.input=J.first)}},hostVars:2,hostBindings:function(r,b){2&r&&e.ekj("k-searchbar",b.searchBarClass)},inputs:{id:"id",tagListId:"tagListId",activeDescendant:"activeDescendant",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",role:"role",isLoading:"isLoading",ariaControls:"ariaControls",ariaExpanded:"ariaExpanded",isSuggestable:"isSuggestable",isFilterable:"isFilterable",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[e.TTD],decls:2,vars:18,consts:[["autocomplete","off","aria-haspopup","listbox",1,"k-input-inner",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(r,b){1&r&&(e.TgZ(0,"input",0,1),e.NdJ("input",function(Te){return b.handleInput(Te)})("keydown",function(Te){return b.handleKeydown(Te)}),e.qZA()),2&r&&(e.Q6J("id",b.id)("disabled",b.disabled)("readonly",b.readonly)("placeholder",b.placeholder)("kendoEventsOutsideAngular",e.WLB(15,Hi,b.handleFocus,b.handleBlur))("scope",b),e.uIk("tabIndex",b.tabIndex)("dir",b.direction)("role",b.role)("aria-expanded",b.ariaExpanded)("aria-controls",b.ariaControls)("aria-describedby",b.tagListId)("aria-activedescendant",b.activeDescendant)("aria-busy",b.isLoading)("aria-invalid",null==b.formControl?null:b.formControl.invalid))},dependencies:[o.nV],encapsulation:2}),M})(),Da=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),M})(),ol=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),M})(),fl=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),M})(),Na=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),M})(),tc=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),M})(),rl=(()=>{class M{constructor(){this.grouped=!1,this.groupIndices=[]}set data(r){this._data=r,this.grouped=this.isGrouped(r),this.grouped&&(this.groupIndices=this.getGroupIndices(r),this._flatData=this.flatten(r))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return kn(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(b=>!b.header):this.data).length:0}isGrouped(r){return kn(r)&&0!==r.length&&kn(r[0])&&((M,Re)=>!!kn(M)&&Re.every(r=>M.hasOwnProperty(r)))(r[0],["aggregates","field","items","value"])}getGroupIndices(r){const b=[];for(let J=0;J<=r.length-1;J++)b[J]=(b[J-1]||0)+r[J].items.length;return b}filter(r){let b=[];if(this.isGrouped(this.data))for(let J=0;J<=this.groupIndices.length-1;J++){const Te=this.data[J].items.filter(r);Te&&(b=b.concat(Te))}else b=this.data.filter(r);return b}indexOf(r,b=0){let J=Te=>Te===r;return this.grouped&&(J=Te=>Te.value===r),this.findIndex(J,b)}findIndex(r,b=0){let J=-1;if(this.grouped){const Te=this._flatData.filter(zn=>!zn.header&&zn.offsetIndex>=b);J=Te.findIndex(r),J=Te[J]?Te[J].offsetIndex:-1}else{const zn=this.data.slice(b).findIndex(r);J=-1!==zn?zn+b:-1}return J}closestGroup(r){for(let b=r;b>=0;b--)if(this._flatData[b].header)return this._flatData[b]}find(r){const b=this.findIndex(r);return this.itemAt(b)}flatIndex(r){if(0===this.itemsCount)return-1;if(!this.grouped)return r;{const b=this._flatData.find(J=>!J.header&&J.offsetIndex===r);if(b)return b.index}return-1}itemAt(r){let b;if(0===this.itemsCount)return b;if(this.grouped){const J=this._flatData.find(Te=>!Te.header&&Te.offsetIndex===r);J&&(b=J.value)}else b=this.data[r];return b}groupAt(r){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(b=>b.header&&b.index===r)}groupItemsIndices(){return this.isGrouped?((M,Re,r)=>this.data.reduce((b,J)=>(r=>r.header)(J)?[...b,r(J)]:b,[]))(0,0,r=>r.index):[]}groupField(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}itemGroup(r){if(!r||0===this.itemsCount||!this.isGrouped)return;const b=this.groupField();return b?oo(r,b):void 0}flatten(r,b,J=0,Te=0){let zn=[];kn(b)&&zn.push({header:!0,index:Te+J,offsetIndex:Te,value:b});for(let Ei=0;Ei<r.length;Ei++){let Xn=[];r[Ei].items?(Xn=this.flatten(r[Ei].items,r[Ei].value,J,Ei),J+=r[Ei].items.length):Xn.push({header:!1,index:Te+J+Ei+1,offsetIndex:J+Ei,value:r[Ei]}),zn=zn.concat(Xn)}return zn}}return M.\u0275fac=function(r){return new(r||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),Sl=(()=>{class M{constructor(r){this.dataService=r,this.itemDisabled=null}isIndexDisabled(r){if(this.itemDisabled){const b=this.dataService.itemAt(r);if(kn(b))return this.itemDisabled({dataItem:b,index:r});if(kn(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(r){if(this.itemDisabled){const b=this.dataService.indexOf(r);if(-1!==b)return this.itemDisabled({dataItem:r,index:b});if(kn(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}}return M.\u0275fac=function(r){return new(r||M)(e.LFG(rl))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),ul=(()=>{class M{constructor(r){this.disabledItemsService=r,this.onSelect=new e.vpe,this.onChange=new e.vpe,this.onFocus=new e.vpe,this.total=0,this.selectedIndices=[],this.indicesToBeRemoved=[],this.indicesToBeAdded=[]}getTotal(){return this.total}isSelected(r){return kn(this.selectedIndices.find(b=>b===r))}isFocused(r){return r===this.focused}focus(r){this.isFocused(r)||(this.focused=r,this.onFocus.emit(r))}select(r){this.isSelected(r)||(this.selectedIndices=[r],this.focused=r,this.onSelect.emit({indices:[r],newSelection:kn(r)}))}add(r,b){this.isSelected(r)||(this.selectedIndices.push(r),this.focused=r,this.onChange.emit({added:r,indices:this.selectedIndices.slice(),preventClosingPopup:b}))}emitMultipleAddedRemoved(){this.onChange.emit({added:this.indicesToBeAdded,removed:this.indicesToBeRemoved,indices:this.selectedIndices.slice(),preventClosingPopup:!0,isMultipleSelection:!0}),this.indicesToBeAdded=[],this.indicesToBeRemoved=[]}addMultiple(r){this.indicesToBeAdded=r.slice(),this.selectedIndices.push(...r)}deselect(r,b){if(!this.isSelected(r))return;const J=this.selectedIndices.indexOf(r);this.selectedIndices.splice(J,1),this.focused=r,0===this.selected.length&&(this.lastClickedIndex=null),this.onChange.emit({indices:this.selectedIndices.slice(),removed:r,preventClosingPopup:b})}unselectMultiple(r){r.forEach(b=>{const J=this.selectedIndices.indexOf(b);this.selectedIndices.splice(J,1)}),this.indicesToBeRemoved=r.slice()}change(r){const b=kn(r)&&!this.isSelected(r);this.selectedIndices=[r],this.focused=r,this.onChange.emit({indices:[r],newSelection:b})}resetSelection(r){this.selectedIndices=r instanceof Array?r:[r],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(r){this.focusedIndex!==r&&(this.focusedIndex=r,this.onFocus.emit(r))}selectFromTo(r,b){const J=[];for(let Te=r;Te<=b;Te++)!this.isSelected(Te)&&!this.disabledItemsService.isIndexDisabled(Te)&&J.push(Te);this.addMultiple(J)}unselectFromTo(r,b){const J=[];for(let Te=r;Te>=b;Te--)this.isSelected(Te)&&!this.disabledItemsService.isIndexDisabled(Te)&&J.push(Te);this.unselectMultiple(J)}unselectNotNeededIndices(r,b,J){const Te=[];for(let zn=0;zn<r;zn++)this.isSelected(zn)&&Te.push(zn);for(let zn=b+1;zn<J;zn++)this.isSelected(zn)&&Te.push(zn);this.unselectMultiple(Te)}}return M.\u0275fac=function(r){return new(r||M)(e.LFG(Sl))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})();var ho=(()=>{return(M=ho||(ho={}))[M.Undefined=0]="Undefined",M[M.Open=1]="Open",M[M.Close=2]="Close",M[M.Enter=3]="Enter",M[M.Tab=4]="Tab",M[M.Esc=5]="Esc",M[M.Delete=6]="Delete",M[M.Backspace=7]="Backspace",M[M.Home=8]="Home",M[M.End=9]="End",M[M.Up=10]="Up",M[M.Down=11]="Down",M[M.Left=12]="Left",M[M.Right=13]="Right",M[M.PageDown=14]="PageDown",M[M.PageUp=15]="PageUp",M[M.SelectPrevious=16]="SelectPrevious",M[M.SelectNext=17]="SelectNext",M[M.SelectAll=18]="SelectAll",M[M.SelectAllToBeginning=19]="SelectAllToBeginning",M[M.SelectAllToEnd=20]="SelectAllToEnd",ho;var M})();class Ea{constructor(Re,r){this.index=Re,this.originalEvent=r}}let dl=(()=>{class M{constructor(r,b){this.disabledItemsService=r,this.selectionService=b,this.open=new e.vpe,this.close=new e.vpe,this.enter=new e.vpe,this.tab=new e.vpe,this.esc=new e.vpe,this.up=new e.vpe,this.right=new e.vpe,this.down=new e.vpe,this.left=new e.vpe,this.delete=new e.vpe,this.backspace=new e.vpe,this.home=new e.vpe,this.end=new e.vpe,this.pagedown=new e.vpe,this.pageup=new e.vpe,this.selectnext=new e.vpe,this.selectprevious=new e.vpe,this.selectall=new e.vpe,this.selectalltobeginning=new e.vpe,this.selectalltoend=new e.vpe}process(r){const b=r.originalEvent.keyCode,J=r.originalEvent.altKey,Te=r.originalEvent.shiftKey,zn=r.originalEvent.ctrlKey||r.originalEvent.metaKey;let Ei,Xn=ho.Undefined;J&&b===o.R8.ArrowDown?Xn=ho.Open:J&&b===o.R8.ArrowUp?Xn=ho.Close:Te&&b===o.R8.ArrowUp?Xn=ho.SelectPrevious:Te&&b===o.R8.ArrowDown?Xn=ho.SelectNext:zn&&b===o.R8.KeyA?Xn=ho.SelectAll:zn&&Te&&b===o.R8.Home?Xn=ho.SelectAllToBeginning:zn&&Te&&b===o.R8.End?Xn=ho.SelectAllToEnd:b===o.R8.Enter?Xn=ho.Enter:b===o.R8.Escape?Xn=ho.Esc:b===o.R8.Tab?Xn=ho.Tab:b===o.R8.ArrowUp?(Ei=this.next({current:r.current,start:r.min,end:r.max,step:-1}),Xn=ho.Up):b===o.R8.ArrowLeft?(Ei=this.next({current:r.current,start:r.min,end:r.max,step:-1}),Xn=ho.Left):b===o.R8.ArrowDown?(Ei=this.next({current:r.current,start:r.min,end:r.max,step:1}),Xn=ho.Down):b===o.R8.ArrowRight?(Ei=this.next({current:r.current,start:r.min,end:r.max,step:1}),Xn=ho.Right):b===o.R8.Home?(Ei=this.isDisabled(0)?r.current:0,Xn=ho.Home):b===o.R8.End?(Ei=this.isDisabled(r.max)?r.current:r.max,Xn=ho.End):b===o.R8.Delete?Xn=ho.Delete:b===o.R8.Backspace?Xn=ho.Backspace:b===o.R8.PageDown?Xn=ho.PageDown:b===o.R8.PageUp&&(Xn=ho.PageUp);const Bs=new Ea(Ei,r.originalEvent);return Xn!==ho.Undefined&&this[ho[Xn].toLowerCase()].emit(Bs),Xn}next(r){const{current:b,start:J,end:Te,step:zn}=r,Ei=kn(b)?this.clampIndex(b+zn,J,Te):J,Xn=this.firstFocusableIndex(Ei,J,Te,zn);return kn(Xn)?Xn:this.selectionService.isSelected(b)&&b>=J?b:this.firstFocusableIndex(Ei,J,Te,-1*zn)}clampIndex(r,b,J){return!kn(r)||r<b?b:r>J?J:r}firstFocusableIndex(r,b,J,Te){for(;b<=r&&r<=J;){if(!this.isDisabled(r))return r;r+=Te}}isDisabled(r){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(r)}}return M.\u0275fac=function(r){return new(r||M)(e.LFG(Sl),e.LFG(ul))},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})(),nc=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),M})();class Uu{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Dc{}let nd=(()=>{class M{constructor(r){this.element=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq))},M.\u0275dir=e.lG2({type:M,selectors:[["li","role","option"],["li","role","group"]]}),M})(),tu=(()=>{class M{constructor(r){this.viewContainerRef=r}set templateContext(r){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),r.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(r.templateRef,r))}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.s_b))},M.\u0275dir=e.lG2({type:M,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),M})(),id=(()=>{class M{constructor(r){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=r}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(r){r.stopPropagation(),this.selectionService.lastClickedIndex=this.index,(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.deselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(ul))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(r,b){1&r&&e.NdJ("click",function(Te){return b.onClick(Te)}),2&r&&(e.uIk("index",b.index),e.Udp("height",b.height,"px")("min-height",b.height,"px"),e.ekj("k-focus",b.focusedClassName)("k-selected",b.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",isMultiselect:"isMultiselect",multipleSelection:"multipleSelection"}}),M})(),wd=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn){this.dataService=r,this.wrapper=b,this.selectionService=J,this.disabledItemsService=Te,this.cdr=zn,this.zone=Ei,this.renderer=Xn,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new e.vpe,this.pageChange=new e.vpe,this.listResize=new e.vpe,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=(0,R.T)(this.selectionService.onSelect.pipe((0,se.U)(Bs=>Bs.indices[0])),this.selectionService.onFocus).pipe((0,he.w)(Bs=>this.zone.onStable.pipe((0,Se.q)(1),(0,se.U)(()=>Bs)))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}set data(r){this._data=r[0]&&r[0].header?r.slice(0):r}get data(){return this._data}set size(r){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,ye("list",this.size)),r&&this.renderer.addClass(this.wrapper.nativeElement,ye("list",r)),this._size=r)}get size(){return this._size}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}get overflowY(){if(kn(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}get checkboxClasses(){return`${this.size?ye("checkbox",this.size):""} ${this.rounded?Xe(this.rounded):""}`}ngOnChanges(r){(0,o.ln)("data",r,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!r.data.isFirstChange()),this.setOverflow()),(0,o.ln)("virtual",r,!1)&&this.setOverflow(),(0,o.ln)("type",r,!1)&&this.prepareClasses()}ngAfterViewInit(){this.setComponentClasses(),this.zone.runOutsideAngular(()=>{this.scrollSubscription=(0,P.R)(this.content.nativeElement,"scroll").pipe((0,te.e)(100),(0,oe.b)(this.prefetchData.bind(this)),(0,oe.b)(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})}),this.setOverflow()}ngAfterViewChecked(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(r,b){const J=r.target.checked;J&&!this.selectionService.isSelected(b)&&this.selectionService.add(b),!J&&this.selectionService.isSelected(b)&&this.selectionService.deselect(b)}prepareClasses(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}isChecked(r){return this.selectionService.isSelected(this.virtual?r+this.virtual.skip:r)}firstVisibleItem(){const r=this.content.nativeElement,b=r.getBoundingClientRect(),J=Array.prototype.slice.call(r.querySelectorAll(".k-disabled"));J.forEach(zn=>this.renderer.setStyle(zn,"pointer-events","auto"));const Te=document.elementFromPoint(b.left+1,b.top+1);return J.forEach(zn=>this.renderer.setStyle(zn,"pointer-events","none")),((M,Re)=>{let r=M;for(;null!==r&&1===r.nodeType;){if(Bu(r,"li"))return r;r=r.parentElement||r.parentNode}return null})(Te)}findCurrentGroup(){if(!this.dataService.grouped)return void(this.currentGroup=void 0);const r=this.firstVisibleItem();if(r){let b;"group"===r.getAttribute("role")?(b=parseInt(r.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(b).value):(b=parseInt(r.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(b)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;const r=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),b=this.content.nativeElement.scrollTop,J=Math.trunc(b/this.virtual.itemHeight),Te=b>this.lastScrollTop,Xn=this.lastLoaded-this.pageSize+r>=J-(this.pageSize-(this.lastLoaded-this.startFrom));Te&&J+r>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1&&this.changePage(J),!Te&&Xn&&this.changePage(J-this.pageSize+r+1)}changePage(r){this.zone.run(()=>{let b=this.pageSize+r;b>this.virtual.total&&(r--,b=this.virtual.total),r<0&&(r=0),this.startFrom=r,this.lastLoaded=b,this.pageChange.emit({skip:r,take:this.pageSize})})}index(r,b){return r>0?this.dataService.groupIndices[r-1]+b:b}getText(r){return oo(r,this.textField)}getValue(r){return oo(r,this.valueField)}isDisabled(r){return kn(this.virtual)&&(r+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(r)}isAltRow(r){return"dropdowngrid"===this.type&&r%2!=0}scrollToItem(r){let b=r;if(this.dataService.grouped&&(b=this.dataService.flatIndex(r),b+=this.firstGroupHeaderInTargetedPage(b)?-1:0),this.virtual&&b>-1)return void this.scrollToIndex(b);const J=this.items.toArray();kn(J[b])&&-1!==b&&this.scroll(J[b].element)}scrollWithOnePage(r){const b=this.content.nativeElement,J=b.clientHeight;r===ho.PageDown?b.scrollTop+=J:r===ho.PageUp&&(b.scrollTop-=J)}scrollToIndex(r){const b=this.content.nativeElement;let J=b.scrollTop;const Te=r*this.virtual.itemHeight,Ei=b.clientHeight,Xn=Te+this.virtual.itemHeight;J>Te?J=Te:Xn>J+Ei&&(J=Xn-Ei),b.scrollTop=J}scroll(r){if(!r)return;const b=r.nativeElement,J=this.content.nativeElement,Te=b.offsetTop;let Ei=J.scrollTop;const Xn=J.clientHeight,Bs=Te+b.offsetHeight;Ei>Te?Ei=Te:Bs>Ei+Xn&&(Ei=Bs-Xn),J.scrollTop=Ei}hasScrollbar(){return!!(kn(this.items)&&this.items.length&&kn(this.list)&&kn(this.content))&&(kn(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}isItemSelected(r){return this.selectionService.isSelected(r)||null}setOverflow(){if(this.virtual){const r=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",r)}}hasVirtualScrollbar(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}positionItems(){this.items.forEach((r,b)=>{this.renderer.setStyle(r.element.nativeElement,"transform",`translateY(${(b+this.startFrom)*this.virtual.itemHeight}px`)})}firstGroupHeaderInTargetedPage(r){return!kn(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>r}setComponentClasses(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,ye("list",this.size))),"dropdowngrid"===this.type&&this.renderer.setStyle(this.wrapper.nativeElement,"overflow-y","scroll"),kn(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(rl),e.Y36(e.SBq),e.Y36(ul),e.Y36(Sl),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-list"]],viewQuery:function(r,b){if(1&r&&(e.Gf(to,7),e.Gf(mo,7),e.Gf(Or,5),e.Gf(nd,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.content=J.first),e.iGM(J=e.CRH())&&(b.list=J.first),e.iGM(J=e.CRH())&&(b.virtualContainer=J.first),e.iGM(J=e.CRH())&&(b.items=J)}},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",ariaLive:"ariaLive",isMultiselect:"isMultiselect",isActionSheetExpanded:"isActionSheetExpanded",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[e.TTD],decls:9,vars:17,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox","role","presentation","tabindex","-1","aria-hidden","true",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox","role","presentation","tabindex","-1","aria-hidden","true",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["li",""],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(r,b){1&r&&(e.YNc(0,bt,3,9,"div",0),e.TgZ(1,"div",1,2)(3,"ul",3,4),e.YNc(5,Us,1,1,null,5),e.YNc(6,Wr,1,1,null,5),e.YNc(7,Oo,1,0,"kendo-resize-sensor",6),e.qZA(),e.YNc(8,Ta,4,2,"div",7),e.qZA()),2&r&&(e.Q6J("ngIf",b.dataService.grouped),e.xp6(1),e.Tol(b.listContentClass),e.Udp("overscroll-behavior","none")("max-height",b.height,"px"),e.xp6(2),e.Tol(b.listClass),e.uIk("id",b.id)("aria-live",b.ariaLive)("aria-multiselectable",b.isMultiselect)("aria-hidden",!b.show),e.xp6(2),e.Q6J("ngIf",!b.dataService.grouped&&b.show),e.xp6(1),e.Q6J("ngIf",b.dataService.grouped),e.xp6(1),e.Q6J("ngIf",!b.virtual),e.xp6(1),e.Q6J("ngIf",b.virtual))},dependencies:[o.NG,ut.O5,ut.PC,tu,ut.sg,nd,id,ut.mk],encapsulation:2}),M})();const nu={pageSize:50,itemHeight:28},bu=(M,Re)=>{const r=Object.assign({},nu,Re);return!0===M?r:M?{pageSize:nu.pageSize,...M}:null},Vc=new e.OlP("dropdowns-touch-enabled");let Jl=(()=>{class M{constructor(r){this.localization=r,this.closePopup=new e.vpe,this.textInputChange=new e.vpe,this.navigate=new e.vpe,this.onExpand=new e.vpe,this.onCollapse=new e.vpe,this.onApply=new e.vpe,this.onCancel=new e.vpe,this.searchBarValue="",this.animationDuration=300,this.xIcon=Ct.FZE}messageFor(r){return this.localization.get(r)}onValueChange(r){this.searchBarValue=r,this.textInputChange.emit(r)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(F.oQ))},M.\u0275cmp=e.Xpm({type:M,selectors:[["responsive-renderer"]],viewQuery:function(r,b){if(1&r&&(e.Gf(Ue._G,5),e.Gf(ea,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.actionSheet=J.first),e.iGM(J=e.CRH())&&(b.actionSheetSearchBar=J.first)}},inputs:{title:"title",showActionButtons:"showActionButtons",subtitle:"subtitle",size:"size",showTextInput:"showTextInput",sharedPopupActionSheetTemplate:"sharedPopupActionSheetTemplate",isActionSheetExpanded:"isActionSheetExpanded",text:"text",placeholder:"placeholder"},outputs:{closePopup:"closePopup",textInputChange:"textInputChange",navigate:"navigate",onExpand:"onExpand",onCollapse:"onCollapse",onApply:"onApply",onCancel:"onCancel"},decls:3,vars:4,consts:[[3,"animation","expanded","overlayClick","keydown","expand","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],[1,"k-text-center","k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","aria-hidden","true","innerCssClass","k-button-icon",3,"svgIcon","size","tabIndex","click"],[1,"k-actionsheet-titlebar-group","k-actionsheet-filter"],["placeholder","Filter","class","k-searchbox","autocomplete","off",3,"value","size","valueChange",4,"ngIf"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-list-container"],[4,"ngTemplateOutlet"],["class","k-actionsheet-footer k-actions k-actions-stretched",4,"ngIf"],["placeholder","Filter","autocomplete","off",1,"k-searchbox",3,"value","size","valueChange"],["actionSheetSearchBar",""],["kendoTextBoxPrefixTemplate",""],["name","search"],[1,"k-actionsheet-footer","k-actions","k-actions-stretched"],["kendoButton","","tabindex","0","aria-disabled","false","themeColor","base",3,"size","click","keydown.enter"],["kendoButton","","tabindex","0","aria-disabled","false","themeColor","primary",3,"size","click","keydown.enter"]],template:function(r,b){1&r&&(e.TgZ(0,"kendo-actionsheet",0,1),e.NdJ("overlayClick",function(){return b.closePopup.emit()})("keydown",function(Te){return b.navigate.emit(Te)})("expand",function(){return b.onExpand.emit()})("collapse",function(){return b.onCollapse.emit()}),e.YNc(2,wl,15,9,"ng-template",2),e.qZA()),2&r&&e.Q6J("animation",e.VKq(2,Ur,b.animationDuration))("expanded",b.isActionSheetExpanded)},dependencies:[Ue._G,ln.zx,vt.PL,Je.oJ,Ue.DL,ut.O5,vt.Em,ut.tP],encapsulation:2}),M})(),xd=(()=>{class M extends F.Z1{}return M.\u0275fac=function(){let Re;return function(b){return(Re||(Re=e.n5z(M)))(b||M)}}(),M.\u0275dir=e.lG2({type:M,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText",filterInputLabel:"filterInputLabel",popupLabel:"popupLabel",applyButton:"applyButton",cancelButton:"cancelButton"},features:[e.qOj]}),M})(),jc=(()=>{class M extends xd{constructor(r){super(),this.service=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(F.oQ))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[e._Bn([{provide:xd,useExisting:(0,e.Gpc)(()=>M)}]),e.qOj]}),M})();const Xh={multi:!0,provide:T.JU,useExisting:(0,e.Gpc)(()=>Gu)};let Gu=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go,Bo){this.localization=r,this.dataService=b,this.popupService=J,this.selectionService=Te,this.navigationService=zn,this.disabledItemsService=Ei,this._zone=Xn,this.cdr=Bs,this.renderer=Ro,this.hostElement=Go,this.touchEnabled=Bo,this.animationDuration=300,this.xIcon=Ct.FZE,this.highlightFirst=!0,this.focusableId=`k-${qs()}`,this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this.listBoxId=`k-${qs()}`,this.optionPrefix=`k-${qs()}`,this.windowSize="large",this.onChangeCallback=_c,this.onTouchedCallback=_c,this.popupMouseDownHandler=Za=>Za.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.subs=new N.w0,this.valueChangeSubject=new y.x,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",(0,A.s)(hi),this.direction=r.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){let r=0;(0,o.X_)()&&(r=this.wrapper.offsetWidth);const b=this.popupSettings.width||r;return{min:isNaN(r)?r:`${r}px`,max:isNaN(b)?b:`${b}px`}}get height(){const r=this.popupSettings.height;return kn(r)?`${r}px`:"auto"}get listContainerClasses(){const r=["k-list-container","k-reset"];return this.popupSettings.popupClass&&r.push(this.popupSettings.popupClass),r}get suggestion(){if(!this.text||!this.suggestedText)return void(this.suggestedText=void 0);const r=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&r?this.suggestedText:void 0}get appendTo(){const{appendTo:r}=this.popupSettings;if(r&&"root"!==r)return"component"===r?this.container:r}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get ariaControls(){return this.isOpen?this.listBoxId:void 0}toggle(r){Promise.resolve(null).then(()=>{const b=kn(r)?r:!this._open;this._toggle(b)})}get isOpen(){return ks(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=Zi(),this.isAdaptive&&this.togglePopup(!0)}togglePopup(r){this.disabled||this.readonly||this.isOpen===r||this.triggerPopupEvents(r)||this._toggle(r)}get activeDescendant(){if(!this.isOpen||!kn(this.selectionService.focused)||-1===this.selectionService.focused)return null;const r=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+oo(r,this.valueField)}set data(r){this.dataService.data=r||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=oo(this.dataService.itemAt(0),this.valueField))}get data(){const r=this.virtual;if(r){const b=r.skip||0,J=b+r.pageSize;return r.total=this.dataService.data.length,this.dataService.data.slice(b,J)}return this.dataService.data}set value(r){this.verifySettings(r),this._value=r||"",this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||""}set subtitle(r){this._subtitle=r}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set popupSettings(r){this._popupSettings=Object.assign({animate:!0},r)}get popupSettings(){return this._popupSettings}set listHeight(r){this._listHeight=r}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(r){if("function"!=typeof r)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(r)}.`);this.disabledItemsService.itemDisabled=r}set tabIndex(r){this.tabindex=r}get tabIndex(){return this.tabindex}set virtual(r){this._virtualSettings=bu(r)}get virtual(){return this._virtualSettings}set size(r){const b=r||"medium";this.renderer.removeClass(this.wrapper,ye("input",this.size)),"none"!==r&&this.renderer.addClass(this.wrapper,ye("input",b)),this._size=b}get size(){return this._size}set rounded(r){const b=r||"medium";this.renderer.removeClass(this.wrapper,Xe(this.rounded)),"none"!==r&&this.renderer.addClass(this.wrapper,Xe(b)),this._rounded=b}get rounded(){return this._rounded}set fillMode(r){const b=r||"solid";this.renderer.removeClass(this.wrapper,w("input",this.fillMode)),"none"!==r&&this.renderer.addClass(this.wrapper,w("input",b)),this._fillMode=b}get fillMode(){return this._fillMode}get isFocused(){return this._isFocused}set isFocused(r){this.renderer[r?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=r}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr",this.cdr.detectChanges()})),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Zi(),this.cdr.detectChanges(),this.renderer.setAttribute(this.actionSheet?.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(r){const b=this.virtual;b&&r.data&&r.data.isFirstChange()&&this.pageChange({skip:0,take:b.pageSize})}reset(){this.value=""}messageFor(r){return this.localization.get(r)}onAdaptiveTextBoxChange(r){this.search(r)}clearValue(r){r.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(r){this.value=r}registerOnChange(r){this.onChangeCallback=r}registerOnTouched(r){this.onTouchedCallback=r}setDisabledState(r){this.disabled=r}focusItemAt(r){const b=r>=0&&r<this.data.length;kn(r)&&b&&!this.disabledItemsService.isIndexDisabled(r)?this.selectionService.focus(r):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Zi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Zi(),this.cdr.detectChanges()),this._open&&!this.isActionSheetExpanded){const r=this.popupRef.popupElement,{min:b,max:J}=this.width;r.style.minWidth=b,r.style.width=J}}emitChange(r){this.onChangeCallback(r),this.valueChange.emit(r)}verifySettings(r){if((0,e.X6Q)()&&kn(r)&&"string"!=typeof r)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")}search(r,b=0){const J=this.findIndex(r,b);this.disabledItemsService.isIndexDisabled(J)?J+1<this.dataService.itemsCount?this.search(r,J+1):this.selectionService.focus(-1):(this.selectionService.focus(J),this.suggest&&(this.suggestedText=oo(this.dataService.itemAt(J),this.valueField)))}navigate(r){this.isOpen&&this.selectionService.focus(r)}handleNavigate(r){const b=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(this.disabled||this.readonly||isNaN(b))return;const J=this.navigationService.process({current:b,max:this.dataService.itemsCount-1,min:0,originalEvent:r});J!==ho.Undefined&&J!==ho.Backspace&&J!==ho.Delete&&J!==ho.Home&&J!==ho.End&&J!==ho.Left&&J!==ho.Right&&J!==ho.PageDown&&J!==ho.PageUp&&(J===ho.Enter&&this.isOpen||J!==ho.Enter)&&r.preventDefault(),J===ho.Tab&&this.isActionSheetExpanded&&(r.stopImmediatePropagation(),this.togglePopup(!1))}handleEnter(r){const b=this.selectionService.focused;let J;if(this.isOpen&&r.originalEvent.preventDefault(),b>=0)J=oo(this.dataService.itemAt(b),this.valueField);else{const Te=this.suggest&&this.suggestedText&&this.data.length&&oo(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();J=this.isOpen&&Te?this.suggestedText:this.searchbar.value}this.isActionSheetExpanded&&b>=0&&this.togglePopup(!1),this.change(J)}handleEscape(){this.isOpen?this.togglePopup(!1):this.value="",this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(r){const b=kn(this.text)?this.text.length:0;this.backspacePressed=r.length<b,this.text=r,this.togglePopup(r.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(r):this.highlightFirst&&this.search(r)}onFilterChange(r){this.filterable?this.filterChange.emit(r):this.highlightFirst&&this.search(r)}handleFocus(){this.isFocused=!0,(0,o.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})}handleBlur(){if(!this.isActionSheetExpanded){const r=this.filterable?this.selectionService.focused:-1;let b,J;this.searchbar.input.nativeElement.scrollLeft=0,-1!==r?(b=this.dataService.itemAt(r),J=oo(b,this.valueField)||""):J=this.searchbar.value;const Te=J===this.searchbar.value,zn=J.toLowerCase()===this.searchbar.value.toLowerCase();!Te&&zn&&this.selectionService.resetSelection([]),this.isFocused=!1;const Ei=this.value!==this.text;(0,o.g$)(this.onBlur)||(0,o.g$)(this.close)||yu(this.wrapper)||Ei?this._zone.run(()=>{Ei&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}pageChange(r){this.virtual.skip=r.skip}change(r){this.togglePopup(!1),this.valueChangeSubject.next(r)}subscribeEvents(){(0,o.X_)()&&(this.subs.add(this.valueChangeSubject.subscribe(r=>{const b=this.value!==r,J=this.findIndex(r);this.selectionService.focused=J,this.value=r,this.text=r,b&&this.emitChange(r)})),this.subs.add(this.selectionService.onChange.subscribe(this.handleItemChange.bind(this))),this.subs.add(this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this))),this.subs.add((0,R.T)(this.navigationService.up,this.navigationService.down).subscribe(r=>this.navigate(r.index))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.enter.subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add((0,R.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(r=>{this.isOpen&&(r.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(ho[r.originalEvent.code]))})))}findIndex(r,b=0){let J;return J=r&&r.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(r),b):-1,J}subscribeTouchEvents(){!(0,o.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",r=>{this.isFocused&&!kc(this.hostElement,r.target,this.popupRef)&&this._zone.run(()=>this.blur())}))}handleItemChange(r){const b=r.indices.length?r.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!kn(b))return;const J=oo(this.dataService.itemAt(b),this.valueField);this.change(J),this.isActionSheetExpanded&&this.togglePopup(!1)}handleItemFocus(r){const b=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&b>=0)&&(this.suggestedText=oo(this.dataService.itemAt(b),this.valueField))}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Zi(),this.isAdaptive)return void this.openActionSheet();const r="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:r,vertical:"top"},anchorAlign:{horizontal:r,vertical:"bottom"}});const Te=this.popupRef.popupElement,{min:zn,max:Ei}=this.width;Te.addEventListener("mousedown",this.popupMouseDownHandler),Te.style.minWidth=zn,Te.style.width=Ei,Te.style.height=this.height,Te.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(Te,"role","region"),this.renderer.setAttribute(Te,"aria-label",this.messageFor("popupLabel"))),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(r){this._open=r,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(r){const b=new Uu;return r?this.open.emit(b):this.close.emit(b),b.isDefaultPrevented()}firstFocusableIndex(r){const b=this.data.length-1;return this.disabledItemsService.isIndexDisabled(r)?r<b?this.firstFocusableIndex(r+1):void 0:r}findIndexPredicate(r){return this.dataService.grouped?b=>{let J=oo(b.value,this.valueField);return J=kn(J)?J.toString().toLowerCase():"",J.startsWith(r.toLowerCase())}:b=>{let J=oo(b,this.valueField);return J=kn(J)?J.toString().toLowerCase():"",J.startsWith(r.toLowerCase())}}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper,ye("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper,Xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper,w("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.actionSheet.toggle(!0),this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.title=_r(this.searchbar.input,this.title),Io(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(F.oQ),e.Y36(rl),e.Y36(ee.qL),e.Y36(ul),e.Y36(dl),e.Y36(Sl),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Vc,8))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-autocomplete"]],contentQueries:function(r,b,J){if(1&r&&(e.Suo(J,Da,5),e.Suo(J,ol,5),e.Suo(J,fl,5),e.Suo(J,nc,5),e.Suo(J,Na,5),e.Suo(J,tc,5)),2&r){let Te;e.iGM(Te=e.CRH())&&(b.template=Te.first),e.iGM(Te=e.CRH())&&(b.headerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.footerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.noDataTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.groupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.fixedGroupTemplate=Te.first)}},viewQuery:function(r,b){if(1&r&&(e.Gf(Jl,5),e.Gf(er,7,e.s_b),e.Gf(ha,7),e.Gf(ma,7),e.Gf(ir,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.responsiveRendererComponent=J.first),e.iGM(J=e.CRH())&&(b.container=J.first),e.iGM(J=e.CRH())&&(b.popupTemplate=J.first),e.iGM(J=e.CRH())&&(b.searchbar=J.first),e.iGM(J=e.CRH())&&(b.optionsList=J.first)}},hostVars:9,hostBindings:function(r,b){2&r&&(e.uIk("dir",b.dir),e.ekj("k-autocomplete",b.widgetClasses)("k-input",b.widgetClasses)("k-disabled",b.isDisabled)("k-loading",b.isLoading))},inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",data:"data",value:"value",valueField:"valueField",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",loading:"loading",clearButton:"clearButton",suggest:"suggest",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoAutoComplete"],features:[e._Bn([Xh,rl,ul,dl,Sl,F.oQ,{provide:F.mM,useValue:"kendo.autocomplete"},{provide:Dc,useExisting:(0,e.Gpc)(()=>M)},{provide:o.GX,useExisting:(0,e.Gpc)(()=>M)}]),e.TTD],decls:13,vars:23,consts:function(){let Re,r,b;return Re=$localize`:kendo.autocomplete.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,r=$localize`:kendo.autocomplete.clearTitle|The title of the clear button:clear`,b=$localize`:kendo.autocomplete.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoAutoCompleteLocalizedMessages","","noDataText",Re,"clearTitle",r,"popupLabel",b],[3,"role","ariaExpanded","isSuggestable","isFilterable","isLoading","ariaControls","id","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["popupTemplate",""],["container",""],[3,"resize",4,"ngIf"],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder","closePopup","textInputChange","navigate"],["sharedPopupActionSheetTemplate",""],["role","button","tabindex","-1",1,"k-clear-value",3,"click","mousedown"],["name","x",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(r,b){if(1&r&&(e.GkF(0,0),e.TgZ(1,"kendo-searchbar",1,2),e.NdJ("onNavigate",function(Te){return b.handleNavigate(Te)})("valueChange",function(Te){return b.searchBarChange(Te)})("onBlur",function(){return b.handleBlur()})("onFocus",function(){return b.handleFocus()})("click",function(){return b.handleClick()}),e.qZA(),e.YNc(3,Tl,2,4,"span",3),e.YNc(4,jl,1,0,"span",4),e.YNc(5,Ml,1,1,"ng-template",null,5,e.W1O),e.GkF(7,null,6),e.YNc(9,ca,1,0,"kendo-resize-sensor",7),e.TgZ(10,"responsive-renderer",8),e.NdJ("closePopup",function(){return b.togglePopup(!1)})("textInputChange",function(Te){return b.onFilterChange(Te)})("navigate",function(Te){return b.handleNavigate(Te)}),e.qZA(),e.YNc(11,Zt,5,16,"ng-template",null,9,e.W1O)),2&r){const J=e.MAs(12);e.xp6(1),e.Q6J("role","combobox")("ariaExpanded",b.isOpen)("isSuggestable",b.suggest)("isFilterable",b.filterable)("isLoading",b.isLoading)("ariaControls",b.ariaControls)("id",b.focusableId)("activeDescendant",b.activeDescendant)("userInput",b.text)("suggestedText",b.suggestion)("disabled",b.disabled)("readonly",b.readonly||b.isAdaptive)("tabIndex",b.tabIndex)("placeholder",b.placeholder),e.xp6(2),e.Q6J("ngIf",!b.loading&&!b.readonly&&b.clearButton&&(null==b.text?null:b.text.length)),e.xp6(1),e.Q6J("ngIf",b.loading),e.xp6(5),e.Q6J("ngIf",b.isOpen||b.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("sharedPopupActionSheetTemplate",J)("isActionSheetExpanded",b.isActionSheetExpanded)("title",b.title)("showTextInput",!0)("subtitle",b.subtitle)("placeholder",b.placeholder)}},dependencies:[ma,Je.ZS,o.NG,Jl,wd,jc,ut.O5,ut.tP,tu],encapsulation:2}),M})();const Jd={multi:!0,provide:T.JU,useExisting:(0,e.Gpc)(()=>Id)};let Id=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go,Bo){this.wrapper=r,this.localization=b,this.popupService=J,this.selectionService=Te,this.navigationService=zn,this.disabledItemsService=Ei,this.dataService=Xn,this.zone=Bs,this.cdr=Ro,this.renderer=Go,this.touchEnabled=Bo,this.animationDuration=300,this.xIcon=Ct.FZE,this.caretAltDownIcon=Ct.M7i,this.selected=[],this.focusableId=`k-${qs()}`,this.allowCustom=!1,this.valueNormalizer=Za=>Za.pipe((0,se.U)(su=>su)),this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this._isFocused=!1,this.windowSize="large",this.listBoxId=`k-${qs()}`,this.optionPrefix=`k-${qs()}`,this.onChangeCallback=Za=>{},this.onTouchedCallback=Za=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=Za=>Za.preventDefault(),this.customValueSubject=new y.x,this.valueSubject=new y.x,this.clearValueSubject=new y.x,this.subs=new N.w0,this._size="medium",this._rounded="medium",this._fillMode="solid",(0,A.s)(hi),this.direction=b.rtl?"rtl":"ltr",this.data=[]}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}set text(r){this._text=kn(r)?r.toString():""}get text(){return this._text}get ariaControls(){return this.isOpen?this.listBoxId:void 0}togglePopup(r){this.disabled||this.readonly||this.isOpen===r||this.triggerPopupEvents(r)||this._toggle(r)}get activeDescendant(){if(!this.isOpen||!kn(this.selectionService.focused)||-1===this.selectionService.focused)return null;const r=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(r?oo(r,this.valueField):"")}get appendTo(){const{appendTo:r}=this.popupSettings;if(r&&"root"!==r)return"component"===r?this.container:r}set data(r){if(this.dataService.data=r||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){const J=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=J}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=oo(this.dataService.itemAt(0),this.textField))}get data(){const r=this.virtual;if(r){const b=r.skip||0,J=b+r.pageSize;return r.total=this.dataService.data.length,this.dataService.data.slice(b,J)}return this.dataService.data}set value(r){this._value=r,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(r){this._valuePrimitive=r}get valuePrimitive(){return kn(this._valuePrimitive)?this._valuePrimitive:!kn(this.valueField)}set subtitle(r){this._subtitle=r}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set popupSettings(r){this._popupSettings=Object.assign({animate:!0},r)}get popupSettings(){return this._popupSettings}set listHeight(r){this._listHeight=r}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(r){if("function"!=typeof r)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(r)}.`);this.disabledItemsService.itemDisabled=r}set tabIndex(r){this.tabindex=r}get tabIndex(){return this.tabindex}set virtual(r){this._virtualSettings=bu(r,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}set size(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,ye("input",this.size)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,ye("input",b)),this._size=b}get size(){return this._size}set rounded(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,Xe(b)),this._rounded=b}get rounded(){return this._rounded}set fillMode(r){const b=r||"solid";this.renderer.removeClass(this.wrapper.nativeElement,w("input",this.fillMode)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,w("input",b)),this._fillMode=b}get fillMode(){return this._fillMode}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(r){this.renderer[r?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=r}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}get popupWidth(){let r=0;(0,o.X_)()&&(r=this.wrapper.nativeElement.offsetWidth);const b=this.popupSettings.width||r;return{min:isNaN(r)?r:`${r}px`,max:isNaN(b)?b:`${b}px`}}get popupHeight(){const r=this.popupSettings.height;return kn(r)?`${r}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Zi(),this.cdr.detectChanges(),this.renderer.setAttribute(this.actionSheet?.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}createValueStream(){const r=this.valueSubject.pipe((0,q.h)(Xn=>{const Bs=oo(this.value,this.valueField),Ro=oo(Xn,this.valueField);let Go=oo(Xn,this.textField);return!(!kn(this.value)&&!kn(Ro)||(kn(Go)&&(Go=Go.toString()),Bs===Ro&&this.text===Go&&(this.clearFilter(),1)))}),(0,se.U)(Xn=>{const Bs=oo(Xn,this.valueField);return{dataItem:Xn,text:oo(Xn,this.textField),value:this.valuePrimitive?Bs:Xn}})),b=function ae(M,Re){return r=>[(0,q.h)(M,Re)(r),(0,q.h)(we(M,Re))(r)]}(()=>this.allowCustom)(this.customValueSubject.pipe((0,Q.p)(300))),J=b[0].pipe((0,oe.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),(0,q.h)(()=>{const Xn=this.text!==oo(this.value,this.valueField);return this.loading=Xn,this.disabled=Xn,Xn||this.clearFilter(),Xn}),this.valueNormalizer,(0,se.U)(Xn=>({custom:!0,dataItem:Xn,text:this.text,value:Xn}))),Te=b[1].pipe((0,se.U)(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),zn=this.clearValueSubject.pipe((0,se.U)(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();const Ei=(0,R.T)(r,J,Te,zn);this.valueSubscription=Ei.pipe((0,pe.K)(()=>{const Xn=void 0!==oo(this.dataItem,this.valueField);return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,Xn&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),(0,j.of)(null)})).subscribe(Xn=>{const Bs=oo(this.dataItem,this.valueField)!==oo(Xn.dataItem,this.valueField);this.dataItem=Xn.dataItem,this.value=Xn.value,this.text=Xn.text,this.loading=!1,this.disabled=!1,this.clearFilter(),Xn.custom&&(this.selectionService.focused=-1),Bs&&this.selectionChange.emit(Xn.custom?void 0:this.dataItem),this.emitValueChange()})}attachStreams(){(0,o.X_)()&&(this.subs.add(this.localization.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr",this.cdr.detectChanges()})),this.subs.add((0,R.T)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe((0,q.h)(r=>kn(r.index))).subscribe(r=>this.navigate(r.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add((0,R.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(r=>{this.isOpen&&(r.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(ho[r.originalEvent.code]))})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe((0,oe.b)(r=>{this.isOpen&&r.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add((0,R.T)(this.selectionService.onChange,this.selectionService.onSelect.pipe((0,q.h)(r=>!this.isOpen))).pipe((0,oe.b)(r=>{this._filtering=!1,this.togglePopup(!1)}),(0,se.U)(r=>this.dataService.itemAt(r.indices[0]))).subscribe(r=>{this.change(r)})),this.subs.add(this.selectionService.onSelect.pipe((0,q.h)(r=>this.isOpen),(0,oe.b)(r=>this._filtering=!1),(0,se.U)(r=>this.dataService.itemAt(r.indices[0]))).subscribe(r=>{const b=oo(r,this.valueField)!==oo(this.dataItem,this.valueField);this.updateState({dataItem:r}),b&&this.selectionChange.emit(r)})))}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),kn(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(r){const b=this.virtual;b&&r.data&&r.data.isFirstChange()&&this.pageChange({skip:0,take:b.pageSize}),(0,o.ln)("valueNormalizer",r)&&this.createValueStream(),(0,o.aG)(["textField","valueField","valuePrimitive"],r,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(r){const b=r>=0&&r<this.data.length;kn(r)&&b&&!this.disabledItemsService.isIndexDisabled(r)?this.selectionService.focus(r):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}toggle(r){Promise.resolve(null).then(()=>{const b=kn(r)?r:!this._open;this._toggle(b),this.cdr.markForCheck()})}get isOpen(){return ks(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=Zi(),this.isAdaptive&&this.togglePopup(!0)}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){const r=!kn(this.text)||qu(this.text),b=!kn(this.value)||qu(this.value);return r&&b}messageFor(r){return this.localization.get(r)}clearValue(r){r?.stopImmediatePropagation(),r&&this.focus(),this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(r){this.value=null===r?void 0:r}registerOnChange(r){this.onChangeCallback=r}registerOnTouched(r){this.onTouchedCallback=r}setDisabledState(r){this.disabled=r}get buttonClasses(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass}get selectButtonClasses(){return`${this.size?ye("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""}\n        `}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Zi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Zi(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){const r=this.popupRef.popupElement,{min:b,max:J}=this.popupWidth;r.style.minWidth=b,r.style.width=J}}verifySettings(){if((0,e.X6Q)()){if(!0===this.valuePrimitive&&kn(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&kn(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!kn(this.valueField)!=!kn(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}}setState(){if(this._filtering)return;const r=this.value,J=this.findDataItem({valueField:this.valueField,value:r});kn(J.index)&&-1!==J.index?(this.updateState({dataItem:J.dataItem,confirm:!0}),this.resetSelection(J.index)):kn(r)&&this.allowCustom?(this.updateState({dataItem:r}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}updateState({dataItem:r,confirm:b=!1}){this.dataItem=r,this.text=oo(r,this.textField),b&&(this._previousDataItem=r)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(r){const b=!kn(r)||r<0;this.selectionService.resetSelection(b?[]:[r]),this.selectionService.focused=r}firstFocusableIndex(r){const b=this.data.length-1;return this.disabledItemsService.isIndexDisabled(r)?r<b?this.firstFocusableIndex(r+1):void 0:r}findIndexPredicate(r){return this.dataService.grouped?b=>{let J=oo(b.value,this.textField);return J=kn(J)?J.toString().toLowerCase():"",J.startsWith(r.toLowerCase())}:b=>{let J=oo(b,this.textField);return J=kn(J)?J.toString().toLowerCase():"",J.startsWith(r.toLowerCase())}}findDataItem({valueField:r,value:b}){const J={dataItem:null,index:-1},zn=this.dataService.findIndex(Ei=>oo(this.dataService.grouped?Ei.value:Ei,r)===oo(b,r));return J.dataItem=this.dataService.itemAt(zn),J.index=zn,J}search(r,b=0){const J=this.findIndex(r,b);this.disabledItemsService.isIndexDisabled(J)?J+1<this.dataService.itemsCount?this.search(r,J+1):this.selectionService.focus(-1):(this.selectionService.focus(J),this.suggest&&(this.suggestedText=oo(this.dataService.itemAt(J),this.textField)))}onAdaptiveTextBoxChange(r){this.filterable&&this.filterText!==r?(this.filterText=r,this.filterChange.emit(r)):this.search(r)}getSuggestion(){if(!this.selectionService.selected.length&&this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0}navigate(r){0!==this.dataService.itemsCount&&(this.text=oo(this.dataService.itemAt(r),this.textField),this.selectionService.select(r))}handleNavigate(r){const b=kn(this.selectionService.selected[0]),J=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;let Te=0;if(this.disabled||this.readonly||r.keyCode===o.R8.Home||r.keyCode===o.R8.End)return;b||(r.keyCode===o.R8.ArrowDown?Te=-1:r.keyCode===o.R8.ArrowUp&&(Te=1));const zn=this.navigationService.process({current:Te+J,max:this.dataService.itemsCount-1,min:0,originalEvent:r});zn!==ho.Undefined&&zn!==ho.Left&&zn!==ho.Right&&zn!==ho.Backspace&&zn!==ho.Delete&&zn!==ho.PageDown&&zn!==ho.PageUp&&(zn===ho.Enter&&this.isOpen||zn!==ho.Enter)&&r.preventDefault(),zn===ho.Tab&&this.isActionSheetExpanded&&(r.stopImmediatePropagation(),this.togglePopup(!1))}handleEnter(){const r=this.text,b=this.selectionService.focused,J=kn(b)&&-1!==b,Te=oo(this._previousDataItem,this.textField)||"",zn=oo(this.dataService.itemAt(b),this.textField),Ei=r!==Te;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&Ei&&(r===zn||this.useSuggestion()?this.selectionService.change(b):this.change(r,!0)),this.allowCustom||(J?this.selectionService.change(b):Ei&&this.change(r,!0))}handleBlur(){if(!this.isActionSheetExpanded){this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;const r=oo(this.dataItem,this.valueField)!==oo(this.value,this.valueField),b=this.searchbar.value,J=b!==(oo(this.dataItem,this.textField)||""),Te=r||J;Te||(0,o.g$)(this.onBlur)||(0,o.g$)(this.close)||yu(this.wrapper.nativeElement)?this.zone.run(()=>{Te&&(kn(this.focusedItemText)&&this.focusedItemText.toLowerCase()===b.toLowerCase()||r?this.selectionService.change(this.selectionService.focused):this.change(b,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}handleEscape(){this.isOpen?this.togglePopup(!1):this.clearValue(),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(r){this.backspacePressed=r.length<(this.text?this.text.length:0),this.text=r,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==r?(this.filterText=r,this.filterChange.emit(r)):this.search(r)}handleFocus(){this.isFocused=!0,(0,o.g$)(this.onFocus)&&this.zone.run(()=>this.onFocus.emit())}pageChange(r){this.virtual.skip=r.skip}change(r,b=!1){b?this.customValueSubject.next(r):(this.valueSubject.next(r),this.isActionSheetExpanded&&this.togglePopup(!1))}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}preventEventDefault(r){r.preventDefault()}get focusedItemText(){const r=this.selectionService.focused;if(!kn(r)||-1===r)return null;const b=oo(this.dataService.itemAt(r),this.textField);return kn(b)?b.toString():""}restoreItemFocus(){!(kn(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!this.suggest||!kn(this.searchbar.value))return!1;const r=this.dataService.itemAt(this.selectionService.focused),b=oo(r,this.textField);return!!kn(b)&&this.searchbar.value.toLowerCase()===b.toLowerCase()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Zi(),this.isAdaptive)return void this.openActionSheet();const r="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:r,vertical:"bottom"},popupAlign:{horizontal:r,vertical:"top"}});const Te=this.popupRef.popupElement,{min:zn,max:Ei}=this.popupWidth;Te.addEventListener("mousedown",this.popupMouseDownHandler),Te.style.minWidth=zn,Te.style.width=Ei,Te.style.height=this.popupHeight,Te.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(Te,"role","region"),this.renderer.setAttribute(Te,"aria-label",this.messageFor("popupLabel")));const Xn=this.popupRef.popupElement.querySelector("ul"),Bs=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");Bs&&Xn.setAttribute("aria-labelledby",Bs),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(r){this._open=r,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&(this.windowSize=Zi(),this.createPopup())}triggerPopupEvents(r){const b=new Uu;return r?this.open.emit(b):this.close.emit(b),b.isDefaultPrevented()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))}subscribeTouchEvents(){!(0,o.X_)()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",r=>{const J=kc(this.wrapper,r.target,this.popupRef);this.isFocused&&!J?this.zone.run(()=>this.blur()):this.isOpen&&!J&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,G.d?"pointerdown":"click",this.selectClick.bind(this))}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,ye("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,w("input",this.fillMode))}findIndex(r,b=0){let J;return J=r&&r.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(r),b):-1,J}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.windowSize=Zi(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.title=_r(this.searchbar.input,this.title),Io(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(F.oQ),e.Y36(ee.qL),e.Y36(ul),e.Y36(dl),e.Y36(Sl),e.Y36(rl),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(Vc,8))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-combobox"]],contentQueries:function(r,b,J){if(1&r&&(e.Suo(J,Da,5),e.Suo(J,ol,5),e.Suo(J,fl,5),e.Suo(J,nc,5),e.Suo(J,Na,5),e.Suo(J,tc,5)),2&r){let Te;e.iGM(Te=e.CRH())&&(b.template=Te.first),e.iGM(Te=e.CRH())&&(b.headerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.footerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.noDataTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.groupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.fixedGroupTemplate=Te.first)}},viewQuery:function(r,b){if(1&r&&(e.Gf(Jl,5),e.Gf(er,7,e.s_b),e.Gf(ha,7),e.Gf(ma,7),e.Gf(ir,5),e.Gf(Rn,7)),2&r){let J;e.iGM(J=e.CRH())&&(b.responsiveRendererComponent=J.first),e.iGM(J=e.CRH())&&(b.container=J.first),e.iGM(J=e.CRH())&&(b.popupTemplate=J.first),e.iGM(J=e.CRH())&&(b.searchbar=J.first),e.iGM(J=e.CRH())&&(b.optionsList=J.first),e.iGM(J=e.CRH())&&(b.select=J.first)}},hostVars:9,hostBindings:function(r,b){2&r&&(e.uIk("dir",b.dir),e.ekj("k-combobox",b.widgetClasses)("k-input",b.widgetClasses)("k-disabled",b.isDisabled)("k-loading",b.isLoading))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[e._Bn([Jd,rl,ul,dl,Sl,F.oQ,{provide:F.mM,useValue:"kendo.combobox"},{provide:Dc,useExisting:(0,e.Gpc)(()=>M)},{provide:o.GX,useExisting:(0,e.Gpc)(()=>M)}]),e.TTD],decls:16,vars:29,consts:function(){let Re,r,b,J;return Re=$localize`:kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,r=$localize`:kendo.combobox.clearTitle|The title of the clear button:clear`,b=$localize`:kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select`,J=$localize`:kendo.combobox.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoComboBoxLocalizedMessages","","noDataText",Re,"clearTitle",r,"selectButtonText",b,"popupLabel",J],[3,"role","ariaExpanded","ariaControls","id","isLoading","isSuggestable","isFilterable","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],["name","caret-alt-down",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",3,"ngClass",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder","closePopup","textInputChange","navigate"],["sharedPopupActionSheetTemplate",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],["name","x",3,"svgIcon"],["name","caret-alt-down",3,"svgIcon"],[1,"k-button-icon","k-icon",3,"ngClass"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(r,b){if(1&r&&(e.GkF(0,0),e.TgZ(1,"kendo-searchbar",1,2),e.NdJ("onNavigate",function(Te){return b.handleNavigate(Te)})("valueChange",function(Te){return b.searchBarChange(Te)})("onBlur",function(){return b.handleBlur()})("onFocus",function(){return b.handleFocus()})("click",function(){return b.handleClick()}),e.qZA(),e.YNc(3,$n,2,7,"span",3),e.TgZ(4,"button",4,5),e.YNc(6,Ii,1,1,"kendo-icon-wrapper",6),e.YNc(7,ro,1,1,"span",7),e.qZA(),e.YNc(8,Ki,1,1,"ng-template",null,8,e.W1O),e.YNc(10,Ss,1,0,"kendo-resize-sensor",9),e.GkF(11,null,10),e.TgZ(13,"responsive-renderer",11),e.NdJ("closePopup",function(){return b.togglePopup(!1)})("textInputChange",function(Te){return b.onAdaptiveTextBoxChange(Te)})("navigate",function(Te){return b.handleNavigate(Te)}),e.qZA(),e.YNc(14,Uo,5,16,"ng-template",null,12,e.W1O)),2&r){const J=e.MAs(15);e.xp6(1),e.Q6J("role","combobox")("ariaExpanded",b.isOpen)("ariaControls",b.ariaControls)("id",b.focusableId)("isLoading",b.loading)("isSuggestable",b.suggest)("isFilterable",b.filterable)("activeDescendant",b.activeDescendant)("userInput",b.text)("suggestedText",b.getSuggestion())("disabled",b.disabled)("readonly",b.readonly||b.isAdaptive)("tabIndex",b.tabIndex)("placeholder",b.placeholder),e.xp6(2),e.Q6J("ngIf",b.clearButton&&!b.loading&&!b.disabled&&!b.readonly&&(null==b.text?null:b.text.length)),e.xp6(1),e.Q6J("ngClass",b.selectButtonClasses)("kendoEventsOutsideAngular",e.VKq(27,ii,b.preventEventDefault)),e.uIk("aria-label",b.messageFor("selectButtonText")),e.xp6(2),e.Q6J("ngIf",!b.loading&&!b.iconClass),e.xp6(1),e.Q6J("ngIf",b.loading||b.iconClass),e.xp6(3),e.Q6J("ngIf",b.isOpen||b.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",J)("isActionSheetExpanded",b.isActionSheetExpanded)("title",b.title)("showTextInput",!0)("subtitle",b.subtitle)("placeholder",b.placeholder)}},dependencies:[ma,Je.ZS,o.NG,Jl,wd,jc,ut.O5,o.nV,ut.mk,ut.tP,tu],encapsulation:2}),M})(),Qd=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),M})(),Xd=(()=>{class M{constructor(r,b){this.element=r,this.zone=b}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(r){this.zone.runOutsideAngular(()=>setTimeout(r))}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(e.R0b))},M.\u0275dir=e.lG2({type:M,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[e.TTD]}),M})();const Dp={multi:!0,provide:T.JU,useExisting:(0,e.Gpc)(()=>Td)};let Td=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go,Bo,Za){this.wrapper=r,this.localization=b,this.popupService=J,this.selectionService=Te,this.navigationService=zn,this.disabledItemsService=Ei,this.dataService=Xn,this._zone=Bs,this.renderer=Ro,this.cdr=Go,this.touchEnabled=Bo,this.injector=Za,this.animationDuration=300,this.xIcon=Ct.FZE,this.searchIcon=Ct.RL9,this.caretAltDownIcon=Ct.M7i,this.listBoxId=`k-${qs()}`,this.adaptiveMode="none",this.title="",this.subtitle="",this.windowSize="large",this._listHeight=200,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.selectionChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.hostClasses=!0,this.focusableId=`k-${qs()}`,this.role="combobox",this.haspopup="listbox",this.groupIndices=[],this.optionPrefix=`k-${qs()}`,this.filterText="",this.subs=new N.w0,this._isFocused=!1,this.onTouchedCallback=su=>{},this.onChangeCallback=su=>{},this.word="",this.last="",this.filterFocused=new e.vpe,this.filterBlurred=new e.vpe,this.hostElementFocused=new e.vpe,this.hostElementBlurred=new e.vpe,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",(0,A.s)(hi),this.direction=b.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){const r=(0,o.X_)()?this.wrapper.nativeElement.offsetWidth:0,b=this.popupSettings.width||r;return{min:isNaN(r)?r:`${r}px`,max:isNaN(b)?b:`${b}px`}}get height(){const r=this.popupSettings.height;return kn(r)?`${r}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const r=Number(this.tabIndex);return isNaN(r)?0:r}get ariaExpanded(){return this.isOpen}get ariaControls(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(kn(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+oo(this.dataItem,this.valueField)}get appendTo(){const{appendTo:r}=this.popupSettings;if(r&&"root"!==r)return"component"===r?this.container:r}onFilterChange(r){this.filterable&&this.filterChange.emit(r)}get ariaLive(){return this.filterable?"polite":"off"}set data(r){this.dataService.data=r||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){const r=this.virtual;if(r){const b=r.skip||0,J=b+r.pageSize;return r.total=this.dataService.data.length,this.dataService.data.slice(b,J)}return this.dataService.data}set value(r){kn(r)||(this._previousDataItem=void 0),this._value=r,this.setState(),this.cdr.markForCheck()}get value(){return this._value}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}set popupSettings(r){this._popupSettings=Object.assign({animate:!0},r)}get popupSettings(){return this._popupSettings}set listHeight(r){this._listHeight=r}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(r){if("function"!=typeof r)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(r)}.`);this.disabledItemsService.itemDisabled=r}set virtual(r){this._virtualSettings=bu(r)}get virtual(){return this._virtualSettings}set valuePrimitive(r){this._valuePrimitive=r}get valuePrimitive(){return kn(this._valuePrimitive)?this._valuePrimitive:!kn(this.valueField)}set tabIndex(r){this.tabindex=r}get tabIndex(){return this.tabindex}set size(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,ye("picker",this.size)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,ye("picker",b)),this._size=b}get size(){return this._size}set rounded(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,Xe(b)),this._rounded=r}get rounded(){return this._rounded}set fillMode(r){const b=r||"solid";this.renderer.removeClass(this.wrapper.nativeElement,w("picker",this.fillMode)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,w("picker",b)),this._fillMode=b}get fillMode(){return this._fillMode}blurComponent(r){r.target===this.wrapper.nativeElement&&(r.stopImmediatePropagation(),this.hostElementBlurred.emit())}blurFilterInput(){this.filterBlurred.emit()}focusComponent(r){r.target===this.wrapper.nativeElement&&(r.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,(0,o.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})))}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Zi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Zi()),this.isOpen&&!this.isActionSheetExpanded){const r=this.popupRef.popupElement,{min:b,max:J}=this.width;r.style.minWidth=b,r.style.width=J}}get isDisabledClass(){return this.disabled}get isDisabledAttribute(){return this.disabled?"":null}get isLoading(){return this.loading}get dir(){return this.direction}get hostTabIndex(){return this.widgetTabIndex}get readonlyClass(){return this.readonly}get readonlyAttr(){return this.readonly?"":null}get isBusy(){return this.isLoading}get isAriaExpanded(){return this.ariaExpanded}get hostAriaInvalid(){return this.formControl?this.formControl?.invalid.toString():null}get hostAriaActivedescendant(){return this.ariaActivedescendant}keydown(r,b){b&&r.stopPropagation();const J=kn(this.defaultItem)?-1:0,Te=isNaN(this.selectionService.focused)?this.firstFocusableIndex(J):this.selectionService.focused;let zn=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(r.keyCode===o.R8.Home||r.keyCode===o.R8.End))return;const Bs=kn(this.selectionService.selected[0]),Ro=kn(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!Bs||Ro)&&(r.keyCode===o.R8.ArrowDown||r.keyCode===o.R8.ArrowRight?zn=-1:(r.keyCode===o.R8.ArrowUp||r.keyCode===o.R8.ArrowLeft)&&(zn=1));const Go=r,Bo=this.navigationService.process({current:Te+zn,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:Go});Bo!==ho.Undefined&&Bo!==ho.Tab&&Bo!==ho.Backspace&&Bo!==ho.Delete&&Bo!==ho.PageDown&&Bo!==ho.PageUp&&Bo!==ho.SelectAll&&!((Bo===ho.Left||Bo===ho.Right)&&this.filterable)&&Bo!==ho.Enter&&Go.preventDefault(),Bo===ho.Tab&&this.isActionSheetExpanded&&this.togglePopup(!1)}keypress(r){this.disabled||this.readonly||this.filterable||this.onKeyPress(r)}click(){this.isActionSheetExpanded||(this.focus(),this.togglePopup(!this.isOpen))}set isFocused(r){this.renderer[r?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=r}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr",this.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Zi(),this.renderer.setAttribute(this.actionSheet?.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}isEmpty(){const r=this.value;return!(0===r||!1===r||r||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(r){const b=this.virtual;b&&r.data&&r.data.isFirstChange()&&this.pageChange({skip:0,take:b.pageSize}),(0,o.ln)("defaultItem",r,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),(0,o.aG)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],r,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}get formControl(){return this.injector.get(T.a5,null)?.control||null}focusItemAt(r){const J=(kn(this.defaultItem)?-1:0)<=r&&r<this.data.length;kn(r)&&J&&!this.disabledItemsService.isIndexDisabled(r)?this.selectionService.focus(r):this.selectionService.focus(null)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||(this.wrapper.nativeElement.blur(),this.cdr.detectChanges())}toggle(r){Promise.resolve(null).then(()=>{const b=kn(r)?r:!this._open;this._toggle(b)})}_toggle(r){this._open=r,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(r){const b=new Uu;return r?this.open.emit(b):this.close.emit(b),b.isDefaultPrevented()}togglePopup(r){this.disabled||this.readonly||this.isOpen===r||this.triggerPopupEvents(r)||(!r&&this.filterable&&this.isFocused&&this.focus(),this._toggle(r))}get isOpen(){return ks(this._open||this.isActionSheetExpanded)}reset(){this.value=void 0}messageFor(r){return this.localization.get(r)}writeValue(r){this.value=null===r?void 0:r}registerOnChange(r){this.onChangeCallback=r}registerOnTouched(r){this.onTouchedCallback=r}setDisabledState(r){this.disabled=r}get buttonClasses(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass}get selectButtonClasses(){return`${this.size?ye("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""}`}get filterInputClasses(){return`${this.size?ye("input",this.size):""} ${this.fillMode?"k-input-"+this.fillMode:""} ${this.rounded?Xe(this.rounded):""}`}get optionLabelSizeClass(){return`${this.size?ye("list",this.size):""}`}get listContainerClasses(){const r=["k-list-container","k-reset"];return this.popupSettings.popupClass&&r.push(this.popupSettings.popupClass),r}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return oo(this.defaultItem,this.textField)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Zi(),this.isAdaptive)return void this.openActionSheet();const r="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:r,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:r,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const Te=this.popupRef.popupElement,{min:zn,max:Ei}=this.width;Te.addEventListener("mousedown",this.popupMouseDownHandler),Te.style.minWidth=zn,Te.style.width=Ei,Te.style.height=this.height,Te.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(Te,"role","region"),this.renderer.setAttribute(Te,"aria-label",this.messageFor("popupLabel")));const Xn=Te.querySelector("ul.k-list-ul"),Bs=this.wrapper.nativeElement.getAttribute("aria-labelledby");Bs&&Xn.setAttribute("aria-labelledby",Bs),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),dr(this.optionsList,this.wrapper,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.filterable||this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:r,confirm:b=!1}){this.dataItem=r,this.text=oo(r,this.textField),b&&(this._previousDataItem=r)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(r){const b=!kn(r);this.selectionService.resetSelection(b?[]:[r]),this.selectionService.focused=b?this.firstFocusableIndex(0):r}onSelectionChange({dataItem:r}){this.updateState({dataItem:r}),this.selectionChange.emit(r),this.assignAriaDescribedBy()}subscribeEvents(){(0,o.X_)()&&(this.subs.add(this.selectionService.onSelect.pipe((0,q.h)(r=>this.isOpen),(0,se.U)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.subs.add((0,R.T)(this.selectionService.onSelect.pipe((0,q.h)(r=>!this.isOpen)),this.selectionService.onChange).pipe((0,se.U)(this.itemFromEvent.bind(this)),(0,oe.b)(r=>this.togglePopup(!1))).subscribe(({dataItem:r,value:b,newSelection:J})=>{J&&this.onSelectionChange({dataItem:r});const Te=!kn(r)&&this._previousDataItem,zn=b!==oo(this.value,this.valueField);Te?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):zn&&(this.value=this.valuePrimitive?b:r,this._previousDataItem=r,this.emitChange(this.value)),this.clearFilter()})),this.subs.add((0,R.T)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe((0,Ee.n)(()=>this.filterable)),this.navigationService.right.pipe((0,Ee.n)(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe((0,q.h)(r=>!isNaN(r.index))).subscribe(r=>this.selectionService.select(r.index))),this.subs.add((0,R.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(r=>{this.isOpen&&(r.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(ho[r.originalEvent.code]))})),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()})),this.subs.add(this.navigationService.enter.pipe((0,oe.b)(r=>r.originalEvent.preventDefault())).subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.filterBlurred.pipe((0,ke.b)(()=>(0,Y.F)(10).pipe((0,Se.q)(1),(0,Ye.R)(this.hostElementFocused)))).subscribe(()=>{this.hostElementBlurred.emit()})),this._zone.runOutsideAngular(()=>{this.subs.add((0,R.T)(this.hostElementBlurred.pipe((0,ke.b)(()=>(0,Y.F)(10).pipe((0,Se.q)(1),(0,Ye.R)(this.filterFocused)))),this.navigationService.tab).pipe((0,oe.b)(r=>r instanceof Ea&&this.focus()),(0,q.h)(()=>this.isFocused)).subscribe(()=>this.componentBlur()))}))}subscribeTouchEvents(){!(0,o.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",r=>{this.isFocused&&!kc(this.wrapper,r.target,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}subscribeFocusEvents(){(0,o.X_)()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(()=>{document.addEventListener("focus",this.focusComponent,!0),document.addEventListener("blur",this.blurComponent,!0)}))}unSubscribeFocusEvents(){(0,o.X_)()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))}itemFromEvent(r){const b=r.indices[0];let J=this.dataService.itemAt(b);J=kn(J)?J:this.currentOrDefault(b);const Te=oo(J,this.valueField);return{dataItem:J,index:b,newSelection:r.newSelection,value:Te}}currentOrDefault(r){return kn(this.dataItem)&&-1!==r?this.dataItem:this.defaultItem}firstFocusableIndex(r){const b=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(r)?r<b?this.firstFocusableIndex(r+1):void 0:r}handleEnter(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)}handleEscape(){kn(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))}verifySettings(){if((0,e.X6Q)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error("defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem");if(!0===this.valuePrimitive&&kn(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!1===this.valuePrimitive&&kn(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!kn(this.valueField)!=!kn(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data")}}componentBlur(){if(!this.isActionSheetExpanded){this.isFocused=!1;const b=kn(this.selectionService.selected[0])&&oo(this.value,this.valueField)!==oo(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);b||(0,o.g$)(this.close)||(0,o.g$)(this.onBlur)||(0,o.g$)(this.filterChange)||yu(this.wrapper.nativeElement)?this._zone.run(()=>{b&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}}onMouseDown(r){"input"!==r.target.tagName.toLowerCase()&&r.preventDefault()}onKeyPress(r){if(0===r.which||r.keyCode===o.R8.Enter)return;let b=String.fromCharCode(r.charCode||r.keyCode);this.ignoreCase&&(b=b.toLowerCase())," "===b&&r.preventDefault(),this.word+=b,this.last=b,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let r=this.dataService.filter(Ro=>kn(Ro)&&!Ro.header&&!this.disabledItemsService.isItemDisabled(Ro)).map(Ro=>this.dataService.grouped?{item:Ro.value,itemIndex:Ro.offsetIndex}:{item:Ro,itemIndex:this.dataService.indexOf(Ro)});const b=((M,Re)=>{for(let r=0;r<M.length;r++)if(M.charAt(r)!==Re)return!1;return!0})(this.word,this.last);let J=r.length;const Te=!isNaN(this.selectionService.selected[0]);let Ei,Xn,Bs,zn=Te?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(Bs={item:this.defaultItem,itemIndex:-1},J+=1,zn+=1),zn+=b&&Te?1:0,r=((M,Re,r)=>{let b=M;return r&&(b=[r].concat(b)),b.slice(Re).concat(b.slice(0,Re))})(r,zn,Bs),Xn=0;Xn<J;Xn++){Ei=oo(r[Xn].item,this.textField);const Ro=Boolean(b&&xc(Ei,this.last,this.ignoreCase)),Go=Boolean(xc(Ei,this.word,this.ignoreCase));if(Ro||Go){Xn=r[Xn].itemIndex;break}}Xn!==J&&this.navigate(Xn)}emitChange(r){this.onChangeCallback(r),this.valueChange.emit(r)}navigate(r){this.selectionService.select(r)}findDataItem({valueField:r,value:b}){const J={dataItem:null,index:-1},Te=Xn=>oo(Xn,r);let zn;zn=this.dataService.grouped?Xn=>Te(Xn.value)===Te(b):Xn=>Te(Xn)===Te(b);const Ei=this.dataService.findIndex(zn);return J.dataItem=this.dataService.itemAt(Ei),J.index=Ei,J}setState(){const r=this.value,b=this.valueField,J=this.textField,Te=this.valuePrimitive;if(this.defaultItem){const Xn=oo(this.defaultItem,b),Bs=oo(r,b);if(!kn(r)||Bs===Xn)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const zn=this.findDataItem({valueField:b,value:r}),Ei=!(Te&&J);zn.dataItem?(this.updateState({dataItem:zn.dataItem,confirm:!0}),this.resetSelection(zn.index)):kn(r)&&Ei?(this.updateState({dataItem:r}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(r){this.filterChange.emit(r.target.value)}handleClick(){this.windowSize=Zi(),this.isAdaptive&&this.togglePopup(!0)}pageChange(r){this.virtual.skip=r.skip}assignAriaDescribedBy(){const b=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=`k-${qs()}`;const J=`${this.valueLabelId} ${b}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",J)}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,ye("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,w("picker",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.filterable&&(this.actionSheetSearchBar.value="",this.filterChange.emit("")),this.closed.emit()}openActionSheet(){this.windowSize=Zi(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),dr(this.optionsList,this.wrapper,this.renderer),this.title=_r(this.wrapper,this.title),Io(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.filterable&&this.actionSheetSearchBar.focus()}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(F.oQ),e.Y36(ee.qL),e.Y36(ul),e.Y36(dl),e.Y36(Sl),e.Y36(rl),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Vc,8),e.Y36(e.zs3))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-dropdownlist"]],contentQueries:function(r,b,J){if(1&r&&(e.Suo(J,Da,5),e.Suo(J,Na,5),e.Suo(J,tc,5),e.Suo(J,Qd,5),e.Suo(J,ol,5),e.Suo(J,fl,5),e.Suo(J,nc,5)),2&r){let Te;e.iGM(Te=e.CRH())&&(b.itemTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.groupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.fixedGroupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.valueTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.headerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.footerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.noDataTemplate=Te.first)}},viewQuery:function(r,b){if(1&r&&(e.Gf(Jl,5),e.Gf(er,7,e.s_b),e.Gf(ha,7),e.Gf(ir,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.responsiveRendererComponent=J.first),e.iGM(J=e.CRH())&&(b.container=J.first),e.iGM(J=e.CRH())&&(b.popupTemplate=J.first),e.iGM(J=e.CRH())&&(b.optionsList=J.first)}},hostVars:20,hostBindings:function(r,b){1&r&&e.NdJ("keydown",function(Te){return b.keydown(Te)})("keypress",function(Te){return b.keypress(Te)})("click",function(){return b.click()}),2&r&&(e.uIk("aria-controls",b.ariaControls)("disabled",b.isDisabledAttribute)("id",b.focusableId)("dir",b.dir)("tabindex",b.hostTabIndex)("readonly",b.readonlyAttr)("aria-busy",b.isBusy)("role",b.role)("aria-haspopup",b.haspopup)("aria-expanded",b.isAriaExpanded)("aria-invalid",b.hostAriaInvalid)("aria-activedescendant",b.hostAriaActivedescendant),e.ekj("k-dropdownlist",b.hostClasses)("k-picker",b.hostClasses)("k-disabled",b.isDisabledClass)("k-loading",b.isLoading))},inputs:{iconClass:"iconClass",loading:"loading",data:"data",value:"value",textField:"textField",valueField:"valueField",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",defaultItem:"defaultItem",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",filterable:"filterable",virtual:"virtual",ignoreCase:"ignoreCase",delay:"delay",valuePrimitive:"valuePrimitive",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",focusableId:["id","focusableId"]},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[e._Bn([Dp,rl,ul,dl,Sl,F.oQ,{provide:F.mM,useValue:"kendo.dropdownlist"},{provide:Dc,useExisting:(0,e.Gpc)(()=>M)},{provide:o.GX,useExisting:(0,e.Gpc)(()=>M)}]),e.TTD],decls:16,vars:16,consts:function(){let Re,r,b,J;return Re=$localize`:kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,r=$localize`:kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button:Select`,b=$localize`:kendo.dropdownlist.filterInputLabel|The text set as aria-label on the filter input:Filter`,J=$localize`:kendo.dropdownlist.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoDropDownListLocalizedMessages","","noDataText",Re,"selectButtonText",r,"filterInputLabel",b,"popupLabel",J],["unselectable","on",1,"k-input-inner",3,"id"],[1,"k-input-value-text"],[4,"ngIf"],[3,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["unselectable","on","name","caret-alt-down",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",3,"ngClass",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","closePopup","textInputChange"],["sharedPopupActionSheetTemplate",""],[3,"templateContext"],["unselectable","on","name","caret-alt-down",3,"svgIcon"],[1,"k-button-icon","k-icon",3,"ngClass"],[4,"ngTemplateOutlet"],[3,"resize"],[3,"id","size","rounded","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","ariaLive","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[1,"k-list-filter",3,"click"],[1,"k-searchbox","k-input",3,"ngClass"],["innerCssClass","k-input-icon","name","search",1,"k-icon",3,"svgIcon"],["role","searchbox","aria-autocomplete","list","aria-haspopup","listbox","tabindex","-1",1,"k-input-inner",3,"filterInput","dir","ngModel","ngModelChange","keydown","input","focus","blur","click"],["searchInput",""],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-no-data"],[3,"ngIf","templateContext"]]},template:function(r,b){if(1&r&&(e.GkF(0,0),e.TgZ(1,"span",1)(2,"span",2),e.YNc(3,lr,1,4,null,3),e.YNc(4,Fo,1,1,"ng-template",4),e.qZA()(),e.TgZ(5,"button",5),e.YNc(6,no,1,1,"kendo-icon-wrapper",6),e.YNc(7,Tr,1,1,"span",7),e.qZA(),e.YNc(8,za,1,1,"ng-template",null,8,e.W1O),e.YNc(10,pa,1,0,"kendo-resize-sensor",9),e.GkF(11,null,10),e.TgZ(13,"responsive-renderer",11),e.NdJ("closePopup",function(){return b.togglePopup(!1)})("textInputChange",function(Te){return b.onFilterChange(Te)}),e.qZA(),e.YNc(14,kl,8,20,"ng-template",null,12,e.W1O)),2&r){const J=e.MAs(15);e.xp6(1),e.Q6J("id",b.valueLabelId),e.xp6(2),e.Q6J("ngIf",b.valueTemplate),e.xp6(1),e.Q6J("ngIf",!b.valueTemplate),e.xp6(1),e.Q6J("ngClass",b.selectButtonClasses)("kendoEventsOutsideAngular",e.VKq(14,ii,b.onMouseDown)),e.uIk("aria-label",b.messageFor("selectButtonText")),e.xp6(1),e.Q6J("ngIf",!b.loading&&!b.iconClass),e.xp6(1),e.Q6J("ngIf",b.loading||b.iconClass),e.xp6(3),e.Q6J("ngIf",b.isOpen||b.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",J)("isActionSheetExpanded",b.isActionSheetExpanded)("title",b.title)("showTextInput",b.filterable)("subtitle",b.subtitle)}},dependencies:[Je.ZS,o.NG,Jl,wd,jc,ut.O5,tu,ut.mk,o.nV,ut.tP,T.Fj,Xd,T.JJ,T.On,id],encapsulation:2}),M})(),vc=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),M})(),Ch=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),M})(),Cu=(()=>{class M{constructor(r){this.templateRef=r}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Rgc))},M.\u0275dir=e.lG2({type:M,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),M})();class Hu extends Uu{constructor(Re){super(),this.dataItem=Re}}let qd=(()=>{class M{constructor(r,b){this.renderer=r,this.hostElement=b,this.xCircleIcon=Ct.jKn,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new e.vpe,this.hostClasses=!0,this._size="medium"}set size(r){this.renderer.removeClass(this.hostElement.nativeElement,ye("chip-list",this.size)),r&&this.renderer.addClass(this.hostElement.nativeElement,ye("chip-list",r)),this._size=r}get size(){return this._size}get hostId(){return this.id}tagProp(r,b,J){const Te=b&&this.getPropField(r,b,J);return oo(r,Te)}isTagDisabled(r,b){return this.isGroupTag(r)?r.every((J,Te)=>this.disabledIndices.has(Te+b)):this.disabledIndices.has(b)}deleteTag(r,b,J){r.preventDefault(),r.stopImmediatePropagation(),!this.disabled&&1===r.which&&this.removeTag.emit({tag:b,index:J})}itemId(r,b){if(r)return this.tagPrefix+"-"+this.tagProp(r,this.valueField,b)}isGroupTag(r){return r instanceof Array}tagAriaHidden(r){return kn(this.focused)&&this.focused!==r}getPropField(r,b,J){const Te=b.length-1;if("string"==typeof b)return b;if(this.valueDepth){const zn=this.valueDepth[J];return Te<zn?b[Te]:b[zn]}return b.find(zn=>zn in r)}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.Qsj),e.Y36(e.SBq))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-taglist"]],hostVars:7,hostBindings:function(r,b){2&r&&(e.uIk("id",b.hostId),e.ekj("k-input-values",b.hostClasses)("k-chip-list",b.hostClasses)("k-selection-multiple",b.hostClasses))},inputs:{tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id",size:"size",rounded:"rounded",fillMode:"fillMode",disabledIndices:"disabledIndices"},outputs:{removeTag:"removeTag"},ngContentSelectors:Ol,decls:2,vars:1,consts:[["class","k-chip",3,"ngClass",4,"ngFor","ngForOf"],[1,"k-chip",3,"ngClass"],[1,"k-chip-content"],[4,"ngIf","ngIfThen","ngIfElse"],["groupTag",""],["singleTag",""],[1,"k-chip-actions"],["aria-label","delete",1,"k-chip-action","k-chip-remove-action"],["name","x-circle",3,"svgIcon","mousedown"],[1,"k-chip-label","k-text-ellipsis"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(r,b){1&r&&(e.F$t(),e.YNc(0,Va,10,21,"div",0),e.Hsn(1)),2&r&&e.Q6J("ngForOf",b.tags)},dependencies:[Je.ZS,ut.sg,ut.mk,ut.O5,tu],encapsulation:2}),M})();const Md={multi:!0,provide:T.JU,useExisting:(0,e.Gpc)(()=>Ac)};let Ac=(()=>{class M{constructor(r,b,J,Te,zn,Ei,Xn,Bs,Ro,Go,Bo,Za){this.wrapper=r,this.localization=b,this.popupService=J,this.dataService=Te,this.selectionService=zn,this.navigationService=Ei,this.disabledItemsService=Xn,this.cdr=Bs,this.differs=Ro,this.renderer=Go,this._zone=Bo,this.touchEnabled=Za,this.animationDuration=300,this.xIcon=Ct.FZE,this.plusIcon=Ct.R7U,this.listBoxId=`k-${qs()}`,this.tagListId=`k-${qs()}`,this.tagPrefix="tag-"+qs(),this.optionPrefix="option-"+qs(),this.focusedTagIndex=void 0,this.focusableId=`k-${qs()}`,this.autoClose=!0,this.tabindex=0,this.adaptiveMode="none",this.title="",this.disabled=!1,this.readonly=!1,this.filterable=!1,this._listHeight=200,this.clearButton=!0,this.tagMapper=su=>su||[],this.allowCustom=!1,this.valueNormalizer=su=>su.pipe((0,se.U)(Nd=>{const rp=sh=>"string"==typeof sh&&Nd.toLowerCase()===sh.toLowerCase(),Op=this.value.find(rp);return Op||(this.dataService.find(rp)||Nd)})),this.filterChange=new e.vpe,this.valueChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.removeTag=new e.vpe,this.hostClasses=!0,this.windowSize="large",this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._valueHolder=[],this.onChangeCallback=su=>{},this.onTouchedCallback=su=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new y.x,this.subs=new N.w0,(0,A.s)(hi),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get ariaControls(){return this.isOpen?this.listBoxId:void 0}focusItemAt(r){const J=(this.allowCustom?-1:0)<=0&&r<this.data.length;kn(r)&&J&&!this.disabledItemsService.isIndexDisabled(r)?this.selectionService.focus(r):this.selectionService.focus(null)}focus(){this.disabled||this.searchbar.focus()}onSearchBarFocus(){this.isFocused||(this.isFocused=!0,(0,o.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}onAdaptiveTextBoxChange(r){this.filterable?this.filterChange.emit(r):this.searchTextAndFocus(r)}blur(){this.disabled||this.searchbar.blur()}onSearchBarBlur(){if(!this.isActionSheetExpanded){if(!this.isFocused)return;this.isFocused=!1,(0,o.g$)(this.onBlur)||(0,o.g$)(this.filterChange)||(0,o.g$)(this.close)||yu(this.wrapper.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup())}}onMouseDown(r){r.preventDefault()}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Zi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Zi(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){const r=this.popupRef.popupElement,{min:b,max:J}=this.width;r.style.minWidth=b,r.style.width=J}}get appendTo(){const{appendTo:r}=this.popupSettings;if(r&&"root"!==r)return"component"===r?this.container:r}set data(r){this.dataService.data=r||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){const r=this.virtual;if(r){const b=r.skip||0,J=b+r.pageSize;return r.total=this.dataService.data.length,this.dataService.data.slice(b,J)}return this.dataService.data}set value(r){this._value=r||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)}get value(){return this._value}set tabIndex(r){this.tabindex=r}get tabIndex(){return this.tabindex}set size(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,ye("input",this.size)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,ye("input",b)),this._size=b}get size(){return this._size}set rounded(r){const b=r||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,Xe(b)),this._rounded=b}get rounded(){return this._rounded}set fillMode(r){const b=r||"solid";this.renderer.removeClass(this.wrapper.nativeElement,w("input",this.fillMode)),"none"!==r&&this.renderer.addClass(this.wrapper.nativeElement,w("input",b)),this._fillMode=b}get fillMode(){return this._fillMode}set placeholder(r){this._placeholder=r||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set subtitle(r){this._subtitle=r}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set itemDisabled(r){if("function"!=typeof r)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(r)}.`);this.disabledItemsService.itemDisabled=r}set checkboxes(r){this._checkboxes=(M=>fa(M)?Object.assign({},{enabled:!0,checkOnClick:!0},M):{enabled:Boolean(M),checkOnClick:!0})(r)}get checkboxes(){return this._checkboxes}set virtual(r){this._virtualSettings=bu(r)}get virtual(){return this._virtualSettings}set popupSettings(r){this._popupSettings=Object.assign({animate:!0},r)}get popupSettings(){return this._popupSettings}set listHeight(r){this._listHeight=r}get listHeight(){if(!this.isAdaptive)return this._listHeight}set valuePrimitive(r){this._valuePrimitive=r}get valuePrimitive(){return kn(this._valuePrimitive)?this._valuePrimitive:!kn(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get isLoading(){return this.loading}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}get listContainerClasses(){const r=["k-list-container","k-reset"];return this.popupSettings.popupClass&&r.push(this.popupSettings.popupClass),r}get customItemSizeClass(){return`${this.size?ye("list",this.size):""}`}get width(){let r=0;(0,o.X_)()&&(r=this.wrapper.nativeElement.offsetWidth);const b=this.popupSettings.width||r;return{min:isNaN(r)?r:`${r}px`,max:isNaN(b)?b:`${b}px`}}get height(){const r=this.popupSettings.height;return kn(r)?`${r}px`:"auto"}get activeDescendant(){const r=this.focusedTagIndex,b=this.selectionService.focused;let J,Te;if(kn(r)&&!this.isOpen)Te=this.tags[r],J=this.tagPrefix;else{if(!kn(b)||-1===b||!this.isOpen)return null;Te=this.dataService.itemAt(b),J=this.optionPrefix}return J+"-"+oo(Te,this.valueField)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}applyValue(){this.value=this._valueHolder,this._valueHolder=[],this.emitValueChange(),this.togglePopup(!1)}cancelValue(){this._valueHolder=[],this.togglePopup(!1)}verifySettings(){if((0,e.X6Q)()&&0!==this.value.length){if(!Ua(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&zu(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!zu(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!kn(this.valueField)!=!kn(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}}change(r){if(r.isMultipleSelection)kn(r.added)&&r.added.length>0&&r.added.forEach(b=>{const J=this.dataService.itemAt(b),Te=this.valuePrimitive&&kn(J)&&kn(J[this.valueField])?J[this.valueField]:J;Te&&(this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=[...this._valueHolder,Te]:this.value=[...this.value,Te])}),kn(r.removed)&&r.removed.length>0&&(r.removed.forEach(b=>{const J=this.dataService.itemAt(b),Te=zn=>oo(zn,this.valueField)!==oo(J,this.valueField);this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=this._valueHolder.filter(Te):this.value=this.value.filter(Te)}),this.cdr.detectChanges());else{if((kn(r.added)||kn(r.removed))&&(-1===r.added||-1===r.removed))return void this.addCustomValue(this.text);if(kn(r.added)){const J=this.dataService.itemAt(r.added),Te=this.valuePrimitive&&kn(J)&&kn(J[this.valueField])?J[this.valueField]:J;this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=[...this._valueHolder,Te]:this.value=[...this.value,Te]}if(kn(r.removed)){const J=this.dataService.itemAt(r.removed),Te=zn=>oo(zn,this.valueField)!==oo(J,this.valueField);this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=this._valueHolder.filter(Te):this.value=this.value.filter(Te),this.selectionService.focused=r.removed,this.cdr.detectChanges()}}(!this.isAdaptive||!this.isActionSheetExpanded)&&this.emitValueChange()}setState(r){let b=this.dataService.data;this.dataService.grouped&&(b=b.filter(Te=>!Te.header).map(Te=>Te.value));const J=Rl(this.value,b,this.valueField);this.selectionService.resetSelection(J),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=r.slice()),(zu(r)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=((M,Re,r)=>{const b=((M,Re)=>Ua(M)&&M.filter(r=>fa(r)&&kn(oo(r,Re))))(M,r)||[];return(((M,Re=[],r)=>M.map(b=>Re.find(J=>oo(J,r)===b)).filter(b=>void 0!==b))(M,Re,r)||[]).concat(b)})(r,b,this.valueField)),this.selectedDataItems.length<r.length&&(this.selectedDataItems=r.map(Te=>{const zn=this.selectedDataItems.find(Ei=>oo(Ei,this.valueField)===oo(Te,this.valueField));return kn(zn)?zn:this.resolveDataItemFromTags(Te)}).filter(Te=>kn(Te))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(r){this.text=r,r&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(r):this.searchTextAndFocus(r),this.searchbar.setInputSize()}pageChange(r){this.virtual.skip=r.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(r){const b=this.text&&r.keyCode!==o.R8.ArrowDown&&r.keyCode!==o.R8.ArrowUp,J=this.text&&r.keyCode===o.R8.Enter||r.keyCode===o.R8.Escape;if(r.keyCode===o.R8.Backspace&&this.isActionSheetExpanded)return;if(!this.text&&r.keyCode===o.R8.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||b&&!J)return;const zn=r,Ei=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,Xn=this.navigationService.process({current:Ei,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:zn});Xn!==ho.Undefined&&(Xn===ho.Enter&&this.isOpen||Xn!==ho.Enter)&&!this.isActionSheetExpanded&&Xn===ho.Tab&&r.preventDefault()}handleRemoveTag({tag:r}){const b=new Hu(r);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(b),!b.isDefaultPrevented()&&(r instanceof Array?this.removeGroupTag(r):this.removeSingleTag(r),this.cdr.detectChanges()))}clearAll(r){r?.stopImmediatePropagation(),r?.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.lastClickedIndex=null;const b=this.selectionService.selected;this.value=this.value.filter((J,Te)=>this.disabledItemsService.isIndexDisabled(b[Te])),this.emitValueChange()}addCustomValue(r){this.customValueSubject.next(r)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.subs.add(this.localization.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr",this.cdr.markForCheck()})),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}ngOnChanges(r){const b=this.virtual;b&&r.data&&r.data.isFirstChange()&&this.pageChange({skip:0,take:b.pageSize}),(0,o.ln)("valueNormalizer",r)&&this.createCustomValueStream(),(0,o.aG)(["textField","valueField","valuePrimitive"],r)&&this.setState(this.value)}ngAfterViewInit(){this.windowSize=Zi(),this.cdr.detectChanges(),this.searchbar.setInputSize(),this.subs.add(this.renderer.listen(this.wrapper.nativeElement,"mousedown",this.handleMousedown.bind(this))),this.subs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),this.renderer.setAttribute(this.actionSheet?.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents()}toggle(r){Promise.resolve(null).then(()=>{const b=kn(r)?r:!this._open;this._toggle(b),this.cdr.markForCheck()})}get isOpen(){return ks(this._open||this.isActionSheetExpanded)}reset(){this.text="",this.value=[]}messageFor(r){return this.localization.get(r)}writeValue(r){this.value=r||[]}registerOnChange(r){this.onChangeCallback=r}registerOnTouched(r){this.onTouchedCallback=r}setDisabledState(r){this.disabled=r}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}handleClick(){this.windowSize=Zi(),this.isAdaptive&&this.togglePopup(!0)}set isFocused(r){this.renderer[r?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=r}get isFocused(){return this._isFocused}subscribeEvents(){if(!(0,o.X_)())return;const r=()=>this.isOpen,b=()=>!this.isOpen,J=()=>!this.isOpen&&void 0!==this.focusedTagIndex;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe((0,q.h)(r)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe((0,q.h)(r)).subscribe(Te=>this.handleUp(Te.index)),this.navigationService.home.pipe((0,q.h)(()=>b)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe((0,q.h)(()=>b)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe((0,q.h)(J)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe((0,q.h)(J)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(Te=>this.handleDownKey(Te.index)),this.navigationService.selectprevious.pipe((0,q.h)(r)).subscribe(Te=>this.handleSelectUpDown(Te)),this.navigationService.selectnext.pipe((0,q.h)(r)).subscribe(Te=>this.handleSelectUpDown(Te)),this.navigationService.selectalltobeginning.pipe((0,q.h)(r)).subscribe(()=>this.handleSelectAllToBeginning()),this.navigationService.selectalltoend.pipe((0,q.h)(r)).subscribe(()=>this.handleSelectAllToEnd()),(0,R.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(Te=>{this.isOpen&&(Te.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(ho[Te.originalEvent.code]))})].forEach(Te=>this.subs.add(Te))}subscribeTouchEvents(){!(0,o.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",r=>{(this.isFocused||this.isOpen)&&!kc(this.wrapper,r.target,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){(0,o.X_)()&&(this.subs.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(r){let b=this.dataService.data;this.dataService.grouped&&(b=b.filter(Te=>!Te.header).map(Te=>Te.value));const J=new Set(r.map(Te=>oo(Te,this.valueField)));this.value=this.value.filter(Te=>{const zn=Rl([Te],b,this.valueField)[0],Ei=this.disabledItemsService.isIndexDisabled(zn);return!J.has(oo(Te,this.valueField))||Ei}),this.emitValueChange()}removeSingleTag(r){let b=this.dataService.data;this.dataService.grouped&&(b=b.filter(Te=>!Te.header).map(Te=>Te.value));const J=Rl([r],b,this.valueField)[0];this.disabledItemsService.isIndexDisabled(J)||((M=>!isNaN(M))(J)?(this.selectionService.deselect(J),this.selectionService.focused=J,this.togglePopup(!1)):(this.value=this.value.filter(zn=>oo(zn,this.valueField)!==oo(r,this.valueField)),this.emitValueChange()))}disabledItemsMapper(){const{selected:r}=this.selectionService;return new Set(this.selectedDataItems.reduce((b,J,Te)=>(this.disabledItemsService.isIndexDisabled(r[Te])&&b.push(Te),b),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe((0,oe.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,(0,pe.K)(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),(0,j.of)(null)))).subscribe(r=>{if(this.loading=!1,this.disabled=!1,kn(r)){const b=this.valuePrimitive?oo(r,this.valueField):r,J=this.dataService.indexOf(b),Te=-1===J;-1===this.value.indexOf(b)?(this.tags=this.tagMapper([...this.selectedDataItems,r]),Te?this.value=[...this.value,b]:this.selectionService.add(J)):!Te&&this.selectionService.isSelected(J)?(this.selectionService.deselect(J),this.selectionService.focused=J):this.value=this.value.filter(zn=>oo(zn,this.valueField)!==b),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(r){this.change(r),this.autoClose&&!r.preventClosingPopup&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleMousedown(r){if(!this.isActionSheetExpanded&&0===r.button){if(this.isFocused&&this.isOpen&&r.target===this.searchbar.input.nativeElement||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==r.target.tagName)&&this.searchbar.focus(),this.popupRef&&this.popupRef.popupElement.contains(r.target)))return;r.preventDefault(),this.togglePopup(!this.isOpen)}}handleKeydown(r){this.isFocused&&this.isOpen&&(r.ctrlKey||r.metaKey)&&r.keyCode===o.R8.KeyA&&(r.preventDefault(),this.handleSelectAll())}handleEnter(r){const b=this.selectionService,J=this.selectionService.focused;this.selectionService.lastClickedIndex=J,this.isOpen&&r.originalEvent.preventDefault(),-1!==J?(b.isSelected(J)?(b.deselect(J),b.focused=J):b.add(J),this.autoClose&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}sortSelectionAscending(){return this.selectionService.selected.sort((r,b)=>r-b)}handleSelectAll(){const r=this.selectionService.selected.length,b=this.dataService.data.length,J=this.dataService.data.filter(Te=>!Te.header).length;!this.dataService.grouped&&r===b||this.dataService.grouped&&r===J?this.clearAll():(this.selectionService.selectFromTo(0,b-1),this.selectionService.emitMultipleAddedRemoved())}handleSelectAllToBeginning(){const r=this.selectionService.selected.length,b=this.dataService.data.length,J=this.selectionService.focused,Te=this.sortSelectionAscending()[r-1];r!==b&&(this.selectionService.unselectFromTo(Te,J+1),this.selectionService.selectFromTo(0,J)),this.nextTick(()=>this.selectionService.focus(0)),this.selectionService.emitMultipleAddedRemoved()}handleSelectAllToEnd(){const b=this.dataService.data.length,J=this.selectionService.focused;if(this.selectionService.selected.length!==b&&(this.selectionService.unselectFromTo(J-1,0),this.selectionService.selectFromTo(J,b-1)),this.dataService.grouped){const Te=this.dataService.groupIndices[this.dataService.groupIndices.length-1]-1;this.nextTick(()=>this.selectionService.focus(Te))}else this.nextTick(()=>this.selectionService.focus(b-1));this.selectionService.emitMultipleAddedRemoved()}handleSelectUpDown(r){const b=this.selectionService.focused;if(!kn(b))return;let J;J="ArrowUp"===r.originalEvent.key?b>0?b-1:b:b<this.dataService.data.length-1?b+1:b,kn(this.selectionService.lastClickedIndex)||(this.selectionService.lastClickedIndex=b),this.selectRangeFromTo(J)}selectRangeFromTo(r){const b=this.selectionService.lastClickedIndex;b>r?(this.selectionService.unselectNotNeededIndices(r,b,this.dataService.data.length),this.selectionService.selectFromTo(r,this.selectionService.lastClickedIndex),this.selectionService.emitMultipleAddedRemoved()):(this.selectionService.unselectNotNeededIndices(b,r,this.dataService.data.length),this.selectionService.selectFromTo(b,r),this.selectionService.emitMultipleAddedRemoved()),this.nextTick(()=>this.selectionService.focus(r))}handleUp(r){this.selectionService.focused=r}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleDownKey(r){this.isOpen?this.selectionService.focused=r||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){const r=this.tags.length-1;this.focusedTagIndex===r?this.focusedTagIndex=void 0:this.focusedTagIndex<r&&this.focusedTagIndex++}findIndex(r,b=0){let J;r=r.toLowerCase();const Te=this.dataService.findIndex(zn=>(J=oo(this.dataService.grouped?zn.value:zn,this.textField),J=kn(J)?J.toString().toLowerCase():"",r&&J.startsWith(r)),b);return this.disabledItemsService.isIndexDisabled(Te)?Te+1>this.dataService.itemsCount?-1:this.findIndex(r,Te+1):Te}searchTextAndFocus(r){const b=this.findIndex(r);this.selectionService.focused=b}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(r){this.disabled||this.readonly||this.isOpen===r||this.triggerPopupEvents(r)||this._toggle(r)}triggerPopupEvents(r){const b=new Uu;return r?this.open.emit(b):this.close.emit(b),b.isDefaultPrevented()}_toggle(r){this._open=r,this.destroyPopup(),this.isActionSheetExpanded&&(this.closeActionSheet(),this.focus()),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Zi(),this.isAdaptive)return void this.openActionSheet();const r="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:r,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:r,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const Te=this.popupRef.popupElement,{min:zn,max:Ei}=this.width;this.appendTo||(this.renderer.setAttribute(Te,"role","region"),this.renderer.setAttribute(Te,"aria-label",this.messageFor("popupLabel"))),Te.addEventListener("mousedown",this.popupMouseDownHandler),Te.style.minWidth=zn,Te.style.width=Ei,Te.style.height=this.height,Te.setAttribute("dir",this.direction);const Xn=Te.querySelector("ul.k-list-ul"),Bs=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");Bs&&Xn.setAttribute("aria-labelledby",Bs),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(r){return this.tags&&this.tags.length&&kn(r)?this.tags.reduce((J,Te)=>{const zn=Ua(Te)?Te:[Te];return J.push(...zn),J},[]).find(J=>oo(J,this.valueField)===oo(r,this.valueField)):void 0}firstFocusableIndex(r){const b=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(r)){const J=r+1;return J<b?this.firstFocusableIndex(J):void 0}return r}nextTick(r){this._zone.runOutsideAngular(()=>{setTimeout(()=>this._zone.run(r))})}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,ye("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,w("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.closed.emit()}openActionSheet(){this.windowSize=Zi(),this.actionSheet.toggle(!0),this._valueHolder=[...this.value],this.cdr.detectChanges(),dr(this.optionsList,this.searchbar.input,this.renderer),this.title=_r(this.searchbar.input,this.title),Io(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return M.\u0275fac=function(r){return new(r||M)(e.Y36(e.SBq),e.Y36(F.oQ),e.Y36(ee.qL),e.Y36(rl),e.Y36(ul),e.Y36(dl),e.Y36(Sl),e.Y36(e.sBO),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Vc,8))},M.\u0275cmp=e.Xpm({type:M,selectors:[["kendo-multiselect"]],contentQueries:function(r,b,J){if(1&r&&(e.Suo(J,Da,5),e.Suo(J,vc,5),e.Suo(J,Na,5),e.Suo(J,tc,5),e.Suo(J,ol,5),e.Suo(J,fl,5),e.Suo(J,Ch,5),e.Suo(J,Cu,5),e.Suo(J,nc,5)),2&r){let Te;e.iGM(Te=e.CRH())&&(b.template=Te.first),e.iGM(Te=e.CRH())&&(b.customItemTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.groupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.fixedGroupTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.headerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.footerTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.tagTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.groupTagTemplate=Te.first),e.iGM(Te=e.CRH())&&(b.noDataTemplate=Te.first)}},viewQuery:function(r,b){if(1&r&&(e.Gf(Jl,5),e.Gf(er,7,e.s_b),e.Gf(ma,7),e.Gf(ha,7),e.Gf(ir,5)),2&r){let J;e.iGM(J=e.CRH())&&(b.responsiveRendererComponent=J.first),e.iGM(J=e.CRH())&&(b.container=J.first),e.iGM(J=e.CRH())&&(b.searchbar=J.first),e.iGM(J=e.CRH())&&(b.popupTemplate=J.first),e.iGM(J=e.CRH())&&(b.optionsList=J.first)}},hostVars:9,hostBindings:function(r,b){2&r&&(e.uIk("dir",b.dir),e.ekj("k-multiselect",b.hostClasses)("k-input",b.hostClasses)("k-disabled",b.disabledClass)("k-loading",b.isLoading))},inputs:{focusableId:"focusableId",autoClose:"autoClose",loading:"loading",data:"data",value:"value",valueField:"valueField",textField:"textField",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",disabled:"disabled",itemDisabled:"itemDisabled",checkboxes:"checkboxes",readonly:"readonly",filterable:"filterable",virtual:"virtual",popupSettings:"popupSettings",listHeight:"listHeight",valuePrimitive:"valuePrimitive",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[e._Bn([Md,rl,ul,dl,Sl,F.oQ,{provide:F.mM,useValue:"kendo.multiselect"},{provide:Dc,useExisting:(0,e.Gpc)(()=>M)},{provide:o.GX,useExisting:(0,e.Gpc)(()=>M)}]),e.TTD],decls:14,vars:36,consts:function(){let Re,r,b,J,Te;return Re=$localize`:kendo.multiselect.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,r=$localize`:kendo.multiselect.clearTitle|The title of the clear button:clear`,b=$localize`:kendo.multiselect.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,J=$localize`:kendo.multiselect.applyButton|The text of the Apply button in the action sheet:Apply`,Te=$localize`:kendo.multiselect.cancelButton|The text of the Cancel button in the action sheet:Cancel`,[["kendoMultiSelectLocalizedMessages","","noDataText",Re,"clearTitle",r,"popupLabel",b,"applyButton",J,"cancelButton",Te],[3,"size","rounded","fillMode","id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices","removeTag"],[3,"ariaExpanded","ariaControls","id","role","tagListId","isLoading","isFilterable","activeDescendant","userInput","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","showActionButtons","subtitle","placeholder","closePopup","textInputChange","navigate","onApply","onCancel"],["sharedPopupActionSheetTemplate",""],["role","button","tabindex","-1",1,"k-clear-value",3,"mousedown"],["name","x",1,"k-icon",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],["class","k-list",3,"ngClass",4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","multipleSelection","virtual","checkboxes","isMultiselect","isActionSheetExpanded","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["default_custom_item_template",""],["name","plus",1,"k-icon",3,"svgIcon"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(r,b){if(1&r&&(e.GkF(0,0),e.TgZ(1,"kendo-taglist",1),e.NdJ("removeTag",function(Te){return b.handleRemoveTag(Te)}),e.TgZ(2,"kendo-searchbar",2,3),e.NdJ("onNavigate",function(Te){return b.handleNavigate(Te)})("valueChange",function(Te){return b.handleFilter(Te)})("onBlur",function(){return b.onSearchBarBlur()})("onFocus",function(){return b.onSearchBarFocus()})("click",function(){return b.handleClick()}),e.qZA()(),e.YNc(4,Ca,2,4,"span",4),e.YNc(5,$l,1,0,"span",5),e.YNc(6,ja,1,1,"ng-template",null,6,e.W1O),e.YNc(8,il,1,0,"kendo-resize-sensor",7),e.GkF(9,null,8),e.TgZ(11,"responsive-renderer",9),e.NdJ("closePopup",function(){return b.togglePopup(!1)})("textInputChange",function(Te){return b.onAdaptiveTextBoxChange(Te)})("navigate",function(Te){return b.handleNavigate(Te)})("onApply",function(){return b.applyValue()})("onCancel",function(){return b.cancelValue()}),e.qZA(),e.YNc(12,bn,6,21,"ng-template",null,10,e.W1O)),2&r){const J=e.MAs(13);e.xp6(1),e.Q6J("size",b.size)("rounded",b.rounded)("fillMode",b.fillMode)("id",b.tagListId)("tags",b.tags)("textField",b.textField)("valueField",b.valueField)("focused",b.focusedTagIndex)("disabled",b.disabled)("template",b.tagTemplate)("groupTemplate",b.groupTagTemplate)("tagPrefix",b.tagPrefix)("disabledIndices",b.disabledIndices),e.xp6(1),e.Q6J("ariaExpanded",b.isOpen)("ariaControls",b.ariaControls)("id",b.focusableId)("role","combobox")("tagListId",b.tagListId)("isLoading",b.loading)("isFilterable",b.filterable)("activeDescendant",b.activeDescendant)("userInput",b.text)("disabled",b.disabled)("readonly",b.readonly||b.isAdaptive)("tabIndex",b.tabIndex)("placeholder",b.placeholder),e.xp6(2),e.Q6J("ngIf",!b.loading&&!b.readonly&&b.clearButton&&((null==b.tags?null:b.tags.length)||(null==b.text?null:b.text.length))),e.xp6(1),e.Q6J("ngIf",b.loading),e.xp6(3),e.Q6J("ngIf",b.isOpen||b.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",J)("isActionSheetExpanded",b.isActionSheetExpanded)("title",b.title)("showTextInput",!0)("showActionButtons",!0)("subtitle",b.subtitle)("placeholder",b.placeholder)}},dependencies:[qd,ma,Je.ZS,o.NG,Jl,wd,jc,ut.O5,ut.tP,tu,ut.mk,id],encapsulation:2}),M})(),Vs=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({}),M})(),xr=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[ut.ez,T.u5,T.UX,ee.Zj,o.uv,Vs,o.OY,Je.pc,Ue.Or,ln.hJ,vt.oc],ut.ez,T.u5,T.UX,ee.Zj,o.uv,Vs,o.OY,Je.pc,Ue.Or,ln.hJ,vt.oc]}),M})(),lc=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[xr,Ys],Vs]}),M})(),$a=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[xr],Vs]}),M})(),cc=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[{provide:Vc,useValue:G.Pt}],imports:[[xr],Vs]}),M})(),uc=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[xr],Vs]}),M})(),ya=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({providers:[{provide:Vc,useValue:G.Pt}],imports:[[xr],Vs]}),M})(),dc=(()=>{class M{}return M.\u0275fac=function(r){return new(r||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[$a,cc,uc,ya,lc]}),M})()},99956:(fn,ve,_)=>{"use strict";_.d(ve,{HOb:()=>Vh,ese:()=>mg,Ztq:()=>Fp,HbC:()=>L_,bg4:()=>hh,UNL:()=>rg,TvK:()=>M_,HWw:()=>hg,vvB:()=>Vg,TIf:()=>bm,HO$:()=>sm,MwP:()=>fd,zE6:()=>F0,_cx:()=>vm,sXO:()=>dp,ht7:()=>R_,pVy:()=>I_,m81:()=>Zd,JG4:()=>cp,Pqr:()=>tf,kyx:()=>Kg});var e=_(94650),o=_(8416),T=_(56451),A=_(39646),G=_(77579),F=_(88996),N=_(50727),R=_(17445),P=_(54968),y=_(62557),j=_(61135),Y=_(69751),ee=_(5651),se=_(63900),he=_(95698),Se=_(54004),te=_(39300),oe=_(82722),q=_(66304),we=_(91005),ae=_(23601),Q=_(71884),pe=_(18505),Ee=_(59468),ke=_(78372),Ye=_(54482),ct=_(25403),ut=_(38737),Ue=_(36895),vt=_(24006),ln=_(13710),Je=_(92999),Ft=_(5643),st=_(11481);const Nt=a=>a&&a.ownerDocument||window.document,Ot=a=>{const f_browser=(()=>{const a=window&&window.navigator.userAgent;if(!a)return!1;let f=!1,i=[],u={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var I in u)if(u.hasOwnProperty(I)&&(i=a.match(u[I]),i)){f={},f[I]=!0,f[i[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,f.version=parseInt(document.DOCUMENT_NODE||i[2],10);break}return f})(),i=Nt(a);return f_browser.edge||f_browser.safari?i.body:i.documentElement},Kt=a=>{if(a&&a.className&&"string"==typeof a.className&&a.className.indexOf("k-auto-scrollable")>-1)return!0;let f=window.getComputedStyle(a,"overflow").overflow;return f.indexOf("auto")>-1||f.indexOf("scroll")>-1},$t=a=>{const f=Ot(a);if(!a||a===document.body||a===document.documentElement)return f;let i=a;for(;i&&i!==document.body&&i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&i.nodeType!==Node.DOCUMENT_NODE&&!Kt(i);)i=i.parentNode;return!i||i!==document.body&&i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?i:f};var it=(()=>{return(a=it||(it={})).POINTER_DOWN="pointerdown",a.POINTER_MOVE="pointermove",a.POINTER_UP="pointerup",a.POINTER_CANCEL="pointercancel",a.MOUSE_DOWN="mousedown",a.MOUSE_MOVE="mousemove",a.MOUSE_UP="mouseup",a.CONTEXT_MENU="contextmenu",a.TOUCH_START="touchstart",a.TOUCH_MOVE="touchmove",a.TOUCH_END="touchend",a.TOUCH_CANCEL="touchcancel",a.SCROLL="scroll",a.START="KENDO_DRAG_AND_DROP_START",a.MOVE="KENDO_DRAG_AND_DROP_MOVE",a.END="KENDO_DRAG_AND_DROP_END",a.CANCEL="KENDO_DRAG_AND_DROP_CANCEL",it;var a})();const Nn=()=>{},an=(a,f,i={})=>{const{onIsPressedChange:u=Nn,onIsScrollingChange:I=Nn,onVelocityChange:K=Nn,onOffsetChange:at=Nn,onPageOffsetChange:jt=Nn,onClientOffsetChange:Kn=Nn,onScrollOffsetChange:Ti=Nn,onInitialScrollOffsetChange:ns=Nn}=i,ls=f.payload,ws=ls.element,pr=ls.hint,sr=a.autoScrollDirection,na=a.scrollableParent,_o=((a,f)=>(a=>/^touch/.test(a.type))(a)?{pageX:a.changedTouches[0].pageX,pageY:a.changedTouches[0].pageY,clientX:a.changedTouches[0].clientX,clientY:a.changedTouches[0].clientY,scrollX:f.scrollOffset.x,scrollY:f.scrollOffset.y,offsetX:f.offset.x,offsetY:f.offset.y,type:a.type,originalEvent:a,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:(a=>/^(scroll)/.test(a.type))(a)?{pageX:f.pageOffset.x,pageY:f.pageOffset.y,clientX:f.clientOffset.x,clientY:f.clientOffset.y,scrollX:f.scrollOffset.x,scrollY:f.scrollOffset.y,offsetX:f.offset.x,offsetY:f.offset.y,type:a.type,originalEvent:a,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:a.pageX,pageY:a.pageY,clientX:a.clientX,clientY:a.clientY,offsetX:a.offsetX,offsetY:a.offsetY,scrollX:f.scrollOffset.x,scrollY:f.scrollOffset.y,type:a.type,ctrlKey:a.ctrlKey,shiftKey:a.shiftKey,altKey:a.altKey,metaKey:a.metaKey,originalEvent:a})(f.event,a);switch(_o.type){case it.POINTER_DOWN:if(_o.type===it.POINTER_DOWN&&(!_o.originalEvent.isPrimary||0!==_o.originalEvent.button))break;case it.MOUSE_DOWN:if(_o.type===it.MOUSE_DOWN&&_o.originalEvent.which&&_o.originalEvent.which>1||a.ignoreMouse)break;case it.TOUCH_START:if(_o.type===it.TOUCH_START&&1!==_o.originalEvent.touches.length)break;case it.START:{const Ia=na||$t(f.payload.element);ns(Ia instanceof Window?{x:Ia.scrollX,y:Ia.scrollY}:{x:Ia.scrollLeft,y:Ia.scrollTop}),Kn({x:_o.clientX,y:_o.clientY}),jt({x:_o.pageX,y:_o.pageY}),at({x:_o.offsetX,y:_o.offsetY}),u(!0),ls.onPress&&ls.onPress(_o);break}case it.SCROLL:if(_o.type===it.SCROLL&&!a.pressed)break;const Xo=na||$t(ws),qo=Xo instanceof Window?{x:Xo.scrollX,y:Xo.scrollY}:{x:Xo.scrollLeft,y:Xo.scrollTop};_o.scrollX=qo.x-a.initialScrollOffset.x,_o.scrollY=qo.y-a.initialScrollOffset.y,Ti({x:_o.scrollX,y:_o.scrollY});case it.POINTER_MOVE:if(_o.type===it.POINTER_MOVE&&!_o.originalEvent.isPrimary)break;case it.MOUSE_MOVE:case it.TOUCH_MOVE:if(_o.type===it.TOUCH_MOVE&&1!==_o.originalEvent.touches.length)break;case it.MOVE:if(a.pressed){if(a.autoScroll&&"scroll"!==_o.originalEvent.type&&ws){const eo=Nt(ws),Vr=na||$t(eo.elementFromPoint(_o.clientX,_o.clientY)),Ha=((a,f,i)=>{let u={x:0,y:0},I=50;return a-i.left<I?u.x=-(I-(a-i.left)):i.right-a<I&&(u.x=I-(i.right-a)),f-i.top<I?u.y=-(I-(f-i.top)):i.bottom-f<I&&(u.y=I-(i.bottom-f)),u})(_o.clientX,_o.clientY,((a,f)=>{let i=Ot(a);if(a===i)return{top:i.scrollTop,left:i.scrollLeft,bottom:i.scrollTop+f.innerHeight,right:i.scrollLeft+f.innerWidth};{const u=a.getBoundingClientRect();return{bottom:u.top+u.height,right:u.left+u.width,left:u.left,top:u.top}}})(Vr,(a=>{const f=Nt(a);return f&&f.defaultView||window})(ws)));K({x:sr&&!1===sr.horizontal?0:Ha.x,y:sr&&!1===sr.vertical?0:Ha.y}),I(0!==Ha.y||0!==Ha.x)}!a.drag&&ls.onDragStart&&ls.onDragStart(_o),ls.onDrag&&ls.onDrag(_o);const Ia=((a,f)=>{let i=0,u=null;return f.forEach(I=>{if(I&&a){const K=((a,f)=>{const i=a.getBoundingClientRect(),u=f.getBoundingClientRect(),I=Math.max(u.top,i.top),K=Math.max(u.left,i.left),at=Math.min(u.left+u.width,i.left+i.width),jt=Math.min(u.top+u.height,i.top+i.height);if(K<at&&I<jt){const ws=(at-K)*(jt-I);return Number((ws/(u.width*u.height+i.width*i.height-ws)).toFixed(4))}return 0})(a,I);K>i&&(i=K,u=I)}}),u})(pr||ws,a.drops.map(eo=>eo&&eo.element).filter(eo=>eo!==(pr||ws))),ba=a.drops.find(eo=>eo.element===Ia);ba&&Ia&&((a,f,i)=>{const u=i.getBoundingClientRect();return u.top<=f&&u.left<=a&&f<=u.bottom&&a<=u.right})(_o.clientX,_o.clientY,na||$t(Ia))&&Ia!==ws?(a.drop&&a.drop.element)!==Ia?(a.drop&&a.drop.onDragLeave&&a.drop.onDragLeave(_o),ba.onDragEnter&&ba.onDragEnter(_o)):ba.onDragOver&&ba.onDragOver(_o):a.drop&&a.drop.onDragLeave&&a.drop.onDragLeave(_o)}Kn({x:_o.clientX,y:_o.clientY}),jt({x:_o.pageX,y:_o.pageY});break;case it.POINTER_UP:if(_o.type===it.POINTER_UP&&!_o.originalEvent.isPrimary)break;case it.MOUSE_UP:case it.TOUCH_END:if(_o.type===it.TOUCH_END&&1!==_o.originalEvent.touches.length)break;case it.END:u(!1),I(!1),Ti({x:0,y:0}),ls.onRelease&&ls.onRelease(_o),a.drop&&a.drop.onDrop&&a.drop.onDrop(_o),a.drag&&ls.onDragEnd&&ls.onDragEnd(_o);break;case it.POINTER_CANCEL:case it.CONTEXT_MENU:case it.TOUCH_CANCEL:case it.CANCEL:u(!1),I(!1),Ti({x:0,y:0}),ls.onDragEnd&&ls.onDragEnd(_o),a.drop&&a.drop.onDragLeave&&a.drop.onDragLeave(_o)}};function _n(a,f){1&a&&e.GkF(0)}const Ln=function(a,f,i){return{$implicit:a,index:f,data:i}},Mn={name:"@progress/kendo-angular-utils",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310486,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Yn=(()=>{class a{constructor(){this.dragTarget=null,this.dropTarget=null,this.dragTargets=[],this.dropTargets=[],this.pressed=!1,this.ignoreMouse=!1,this.autoScroll=!0,this.isScrolling=!1,this.scrollableParent=null,this.autoScrollDirection={horizontal:!0,vertical:!0},this.initialClientOffset={x:0,y:0},this.clientOffset={x:0,y:0},this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},this.offset={x:0,y:0},this.pageOffset={x:0,y:0},this.velocity={x:0,y:0},this.dragIndex=null,this.dropIndex=null,this.callbacks={},this.scrollInterval=null,this.setCallbacks()}handleDragAndDrop(i){this.updateState(),an(this.state,i,this.callbacks)}setPressed(i){this.pressed=i}setScrolling(i){if(this.isScrolling=i,i){const u=$t(document.elementFromPoint(this.clientOffset.x,this.clientOffset.y));window.clearInterval(this.scrollInterval),this.scrollInterval=window.setInterval(()=>{((a,f)=>{if(!a)return;let i,u;a===Ot(a)?(i=document.body.scrollHeight>window.innerHeight,u=document.body.scrollWidth>window.innerWidth):(i=a.offsetHeight<=a.scrollHeight,u=a.offsetWidth<=a.scrollWidth);let K=a.scrollTop+f.y,jt=a.scrollLeft+f.x,Kn=u&&jt>0&&jt<a.scrollWidth;i&&K>0&&K<a.scrollHeight?a.scrollTop+=f.y:i&&K<0&&(a.scrollTop=0),Kn?a.scrollLeft+=f.x:u&&jt<0&&(a.scrollLeft=0)})(u,{x:this.velocity.x,y:this.velocity.y})},50)}else this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}setVelocity(i){this.velocity=i}setOffset(i){this.offset=i}setClientOffset(i){this.clientOffset=i}setPageOffset(i){this.pageOffset=i}setInitialClientOffset(i){this.initialClientOffset=i}setScrollOffset(i){this.scrollOffset=i}setInitialScrollOffset(i){this.initialScrollOffset=i}updateState(){this.state={drag:this.dragTarget,drop:this.dropTarget,drags:this.dragTargets,drops:this.dropTargets,pressed:this.pressed,ignoreMouse:this.ignoreMouse,autoScroll:this.autoScroll,isScrolling:this.isScrolling,scrollableParent:this.scrollableParent,autoScrollDirection:this.autoScrollDirection,initialClientOffset:this.initialClientOffset,clientOffset:this.clientOffset,initialScrollOffset:this.initialScrollOffset,scrollOffset:this.scrollOffset,offset:this.offset,pageOffset:this.pageOffset,velocity:this.velocity}}setCallbacks(){this.callbacks={onVelocityChange:this.setVelocity.bind(this),onOffsetChange:this.setOffset.bind(this),onClientOffsetChange:this.setClientOffset.bind(this),onPageOffsetChange:this.setPageOffset.bind(this),onInitialClientOffsetChange:this.setInitialClientOffset.bind(this),onScrollOffsetChange:this.setScrollOffset.bind(this),onInitialScrollOffsetChange:this.setInitialScrollOffset.bind(this),onIsPressedChange:this.setPressed.bind(this),onIsScrollingChange:this.setScrolling.bind(this)}}ngOnDestroy(){this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();function gi(a){return 9===a.nodeType}const qn=(a,f)=>({event:a,payload:f}),Si=a=>null!=a;function Ni(a,f){if(a.closest)return a.closest(f);const i=Element.prototype.matches?(I,K)=>I.matches(K):(I,K)=>I.msMatchesSelector(K);let u=a;for(;u&&!gi(u);){if(i(u,f))return u;u=u.parentNode}}const ot=(a,f,i)=>{Object.keys(i).forEach(I=>{a.setStyle(f,I,i[I])})},en=["pointerdown","mousedown","touchstart"],lt=["pointermove","mousemove","touchmove"],In=["pointerup","pointercancel","mouseup","contextmenu","touchend","touchcancel"];let rn=(()=>{class a{constructor(i){this.element=i,this.pointerEvents="none"}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-draghint"]],hostVars:2,hostBindings:function(i,u){2&i&&e.Udp("pointer-events",u.pointerEvents)},inputs:{template:"template",directive:"directive",targetIndex:"targetIndex",contextData:"contextData"},decls:1,vars:6,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,u){1&i&&e.YNc(0,_n,1,0,"ng-container",0),2&i&&e.Q6J("ngTemplateOutlet",u.template)("ngTemplateOutletContext",e.kEZ(2,Ln,u.directive,u.targetIndex,u.contextData))},dependencies:[Ue.tP],encapsulation:2}),a})();class Qt{constructor(f){Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class yi{constructor(f){Object.assign(this,f)}}class Li extends o.wY{constructor(f){super(),Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class An{constructor(f){Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class Ht extends o.wY{constructor(f){super(),Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class Pn{constructor(f){Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class Un{constructor(f){Object.assign(this,f)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dropTarget}}let bi=!1,Zn=!1,mn=(()=>{class a{constructor(i,u,I,K,at,jt){this.wrapper=i,this.ngZone=u,this.renderer=I,this.service=K,this.viewContainer=at,this.cdr=jt,this.hint=!1,this.dragDelay=0,this.threshold=0,this.mode="auto",this.dragReady=new e.vpe,this.press=new e.vpe,this.dragStart=new e.vpe,this.drag=new e.vpe,this.release=new e.vpe,this.dragEnd=new e.vpe,this.currentDragTarget=null,this.dragTimeout=null,this.pressed=!1,this.dragStarted=!1,this.hintComponent=null,this.defaultHint=null,this.currentDragTargetElement=null,this.scrollableParent=null,this.previousDragTargets=[],this.initialPosition={x:0,y:0},this.position={x:0,y:0},this.positionsMap=new Map,this._dragTargetFilter=null,this._dragDisabled=!1,this._dragData=()=>null,this._dragTargetId=()=>null,(0,ln.s)(Mn)}set dragTargetFilter(i){this._dragTargetFilter=i,this.dragDisabled||this.initializeDragTargets()}get dragTargetFilter(){return this._dragTargetFilter}set dragTargetId(i){if(e.X6Q&&"function"!=typeof i)throw new Error(`dragTargetId must be a function, but received ${JSON.stringify(i)}.`);this._dragTargetId=i}get dragTargetId(){return this._dragTargetId}set dragData(i){if(e.X6Q&&"function"!=typeof i)throw new Error(`dragData must be a function, but received ${JSON.stringify(i)}.`);this._dragData=i}get dragData(){return this._dragData}set dragDisabled(i){this._dragDisabled=i,i?(this.clearPreviousTargets(),this.unsubscribe(),Si(this.hintElem)&&this.destroyHint()):((Si(this.wrapper)||Si(this.currentDragTarget))&&this.subscribe(),this.initializeDragTargets())}get dragDisabled(){return this._dragDisabled}notify(){this.cdr.detectChanges(),this.initializeDragTargets()}get allDragTargets(){return this.queryHost(this.dragTargetFilter)}get dragHandles(){return this.isHandleSelectorValid?this.queryHost(this.dragHandle):null}get hintTemplate(){return Si(this.hint)&&"object"==typeof this.hint?this.hint.hintTemplate:null}ngAfterViewInit(){const i=Si(this.wrapper)||Si(this.currentDragTarget);!this.dragDisabled&&i&&this.subscribe(),!this.dragDisabled&&this.initializeDragTargets()}onPointerDown(i){if(Si(this.dragHandles)&&!this.isDragHandle(i.target))return;const u=qn(i,this.currentDragTarget);this.service.handleDragAndDrop(u),this.subscribe()}onPointerMove(i){i.preventDefault();const u=qn(i,this.currentDragTarget);this.service.handleDragAndDrop(u)}onPointerUp(i){i.preventDefault();const u=qn(i,this.currentDragTarget);this.service.handleDragAndDrop(u),this.ngZone.runOutsideAngular(()=>{this.subscribe()})}handlePress(i){this.dragDelay>0?this.dragTimeout=window.setTimeout(()=>{this.pressed=!0,this.emitZoneAwareEvent("dragReady",i)},this.dragDelay):this.pressed=!0,this.currentDragTargetElement=Ni(i.originalEvent.target,this.dragTargetFilter),this.currentDragTarget.element=this.currentDragTargetElement,this.service.dragIndex=this.getDragIndex(),this.scrollableParent=this.hintTemplate?document.body:this.currentDragTargetElement?$t(this.currentDragTargetElement):null,this.emitZoneAwareEvent("press",i)}handleDragStart(i){this.pressed?(bi=this.emitZoneAwareEvent("dragStart",i).isDefaultPrevented(),!bi&&(this.position=this.positionsMap.has(this.currentDragTargetElement)?this.positionsMap.get(this.currentDragTargetElement):{x:0,y:0},this.hint?(this.createHint(),"auto"===this.mode&&this.renderer.setStyle(this.currentDragTargetElement,"opacity","0.7")):this.initialPosition={x:i.clientX-this.position.x,y:i.clientY-this.position.y},this.emitZoneAwareEvent("dragStart",i),this.dragStarted=0===this.threshold,this.service.dragTarget=this.currentDragTarget,this.service.dragTargetId=this.dragTargetId(this.currentDragTargetElement,this.service.dragIndex),this.service.dragData=this.dragData(this.currentDragTargetElement,this.service.dragTargetId,this.service.dragIndex))):this.dragTimeout&&(window.clearTimeout(this.dragTimeout),this.dragTimeout=null)}handleDrag(i){!this.pressed||bi||(Zn=this.emitZoneAwareEvent("drag",i).isDefaultPrevented(),!Zn&&("auto"===this.mode?this.performDrag(i):this.dragStarted=!0,this.dragStarted&&this.emitZoneAwareEvent("drag",i)))}handleRelease(i){this.dragStarted&&this.positionsMap.set(this.currentDragTargetElement,this.position),this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null,this.pressed=!1),this.emitZoneAwareEvent("release",i)}handleDragEnd(i){if(this.dragStarted){if("auto"===this.mode){const u=Si(this.service.dropTarget)&&!(0,o.r3)(this.service.dropTarget?.element,this.service.dragTarget?.element,!0),I=this.hint?this.hintElem:this.currentDragTargetElement;(u||this.service.dropTargets.length>0&&Si(I))&&(this.renderer.removeStyle(I,"transform"),ot(this.renderer,I,{transition:"transform .3s ease-in-out"}),this.positionsMap.delete(this.currentDragTargetElement))}this.hint&&Si(this.hintElem)&&(this.destroyHint(),"auto"===this.mode&&this.renderer.removeStyle(this.currentDragTargetElement,"opacity")),this.service.dragTarget=null,this.service.dragIndex=null,this.currentDragTarget.element=null,this.emitZoneAwareEvent("dragEnd",i),!bi&&!Zn&&(this.dragStarted=!1)}}get nativeElement(){return this.wrapper.nativeElement}get hintElem(){return this.hintTemplate&&Si(this.hintComponent)?this.hintComponent.instance.element.nativeElement:this.defaultHint}unsubscribe(){this.pointerDownSubscription&&this.pointerDownSubscription.unsubscribe(),this.pointerMoveSubscription&&this.pointerMoveSubscription.unsubscribe(),this.pointerUpSubscription&&this.pointerUpSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}subscribe(){this.ngZone.runOutsideAngular(()=>{if(this.unsubscribe(),!(0,o.X_)()||!Si(this.wrapper))return;const i=this.nativeElement;if(this.service.pressed){const u=lt.map(K=>(0,P.R)(document,K)),I=In.map(K=>(0,P.R)(document,K));this.pointerMoveSubscription=(0,T.T)(...u).pipe((0,te.h)(()=>""!==this.dragTargetFilter)).subscribe(K=>this.onPointerMove(K)),this.pointerUpSubscription=(0,T.T)(...I).subscribe(K=>this.onPointerUp(K)),Si(this.scrollableParent)&&(this.scrollSubscription=(0,P.R)(this.scrollableParent,"scroll").subscribe(K=>this.onPointerMove(K)))}else{const u=en.map(I=>(0,P.R)(i,I));this.pointerDownSubscription=(0,T.T)(...u).pipe((0,te.h)(()=>""!==this.dragTargetFilter)).subscribe(I=>{Ni(I.target,this.isHandleSelectorValid?this.dragHandle:this.dragTargetFilter)&&this.onPointerDown(I)})}})}emitZoneAwareEvent(i,u){const I={dragTarget:this.currentDragTargetElement,dragEvent:u,dragTargetIndex:this.service.dragIndex,dragTargetId:this.dragTargetId(this.currentDragTargetElement,this.service.dragIndex)};let K;switch(this.hint&&Si(this.hintElem)&&(I.hintElement=this.hintElem),i){case"dragReady":K=new yi(I);break;case"press":K=new Qt(I);break;case"dragStart":K=new Li(I);break;case"drag":K=new Ht(I);break;case"release":K=new Pn(I);break;case"dragEnd":K=new An(I)}return this.ngZone.run(()=>{this[i].emit(K)}),K}createHint(){(0,o.X_)()&&Si(this.wrapper)&&(Si(this.hint)&&"object"==typeof this.hint&&Si(this.hint.hintTemplate)?this.createCustomHint():this.createDefaultHint(),this.currentDragTarget.hint=this.hintElem,"object"==typeof this.hint&&Si(this.hint.appendTo)?this.hint.appendTo.element.nativeElement.appendChild(this.hintElem):document.body.appendChild(this.hintElem))}createDefaultHint(){this.defaultHint=this.currentDragTargetElement.cloneNode(!0),"object"==typeof this.hint&&Si(this.hint.hintClass)&&(0,o.qr)(this.hint.hintClass).forEach(u=>this.renderer.addClass(this.defaultHint,u))}createCustomHint(){this.hintComponent=Si(this.hint.appendTo)?this.hint.appendTo.createComponent(rn):this.viewContainer.createComponent(rn),this.hintComponent.instance.template=this.hintTemplate,this.hintComponent.instance.directive=this,this.hintComponent.instance.targetIndex=this.service.dragIndex,this.hintComponent.instance.contextData=this.dragData(this.currentDragTargetElement,this.service.dragIndex),this.hintComponent.changeDetectorRef.detectChanges()}destroyHint(){Si(this.hintTemplate)?(this.hintComponent.destroy(),this.hintComponent.changeDetectorRef.detectChanges(),this.hintComponent=null):(document.body.removeChild(this.defaultHint),this.defaultHint=null),this.currentDragTarget.hint=null}getDragIndex(){return this.allDragTargets.indexOf(this.currentDragTargetElement)}initializeDragTargets(){Si(this.allDragTargets)?(this.allDragTargets.forEach(i=>{this.service.dragTargets.find(I=>I.element===i)||this.service.dragTargets.push({element:i,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})}),this.previousDragTargets.length>0&&this.previousDragTargets.filter(u=>!this.allDragTargets.includes(u)).forEach(u=>{const I=this.service.dragTargets.findIndex(K=>K.element===u);I>-1&&this.service.dragTargets.splice(I,1)}),this.previousDragTargets=this.allDragTargets,this.currentDragTarget={element:null,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)},this.setCursorStyle()):this.previousDragTargets.length>0&&this.clearPreviousTargets()}isDragHandle(i){return this.dragHandles.some(u=>(0,o.r3)(u,i,!0))}get isHandleSelectorValid(){return Si(this.dragHandle)&&""!==this.dragHandle}setCursorStyle(){(0,o.X_)()&&(Si(this.dragHandles)&&this.dragHandles.length>0?this.dragHandles.forEach(i=>{this.renderer.addClass(i,"k-cursor-pointer")}):this.allDragTargets.forEach(i=>{this.renderer.addClass(i,"k-cursor-pointer")}))}queryHost(i){if(Si(i)&&""!==i)return Array.from(this.nativeElement.querySelectorAll(i))}clearPreviousTargets(){this.previousDragTargets.forEach(i=>{const u=this.service.dragTargets.findIndex(I=>I.element===i);u>-1&&this.service.dragTargets.splice(u,1)}),this.previousDragTargets=[]}performDrag(i){const u=this.hint?this.hintElem:this.currentDragTargetElement;this.position=this.calculatePosition(u,i);const I=Math.abs(this.position.x)<this.threshold&&Math.abs(this.position.y)<this.threshold;if(!this.dragStarted&&I)return;!this.dragStarted&&this.threshold>0&&(this.dragStarted=!0);const K=this.getStylesPerElement(u);ot(this.renderer,u,K)}calculatePosition(i,u){let I=null;return I=i===this.hintElem?{x:u.clientX,y:u.clientY}:{x:u.clientX-this.initialPosition.x+u.scrollX,y:u.clientY-this.initialPosition.y+u.scrollY},I}getStylesPerElement(i){if(i===this.hintElem){const u={x:this.position.x-this.initialPosition.x,y:this.position.y-this.initialPosition.y};return{top:`${u.y}px`,left:`${u.x}px`,transition:"none",position:"absolute",zIndex:1999}}return{transform:`translate(${this.position.x}px, ${this.position.y}px)`,transition:"none"}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Yn),e.Y36(e.s_b),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoDragTargetContainer",""]],inputs:{hint:"hint",dragTargetFilter:"dragTargetFilter",dragHandle:"dragHandle",dragDelay:"dragDelay",threshold:"threshold",dragTargetId:"dragTargetId",dragData:"dragData",dragDisabled:"dragDisabled",mode:"mode"},outputs:{dragReady:"dragReady",press:"press",dragStart:"dragStart",drag:"drag",release:"release",dragEnd:"dragEnd"},exportAs:["kendoDragTargetContainer"]}),a})(),ze=(()=>{class a{constructor(i,u,I,K){this.service=i,this.element=u,this.ngZone=I,this.cdr=K,this.dragEnter=new e.vpe,this.dragOver=new e.vpe,this.dragLeave=new e.vpe,this.drop=new e.vpe,this.currentDropTarget=null,this.currentDropTargetElement=null,this.previousDropTargets=[],this._dropTargetFilter=null,this._dropDisabled=!1,(0,ln.s)(Mn)}set dropTargetFilter(i){this._dropTargetFilter=i,this.dropDisabled||this.initializeDropTargets()}get dropTargetFilter(){return this._dropTargetFilter}set dropDisabled(i){i?this.clearPreviousTargets():this.initializeDropTargets()}get dropDisabled(){return this._dropDisabled}notify(){this.cdr.detectChanges(),this.initializeDropTargets()}get nativeElement(){return this.element.nativeElement}ngAfterViewInit(){!this.dropDisabled&&this.initializeDropTargets()}get allDropTargets(){if(Si(this.dropTargetFilter)&&""!==this.dropTargetFilter)return Array.from(this.nativeElement.querySelectorAll(this.dropTargetFilter))}handleDragEnter(i){this.service.dragTarget&&(this.currentDropTargetElement=((a,f)=>{let i=0,u=null;return this.allDropTargets.forEach(I=>{if(I&&a){const K=((a,f)=>{const i=a.getBoundingClientRect(),u=f.getBoundingClientRect(),I=Math.max(u.top,i.top),K=Math.max(u.left,i.left),at=Math.min(u.left+u.width,i.left+i.width),jt=Math.min(u.top+u.height,i.top+i.height);if(K<at&&I<jt){const ws=(at-K)*(jt-I);return Number((ws/(u.width*u.height+i.width*i.height-ws)).toFixed(4))}return 0})(a,I);K>i&&(i=K,u=I)}}),u})(i.originalEvent.target),this.currentDropTarget=this.service.dropTargets.find(I=>I.element===this.currentDropTargetElement),this.service.dropTarget=this.currentDropTarget,this.service.dropIndex=this.getDropIndex(),this.emitZoneAwareEvent("dragEnter",i))}handleDragLeave(i){this.service.dropTarget=null,this.service.dragTarget&&this.emitZoneAwareEvent("dragLeave",i)}handleDragOver(i){this.service.dragTarget&&this.emitZoneAwareEvent("dragOver",i)}handleDrop(i){this.service.dragTarget&&(this.emitZoneAwareEvent("drop",i),this.currentDropTarget=null,this.currentDropTargetElement=null,this.service.dropIndex=null)}initializeDropTargets(){Si(this.allDropTargets)?(this.allDropTargets.forEach(i=>{this.service.dropTargets.find(I=>I.element===i)||this.service.dropTargets.push({element:i,onDragEnter:this.handleDragEnter.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDragOver:this.handleDragOver.bind(this),onDrop:this.handleDrop.bind(this)})}),this.previousDropTargets.length>0&&this.previousDropTargets.filter(u=>!this.allDropTargets.includes(u)).forEach(u=>{const I=this.service.dropTargets.findIndex(K=>K.element===u);I>-1&&this.service.dropTargets.splice(I,1)}),this.previousDropTargets=this.allDropTargets):this.previousDropTargets.length>0&&this.clearPreviousTargets()}emitZoneAwareEvent(i,u){const I={dragTarget:this.service.dragTarget,dropTarget:this.currentDropTargetElement,dragData:this.service.dragData,dragEvent:u,dropTargetIndex:this.service.dropIndex};Si(this.service.dragTarget?.hint)&&(I.hintElement=this.service.dragTarget.hint);const K=new Un(I);this.ngZone.run(()=>{this[i].emit(K)})}getDropIndex(){const i=this.nativeElement.querySelectorAll(this.dropTargetFilter);return Array.from(i).indexOf(this.currentDropTargetElement)}clearPreviousTargets(){this.previousDropTargets.forEach(i=>{const u=this.service.dropTargets.findIndex(I=>I.element===i);u>-1&&this.service.dropTargets.splice(u,1)}),this.previousDropTargets=[]}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Yn),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoDropTargetContainer",""]],inputs:{dropTargetFilter:"dropTargetFilter",dropDisabled:"dropDisabled"},outputs:{dragEnter:"dragEnter",dragOver:"dragOver",dragLeave:"dragLeave",drop:"drop"},exportAs:["kendoDropTargetContainer"]}),a})(),ht=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[Ue.ez]]}),a})();var gt=_(16010),Lt=_(78833),kt=_(94023),vn=_(17115),jn=_(11291),St=_(28942),De=_(1266),ie=_(37340),je=_(99912),pt=_(87160);_(68400),_(75950),_(7655);let bs={toString:a=>a};function Ur(a,f){let i="";if(null!=a)if(Array.isArray(a))for(let u=0;u<a.length;++u)i+=f(a[u],u);else"object"==typeof a&&Object.keys(a).forEach((u,I)=>{i+=f(a[u],u,I)});return i}_(5152),function $s(a,f,i){return(1461*(a+4800+((f-13)/12|0))/4|0)+(367*(f-1-12*((f-13)/12|0))/12|0)-(3*((a+4900+((f-13)/12|0))/100|0)/4|0)+i-32075}(1900,0,-1),JSON.parse.bind(JSON);const Uc=({ref:a,columns:f,generators:i})=>`\n<autoFilter ref="${a}">\n  ${Ur(f,u=>`\n    <filterColumn colId="${u.index}">\n      ${i[u.filter](u)}\n    </filterColumn>\n  `)}\n</autoFilter>`,tl=({logic:a,criteria:f})=>`\n<customFilters ${"and"===a?'and="1"':""}>\n${Ur(f,i=>{let u=gl.customOperator(i);return`<customFilter ${u?`operator="${u}"`:""} val="${gl.customValue(i)}"/>`})}\n</customFilters>`,hl=({type:a})=>`<dynamicFilter type="${gl.dynamicFilterType(a)}" />`,Wl=({type:a,value:f})=>`<top10 percent="${/percent$/i.test(a)?1:0}"\n       top="${/^top/i.test(a)?1:0}"\n       val="${f}" />`,Xl=({blanks:a,values:f})=>`<filters ${a?'blank="1"':""}>\n    ${Ur(f,i=>`\n      <filter val="${i}" />`)}\n  </filters>`;function gl(a){return Uc({ref:a.ref,columns:a.columns,generators:{custom:tl,dynamic:hl,top:Wl,value:Xl}})}gl.customOperator=function(a){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[a.operator.toLowerCase()]},gl.customValue=function(a){function f(i){return i.replace(/([*?])/g,"~$1")}switch(a.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return f(a.value)+"*";case"endswith":case"doesnotendwith":return"*"+f(a.value);case"contains":case"doesnotcontain":return"*"+f(a.value)+"*";default:return a.value}},gl.dynamicFilterType=function(a){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[a.toLowerCase()]||a};var ta=_(38811);function Ya(a,f){}function yl(a,f){if(1&a&&e.YNc(0,Ya,0,0,"ng-template",1),2&a){const i=e.oxw();e.Q6J("ngTemplateOutlet",i.toolbarTemplateRef)("ngTemplateOutletContext",i.context)}}function ft(a,f){if(1&a&&(e.TgZ(0,"option",8),e._uU(1,"... "),e.qZA()),2&a){const i=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",i.pageLabel(i.start-1))}}(class Es{static register(f){bs=f}static toString(f,i){return bs.toString(f,i)}}).register({toString:ta.BB});const fe=function(a){return{"k-selected":a}};function ge(a,f){if(1&a&&(e.TgZ(0,"option",9),e._uU(1),e.qZA()),2&a){const i=f.$implicit,u=e.oxw();e.Q6J("value",i.toString())("selected",i===u.currentPage)("ngClass",e.VKq(6,fe,u.currentPage===i)),e.uIk("aria-label",u.pageLabel(i))("aria-current",u.currentPage===i?"page":void 0),e.xp6(1),e.hij(" ",i," ")}}function He(a,f){if(1&a&&(e.TgZ(0,"option",10),e._uU(1,"... "),e.qZA()),2&a){const i=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",i.pageLabel(i.end+1))}}function Bt(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.changePage(I.start-2))}),e._uU(1,"..."),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("size",i.size),e.uIk("aria-label",i.pageLabel(i.start-1))("title",i.pageLabel(i.start-1))}}function bn(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){const K=e.CHM(i).$implicit,at=e.oxw();return e.KtG(at.changePage(K-1))}),e._uU(1),e.qZA()}if(2&a){const i=f.$implicit,u=e.oxw();e.Q6J("size",u.size)("selected",u.currentPage===i),e.uIk("aria-label",u.pageLabel(i))("title",u.pageLabel(i))("aria-current",u.currentPage===i?"page":void 0),e.xp6(1),e.hij(" ",i," ")}}function Jn(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.changePage(I.end))}),e._uU(1,"..."),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("size",i.size),e.uIk("aria-label",i.pageLabel(i.end+1))("title",i.pageLabel(i.end+1))}}const ci=function(a,f){return{"k-picker-sm":a,"k-picker-md":f}},Oi=function(a,f){return{keydown:a,focusout:f}};function es(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onInnerFocusIn(I,"start"))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("tabindex",i.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function Cs(a,f){if(1&a&&e.GkF(0,5),2&a){const i=e.oxw();e.Q6J("ngTemplateOutlet",i.template.templateRef)("ngTemplateOutletContext",i.templateContext)}}function _e(a,f){if(1&a&&e._UZ(0,"kendo-pager-prev-buttons",9),2&a){const i=e.oxw(2);e.Q6J("size",i.size)}}function Ne(a,f){if(1&a&&e._UZ(0,"kendo-pager-numeric-buttons",10),2&a){const i=e.oxw(2);e.Q6J("size",i.size)("buttonCount",i.settings.buttonCount)}}function v(a,f){if(1&a&&e._UZ(0,"kendo-pager-input",9),2&a){const i=e.oxw(2);e.Q6J("size",i.size)}}function D(a,f){if(1&a&&e._UZ(0,"kendo-pager-next-buttons",9),2&a){const i=e.oxw(2);e.Q6J("size",i.size)}}function W(a,f){1&a&&e._UZ(0,"kendo-pager-info")}function L(a,f){if(1&a&&e._UZ(0,"kendo-pager-page-sizes",11,12),2&a){const i=e.oxw(2);e.Q6J("size",i.size)("pageSizes",i.settings.pageSizes)}}function Me(a,f){if(1&a&&(e.ynx(0),e.YNc(1,_e,1,1,"kendo-pager-prev-buttons",6),e.YNc(2,Ne,1,2,"kendo-pager-numeric-buttons",7),e.YNc(3,v,1,1,"kendo-pager-input",6),e.YNc(4,D,1,1,"kendo-pager-next-buttons",6),e.YNc(5,W,1,0,"kendo-pager-info",2),e.YNc(6,L,2,2,"kendo-pager-page-sizes",8),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.settings.previousNext),e.xp6(1),e.Q6J("ngIf","numeric"===i.settings.type),e.xp6(1),e.Q6J("ngIf","input"===i.settings.type),e.xp6(1),e.Q6J("ngIf",i.settings.previousNext),e.xp6(1),e.Q6J("ngIf",i.settings.info),e.xp6(1),e.Q6J("ngIf",i.settings.pageSizes)}}function tn(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onInnerFocusIn(I,"end"))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("tabindex",i.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function oi(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-resize-sensor",13),e.NdJ("resize",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.resizeHandler())}),e.qZA()}}const Vi=function(){return{lastTarget:!0}};function hs(a,f){if(1&a&&(e.TgZ(0,"div",2),e._uU(1),e.qZA()),2&a){const i=e.oxw();e.Q6J("context",e.DdM(2,Vi)),e.xp6(1),e.hij(" ",i.text," ")}}const Eo=function(a,f){return{field:a,type:"groupIndicator",hint:f}};function jo(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-chip",5),e.NdJ("contentClick",function(){const K=e.CHM(i).$implicit,at=e.oxw(2);return e.KtG(at.directionChange(K))})("remove",function(){const K=e.CHM(i).$implicit,at=e.oxw(2);return e.KtG(at.remove(K))}),e.qZA()}if(2&a){const i=f.$implicit,u=f.index,I=e.oxw(2);e.Q6J("title",I.getTitle(i))("enableDrag",!0)("context",e.WLB(6,Eo,i.field,I.groupTitles[u]))("label",I.groupTitles[u])("removable",!0)("icon",I.getDirectionIcon(i))}}function gr(a,f){if(1&a&&(e.TgZ(0,"kendo-chiplist",3),e.YNc(1,jo,1,9,"kendo-chip",4),e.qZA()),2&a){const i=e.oxw();e.Q6J("navigable",i.navigable),e.xp6(1),e.Q6J("ngForOf",i.groups)}}function Hr(a,f){1&a&&(e.TgZ(0,"div",2),e._uU(1,"\xa0"),e.qZA()),2&a&&e.Q6J("context",e.DdM(1,Vi))}const Yo=["kendoGridColGroup",""];function wa(a,f){1&a&&e._UZ(0,"col"),2&a&&e.ekj("k-group-col",!0)}function oc(a,f){1&a&&e._UZ(0,"col"),2&a&&e.ekj("k-hierarchy-col",!0)}function Al(a,f){if(1&a&&e._UZ(0,"col"),2&a){const i=f.$implicit,u=e.oxw();e.Udp("width",i.width,"px"),e.ekj("k-sorted",u.isSorted(u.getColumnComponent(i)))}}const ll=["*"];function Zl(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.logicChange(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("filterMenuDropDownLabel",i.filterMenuDropDownLabel)("data",i.logicOperators)("valuePrimitive",!0)("value",null==i.filter?null:i.filter.logic)}}function Co(a,f){if(1&a&&e._UZ(0,"kendo-grid-string-filter-menu-input",4),2&a){const i=e.oxw();e.Q6J("operators",i.operators)("currentFilter",i.secondFilter)("filterService",i.filterService)("column",i.column)("filter",i.filter)("menuTabbingService",i.menuTabbingService)}}function Ao(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.logicChange(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("filterMenuDropDownLabel",i.filterMenuDropDownLabel)("data",i.logicOperators)("valuePrimitive",!0)("value",null==i.filter?null:i.filter.logic)}}function Wo(a,f){if(1&a&&e._UZ(0,"kendo-grid-numeric-filter-menu-input",4),2&a){const i=e.oxw();e.Q6J("operators",i.operators)("currentFilter",i.secondFilter)("filterService",i.filterService)("column",i.column)("filter",i.filter)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step)("menuTabbingService",i.menuTabbingService)}}function tr(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.logicChange(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("filterMenuDropDownLabel",i.filterMenuDropDownLabel)("data",i.logicOperators)("valuePrimitive",!0)("value",null==i.filter?null:i.filter.logic)}}function Ra(a,f){if(1&a&&e._UZ(0,"kendo-grid-date-filter-menu-input",4),2&a){const i=e.oxw();e.Q6J("operators",i.operators)("currentFilter",i.secondFilter)("filterService",i.filterService)("column",i.column)("filter",i.filter)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("format",i.format)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("min",i.min)("max",i.max)("weekNumber",i.weekNumber)("menuTabbingService",i.menuTabbingService)}}function pl(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"li")(1,"input",2,3),e.NdJ("change",function(){const K=e.CHM(i).$implicit,at=e.MAs(2),jt=e.oxw();return e.KtG(jt.onChange(K.value,at))})("keydown.shift.tab",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onShiftTab(I))}),e.qZA(),e.TgZ(3,"label",4),e._uU(4),e.qZA()()}if(2&a){const i=f.$implicit,u=e.oxw();e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("name",u.idPrefix)("checked",u.isSelected(i.value)),e.uIk("id",u.radioId(i.value)),e.xp6(2),e.uIk("for",u.radioId(i.value)),e.xp6(1),e.Oqu(i.text)}}const sl=["resetButton"],Dl=["filterButton"];function ra(a,f){if(1&a&&(e.ynx(0),e.GkF(1,9),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("filterService",i.childService)("column",i.column)("filter",i.childFilter)("menuTabbingService",i.menuTabbingService)}}function mc(a,f){}function El(a,f){if(1&a&&e.YNc(0,mc,0,0,"ng-template",11),2&a){const i=e.oxw(2);e.Q6J("ngTemplateOutlet",i.column.filterMenuTemplateRef)("ngTemplateOutletContext",i.templateContext)}}function va(a,f){if(1&a&&(e.ynx(0),e.YNc(1,El,1,2,null,10),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.column.filterMenuTemplateRef)}}const Mr=["anchor"],Ba=["template"];function Mc(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",4),e.NdJ("close",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.close())})("keydown.escape",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.close())})("keydown.enter",function(I){return I.stopImmediatePropagation()}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("column",i.column)("filter",i.filter)}}function gc(a,f){if(1&a&&(e.TgZ(0,"div",3),e.GkF(1,4),e._UZ(2,"div"),e.qZA()),2&a){const i=e.oxw();e.Udp("overflow","hidden"),e.Q6J("@state",i.contentState),e.xp6(1),e.Q6J("ngTemplateOutlet",i.contentTemplate.templateRef)}}function bl(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-lock",3),e.NdJ("keydown.tab",function(I){e.CHM(i);const K=e.oxw(2);return e.KtG(K.onTab(I,!K.showStick))}),e.qZA()}if(2&a){const i=e.oxw(2);e.Q6J("service",i.service)}}function qc(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-stick",3),e.NdJ("keydown.tab",function(I){e.CHM(i);const K=e.oxw(2);return e.KtG(K.onTab(I,!0))}),e.qZA()}if(2&a){const i=e.oxw(2);e.Q6J("service",i.service)}}function Hc(a,f){if(1&a&&(e.YNc(0,bl,1,1,"kendo-grid-columnmenu-lock",2),e.YNc(1,qc,1,1,"kendo-grid-columnmenu-stick",2)),2&a){const i=e.oxw();e.Q6J("ngIf",i.showLock),e.xp6(1),e.Q6J("ngIf",i.showStick)}}const Nu=["applyButton"];function Kl(a,f){if(1&a&&(e.TgZ(0,"label",3),e._UZ(1,"input",4),e.TgZ(2,"span",5),e._uU(3),e.qZA()()),2&a){const i=f.$implicit,u=f.index,I=e.oxw();e.xp6(1),e.Q6J("checked",!i.hidden)("disabled",I.isDisabled(i)),e.uIk("data-index",u),e.xp6(2),e.Oqu(i.displayTitle)}}function cl(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"div",6)(1,"button",7),e.NdJ("click",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.cancelChanges())}),e._uU(2),e.qZA(),e.TgZ(3,"button",8,9),e.NdJ("keydown.tab",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onTab(I))})("click",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.applyChanges())}),e._uU(5),e.qZA()()}if(2&a){const i=e.oxw();e.Q6J("ngClass",i.actionsClass),e.xp6(2),e.Oqu(i.resetText),e.xp6(3),e.Oqu(i.applyText)}}function ec(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnlist",2),e.NdJ("apply",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onApply(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("applyText",i.localization.get("columnsApply"))("resetText",i.localization.get("columnsReset"))("columns",i.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",i.actionsClass)("isLast",i.isLast)("isExpanded",i.expanded)("service",i.service)}}function _u(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",2),e.NdJ("keydown.shift.tab",function(I){return I.stopImmediatePropagation()})("close",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.close())}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("column",i.service.column)("menuTabbingService",i.service.menuTabbingService)("filter",i.service.filter)("actionsClass",i.actionsClass)("isLast",i.isLast)("isExpanded",i.expanded)}}function Wa(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.autoSizeColumn())}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("text",i.localization.get("autosizeThisColumn"))("svgIcon",i.maxWidthIcon)}}function Lu(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.autoSizeAllColumns())}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("text",i.localization.get("autosizeAllColumns"))("svgIcon",i.displayInlineBlockIcon)}}const vu=function(a,f){return{service:a,column:f}};function Xu(a,f){if(1&a&&e.GkF(0,5),2&a){const i=e.oxw(),u=e.MAs(6);e.Q6J("ngTemplateOutlet",i.column.columnMenuTemplateRef||i.columnMenuTemplate||u)("ngTemplateOutletContext",e.WLB(2,vu,i.service,i.column))}}function le(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-sort",13,14),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",i)("service",u.service)}}function Rt(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-lock",13,15),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",i)("service",u.service)}}function E(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-stick",13,16),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",i)("service",u.service)}}function de(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-position",17,18),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("showLock",u.hasLock)("showStick",u.hasStick)("kendoGridColumnMenuItem",i)("service",u.service)("expanded",u.expandedPosition)}}function zt(a,f){1&a&&e._UZ(0,"span",19),2&a&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function En(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-chooser",20,21),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",i)("service",u.service)("expanded",u.expandedColumns)}}function Bi(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-autosize-column",22,23),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("service",u.service)("kendoGridColumnMenuItem",i)("column",u.column)}}function Ts(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-autosize-all-columns",24,25),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("service",u.service)("kendoGridColumnMenuItem",i)}}function fs(a,f){1&a&&e._UZ(0,"span",19),2&a&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function Do(a,f){if(1&a&&e._UZ(0,"kendo-grid-columnmenu-filter",20,26),2&a){const i=e.MAs(1),u=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",i)("service",u.service)("expanded",u.expandedFilter)}}function Qo(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-container",6),e.NdJ("keydown.escape",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.close())})("keydown.enter",function(I){return I.stopImmediatePropagation()}),e.YNc(1,le,2,2,"kendo-grid-columnmenu-sort",7),e.YNc(2,Rt,2,2,"kendo-grid-columnmenu-lock",7),e.YNc(3,E,2,2,"kendo-grid-columnmenu-stick",7),e.YNc(4,de,2,5,"kendo-grid-columnmenu-position",8),e.YNc(5,zt,1,2,"span",9),e.YNc(6,En,2,3,"kendo-grid-columnmenu-chooser",10),e.YNc(7,Bi,2,3,"kendo-grid-columnmenu-autosize-column",11),e.YNc(8,Ts,2,2,"kendo-grid-columnmenu-autosize-all-columns",12),e.YNc(9,fs,1,2,"span",9),e.YNc(10,Do,2,3,"kendo-grid-columnmenu-filter",10),e.qZA()}if(2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.hasSort),e.xp6(1),e.Q6J("ngIf",i.hasLock&&!i.hasPosition),e.xp6(1),e.Q6J("ngIf",i.hasStick&&!i.hasPosition),e.xp6(1),e.Q6J("ngIf",i.hasPosition),e.xp6(1),e.Q6J("ngIf",i.hasColumnChooser||i.hasAutoSizeColumn||i.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",i.hasColumnChooser),e.xp6(1),e.Q6J("ngIf",i.hasAutoSizeColumn),e.xp6(1),e.Q6J("ngIf",i.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",i.hasColumnChooser||i.hasAutoSizeColumn||i.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",i.hasFilter)}}const B=function(a){return{"k-active":a}},ce=["dropdown"],Fe=function(){return{width:"auto"}};function Dt(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-dropdownlist",2,3),e.NdJ("valueChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onChange(I))})("keydown",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.dropdownKeydown(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("data",i.operators)("value",i.value)("valuePrimitive",!0)("popupSettings",e.DdM(5,Fe))("size",i.size)}}function nn(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.clearClick())})("keydown",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.clearKeydown(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("svgIcon",i.filterClearIcon)("title",i.clearText)("size",i.size)}}const hi=["kendoGridFilterCell",""];function kn(a,f){if(1&a&&(e.ynx(0),e.GkF(1,3),e.BQk()),2&a){const i=e.oxw(2);e.xp6(1),e.Q6J("column",i.column)("filter",i.filter)}}function cs(a,f){}function qs(a,f){if(1&a&&e.YNc(0,cs,0,0,"ng-template",4),2&a){const i=e.oxw(3);e.Q6J("ngTemplateOutlet",i.column.filterCellTemplateRef)("ngTemplateOutletContext",i.templateContext)}}function xa(a,f){if(1&a&&(e.ynx(0),e.YNc(1,qs,1,2,null,0),e.BQk()),2&a){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.column.filterCellTemplateRef)}}function Pa(a,f){if(1&a&&(e.ynx(0)(1,1),e.YNc(2,kn,2,2,"ng-container",2),e.YNc(3,xa,2,1,"ng-container",2),e.BQk()()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngSwitch",i.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const Ua=["kendoGridFilterRow",""];function fa(a,f){1&a&&e._UZ(0,"td",3),2&a&&e.ekj("k-group-cell",!0)}function qu(a,f){1&a&&e._UZ(0,"td",3),2&a&&e.ekj("k-hierarchy-cell",!0)}function Fu(a,f){if(1&a&&e._UZ(0,"td",4),2&a){const i=f.$implicit,u=f.index,I=e.oxw();e.ekj("k-grid-header-sticky",i.sticky),e.Q6J("ngStyle",I.addStickyStyles(i))("ngClass",i.filterClass)("column",i)("filter",I.filter)("logicalRowIndex",I.logicalRowIndex)("logicalColIndex",I.lockedColumnsCount+u),e.uIk("aria-label",I.filterLabel(i))}}const eu=["kendoGridHeader",""];function Kd(a,f){1&a&&e._UZ(0,"th",6)}function zu(a,f){if(1&a&&e._UZ(0,"th",7),2&a){const i=e.oxw().index;e.Q6J("logicalRowIndex",i)("logicalColIndex",0)}}function Rl(a,f){}function oo(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&a){const i=e.oxw(3).$implicit;e.xp6(2),e.Oqu(i.displayTitle)}}function bd(a,f){if(1&a&&e._UZ(0,"kendo-grid-filter-menu",19),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.Q6J("column",u.getColumnComponent(i))("filter",u.filter)("tabIndex",u.tabIndex)}}function du(a,f){if(1&a&&e._UZ(0,"kendo-grid-column-menu",20),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.Q6J("standalone",!1)("settings",u.columnMenuSettings)("column",i)("columnMenuTemplate",u.columnMenuTemplate)("sort",u.sort)("filter",u.filter)("sortable",u.sortable)("tabIndex",u.tabIndex)}}const Qa=function(a,f,i,u){return{templateRef:a,columnIndex:f,column:i,$implicit:u}};function xc(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"span",13)(2,"span",14),e.YNc(3,Rl,0,0,"ng-template",15),e.YNc(4,oo,3,1,"ng-container",11),e.qZA(),e.YNc(5,bd,1,3,"kendo-grid-filter-menu",16),e.YNc(6,du,1,8,"kendo-grid-column-menu",17),e.qZA(),e.BQk()),2&a){const i=e.oxw(2).$implicit,u=e.oxw(2);e.xp6(3),e.Q6J("templateContext",e.l5B(4,Qa,i.headerTemplateRef,i.leafIndex,i,i)),e.xp6(1),e.Q6J("ngIf",!i.headerTemplateRef),e.xp6(1),e.Q6J("ngIf",u.showFilterMenu&&u.isFilterable(u.getColumnComponent(i))),e.xp6(1),e.Q6J("ngIf",u.showColumnMenu(i))}}function Sd(a,f){}function ed(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&a){const i=e.oxw(3).$implicit;e.xp6(2),e.Oqu(i.displayTitle)}}function yu(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",27),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.MGl("name","sort-",u.sortDescriptor(u.getColumnComponent(i).field).dir,"-small"),e.Q6J("svgIcon","asc"===u.sortDescriptor(u.getColumnComponent(i).field).dir?u.sortAscSmallIcon:u.sortDescSmallIcon),e.uIk("aria-label",u.sortableLabel)}}function _c(a,f){if(1&a&&(e.TgZ(0,"span",28),e._uU(1),e.qZA()),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.xp6(1),e.Oqu(u.sortOrder(u.getColumnComponent(i).field))}}function Bu(a,f){if(1&a&&e._UZ(0,"kendo-grid-filter-menu",19),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.Q6J("column",u.getColumnComponent(i))("filter",u.filter)("tabIndex",u.tabIndex)}}function td(a,f){if(1&a&&e._UZ(0,"kendo-grid-column-menu",20),2&a){const i=e.oxw(3).$implicit,u=e.oxw(2);e.Q6J("standalone",!1)("settings",u.columnMenuSettings)("column",i)("columnMenuTemplate",u.columnMenuTemplate)("sort",u.sort)("filter",u.filter)("sortable",u.sortable)("tabIndex",u.tabIndex)}}function hu(a,f){if(1&a){const i=e.EpF();e.ynx(0),e.TgZ(1,"span",13)(2,"span",21,22),e.NdJ("click",function(I){e.CHM(i);const K=e.MAs(3),at=e.oxw(2).$implicit,jt=e.oxw(2);return e.KtG(jt.onSortClick(jt.getColumnComponent(at),I,K))}),e.YNc(4,Sd,0,0,"ng-template",15),e.YNc(5,ed,3,1,"ng-container",11),e.TgZ(6,"span",23),e.YNc(7,yu,1,3,"kendo-icon-wrapper",24),e.qZA(),e.YNc(8,_c,2,1,"span",25),e.qZA(),e._UZ(9,"span",26),e.YNc(10,Bu,1,3,"kendo-grid-filter-menu",16),e.YNc(11,td,1,8,"kendo-grid-column-menu",17),e.qZA(),e.BQk()}if(2&a){const i=e.oxw(2).$implicit,u=e.oxw(2);e.xp6(4),e.Q6J("templateContext",e.l5B(11,Qa,i.headerTemplateRef,i.leafIndex,i,i)),e.xp6(1),e.Q6J("ngIf",!i.headerTemplateRef),e.xp6(2),e.Q6J("ngIf",u.sortDescriptor(u.getColumnComponent(i).field).dir),e.xp6(1),e.Q6J("ngIf",u.showSortNumbering(u.getColumnComponent(i))),e.xp6(1),e.Udp("position","absolute")("left",-1e4,"px"),e.Q6J("innerHtml",u.sortStatus(u.getColumnComponent(i)),e.oJD),e.xp6(1),e.Q6J("ngIf",u.showFilterMenu&&u.isFilterable(u.getColumnComponent(i))),e.xp6(1),e.Q6J("ngIf",u.showColumnMenu(i))}}function kc(a,f){if(1&a&&(e.ynx(0),e._UZ(1,"input",29),e.BQk()),2&a){const i=e.oxw(4);e.xp6(1),e.uIk("id",i.selectAllCheckboxId())("aria-label",i.selectAllCheckboxLabel)}}function pu(a,f){if(1&a&&e._UZ(0,"span",30),2&a){const i=e.oxw(2).$implicit,u=e.oxw(2);e.Q6J("column",i)("columns",u.columns)}}const Cd=function(a,f,i,u){return{field:a,type:"column",column:f,hint:i,lastColumn:u}};function rc(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"th",10),e.NdJ("keydown",function(I){e.CHM(i);const K=e.oxw().$implicit,at=e.oxw(2);return e.KtG(at.onHeaderKeydown(at.getColumnComponent(K),I))}),e.YNc(1,xc,7,9,"ng-container",11),e.YNc(2,hu,12,16,"ng-container",11),e.YNc(3,kc,2,2,"ng-container",11),e.YNc(4,pu,1,2,"span",12),e.qZA()}if(2&a){const i=e.oxw(),u=i.$implicit,I=i.index,K=i.last,at=e.oxw().index,jt=e.oxw();e.ekj("k-sorted",!!jt.sortState(jt.getColumnComponent(u)))("k-filterable",jt.showFilterMenu&&jt.isFilterable(jt.getColumnComponent(u))||jt.showColumnMenu(u))("k-first",jt.isFirstOnRow(jt.getColumnComponent(u),I))("k-grid-header-sticky",u.sticky),e.Q6J("logicalRowIndex",at)("logicalColIndex",jt.logicalColumnIndex(u))("headerLabelText",u.title||jt.getColumnComponent(u).field)("colSpan",u.colspan)("rowSpan",u.rowspan(jt.totalColumnLevels))("enableDrag",jt.shouldActivate(u))("context",e.l5B(25,Cd,jt.getColumnComponent(u).field,u,u.title||jt.getColumnComponent(u).field,K&&0===I))("ngClass",u.headerClass)("ngStyle",u.sticky?jt.addStickyStyles(u):u.headerStyle),e.uIk("aria-sort",jt.sortState(jt.getColumnComponent(u)))("rowspan",u.rowspan(jt.totalColumnLevels))("colspan",u.colspan)("aria-haspopup",jt.showFilterMenu||jt.showColumnMenu(u)?"dialog":void 0),e.xp6(1),e.Q6J("ngIf",!jt.isSortable(jt.getColumnComponent(u))),e.xp6(1),e.Q6J("ngIf",jt.isSortable(jt.getColumnComponent(u))),e.xp6(1),e.Q6J("ngIf",jt.isCheckboxColumn(u)&&!u.headerTemplateRef&&u.showSelectAll),e.xp6(1),e.Q6J("ngIf",jt.resizable)}}function ye(a,f){}function Xe(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&a){const i=e.oxw(2).$implicit;e.xp6(2),e.Oqu(i.displayTitle)}}function w(a,f){if(1&a&&e._UZ(0,"kendo-grid-column-menu",33),2&a){const i=e.oxw(2).$implicit,u=e.oxw(2);e.Q6J("standalone",!1)("settings",u.columnMenuSettings)("column",i)("columnMenuTemplate",u.columnMenuTemplate)}}function X(a,f){if(1&a&&e._UZ(0,"span",30),2&a){const i=e.oxw(2).$implicit,u=e.oxw(2);e.Q6J("column",i)("columns",u.columns)}}const tt=function(a,f,i){return{type:"columnGroup",column:a,hint:f,lastColumn:i}};function cn(a,f){if(1&a&&(e.TgZ(0,"th",31)(1,"span",13)(2,"span",14),e.YNc(3,ye,0,0,"ng-template",15),e.YNc(4,Xe,3,1,"ng-container",11),e.qZA(),e.YNc(5,w,1,4,"kendo-grid-column-menu",32),e.qZA(),e.YNc(6,X,1,2,"span",12),e.qZA()),2&a){const i=e.oxw(),u=i.$implicit,I=i.index,K=i.last,at=e.oxw().index,jt=e.oxw();e.ekj("k-first",jt.isFirstOnRow(jt.getColumnComponent(u),I))("k-filterable",jt.showColumnMenu(u))("k-grid-content-sticky",u.sticky),e.Q6J("logicalRowIndex",at)("logicalColIndex",jt.logicalColumnIndex(u))("rowSpan",u.rowspan(jt.totalColumnLevels))("colSpan",u.colspan)("headerLabelText",u.title||jt.getColumnComponent(u).field)("enableDrag",jt.shouldActivate(u))("context",e.kEZ(21,tt,u,u.title,K&&0===I))("ngClass",u.headerClass)("ngStyle",u.headerStyle),e.uIk("rowspan",u.rowspan(jt.totalColumnLevels))("colspan",u.colspan),e.xp6(3),e.Q6J("templateContext",e.l5B(25,Qa,u.headerTemplateRef,jt.lockedColumnsCount+I,u,u)),e.xp6(1),e.Q6J("ngIf",!u.headerTemplateRef),e.xp6(1),e.Q6J("ngIf",jt.showColumnMenu(u)),e.xp6(1),e.Q6J("ngIf",jt.resizable)}}function xi(a,f){if(1&a&&(e.ynx(0),e.YNc(1,rc,5,30,"th",8),e.YNc(2,cn,7,30,"th",9),e.BQk()),2&a){const i=f.$implicit,u=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!u.isColumnGroupComponent(i)),e.xp6(1),e.Q6J("ngIf",u.isColumnGroupComponent(i))}}function is(a,f){if(1&a&&(e.TgZ(0,"tr",2),e.YNc(1,Kd,1,0,"th",3),e.YNc(2,zu,1,2,"th",4),e.YNc(3,xi,3,2,"ng-container",5),e.qZA()),2&a){const i=f.index,u=e.oxw();e.Q6J("logicalRowIndex",i)("logicalSlaveRow",u.lockedColumnsCount>0)("logicalCellsCount",u.columns.length)("logicalSlaveCellsCount",u.unlockedColumnsCount),e.xp6(1),e.Q6J("ngForOf",u.groups),e.xp6(1),e.Q6J("ngIf",null==u.detailTemplate?null:u.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",u.columnsForLevel(i))("ngForTrackBy",u.trackByIndex)}}function Zi(a,f){if(1&a&&e._UZ(0,"tr",34),2&a){const i=e.oxw();e.Q6J("columns",i.leafColumns)("filter",i.filter)("groups",i.groups)("detailTemplate",i.detailTemplate)("lockedColumnsCount",i.lockedColumnsCount)("logicalRowIndex",i.totalColumnLevels+1)("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.unlockedColumnsCount)}}const ks=["kendoGridCell",""];function Io(a,f){}function dr(a,f){if(1&a&&e.YNc(0,Io,0,0,"ng-template",5),2&a){const i=e.oxw(3);e.Q6J("ngTemplateOutlet",i.column.templateRef)("ngTemplateOutletContext",i.templateContext)}}function _r(a,f){if(1&a&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&a){const i=f.$implicit,u=e.oxw(4);e.xp6(1),e.hij(" ",e.Dn7(2,1,u.dataItem,i.field,i.format)," ")}}function Kr(a,f){if(1&a&&(e.ynx(0),e.YNc(1,_r,3,5,"ng-container",6),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.childColumns)}}function ma(a,f){if(1&a&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Oqu(e.Dn7(2,1,i.dataItem,i.column.field,i.column.format))}}function Da(a,f){if(1&a&&(e.ynx(0),e._UZ(1,"input",7),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Q6J("kendoGridSelectionCheckbox",i.rowIndex),e.uIk("id",i.selectionCheckboxId)("aria-label",i.selectionCheckboxLabel)}}function ol(a,f){if(1&a&&(e.ynx(0),e._UZ(1,"kendo-icon-wrapper",8),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Q6J("svgIcon",i.reorderIcon)}}function fl(a,f){if(1&a&&(e.ynx(0),e.YNc(1,dr,1,2,null,4),e.YNc(2,Kr,2,1,"ng-container",4),e.YNc(3,ma,3,5,"ng-container",4),e.YNc(4,Da,2,3,"ng-container",4),e.YNc(5,ol,2,1,"ng-container",4),e.BQk()),2&a){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.column.templateRef),e.xp6(1),e.Q6J("ngIf",i.isSpanColumn),e.xp6(1),e.Q6J("ngIf",i.isBoundColumn),e.xp6(1),e.Q6J("ngIf",i.isCheckboxColumn&&!i.isNew),e.xp6(1),e.Q6J("ngIf",i.isRowReorderColumn&&!i.isNew)}}function Na(a,f){}const tc=function(a){return{$implicit:a}};function rl(a,f){if(1&a&&e.YNc(0,Na,0,0,"ng-template",5),2&a){const i=e.oxw(3);e.Q6J("ngTemplateOutlet",i.loadingTemplate)("ngTemplateOutletContext",e.VKq(2,tc,i.column))}}function Sl(a,f){1&a&&e._UZ(0,"div",10)}function ul(a,f){if(1&a&&(e.YNc(0,rl,1,4,null,4),e.YNc(1,Sl,1,0,"div",9)),2&a){const i=e.oxw(2);e.Q6J("ngIf",i.loadingTemplate),e.xp6(1),e.Q6J("ngIf",!i.loadingTemplate)}}function ho(a,f){if(1&a&&(e.ynx(0),e.YNc(1,fl,6,5,"ng-container",2),e.YNc(2,ul,2,2,"ng-template",null,3,e.W1O),e.BQk()),2&a){const i=e.MAs(3),u=e.oxw();e.xp6(1),e.Q6J("ngIf",!u.showLoading)("ngIfElse",i)}}function La(a,f){}function Ea(a,f){if(1&a&&e.YNc(0,La,0,0,"ng-template",5),2&a){const i=e.oxw(2);e.Q6J("ngTemplateOutlet",i.column.editTemplateRef)("ngTemplateOutletContext",i.editTemplateContext)}}function dl(a,f){if(1&a&&e._UZ(0,"kendo-numerictextbox",15),2&a){const i=e.oxw(3);e.Q6J("format",i.format)("formControl",i.formGroup.get(i.column.field))}}function nc(a,f){if(1&a&&e._UZ(0,"kendo-datepicker",15),2&a){const i=e.oxw(3);e.Q6J("format",i.format)("formControl",i.formGroup.get(i.column.field))}}function Uu(a,f){if(1&a&&e._UZ(0,"input",16),2&a){const i=e.oxw(3);e.Q6J("formControl",i.formGroup.get(i.column.field))}}function Dc(a,f){if(1&a&&e._UZ(0,"input",17),2&a){const i=e.oxw(3);e.Q6J("formControl",i.formGroup.get(i.column.field))}}function nd(a,f){if(1&a&&(e.ynx(0,0),e.YNc(1,dl,1,2,"kendo-numerictextbox",12),e.YNc(2,nc,1,2,"kendo-datepicker",12),e.YNc(3,Uu,1,1,"input",13),e.YNc(4,Dc,1,1,"input",14),e.BQk()),2&a){const i=e.oxw(2);e.Q6J("ngSwitch",i.column.editor),e.xp6(1),e.Q6J("ngSwitchCase","numeric"),e.xp6(1),e.Q6J("ngSwitchCase","date"),e.xp6(1),e.Q6J("ngSwitchCase","boolean")}}function tu(a,f){if(1&a&&(e.ynx(0),e.YNc(1,Ea,1,2,null,4),e.YNc(2,nd,5,4,"ng-container",11),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.column.editTemplateRef),e.xp6(1),e.Q6J("ngIf",!i.column.editTemplateRef)}}const id=["kendoGridGroupHeader",""];function wd(a,f){1&a&&e._UZ(0,"td",3)}function nu(a,f){if(1&a&&(e.ynx(0),e.YNc(1,wd,1,0,"td",2),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.prefixGroupCell(i.item))}}function bu(a,f){if(1&a&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.AsE(" ",i.groupTitle(i.item),": ",e.Dn7(2,2,i.item.data,"value",i.formatForGroup(i.item))," ")}}function Vc(a,f){}const Jl=function(a,f,i,u,I,K,at,jt){return{templateRef:a,group:f,aggregates:i,value:u,field:I,index:K,expanded:at,$implicit:jt}};function xd(a,f){if(1&a){const i=e.EpF();e.ynx(0),e.TgZ(1,"a",6),e.NdJ("click",function(){e.CHM(i);const I=e.oxw(2);return e.KtG(I.toggleGroup(I.item))}),e._UZ(2,"kendo-icon-wrapper",7),e.qZA(),e.YNc(3,bu,3,6,"ng-container",0),e.YNc(4,Vc,0,0,"ng-template",8),e.BQk()}if(2&a){const i=e.oxw(2);e.xp6(1),e.uIk("title",i.groupButtonTitle)("aria-label",i.groupButtonTitle),e.xp6(1),e.Q6J("name",i.isExpanded?"caret-alt-down":"caret-alt-right")("svgIcon",i.isExpanded?i.caretAltDownIcon:i.caretAltRightIcon),e.xp6(1),e.Q6J("ngIf",!i.groupHeaderTemplate(i.item)),e.xp6(1),e.Q6J("templateContext",e.qlk(6,Jl,i.groupHeaderTemplate(i.item),i.item.data,null==i.item.data?null:i.item.data.aggregates,null==i.item.data?null:i.item.data.value,null==i.item.data?null:i.item.data.field,i.item.index,i.isExpanded,i.item.data))}}function jc(a,f){if(1&a&&(e.TgZ(0,"td",4)(1,"p",5),e.YNc(2,xd,5,15,"ng-container",0),e.qZA()()),2&a){const i=e.oxw();e.Q6J("logicalRowIndex",i.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",i.skipGroupDecoration)("groupItem",i.item)("colSpan",i.logicalColSpan()),e.uIk("colspan",i.groupSpan(i.item))("role",i.ariaRole())("aria-expanded",i.isExpanded),e.xp6(2),e.Q6J("ngIf",!i.skipGroupDecoration)}}function sd(a,f){}const Qh=function(a,f,i,u,I,K){return{group:a,aggregates:f,value:i,field:u,index:I,$implicit:K}};function Dd(a,f){if(1&a&&e.YNc(0,sd,0,0,"ng-template",11),2&a){const i=e.oxw().$implicit,u=e.oxw(2);e.Q6J("ngTemplateOutlet",i.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",e.HTZ(2,Qh,u.item.data,null==u.item.data?null:u.item.data.aggregates,null==u.item.data?null:u.item.data.value,null==u.item.data?null:u.item.data.field,u.item.index,u.item.data))}}function yh(a,f){if(1&a&&(e.TgZ(0,"td",10),e.YNc(1,Dd,1,9,null,0),e.qZA()),2&a){const i=f.$implicit,u=f.index,I=e.oxw(2);e.Q6J("logicalRowIndex",I.logicalRowIndex)("logicalColIndex",u+1)("logicalSlaveCell",!1)("groupItem",I.item)("colSpan",1),e.xp6(1),e.Q6J("ngIf",i.groupHeaderColumnTemplateRef)}}function Xh(a,f){if(1&a&&(e.ynx(0),e.YNc(1,yh,2,6,"td",9),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.groupHeaderColumns)}}const Gu=["kendoGridTableBody",""];function Ed(a,f){1&a&&e._UZ(0,"td",8)}function Pl(a,f){if(1&a&&(e.ynx(0),e.YNc(1,Ed,1,0,"td",7),e.BQk()),2&a){const i=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",i.groups)}}function bh(a,f){if(1&a&&e._UZ(0,"td",9),2&a){const i=e.oxw(2);e.Q6J("logicalRowIndex",i.addRowLogicalIndex())("logicalColIndex",0)}}function iu(a,f){if(1&a&&e._UZ(0,"td",10),2&a){const i=f.$implicit,u=f.index,I=e.oxw(2);e.Udp("left",i.sticky?"0":void 0),e.ekj("k-grid-content-sticky",i.sticky),e.Q6J("rowIndex",-1)("columnIndex",I.lockedColumnsCount+u)("isNew",!0)("column",i)("dataItem",I.newDataItem)("ngClass",i.cssClass)("ngStyle",i.sticky?I.addStickyColumnStyles(i):i.style)("logicalRowIndex",I.addRowLogicalIndex())("logicalColIndex",I.logicalColIndex(i))("colSpan",i.colspan),e.uIk("colspan",i.colspan)}}function Ga(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"tr",4),e.YNc(2,Pl,2,1,"ng-container",0),e.YNc(3,bh,1,2,"td",5),e.YNc(4,iu,1,15,"td",6),e.qZA(),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("logicalRowIndex",i.addRowLogicalIndex())("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.unlockedColumnsCount),e.xp6(1),e.Q6J("ngIf",!i.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==i.detailTemplate?null:i.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",i.columns)("ngForTrackBy",i.trackByColumns)}}function Ec(a,f){}const Jd=function(a){return{templateRef:a}};function ac(a,f){if(1&a&&e.YNc(0,Ec,0,0,"ng-template",13),2&a){const i=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Jd,null==i.noRecordsTemplate?null:i.noRecordsTemplate.templateRef))}}function Su(a,f){if(1&a&&(e.ynx(0),e._uU(1),e.BQk()),2&a){const i=e.oxw(2);e.xp6(1),e.hij(" ",i.noRecordsText," ")}}function Oc(a,f){if(1&a&&(e.TgZ(0,"tr",11)(1,"td",12),e.YNc(2,ac,1,3,null,0),e.YNc(3,Su,2,1,"ng-container",0),e.qZA()()),2&a){const i=e.oxw();e.xp6(1),e.uIk("colspan",i.colSpan),e.xp6(1),e.Q6J("ngIf",null==i.noRecordsTemplate?null:i.noRecordsTemplate.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=i.noRecordsTemplate&&i.noRecordsTemplate.templateRef))}}function Id(a,f){if(1&a&&e._UZ(0,"tr",18),2&a){const i=e.oxw(),u=i.$implicit,I=i.index,K=e.oxw();e.Q6J("columns",K.columns)("groups",K.groups)("item",u)("hasDetails",!(null==K.detailTemplate||!K.detailTemplate.templateRef))("skipGroupDecoration",K.skipGroupDecoration)("hasGroupHeaderColumn",K.hasGroupHeaderColumn)("groupHeaderColumns",K.groupHeaderColumns)("rowIndex",I+1)("totalColumnsCount",K.totalColumnsCount)("logicalRowIndex",K.logicalRowIndex(I))("logicalSlaveRow",K.lockedColumnsCount>0)("logicalCellsCount",K.columns.length)("logicalSlaveCellsCount",K.groupHeaderSlaveCellsCount)}}function Qd(a,f){1&a&&e._UZ(0,"td",23)}function Xd(a,f){if(1&a&&(e.ynx(0),e.YNc(1,Qd,1,0,"td",22),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.groups)}}function Dp(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(i);const I=e.oxw(3).$implicit,K=e.oxw();return e.KtG(K.toggleRow(I.index,I.data))}),e._UZ(1,"kendo-icon-wrapper",27),e.qZA()}if(2&a){const i=e.oxw(3).$implicit,u=e.oxw();e.uIk("title",u.detailButtonTitle(i))("aria-label",u.detailButtonTitle(i)),e.xp6(1),e.Q6J("name",u.detailButtonIconName(i))("svgIcon",u.detailButtonSvgIcon(i))}}function Sh(a,f){if(1&a&&(e.TgZ(0,"td",24),e.YNc(1,Dp,2,4,"a",25),e.qZA()),2&a){const i=e.oxw(2),u=i.index,I=i.$implicit,K=e.oxw();e.Q6J("logicalRowIndex",K.logicalRowIndex(u))("logicalColIndex",0)("dataRowIndex",I.index)("dataItem",I.data)("detailExpandCell",!0),e.xp6(1),e.Q6J("ngIf",K.detailTemplate.showIf(I.data,I.index))}}function qh(a,f){if(1&a&&e._UZ(0,"td",28),2&a){const i=f.$implicit,u=f.index,I=e.oxw(2),K=I.$implicit,at=I.index,jt=e.oxw();e.ekj("k-grid-content-sticky",i.sticky)("k-touch-action-none",jt.isSelectable()&&jt.selectable.drag)("k-touch-action-auto",!(jt.isSelectable()&&jt.selectable.drag))("k-grid-edit-cell",jt.isEditingCell(K.index,i))("k-selected",jt.isSelectable&&jt.cellSelectionService.isCellSelected(K,i)),e.Q6J("rowIndex",K.index)("columnIndex",jt.lockedColumnsCount+u)("column",i)("dataItem",K.data)("isLoading",jt.isLoading)("isVirtual",jt.isVirtual)("loadingTemplate",jt.cellLoadingTemplate)("logicalRowIndex",jt.logicalRowIndex(at))("logicalColIndex",jt.logicalColIndex(i))("dataRowIndex",K.index)("dataItem",K.data)("colIndex",u)("colSpan",i.colspan)("ngClass",i.cssClass)("ngStyle",i.sticky?jt.addStickyColumnStyles(i):i.style),e.uIk("data-kendo-grid-column-index",jt.lockedColumnsCount+u)("aria-selected",jt.isSelectable()?jt.isAriaSelected(K,i):void 0)("colspan",i.colspan)}}const Yc=function(a,f){return{dataItem:a,index:f}};function Td(a,f){if(1&a&&(e.TgZ(0,"tr",19),e.YNc(1,Xd,2,1,"ng-container",0),e.YNc(2,Sh,2,6,"td",20),e.YNc(3,qh,1,28,"td",21),e.qZA()),2&a){const i=e.oxw(),u=i.$implicit,I=i.index,K=e.oxw();e.Tol(K.isOdd(u)?"k-alt k-table-alt-row":""),e.ekj("k-grid-row-sticky",!!K.rowSticky&&K.rowSticky(e.WLB(24,Yc,u.data,u.index)))("k-master-row",!0)("k-grid-edit-row",K.isEditingRow(u.index))("k-selected",K.isSelectable()&&K.isRowSelected(u)),e.Q6J("dataRowIndex",u.index)("dataItem",u.data)("logicalRowIndex",K.logicalRowIndex(I))("logicalSlaveRow",K.lockedColumnsCount>0)("logicalCellsCount",K.columns.length)("logicalSlaveCellsCount",K.unlockedColumnsCount)("ngClass",K.rowClass(e.WLB(27,Yc,u.data,u.index))),e.uIk("aria-selected",K.isSelectable()&&K.isRowSelected(u))("data-kendo-grid-item-index",u.index),e.xp6(1),e.Q6J("ngIf",!K.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==K.detailTemplate?null:K.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",K.columns)("ngForTrackBy",K.trackByColumns)}}function vc(a,f){1&a&&e._UZ(0,"td",34)}function Ch(a,f){}const Cu=function(a,f,i){return{dataItem:a,rowIndex:f,$implicit:i}};function Hu(a,f){if(1&a&&(e.TgZ(0,"tr",29),e.YNc(1,vc,1,0,"td",30),e._UZ(2,"td",31),e.TgZ(3,"td",32),e.YNc(4,Ch,0,0,"ng-template",33),e.qZA()()),2&a){const i=e.oxw(),u=i.$implicit,I=i.index,K=e.oxw();e.ekj("k-alt",K.isOdd(u)),e.Q6J("dataRowIndex",u.index)("dataItem",u.data)("logicalRowIndex",K.logicalRowIndex(I)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),e.xp6(1),e.Q6J("ngForOf",K.groups),e.xp6(2),e.Q6J("logicalRowIndex",K.logicalRowIndex(I)+1)("logicalColIndex",0)("dataRowIndex",u.index)("dataItem",u.data)("colIndex",0)("colSpan",K.allColumnsSpan+1),e.uIk("colspan",K.columnsSpan),e.xp6(1),e.Q6J("ngTemplateOutlet",K.detailTemplate.templateRef)("ngTemplateOutletContext",e.kEZ(17,Cu,u.data,u.index,u.data))}}function Ic(a,f){1&a&&e._UZ(0,"td",38)}function qd(a,f){if(1&a&&(e.ynx(0),e.YNc(1,Ic,1,0,"td",37),e.BQk()),2&a){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.groups)}}function Md(a,f){if(1&a&&e._UZ(0,"td",9),2&a){const i=e.oxw(2).index,u=e.oxw();e.Q6J("logicalRowIndex",u.logicalRowIndex(i))("logicalColIndex",0)}}function Sf(a,f){}const ep=function(a,f,i,u,I,K){return{templateRef:a,group:f,field:i,column:u,aggregates:I,$implicit:K}};function tp(a,f){if(1&a&&(e.TgZ(0,"td",39),e.YNc(1,Sf,0,0,"ng-template",13),e.qZA()),2&a){const i=f.$implicit,u=e.oxw(2),I=u.index,K=u.$implicit,at=e.oxw();let jt;e.Q6J("logicalRowIndex",at.logicalRowIndex(I))("logicalColIndex",at.logicalColIndex(i)),e.uIk("data-skip",at.skipGroupDecoration),e.xp6(1),e.Q6J("templateContext",e.HTZ(4,ep,i.groupFooterTemplateRef,K.data,i.field,i,null==(jt=K.data)?null:jt.aggregates,null==(jt=K.data)?null:jt.aggregates))}}function Ac(a,f){if(1&a&&(e.TgZ(0,"tr",35),e.YNc(1,qd,2,1,"ng-container",0),e.YNc(2,Md,1,2,"td",5),e.YNc(3,tp,2,11,"td",36),e.qZA()),2&a){const i=e.oxw().index,u=e.oxw();e.Q6J("logicalRowIndex",u.logicalRowIndex(i))("logicalSlaveRow",u.lockedColumnsCount>0)("logicalCellsCount",u.columns.length)("logicalSlaveCellsCount",u.unlockedColumnsCount),e.xp6(1),e.Q6J("ngIf",!u.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==u.detailTemplate?null:u.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",u.footerColumns)("ngForTrackBy",u.trackByColumns)}}function wu(a,f){if(1&a&&(e.ynx(0),e.YNc(1,Id,1,13,"tr",14),e.YNc(2,Td,4,30,"tr",15),e.YNc(3,Hu,5,21,"tr",16),e.YNc(4,Ac,4,8,"tr",17),e.BQk()),2&a){const i=f.$implicit,u=e.oxw();e.xp6(1),e.Q6J("ngIf",u.isGroup(i)&&u.isParentGroupExpanded(i)&&u.showGroupHeader(i)),e.xp6(1),e.Q6J("ngIf",u.isDataItem(i)&&(!i.group||u.isDataItemInExpandedGroup(i))),e.xp6(1),e.Q6J("ngIf",u.isDataItem(i)&&(!i.group||u.isDataItemInExpandedGroup(i))&&(null==u.detailTemplate?null:u.detailTemplate.templateRef)&&u.detailTemplate.showIf(i.data,i.index)&&u.isExpanded(i)),e.xp6(1),e.Q6J("ngIf",u.isFooter(i)&&i.group&&(u.isFooterItemInExpandedGroup(i)||u.showGroupFooters&&u.isParentGroupExpanded(i.group))&&!i.data.hideFooter)}}function wh(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-resize-sensor",40),e.NdJ("resize",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.resizeHandler())}),e.qZA()}}const xh=["container"],Vu=["lockedContainer"],ju=["lockedTable"],kd=["table"],Ep=function(a,f,i,u){return{keydown:a,scroll:f,mousewheel:i,DOMMouseScroll:u}};function Dh(a,f){if(1&a&&(e.TgZ(0,"div",11,12)(2,"div",3)(3,"table",13,14),e._UZ(5,"colgroup",6)(6,"tbody",15),e.qZA(),e._UZ(7,"kendo-resize-sensor"),e.qZA(),e.TgZ(8,"div",9),e._UZ(9,"div"),e.qZA()()),2&a){const i=e.oxw();e.Udp("width",i.lockedWidth,"px"),e.Q6J("kendoEventsOutsideAngular",e.l5B(30,Ep,i.lockedKeydown,i.lockedScroll,i.lockedMousewheel,i.lockedMousewheel))("scope",i),e.xp6(3),e.Udp("width",i.lockedWidth,"px"),e.Q6J("locked",!0)("size",i.size),e.xp6(2),e.Q6J("groups",i.groups)("columns",i.lockedLeafColumns)("detailTemplate",i.detailTemplate)("sort",i.sort),e.xp6(1),e.Q6J("groups",i.groups)("isLocked",!0)("data",i.data)("noRecordsText","")("columns",i.lockedLeafColumns)("totalColumnsCount",i.leafColumns.length)("detailTemplate",i.detailTemplate)("showGroupFooters",i.showFooter)("skip",i.skip)("selectable",i.selectable)("trackBy",i.trackBy)("filterable",i.filterable)("rowClass",i.rowClass)("isLoading",i.loading)("isVirtual",i.isVirtual)("cellLoadingTemplate",i.cellLoadingTemplate),e.xp6(3),e.Udp("height",i.totalHeight,"px")}}function od(a,f){1&a&&e._UZ(0,"kendo-resize-sensor")}function Eh(a,f){1&a&&e._UZ(0,"kendo-resize-sensor")}function Ih(a,f){if(1&a&&(e.TgZ(0,"div",16),e._UZ(1,"div"),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Udp("width",i.totalWidth,"px")}}const Od=function(){return[]},Wc=["kendoGridFooter",""];function ic(a,f){1&a&&e._UZ(0,"td",4)}function Yu(a,f){1&a&&e._UZ(0,"td",5)}function Cf(a,f){}function eh(a,f){if(1&a&&(e.TgZ(0,"td",6),e.YNc(1,Cf,0,0,"ng-template",7),e.qZA()),2&a){const i=f.$implicit,u=f.index,I=e.oxw();e.ekj("k-grid-footer-sticky",i.sticky),e.Q6J("logicalRowIndex",I.logicalRowIndex)("logicalColIndex",I.logicalColumnIndex(i))("ngClass",i.footerClass)("ngStyle",i.sticky?I.addStickyStyles(i):i.footerStyle),e.xp6(1),e.Q6J("templateContext",e.l5B(7,Qa,i.footerTemplateRef,I.lockedColumnsCount+u,i,i))}}const Ad=["kendoGridLoading",""];function Ip(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"span",1),e._uU(2),e.qZA(),e._UZ(3,"div",2)(4,"div",3),e.BQk()),2&a){const i=e.oxw();e.xp6(2),e.Oqu(i.loadingText)}}function q_(a,f){}function xu(a,f){if(1&a&&e.YNc(0,q_,0,0,"ng-template",4),2&a){const i=e.oxw();e.Q6J("ngTemplateOutlet",null==i.loadingTemplate?null:i.loadingTemplate.templateRef)}}const th=["lockedHeader"],Rd=["header"],Th=["ariaRoot"],Pd=["footer"];function Mh(a,f){if(1&a&&e._UZ(0,"kendo-grid-toolbar",12),2&a){const i=e.oxw();e.Q6J("size",i.size)("navigable",i.navigation.toolbarEnabled),e.uIk("aria-label",i.messageFor("topToolbarLabel"))("aria-controls",i.ariaRootId)}}function Tp(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-pager",13),e.NdJ("pageChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.notifyPageChange("pager",I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("tabindex",i.navigation.pagerEnabled?"0":"-1")("template",i.pagerTemplate)("pageSize",i.pageSize)("total",i.view.total)("skip",i.skip)("size",i.size)("options",i.pageable),e.uIk("role",i.navigation.pagerEnabled?"application":void 0)}}function Mp(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-grid-group-panel",14),e.NdJ("change",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.groupChange.emit(I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("navigable",i.navigation.toolbarEnabled)("text",i.groupableEmptyText)("groups",i.group),e.uIk("aria-label",i.messageFor("groupPanelLabel"))("aria-controls",i.ariaRootId)}}function np(a,f){if(1&a&&(e.TgZ(0,"div",26,27)(2,"table",28),e._UZ(3,"colgroup",23)(4,"thead",29),e.qZA()()),2&a){const i=e.oxw(3);e.Udp("width",i.lockedWidth,"px"),e.xp6(2),e.Udp("width",i.lockedWidth,"px"),e.Q6J("locked",!0)("size",i.size),e.xp6(1),e.Q6J("columns",i.lockedLeafColumns)("groups",i.group)("detailTemplate",i.detailTemplate),e.xp6(1),e.Q6J("resizable",i.resizable)("scrollable",!0)("columns",i.lockedColumns)("totalColumnLevels",i.totalColumnLevels)("sort",i.sort)("groups",i.group)("filter",i.filter)("filterable",i.filterable)("groupable",i.showGroupPanel)("reorderable",i.reorderable)("sortable",i.sortable)("columnMenu",i.columnMenuOptions)("columnMenuTemplate",i.columnMenuTemplate)("totalColumnsCount",i.leafColumns.length)("detailTemplate",i.detailTemplate)("tabIndex",i.navigation.tableEnabled?"-1":"0")}}function ip(a,f){if(1&a&&(e.TgZ(0,"div",30),e._UZ(1,"div"),e.qZA()),2&a){const i=e.oxw(3);e.xp6(1),e.Udp("width",i.columnsContainer.unlockedWidth,"px")}}function kp(a,f){if(1&a&&(e.TgZ(0,"div",18),e.YNc(1,np,5,25,"div",19),e.TgZ(2,"div",20,21)(4,"table",22),e._UZ(5,"colgroup",23)(6,"thead",24),e.qZA(),e.YNc(7,ip,2,2,"div",25),e.qZA()()),2&a){const i=e.oxw(2);e.Udp("padding",i.headerPadding),e.xp6(1),e.Q6J("ngIf",i.isLocked),e.xp6(1),e.Q6J("kendoGridResizableContainer",i.lockedLeafColumns.length>0)("lockedWidth",i.lockedWidth+i.scrollbarWidth+2),e.xp6(2),e.Udp("width",i.nonLockedWidth,"px"),e.Q6J("virtualColumns",i.virtualColumns)("size",i.size),e.xp6(1),e.Q6J("columns",i.headerLeafColumns)("groups",i.isLocked?e.DdM(30,Od):i.group)("detailTemplate",i.detailTemplate),e.xp6(1),e.Q6J("resizable",i.resizable)("scrollable",!0)("columns",i.headerColumns)("totalColumnLevels",i.totalColumnLevels)("sort",i.sort)("filter",i.filter)("filterable",i.filterable)("groupable",i.showGroupPanel)("reorderable",i.reorderable)("groups",i.isLocked?e.DdM(31,Od):i.group)("sortable",i.sortable)("columnMenu",i.columnMenuOptions)("columnMenuTemplate",i.columnMenuTemplate)("lockedColumnsCount",i.lockedLeafColumns.length)("totalColumnsCount",i.leafColumns.length)("detailTemplate",i.detailTemplate)("tabIndex",i.navigation.tableEnabled?"-1":"0"),e.xp6(1),e.Q6J("ngIf",i.virtualColumns)}}function kh(a,f){if(1&a&&(e.TgZ(0,"div",38)(1,"table",39),e._UZ(2,"colgroup",36)(3,"tfoot",40),e.qZA()()),2&a){const i=e.oxw(3);e.Udp("width",i.lockedWidth,"px"),e.xp6(1),e.Udp("width",i.lockedWidth,"px"),e.Q6J("locked",!0)("size",i.size),e.xp6(1),e.Q6J("columns",i.lockedLeafColumns)("groups",i.group)("detailTemplate",i.detailTemplate),e.xp6(1),e.Q6J("scrollable",!0)("groups",i.group)("columns",i.lockedLeafColumns)("detailTemplate",i.detailTemplate)("logicalRowIndex",i.ariaRowCount)}}function sp(a,f){if(1&a&&(e.TgZ(0,"div",31),e.YNc(1,kh,4,14,"div",32),e.TgZ(2,"div",33,34)(4,"table",35),e._UZ(5,"colgroup",36)(6,"tfoot",37),e.qZA()()()),2&a){const i=e.oxw(2);e.Udp("padding",i.headerPadding),e.xp6(1),e.Q6J("ngIf",i.lockedLeafColumns.length),e.xp6(1),e.Q6J("kendoGridResizableContainer",i.lockedLeafColumns.length>0)("lockedWidth",i.lockedWidth+i.scrollbarWidth+3),e.xp6(2),e.Udp("width",i.nonLockedWidth,"px"),e.Q6J("size",i.size),e.xp6(1),e.Q6J("columns",i.nonLockedLeafColumns)("groups",i.isLocked?e.DdM(17,Od):i.group)("detailTemplate",i.detailTemplate),e.xp6(1),e.Q6J("logicalRowIndex",i.ariaRowCount)("scrollable",!0)("groups",i.isLocked?e.DdM(18,Od):i.group)("columns",i.nonLockedLeafColumns)("lockedColumnsCount",i.lockedLeafColumns.length)("detailTemplate",i.detailTemplate)}}const Du=function(a){return{hintTemplate:a}};function Oh(a,f){if(1&a){const i=e.EpF();e.ynx(0),e.YNc(1,kp,8,32,"div",15),e.TgZ(2,"kendo-grid-list",16),e.NdJ("press",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"press"))})("dragStart",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"dragStart"))})("drag",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"drag"))})("dragEnter",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"dragEnter"))})("dragLeave",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"dragLeave"))})("dragEnd",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"dragEnd"))})("drop",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.handleReorderEvents(I,"drop"))})("pageChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.notifyPageChange("list",I))})("scrollBottom",function(){e.CHM(i);const I=e.oxw();return e.KtG(I.notifyScrollBottom())})("contentScroll",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.contentScroll.emit(I))}),e.qZA(),e.YNc(3,sp,7,19,"div",17),e.BQk()}if(2&a){const i=e.oxw(),u=e.MAs(13);e.xp6(1),e.Q6J("ngIf",!i.hideHeader),e.xp6(1),e.Q6J("dragDisabled",!i.rowReorderable)("dropDisabled",!i.rowReorderable)("dragTargetFilter",i.getDefaultSelectors("dragTarget"))("dropTargetFilter",i.getDefaultSelectors("dropTarget"))("dragHandle",i.getDefaultSelectors("handle"))("hint",e.VKq(33,Du,u))("dragData",i.gridData)("data",i.view)("rowHeight",i.rowHeight)("detailRowHeight",i.detailRowHeight)("total",i.totalCount)("take",i.pageSize)("groups",i.group)("groupable",i.groupable)("skip",i.skip)("trackBy",i.trackBy)("columns",i.columnsContainer)("selectable",i.selectable)("filterable",i.filterable)("detailTemplate",i.detailTemplate)("noRecordsTemplate",i.noRecordsTemplate)("size",i.size)("rowClass",i.rowClass)("rowSticky",i.rowSticky)("loading",i.loading)("isVirtual",i.isVirtual)("cellLoadingTemplate",null==i.cellLoadingTemplate?null:i.cellLoadingTemplate.templateRef)("loadingTemplate",null==i.loadingTemplate?null:i.loadingTemplate.templateRef)("virtualColumns",i.virtualColumns)("enableDrag",i.marqueeSelection)("sort",i.sort),e.xp6(1),e.Q6J("ngIf",i.showFooter)}}function Cl(a,f){if(1&a&&e._UZ(0,"thead",45),2&a){const i=e.oxw(2);e.Q6J("resizable",i.resizable)("scrollable",!1)("columns",i.visibleColumns)("totalColumnLevels",i.totalColumnLevels)("groups",i.group)("groupable",i.showGroupPanel)("reorderable",i.reorderable)("sort",i.sort)("sortable",i.sortable)("filter",i.filter)("filterable",i.filterable)("columnMenu",i.columnMenuOptions)("columnMenuTemplate",i.columnMenuTemplate)("detailTemplate",i.detailTemplate)("tabIndex",i.navigation.tableEnabled?"-1":"0")}}function Ah(a,f){if(1&a&&e._UZ(0,"tfoot",46),2&a){const i=e.oxw(2);e.Q6J("scrollable",!1)("logicalRowIndex",i.ariaRowCount)("groups",i.group)("columns",i.leafColumns)("detailTemplate",i.detailTemplate)}}function op(a,f){if(1&a&&(e.ynx(0),e.TgZ(1,"table",41),e._UZ(2,"colgroup",36),e.YNc(3,Cl,1,15,"thead",42),e._UZ(4,"tbody",43),e.YNc(5,Ah,1,5,"tfoot",44),e.qZA(),e.BQk()),2&a){const i=e.oxw();e.xp6(1),e.Udp("table-layout",i.resizable?"fixed":null),e.Q6J("size",i.size),e.xp6(1),e.Q6J("columns",i.leafColumns)("groups",i.group)("detailTemplate",i.detailTemplate),e.xp6(1),e.Q6J("ngIf",!i.hideHeader),e.xp6(1),e.Q6J("isLoading",i.loading)("groups",i.group)("data",i.view)("skip",i.skip)("columns",i.leafColumns)("selectable",i.selectable)("filterable",i.filterable)("noRecordsTemplate",i.noRecordsTemplate)("detailTemplate",i.detailTemplate)("showGroupFooters",i.showGroupFooters)("trackBy",i.trackBy)("rowClass",i.rowClass)("enableDrag",i.marqueeSelection),e.xp6(1),e.Q6J("ngIf",i.showFooter)}}function nh(a,f){if(1&a&&e._UZ(0,"div",47),2&a){const i=e.oxw();e.Q6J("loadingTemplate",i.loadingTemplate)}}function H(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"kendo-pager",48),e.NdJ("pageChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.notifyPageChange("pager",I))}),e.qZA()}if(2&a){const i=e.oxw();e.Q6J("tabindex",i.navigation.pagerEnabled?"0":"-1")("template",i.pagerTemplate)("pageSize",i.pageSize)("total",i.view.total)("skip",i.skip)("size",i.size)("options",i.pageable),e.uIk("role",i.navigation.pagerEnabled?"application":void 0)}}function Ae(a,f){if(1&a&&e._UZ(0,"kendo-grid-toolbar",49),2&a){const i=e.oxw();e.Q6J("size",i.size)("navigable",i.navigation.toolbarEnabled),e.uIk("aria-label",i.messageFor("bottomToolbarLabel"))("aria-controls",i.ariaRootId)}}function h(a,f){if(1&a&&(e._UZ(0,"kendo-icon-wrapper",50),e._uU(1)),2&a){const i=e.oxw();e.Q6J("name",i.getHintSettings("hintIcon"))("svgIcon",i.getHintSettings("hintSVGIcon")),e.xp6(1),e.hij(" ",i.hintText," ")}}function x(a,f){if(1&a){const i=e.EpF();e.TgZ(0,"span",3),e._uU(1),e.qZA(),e.TgZ(2,"kendo-grid-columnlist",4),e.NdJ("apply",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onApply(I))})("columnChange",function(I){e.CHM(i);const K=e.oxw();return e.KtG(K.onChange(I))}),e.qZA()}if(2&a){const i=e.oxw();e.xp6(1),e.Oqu(i.localization.get("columns")),e.xp6(1),e.Q6J("columns",i.columns)("applyText",i.localization.get("columnsApply"))("resetText",i.localization.get("columnsReset"))("autoSync",i.autoSync)("allowHideAll",i.allowHideAll)}}const ue=["kendoGridEditCommand",""];function At(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",4),2&a){const i=e.oxw();e.Q6J("name",i.icon)("svgIcon",i.svgIcon)}}function di(a,f){if(1&a&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("src",i.imageUrl,e.LSH)}}function Qi(a,f){if(1&a&&e._UZ(0,"span",7),2&a){const i=e.oxw();e.Q6J("ngClass",i.iconClass)}}const Rs=["kendoGridCancelCommand",""];function Vs(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",4),2&a){const i=e.oxw();e.Q6J("name",i.icon)("svgIcon",i.svgIcon)}}function zo(a,f){if(1&a&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("src",i.imageUrl,e.LSH)}}function xr(a,f){if(1&a&&e._UZ(0,"span",7),2&a){const i=e.oxw();e.Q6J("ngClass",i.iconClass)}}const vr=["kendoGridSaveCommand",""];function Fa(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",4),2&a){const i=e.oxw();e.Q6J("name",i.icon)("svgIcon",i.svgIcon)}}function lc(a,f){if(1&a&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("src",i.imageUrl,e.LSH)}}function Ul(a,f){if(1&a&&e._UZ(0,"span",7),2&a){const i=e.oxw();e.Q6J("ngClass",i.iconClass)}}const $c=["kendoGridRemoveCommand",""];function $a(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",4),2&a){const i=e.oxw();e.Q6J("name",i.icon)("svgIcon",i.svgIcon)}}function Zr(a,f){if(1&a&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("src",i.imageUrl,e.LSH)}}function cc(a,f){if(1&a&&e._UZ(0,"span",7),2&a){const i=e.oxw();e.Q6J("ngClass",i.iconClass)}}const hr=["kendoGridAddCommand",""];function uc(a,f){if(1&a&&e._UZ(0,"kendo-icon-wrapper",4),2&a){const i=e.oxw();e.Q6J("name",i.icon)("svgIcon",i.svgIcon)}}function Eu(a,f){if(1&a&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&a){const i=e.oxw();e.xp6(1),e.Q6J("src",i.imageUrl,e.LSH)}}function ya(a,f){if(1&a&&e._UZ(0,"span",7),2&a){const i=e.oxw();e.Q6J("ngClass",i.iconClass)}}const Ei=/^\s*$/,Xn=a=>null!=a,Bs=a=>null==a,Ro=a=>Array.isArray(a),Go=a=>!!a,Bo=a=>Bs(a)||Ei.test(a),Za=a=>(0,T.T)((0,A.of)(a),a.changes),su=()=>typeof document>"u",Nd=a=>"string"==typeof a,rp=a=>"number"==typeof a&&!isNaN(a),Op=a=>Nd(a)&&!Bo(a)&&a.startsWith("{0:")?a.slice(3,a.length-1):a,ih=a=>(...f)=>!a(...f),sh=(...a)=>f=>a.reduce((i,u)=>i||u(f),!1),Ld=(...a)=>f=>a.reduce((i,u)=>i&&u(f),!0),ou=(new e.OlP("Skip"),function o2(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const a=Object.getOwnPropertyNames(Map.prototype),f=Map.prototype;for(let i=0;i<a.length;++i){const u=a[i];if("entries"!==u&&"size"!==u&&f[u]===f.entries)return u}}()),oh=typeof window<"u"?window:{},ev=oh.requestAnimationFrame||oh.msRequestAnimationFrame||(a=>setTimeout(a,16.666666666666668)),tv=oh.cancelAnimationFrame||oh.msCancelRequestAnimationFrame||clearTimeout,yc=(a,f,i)=>a.replace(new RegExp(`{\\s*${f}\\s*}`,"g"),i);let Fd=(()=>{class a{constructor(){this.cellClick=new e.vpe,this.cellMousedown=new e.vpe,this.cellMouseup=new e.vpe,this.click=new e.vpe,this.keydown=new e.vpe,this.focus=new e.vpe,this.focusIn=new e.vpe,this.focusOut=new e.vpe,this.windowBlur=new e.vpe}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Wu=(()=>{class a{constructor(){this.changes=new e.vpe}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Rp=new e.OlP("focus-root-initial-active-state");let rh=(()=>{class a{constructor(i=!1){this.active=i,this.groups=new Set}registerGroup(i){this.active&&this.groups.add(i)}unregisterGroup(i){this.active&&this.groups.delete(i)}activate(){this.active&&this.groups.forEach(i=>i.activate())}deactivate(){this.active&&this.groups.forEach(i=>i.deactivate())}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Rp,8))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Ng=/^(?:a|input|select|option|textarea|button|object)$/i,Rh={},iv=a=>String(a).trim().split(" "),ap=(a,f)=>{const i=iv(f);return Boolean(iv(a.className).find(u=>i.indexOf(u)>=0))},zd=a=>f=>ap(f,a),Rc=a=>(Rh[a]||(Rh[a]=f=>String(f.nodeName).toLowerCase()===a.toLowerCase()),Rh[a]),Pc=(a,f)=>{for(;a&&!f(a);)a=a.parentNode;return a},xf=(a,f,i)=>{for(;a&&a!==i&&!f(a);)a=a.parentNode;if(a!==i)return a},Ph=a=>{if(!(0,o.X_)())return;const f=a.getBoundingClientRect();return(f.width>0&&f.height>0||0!==f.x&&0!==f.y)&&"hidden"!==window.getComputedStyle(a).visibility},Bd=a=>{if(!a.tagName)return!1;const f=a.tagName.toLowerCase(),i=Boolean(a.getAttribute("tabIndex"));return!a.disabled&&Ng.test(f)||i},Df=(a,f=!0)=>{if(!Bd(a))return!1;const i=!f||Ph(a),u="true"===a.getAttribute("aria-hidden"),I=a.getAttribute("tabIndex");return i&&!u&&"-1"!==I},$u=(a,f,i=!0)=>{if(a){if(i&&f(a))return a;for(a=a.firstChild;a;){if(1===a.nodeType){const u=$u(a,f);if(u)return u}a=a.nextSibling}}},Lg=(a,f=!0)=>$u(a,i=>Df(i,f),!1),ov=Rc("button"),l2=Rc("input"),Fg=/(button|checkbox|color|file|radio|reset|submit)/i;class rd{constructor(f,i){this.renderer=i,this.element=f.nativeElement,this.focusable=((a,f=!0)=>$u(this.element,i=>Df(i,f)))(0,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&Ph(this.focusable)}isNavigable(){return this.canFocus()&&(a=>!a.disabled&&(ov(a)||(a=>l2(a)&&Fg.test(a.type))(a)))(this.element)}toggle(f){this.renderer.setAttribute(this.focusable,"tabIndex",f?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return(0,o.X_)()&&document.activeElement!==this.element&&Pc(document.activeElement,f=>f===this.element)}}const ah=new e.OlP("grid-cell-context"),rv={};let Nc=(()=>{class a{constructor(i,u,I){this.cellContext=i,this.hostElement=u,this.renderer=I,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}set enabled(i){(i=""===i||Boolean(i))!==this.enabled&&(this._enabled=i,this.element&&this.element.toggle(this.active&&i))}get enabled(){return this._enabled}ngAfterViewInit(){this.element||(this.element=new rd(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(i){this.element&&i!==this.active&&(this.element.toggle(this.enabled&&i),this.active=i)}canFocus(){return this.enabled&&this.element&&this.element.canFocus()}isNavigable(){return this.enabled&&this.element&&this.element.isNavigable()}focus(){this.enabled&&this.element&&this.element.focus()}hasFocus(){return this.enabled&&this.element&&this.element.hasFocus()}registerElement(i){this.element=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ah,12),e.Y36(e.SBq),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),a})();class d2{constructor(f){this.navigationService=f}focus(){this.navigationService.focusCell()}toggle(f){this.navigationService.toggle(f)}canFocus(){return!0}hasFocus(){return this.navigationService.hasFocus()}isNavigable(){return!1}}class zg{constructor(f){this.model=f,this.changes=new G.x,this.activeRow=0,this.activeCol=0,this.virtualCol=0,this.virtualRow=0}get row(){return this.model.findRow(this.activeRow)}get cell(){const f=this.row;if(f)return this.model.findCell(this.activeCol,f)}get dataRowIndex(){const f=this.row;return f?f.dataRowIndex:-1}reset(f=this.activeRow,i=this.activeCol,u=!0){this.activate(f,i,u)&&(this.virtualRow=f,this.virtualCol=i)}activate(f,i,u){if(!u&&this.isActiveRange(f,i))return!1;const I=this.activeCol,K=this.activeRow;return this.activeCol=i,this.activeRow=f,this.changes.next({colIndex:i,prevColIndex:I,prevRowIndex:K,rowIndex:f}),!0}isActiveRange(f,i){if(this.activeRow!==f)return!1;const u=this.cell,{start:I,end:K}=this.model.cellRange(u);return!u||I<=i&&i<=K}assume(f=this.activeRow,i=this.activeCol){this.virtualRow=f,this.virtualCol=i,this.activeCol=i,this.activeRow=f}announce(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}activateVirtualCell(f){const i=this.model.rowRange(f),u=this.model.cellRange(f),I=this.activeCol,K=this.activeRow;if(i.start<=K&&K<=i.end&&u.start<=I&&I<=u.end)return this.activeRow=f.rowIndex,this.activeCol=f.colIndex,!0}isActive(f,i){return this.activeCol===i&&this.activeRow===f}moveUp(f=1){return this.offsetRow(-f)}moveDown(f=1){return this.offsetRow(f)}moveLeft(f=1){return this.offsetCol(-f)}moveRight(f=1){return this.offsetCol(f)}lastCellIndex(f){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||f&&f.groupItem?0:1)}offsetCol(f){const i=this.model.findRow(this.virtualRow),u=this.lastCellIndex(i),I=this.virtualCol;this.virtualCol=Math.max(0,Math.min(I+f,u));let K=this.virtualCol;const at=this.virtualRow;let jt=this.model.findCell(this.virtualCol,i);if(!jt&&this.metadata.virtualColumns)return this.activate(at,K);if(jt.colSpan>1&&jt.colIndex<=I&&I<jt.colIndex+jt.colSpan){K=f>0?Math.min(jt.colIndex+jt.colSpan,u):Math.max(0,jt.colIndex+f);const Kn=this.model.findCell(K,i);jt!==Kn?(jt=Kn,this.virtualCol=jt.colIndex):this.virtualCol=I}return this.activate(jt.rowIndex,jt.colIndex)}offsetRow(f){let i=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){const K=this.metadata.maxLogicalRowIndex;let at=Math.max(0,Math.min(this.activeRow+f,K));this.metadata.hasDetailTemplate&&!this.model.findRow(at)&&(at=f>0?at+1:at-1,at=Math.max(0,Math.min(at,K))),this.metadata.hasDetailTemplate&&at===K&&this.model.lastRow.index!==K&&at--;const jt=this.model.findRow(at);if(jt){let Kn=this.model.findCell(this.virtualCol,jt);Kn.rowIndex<=this.virtualRow&&f>0&&Kn.rowSpan>1&&(Kn=this.model.findCell(this.virtualCol,this.model.findRow(Kn.rowIndex+Kn.rowSpan-1+f))),at=Kn.rowIndex,i=Kn.colIndex}return this.virtualRow=at,this.activate(at,i)}const u=this.model.findRow(this.virtualRow+f)||this.model.nextRow(this.virtualRow,f);if(!u)return!1;let I=this.model.findCell(this.virtualCol,u);return I&&I.rowIndex<=this.virtualRow&&f>0&&I.rowSpan>1&&(I=this.model.findCell(this.virtualCol,this.model.findRow(I.rowIndex+I.rowSpan-1+f))),!I&&this.metadata.virtualColumns?this.activate(this.virtualRow+f,this.virtualCol):(this.virtualRow=I.rowIndex,this.activate(this.virtualRow,I.colIndex))}}class Bg{constructor(){this.count=0,this.items={}}get first(){if(this.count>0){let f;return this.forEach(i=>(f=i,!0)),f}}get last(){if(this.count>0){const f=Object.keys(this.items);return this.items[f[f.length-1]]}}removeItem(f){this.items[f]&&(delete this.items[f],this.count--)}setItem(f,i){this.items[f]||this.count++,this.items[f]=i}getItem(f){return this.items[f]}toArray(){const f=[];return this.forEach(i=>{f.push(i)}),f}forEach(f){for(const i in this.items)if(this.items.hasOwnProperty(i)&&f(this.items[i]))return this.items[i]}find(f){return this.forEach(f)}}class pm{constructor(){this.rows=new Bg}get firstRow(){return this.rows.first}get lastRow(){return this.rows.last}registerCell(f){const i=this.rows.getItem(f.logicalRowIndex);if(!i)return;const u=f.logicalColIndex,I={uid:f.uid,colIndex:u,rowIndex:i.index,colSpan:f.colSpan,rowSpan:f.rowSpan,detailExpandCell:f.detailExpandCell,dataItem:i.dataItem,dataRowIndex:i.dataRowIndex,focusGroup:f.focusGroup};return i.cells.setItem(u,I),f.groupItem&&(i.groupItem=f.groupItem),I}unregisterCell(f,i,u){const I=this.rows.getItem(i);if(I){const K=I.cells.getItem(f);K&&K.uid===u.uid&&I.cells.removeItem(f)}}registerRow(f){const i={uid:f.uid,index:f.logicalRowIndex,dataItem:f.dataItem,dataRowIndex:f.dataRowIndex,cells:new Bg};this.rows.setItem(f.logicalRowIndex,i)}updateRow(f){const i=this.rows.getItem(f.logicalRowIndex);i&&Object.assign(i,{dataItem:f.dataItem,dataRowIndex:f.dataRowIndex})}unregisterRow(f,i){const u=this.rows.getItem(f);u&&u.uid===i.uid&&this.rows.removeItem(f)}cellRange(f){return f?{start:f.colIndex,end:f.colIndex+(f.colSpan||1)-1}:{}}rowRange(f){return f?{start:f.rowIndex,end:f.rowIndex+(f.rowSpan||1)-1}:{}}nextRow(f,i){const u=this.rows.toArray(),I=this.rows.getItem(f),K=u.indexOf(I);return u[K+i]}findRow(f){return this.rows.getItem(f)}findCell(f,i){if(!i)return;const u=i.index;let I=i.cells.getItem(f),K=u;for(;!I&&i;)i=this.rows.getItem(K),I=this.rowCell(f,i),K--;return I&&u<=i.index+(I.rowSpan||1)-1?I:void 0}rowCell(f,i){if(!i||!i.cells.count)return;const u=i.cells.first;let I,K=f;for(;!I&&K>=u.colIndex;)I=i.cells.getItem(K),K--;return I&&f<=I.colIndex+(I.colSpan||1)-1?I:void 0}}class Nh{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class h2 extends Nh{constructor(f){super(),this.action="cellClose",Object.assign(this,f)}}const ch=a=>-1===a||void 0===a;let Iu=(()=>{class a{constructor(i){this.ngZone=i,this.changes=new e.vpe,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new G.x,this.changed=this.changedSource.asObservable().pipe((0,se.w)(()=>this.ngZone.onStable.asObservable().pipe((0,he.q)(1))))}editRow(i,u){this.editedIndices.push({index:i,group:u}),this.onChanged()}addRow(i){this.newItemGroup={group:i},this.onChanged()}editCell(i,u,I){ch(i)||!1===u.editable||!u.editTemplate&&!u.field||(this.preventCellClose(),this.closeCell()||(this.editRow(i,I),this.column=u,this.onChanged()))}isEditing(){return this.editedIndices.length>0}isEditingCell(){return this.isEditing()&&void 0!==this.column}get hasNewItem(){return Xn(this.newItemGroup)}get newDataItem(){return this.hasNewItem?this.newItemGroup.group.value:{}}close(i){ch(i)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter((a=>f=>f.index!==a)(i)),delete this.column,this.onChanged())}closeCell(i){if(this.column&&!this.closingCell)return this.ngZone.run(()=>{const{index:u,group:I}=this.editedIndices[0],K=new h2({column:this.column,formGroup:I,originalEvent:i,rowIndex:u});return this.closingCell=!0,this.changes.emit(K),this.closingCell=!1,K.isDefaultPrevented()||this.cancelCell(),K.isDefaultPrevented()})}cancelCell(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}shouldCloseCell(){return this.column&&!this.keepEditCell}preventCellClose(){this.ngZone.runOutsideAngular(()=>{window.clearTimeout(this.keepCellTimeout),this.keepEditCell=!0,this.keepCellTimeout=window.setTimeout(()=>{this.keepEditCell=!1},0)})}context(i){return ch(i)?this.newItemGroup:this.findByIndex(i)}columnContext(i,u){return ch(i)?this.newItemGroup:this.column&&u!==this.column?void 0:this.findByIndex(i)}isEdited(i){return!(!ch(i)||!Xn(this.newItemGroup))||!this.column&&Xn(this.findByIndex(i))}hasEdited(i){return Xn(this.context(i))}isEditedColumn(i,u){return!(!this.column||this.column!==u)&&Xn(this.findByIndex(i))}beginEdit(i){this.changes.emit({action:"edit",rowIndex:i})}beginAdd(){this.changes.emit({action:"add"})}endEdit(i){const{group:u}=this.context(i);this.changes.emit({action:"cancel",rowIndex:i,formGroup:u,isNew:ch(i)})}save(i){const{group:u}=this.context(i);this.changes.emit({action:"save",rowIndex:i,formGroup:u,isNew:ch(i)})}remove(i){this.changes.emit({action:"remove",rowIndex:i})}findByIndex(i){return this.editedIndices.find((a=>f=>f.index===a)(i))}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.R0b))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Ef=a=>Xn(a)?{group:a.data,groupIndex:a.index,parentGroup:Ef(a.parentGroup)}:null;let Pp=(()=>{class a{constructor(){this.changes=new G.x,this.rowState=new Set}reset(){this.rowState.clear()}ngOnDestroy(){this.reset()}isExpanded(i){return this.userCallback?this.userCallback(i):!this.rowState.has(i.groupIndex)}isInExpandedGroup(i){let u=!0;for(;i&&u;)u=this.isExpanded({group:i.data,groupIndex:i.index,parentGroup:Ef(i.parentGroup)}),i=i.parentGroup;return u}toggleRow(i){const u=Ef(i.parentGroup),I=!this.isExpanded({group:i.data,groupIndex:i.index,parentGroup:u});this.changes.next({group:i.data,expand:I,groupIndex:i.index,parentGroup:u}),!this.userCallback&&(I?this.rowState.delete(i.index):this.rowState.add(i.index))}expandChildren(i){this.rowState.forEach(u=>((a,f)=>f!==a&&a.startsWith(f))(u,i)&&this.rowState.delete(u))}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();class fu{constructor(){this.changes=new G.x,this.pageChange=new G.x}get currentPage(){return this.skip/this.pageSize}notifyChanges(f){this.total=f.total,this.pageSize=f.pageSize,this.skip=f.skip,this.changes.next(f)}changePage(f){this.pageChange.next({skip:f*this.pageSize,take:this.pageSize})}changePageSize(f){this.pageChange.next({skip:0,take:f})}nextPage(){const f=this.currentPage+1;f*this.pageSize<this.total&&this.changePage(f)}prevPage(){const f=this.currentPage-1;f*this.pageSize>=0&&this.changePage(f)}}class f2 extends Nh{constructor(f){super(),Object.assign(this,f)}}class av extends Nh{constructor(f){super(),Object.assign(this,f)}}let If=(()=>{class a{constructor(){this.changes=new G.x,this.rowState=new Set}ngOnDestroy(){this.rowState.clear()}isExpanded(i,u){return this.userCallback?this.userCallback({index:i,dataItem:u}):this.rowState.has(i)}toggleRow(i,u){this.isExpanded(i,u)?this.collapseRow(i,u):this.expandRow(i,u)}expandRow(i,u){!this.emitEvent({dataItem:u,index:i,expand:!0})&&!this.userCallback&&this.rowState.add(i)}collapseRow(i,u){!this.emitEvent({dataItem:u,index:i,expand:!1})&&!this.userCallback&&this.rowState.delete(i)}emitEvent(i){const u=new(i.expand?av:f2)(i);return this.changes.next(u),u.isDefaultPrevented()}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),fm=(()=>{class a{constructor(){this.requests=new G.x}scrollTo(i){this.requests.next(i)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Sy=(a,f)=>Pc(a,Rc("kendo-grid"))===f,m2=Rc("th"),g2=Rc("td"),Lh=Rc(".k-grid-footer td"),_2=a=>g2(a)||m2(a)||Lh(a),Ud=(a,f)=>{const i=((a,f)=>{let i=Pc(a,_2);for(;i&&!Sy(i,f);)i=Pc(i.parentElement,_2);return i})(a,f),u=Pc(i,Rc("tr"));if(i&&u){let I=u.getAttribute("aria-rowindex");I=I?parseInt(I,10)-1:null;let K=i.getAttribute("aria-colindex");if(K=K?parseInt(K,10)-1:null,null!==I&&null!==K)return{colIndex:K,rowIndex:I,element:i}}},v2=a=>(a=>a===o.R8.ArrowLeft||a===o.R8.ArrowRight||a===o.R8.ArrowUp||a===o.R8.ArrowDown)(a)||a===o.R8.PageUp||a===o.R8.PageDown||a===o.R8.Home||a===o.R8.End,jS=Rc("input");class Tf{constructor(f,i){this.firstItemIndex=f,this.lastItemIndex=i}containsRow(f){return f<0||f>=this.firstItemIndex&&f<=this.lastItemIndex}intersects(f,i){return f<=this.firstItemIndex&&this.lastItemIndex<=i||this.firstItemIndex<=f&&f<=this.lastItemIndex||this.firstItemIndex<=i&&i<=this.lastItemIndex}}let Zc=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns,ls,ws){this.zone=i,this.domEvents=u,this.pagerContextService=I,this.scrollRequestService=K,this.groupsService=at,this.detailsService=jt,this.focusRoot=Kn,this.editService=Ti,this.cd=ns,this.localization=ls,this.focusableParent=ws,this.cellKeydown=new e.vpe,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new pm,this.cursor=new zg(this.model),this.pagerIsNavigable=!1,this.tableIsNavigable=!1,this.toolbarIsNavigable=!1,this.changes=this.cursor.changes}set metadata(i){this.meta=i,this.cursor.metadata=i}get metadata(){return this.meta}get enabled(){return this.alive}get pagerEnabled(){return this.alive&&this.pagerIsNavigable}get tableEnabled(){return this.alive&&this.tableIsNavigable}get toolbarEnabled(){return this.alive&&this.toolbarIsNavigable}get activeCell(){if(0!==this.mode)return this.cursor.cell}get activeRow(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}get activeDataRow(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}init(i,u){this.setActiveSections(u),this.alive=!0,this.focusRoot.active=!0,this.metadata=i;const I=(...at)=>jt=>this.zone.isStable?(0,F.D)([!0]).pipe((0,Se.U)(()=>jt)):this.zone.onStable.pipe((0,he.q)(1),(0,Se.U)(()=>jt),...at),K=I();if(this.subs=new N.w0,this.subs.add(this.cursor.changes.subscribe(at=>this.onCursorChanges(at))),this.subs.add(this.domEvents.focus.pipe((0,se.w)(K)).subscribe(at=>this.navigateTo(at.target))),this.subs.add(this.domEvents.focusOut.pipe((0,te.h)(()=>0!==this.mode),(0,se.w)(I((0,oe.R)(this.domEvents.focus)))).subscribe(at=>this.onFocusOut(at))),this.subs.add(this.domEvents.windowBlur.pipe((0,te.h)(()=>0!==this.mode)).subscribe(()=>this.onWindowBlur())),this.subs.add(this.editService.changes.pipe((0,te.h)(at=>"edit"!==at.action&&2===this.mode),(0,te.h)(at=>"cellClose"===at.action&&!at.prevented),(0,se.w)(K)).subscribe(()=>this.leaveCell())),this.subs.add(this.pagerContextService.pageChange.subscribe(()=>this.cursor.reset(0,0))),this.subs.add(this.domEvents.keydown.subscribe(at=>this.onKeydown(at))),this.subs.add(this.domEvents.keydown.pipe((0,te.h)(at=>at.keyCode===o.R8.Tab&&2===this.mode),(0,q.c)(this.domEvents.focusOut.pipe((0,oe.R)((0,R.F)(0).pipe((0,he.q)(1)))))).subscribe(()=>this.onTabout())),this.focusableParent){const at=new d2(this);this.focusableParent.registerElement(at)}this.deactivateElements()}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.alive=!1}registerCell(i){if(i.logicalRowIndex!==this.pendingRowIndex){const u=this.model.registerCell(i);this.virtualCell&&this.cursor.activateVirtualCell(u)&&(this.virtualCell=!1)}}registerCellOnCurrentRow(i){i.logicalRowIndex===this.pendingRowIndex&&this.model.registerCell(i)}unregisterCell(i,u,I){this.model.unregisterCell(i,u,I)}registerRow(i){this.model.registerRow(i),this.pendingRowIndex=i.logicalRowIndex}updateRow(i){this.model.updateRow(i)}unregisterRow(i,u){this.model.unregisterRow(i,u);const I=this.model.lastRow;if(I&&0===this.mode){const K=this.needsViewport()&&this.viewport?this.viewport.lastItemIndex:I.index;this.activeRowIndex>K&&this.cursor.reset(0,0)}}isCellFocusable(i){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(i.logicalRowIndex,i.logicalColIndex)}isCellFocused(i){return 1===this.mode&&this.isCellFocusable(i)}navigateTo(i){if(!this.alive||!(0,o.X_)())return;const u=Ud(i,this.meta.gridElement.nativeElement);if(!u)return;const I=this.mode,K=((a,f,i=!1)=>{if(!Pc(f,K=>K===a))return!1;const I=Pc(f,K=>K===f);return I&&(i||I!==a)})(u.element,document.activeElement),at=2===this.mode&&this.activeRowIndex===u.rowIndex&&i!==u.element;if(K)this.mode=2,this.cursor.reset(u.rowIndex,u.colIndex),this.activateRow();else if(!at){this.mode=1,this.deactivateElements();const jt=this.cursor.isActive(u.rowIndex,u.colIndex);1===I&&jt||this.cursor.reset(u.rowIndex,u.colIndex)}}tryFocus(i){this.activateElements();const u=Lg(i);if(u){const I=Ud(u,this.meta.gridElement.nativeElement);I&&(this.cursor.reset(I.rowIndex,I.colIndex),this.deactivateElements(),this.enterCell()),u.focus()}else this.deactivateElements();return!!u}needsViewport(){return this.meta&&this.meta.isVirtual}setViewport(i,u){if(this.viewport=new Tf(i,u),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){const I=this.activeDataRow,at=I-u;i-I>0?this.cursor.reset(i+this.meta.headerRows):at>0&&this.cursor.reset(u-this.meta.headerRows)}}setColumnViewport(i,u){this.columnViewport=new Tf(i,u)}focusCell(i,u){return this.mode=1,this.cursor.reset(i,u),this.activeCell}focusCellByElement(i){const u=Ud(i,this.meta.gridElement.nativeElement);if(u)return this.focusCell(u.rowIndex,u.colIndex)}focusNextCell(i=!0){return this.focusAdjacentCell(!0,i)}focusPrevCell(i=!0){return this.focusAdjacentCell(!1,i)}toggle(i){this.active=i,this.cursor.announce()}hasFocus(){return 1===this.mode||2===this.mode}autoFocusCell(i,u){return!this.meta.virtualColumns||u<this.meta.columns.lockedLeafColumns.length||this.columnViewport.intersects(i,u)}setActiveSections(i){this.pagerIsNavigable=i.includes("pager"),this.tableIsNavigable=i.includes("table"),this.toolbarIsNavigable=i.includes("toolbar")}focusAdjacentCell(i,u){this.focusCell();let I=i?this.moveCursorFwd():this.moveCursorBwd();if(u&&!I&&(I=i?this.cursor.moveDown(1):this.cursor.moveUp(1),I)){const K=this.cursor.row,at=i?0:this.cursor.lastCellIndex(K);this.cursor.reset(K.index,at)}return I?this.activeCell:(this.mode=0,this.cursor.announce(),null)}enterCell(){const i=this.cursor.cell;if(!i)return;const u=i.focusGroup,I=u&&u.canFocus();this.mode=I?2:1,this.cursor.announce(),I&&(this.activateRow(),u.focus())}leaveCell(){const i=this.cursor.cell;if(!i)return;const u=i.focusGroup;u&&u.canFocus()||this.deactivateElements(),this.mode=1,this.cursor.announce()}activateElements(){this.focusRoot.activate()}deactivateElements(){this.focusRoot.deactivate()}activateRow(){this.cursor.row.cells.forEach(i=>i.focusGroup&&i.focusGroup.activate())}moveCursorFwd(){return this.localization.rtl?this.cursor.moveLeft():this.cursor.moveRight()}moveCursorBwd(){return this.localization.rtl?this.cursor.moveRight():this.cursor.moveLeft()}onCursorKeydown(i){let u=!1;const I=i.ctrlKey||i.metaKey,K=I?5:1;if(!this.onCellKeydown(i))return;const at=this.cursor.row;switch(i.keyCode){case o.R8.ArrowDown:u=this.cursor.moveDown(K);break;case o.R8.ArrowUp:u=this.cursor.moveUp(K);break;case o.R8.ArrowRight:u=this.moveCursorFwd();break;case o.R8.ArrowLeft:u=this.moveCursorBwd();break;case o.R8.PageDown:if(this.metadata.isVirtual&&this.viewport){let jt=this.meta.headerRows+this.viewport.lastItemIndex+1;this.metadata.hasDetailTemplate&&jt++,jt=Math.min(this.meta.maxLogicalRowIndex,jt),this.cursor.reset(jt),u=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.nextPage()),u=!0);break;case o.R8.PageUp:if(this.metadata.isVirtual&&this.viewport){const Ti=Math.max(this.meta.headerRows,this.viewport.firstItemIndex-(this.viewport.lastItemIndex-this.viewport.firstItemIndex)-1);this.cursor.reset(Ti),u=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.prevPage()),u=!0);break;case o.R8.Home:this.cursor.reset(I?this.meta.isVirtual?this.meta.headerRows:this.model.firstRow.index:at.index,0,!1),u=!0;break;case o.R8.End:if(I)if(this.meta.isVirtual){let jt=this.meta.maxLogicalRowIndex;this.meta.hasDetailTemplate&&jt--,this.cursor.reset(jt,this.cursor.lastCellIndex(),!1)}else this.cursor.reset(this.model.lastRow.index,this.cursor.lastCellIndex(this.model.lastRow),!1);else{const jt=this.cursor.lastCellIndex(at),Kn=this.model.findCell(jt,at);Kn?this.cursor.reset(Kn.rowIndex,Kn.colIndex):this.cursor.reset(at.index,jt)}u=!0;break;case o.R8.Enter:case o.R8.F2:{const jt=at.groupItem;jt?this.zone.run(()=>this.groupsService.toggleRow(jt)):this.cursor.cell.detailExpandCell?this.zone.run(()=>this.detailsService.toggleRow(at.dataRowIndex,at.dataItem)):(this.enterCell(),this.cursor.cell.focusGroup.isNavigable()||(u=!0));break}default:!i.ctrlKey&&!i.altKey&&(a=>1===a.length&&a.match(/\S/))(i.key)&&this.enterCell()}u&&i.preventDefault()}onContentKeydown(i){if(!this.onCellKeydown(i))return;const u=!i.defaultPrevented&&i.keyCode===o.R8.Enter&&(a=>a&&jS(a)&&"text"===a.type.toLowerCase())(i.srcElement);i.keyCode===o.R8.Escape||i.keyCode===o.R8.F2||u?(this.leaveCell(),this.cursor.reset(),i.stopPropagation()):v2(i.keyCode)&&this.cursor.cell.focusGroup.isNavigable()&&(this.onCursorKeydown(i),i.defaultPrevented&&this.leaveCell())}onCellKeydown(i){if(this.editService.isEditingCell()){const u=i.keyCode===o.R8.Enter,I=i.keyCode===o.R8.Escape,K=v2(i.keyCode);if(u)this.editService.closeCell(i);else if(I)this.editService.closeCell(i),this.cd.detectChanges();else if(K)return!1}return this.cellKeydown.emit(i),!0}onCursorChanges(i){this.activeRowIndex=i.rowIndex;const u=this.activeDataRow;if(this.meta&&this.meta.isVirtual&&i.rowIndex>=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(u)&&u>-1&&this.scrollRequestService.scrollTo({row:u}),this.meta.virtualColumns&&i.colIndex>=this.meta.columns.lockedLeafColumns.length){const I=this.activeCell,{start:K,end:at}=this.model.cellRange(I);I||(this.virtualCell=!0),(!I&&0!==this.mode||I&&!this.columnViewport.intersects(K,at))&&this.scrollRequestService.scrollTo({column:i.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}onFocusOut(i){this.mode=Ph(i.target)?0:1,this.deactivateElements(),this.cursor.announce()}onWindowBlur(){this.mode=0,this.deactivateElements(),this.cursor.announce()}onKeydown(i){1===this.mode?this.onCursorKeydown(i):2===this.mode&&this.onContentKeydown(i)}onTabout(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.R0b),e.LFG(Fd),e.LFG(fu),e.LFG(fm),e.LFG(Pp),e.LFG(If),e.LFG(rh),e.LFG(Iu),e.LFG(e.sBO),e.LFG(ee.oQ),e.LFG(Nc,8))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Mf=(()=>{class a{constructor(i,u,I){this.domEvents=i,this.localDataChangesService=u,this.navigationService=I,this.changes=new e.vpe,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const u=this.settings.selectable,I="object"==typeof u&&Xn(u)&&"multiple"===u.mode&&!1!==u.enabled&&!u.checkboxOnly&&u.drag;return this.active&&I}init(i){if(this.settings=i,this.currentSelection=[],i.selectable&&!1!==i.selectable.enabled){const u=this.getIterator();this._selectAllState=!0;let I=u.next();for(;!I.done;){if(I.value&&"data"===I.value.type){const K={dataItem:I.value.data,index:I.value.index};i.rowSelected(K)?this.currentSelection[I.value.index]=K:this._selectAllState=void 0}I=u.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}isSelected(i){if(this.settings&&this.active)return this.options.enabled&&Xn(this.currentSelection[i])}handleClick(i,u){if(this.dragging)return void(this.dragging=!1);let I;const K=u.ctrlKey||u.metaKey;"single"===this.options.mode&&K&&this.isSelected(i.index)?I=this.toggle(i):"multiple"===this.options.mode&&(K&&!u.shiftKey?I=this.toggle(i):u.shiftKey&&(I=this.addAllTo(i,K))),Xn(I)||(I=this.select(i),this.currentSelection[i.index]={dataItem:i.data,index:i.index}),(I.selectedRows.length||I.deselectedRows.length)&&(I.ctrlKey=K,I.shiftKey=u.shiftKey,this.changes.emit(I))}toggle(i){const u=[],I=[];this.lastSelectionStartIndex=i.index;const K={dataItem:i.data,index:i.index};return this.isSelected(i.index)?I.push(K):u.push(K),{deselectedRows:I,selectedRows:u}}toggleByIndex(i){const u=this.getIterator();this.selectAllChecked&&this.isSelected(i)&&(this.selectAllChecked=!1);let I=u.next();for(;!I.done;){if(I.value&&"data"===I.value.type&&I.value.index===i){const K={data:I.value.data,index:I.value.index};return this.isSelected(i)||"multiple"===this.options.mode?this.toggle(K):this.select(K)}I=u.next()}}select(i){const u=[],I=[];return this.lastSelectionStartIndex=i.index,this.isSelected(i.index)||I.push({dataItem:i.data,index:i.index}),this.currentSelection.forEach(K=>{K.index!==i.index&&u.push(K)}),{deselectedRows:u,selectedRows:I}}deselect(i){const u=this.getIterator();let I=u.next();for(;!I.done;){if(I.value&&"data"===I.value.type&&I.value.data===i){const K={dataItem:I.value.data,index:I.value.index};this.isSelected(K.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[K],selectedRows:[]})}I=u.next()}}addAllTo(i,u){const I=[],K=[],at=Math.min(this.lastSelectionStartIndex,i.index),jt=Math.max(this.lastSelectionStartIndex,i.index),Kn=this.getIterator();let Ti=Kn.next();for(;!Ti.done;){if(Ti.value&&"data"===Ti.value.type){const ns=Ti.value.index,ls={dataItem:Ti.value.data,index:ns};(ns<at||ns>jt)&&this.isSelected(ns)&&!u&&K.push(ls),ns>=at&&ns<=jt&&!this.isSelected(ns)&&I.push(ls)}Ti=Kn.next()}return{deselectedRows:K,selectedRows:I}}updateAll(i){this.selectAllChecked=i;const u=[],I=[],K=this.getIterator();let at=K.next();for(;!at.done;){if(at.value&&"data"===at.value.type){const Kn=at.value.index,Ti={dataItem:at.value.data,index:Kn};this.isSelected(Kn)&&!i&&I.push(Ti),!this.isSelected(Kn)&&i&&u.push(Ti)}at=K.next()}(u.length||I.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:I,selectedRows:u,shiftKey:!0})}selectRange(i,u){const I=[],K=[],at=Math.min(i,u),jt=Math.max(i,u),Kn=this.getIterator();let Ti=Kn.next();for(;!Ti.done;){if(Ti.value&&"data"===Ti.value.type){const ns=Ti.value.index,ls={dataItem:Ti.value.data,index:ns};(ns<at||ns>jt)&&this.isSelected(ns)&&K.push(ls),ns>=at&&ns<=jt&&!this.isSelected(ns)&&I.push(ls)}Ti=Kn.next()}return{deselectedRows:K,selectedRows:I}}get selectAllState(){return this._selectAllState}get selected(){return this.currentSelection.map(i=>i.index).filter(i=>"number"==typeof i)}get options(){const i={checkboxOnly:!1,enabled:!0,mode:"multiple"};return Xn(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(i,this.settings.selectable):i}ngOnDestroy(){this.removeSubscriptions()}targetArgs(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(i=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==i.type&&this.active&&this.handleClick({index:i.rowIndex,data:i.dataItem},i.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(i=>{this.mouseDownEventArgs=i,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&i.originalEvent.shiftKey&&this.active&&(i.originalEvent.preventDefault(),this.navigationService.focusCellByElement(i.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(i=>{this.active&&Xn(i.action)&&"remove"===i.action&&this.deselect(i.item)}))}getIterator(){const i=this.settings.view.accessor();if(i)return i[ou]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Fd),e.LFG(Wu),e.LFG(Zc))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),ad=(()=>{class a{constructor(i,u,I){this.domEvents=i,this.localDataChangesService=u,this.navigationService=I,this.changes=new e.vpe,this.mouseUpEvent=new e.vpe,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const u=this.settings.selectable,I="object"==typeof u&&Xn(u)&&"multiple"===u.mode&&u.cell&&!1!==u.enabled&&u.drag;return this.active&&I}init(i){if(this.settings=i,this.currentSelection=[],i.selectable&&!1!==i.selectable.enabled){const u=this.getIterator();let I=u.next();for(;!I.done;){if(I.value&&"data"===I.value.type){const K={dataItem:I.value.data,index:I.value.index};i.columns.forEach(at=>{const jt=i.cellSelected(K,at,at.leafIndex);jt.selected&&this.currentSelection.push(jt.item)})}I=u.next()}}}isCellSelected(i,u){if(this.settings&&this.active){const I=this.settings.cellSelected({dataItem:i.data,index:i.index},u,u.leafIndex);return this.options.enabled&&I.selected}return!1}handleClick(i,u){if(this.dragging)return void(this.dragging=!1);let I;const K=u.ctrlKey||u.metaKey;if("single"===this.options.mode&&K&&this.isCellSelected(i,i.column))I=this.toggle(i);else if("multiple"===this.options.mode)if(K&&!u.shiftKey)I=this.toggle(i);else if(u.shiftKey){const at=Math.min(this.lastSelectionItemRowIndex,i.index),jt=Math.min(this.lastSelectionItemColIndex,i.column.leafIndex),Kn=Math.max(this.lastSelectionItemRowIndex,i.index),Ti=Math.max(this.lastSelectionItemColIndex,i.column.leafIndex);I=this.selectRange(at,jt,Kn,Ti)}Xn(I)||(I=this.select(i),this.currentSelection=[this.lastSelectionItem]),(I.selectedCells.length||I.deselectedCells.length)&&(I.ctrlKey=K,I.shiftKey=u.shiftKey,this.changes.emit(I))}toggle(i){const u=[],I=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:i.data,index:i.index},i.column,i.column.leafIndex).item,this.lastSelectionItemRowIndex=i.index,this.lastSelectionItemColIndex=i.column.leafIndex,this.isCellSelected(i,i.column)?I.push(this.lastSelectionItem):u.push(this.lastSelectionItem),{deselectedCells:I,selectedCells:u}}select(i){const u=[],I=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:i.data,index:i.index},i.column,i.column.leafIndex).item,this.lastSelectionItemRowIndex=i.index,this.lastSelectionItemColIndex=i.column.leafIndex,this.isCellSelected(i,i.column)||u.push(this.lastSelectionItem),this.currentSelection.forEach(K=>{(K.itemKey!==this.lastSelectionItem.itemKey||K.columnKey!==this.lastSelectionItem.columnKey)&&I.push(K)}),{deselectedCells:I,selectedCells:u}}deselect(i){const u=this.getIterator();let K,I=u.next();for(;!I.done;){if(I.value&&"data"===I.value.type&&I.value.data===i){K={dataItem:I.value.data,index:I.value.index};break}I=u.next()}if(K){const at=this.currentSelection.filter(jt=>{const Kn=this.settings.cellSelected(K,null,null).item;return jt.itemKey===Kn.itemKey});at.length&&this.changes.emit({ctrlKey:!1,deselectedCells:at,selectedCells:[]})}}selectRange(i,u,I,K){const at=[],jt=[],Kn=Math.min(i,I),Ti=Math.min(u,K),ns=Math.max(i,I),ls=Math.max(u,K),ws=this.getIterator();let pr=ws.next();for(;!pr.done;){if(pr.value&&"data"===pr.value.type){const sr=pr.value.index,_o={dataItem:pr.value.data,index:sr};this.settings.columns.forEach(Xo=>{const{item:qo}=this.settings.cellSelected(_o,Xo,Xo.leafIndex),Ia=this.isCellSelected(pr.value,Xo),Vr=Kn<=sr&&sr<=ns&&Ti<=Xo.leafIndex&&Xo.leafIndex<=ls;!Vr&&Ia&&jt.push(qo),Vr&&!Ia&&at.push(qo)})}pr=ws.next()}return{deselectedCells:jt,selectedCells:at}}get options(){const i={checkboxOnly:!1,enabled:!0,mode:"multiple"};return Xn(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(i,this.settings.selectable):i}ngOnDestroy(){this.removeSubscriptions()}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(i=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==i.type&&this.active&&this.handleClick({index:i.rowIndex,data:i.dataItem,column:i.column},i.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(i=>{this.mouseDownEventArgs=i,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&i.originalEvent.shiftKey&&this.active&&(i.originalEvent.preventDefault(),this.navigationService.focusCellByElement(i.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(i=>{this.active&&Xn(i.action)&&"remove"===i.action&&this.deselect(i.item)}))}getIterator(){const i=this.settings.view.accessor();if(i)return i[ou]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Fd),e.LFG(Wu),e.LFG(Zc))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const lv={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}};let Ug=(()=>{class a{constructor(i,u,I,K){this.draggable=i,this.selection=u,this.cellSelection=I,this.domEvents=K,this.selectionStarted=!1}get webkitUserSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}get userSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}ngOnInit(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.clean()}start(i){i.originalEvent.target.matches(".k-grid-content, .k-grid-content-locked, .k-grid-aria-root, .k-checkbox")?this.pressArgs=null:(this.pressArgs=i,this.pressTarget=null)}moveMarquee(i){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);const u=this.pressArgs;if(!u)return;if(!this.selectionStarted){if(!(Math.sqrt((i.pageX-u.pageX)**2+(i.pageY-u.pageY)**2)>5))return;this.selectionStarted=!0,this.dragEndSubscription=(0,T.T)(this.domEvents.cellMouseup.pipe((0,he.q)(1)),this.draggable.kendoRelease.pipe((0,we.g)(1),(0,he.q)(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();const I=this.marqueeElement,K=this.getMarqueeQuadrant(i.pageX,i.pageY,u.pageX,u.pageY);let at=Math.min(i.pageX,u.pageX),jt=Math.min(i.pageY,u.pageY);const Kn=Math.abs(i.pageX-u.pageX),Ti=Math.abs(i.pageY-u.pageY);K&&(at+=lv[K].x,jt+=lv[K].y),I.style.left=`${at}px`,I.style.top=`${jt}px`,I.style.width=`${Kn}px`,I.style.height=`${Ti}px`}endSelection(i){("mouseup"===i.type||"touchend"===i.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,i.rowIndex,i.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,i.rowIndex)))),this.clean()}clean(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}initMarquee(){(0,o.X_)()&&(this.marqueeElement||(this.marqueeElement=(()=>{if(!(0,o.X_)())return;const a=document.createElement("div");a.className="k-marquee";const f=document.createElement("div");return f.className="k-marquee-color",a.appendChild(f),a})(),document.body.appendChild(this.marqueeElement)))}getMarqueeQuadrant(i,u,I,K){const at=i<I,jt=i>I,Kn=u<K,Ti=u>K;return at&&Kn?"topLeft":at&&Ti?"bottomLeft":jt&&Kn?"topRight":jt&&Ti?"bottomRight":null}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(o.pD),e.Y36(Mf),e.Y36(ad),e.Y36(Fd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(i,u){2&i&&(e.Udp("-webkit-user-select",u.webkitUserSelection),e.ekj("user-select-none",u.userSelection))}}),a})();class kf extends e.vpe{constructor(f,i=!1){super(i),this.ngZone=f}subscribe(f,i,u){let I,K=jt=>null,at=()=>null;return f&&"object"==typeof f?(I=jt=>{this.ngZone.run(()=>f.next(jt))},f.error&&(K=jt=>{this.ngZone.run(()=>f.error(jt))}),f.complete&&(at=()=>{this.ngZone.run(()=>f.complete())})):(I=jt=>{this.ngZone.run(()=>f(jt))},i&&(K=jt=>{this.ngZone.run(()=>i(jt))}),u&&(at=()=>{this.ngZone.run(()=>u())})),super.subscribe(I,K,at)}}const b2={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310807,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Fp=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridCellTemplate",""]]}),a})(),cv=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),a})(),dh=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),a})(),_m=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridEditTemplate",""]]}),a})(),Gg=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridGroupFooterTemplate",""]]}),a})(),vm=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridHeaderTemplate",""]]}),a})(),ym=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridFooterTemplate",""]]}),a})(),Of=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridColumnMenuTemplate",""]]}),a})(),Cy=0,Tu=(()=>{class a{constructor(){this.prefix="k-grid"+Cy++}gridId(){return this.prefix}cellId(i,u){return`${this.prefix}-r${i}c${u}`}selectionCheckboxId(i){return`${this.prefix}-checkbox${i}`}selectAllCheckboxId(){return`${this.prefix}-select-all`}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Hg=a=>a.isSpanColumn,wy=a=>a.isCheckboxColumn,Fh=a=>a.isRowReorderColumn;let Gl=(()=>{class a{constructor(i,u){if(this.parent=i,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new e.n_E,this.columnMenuTemplates=new e.n_E,this.idService=u,i&&u&&i.idService.gridId()===u.gridId()&&!(a=>a.isColumnGroup||Hg(a))(i))throw new Error("Columns can be nested only inside ColumnGroupComponent")}set leafIndex(i){this._leafIndex=i}get leafIndex(){return this._leafIndex}set width(i){if("string"==typeof i){const u=this._width=parseInt(i,10);(0,e.X6Q)()&&console.warn(`Expected numeric value for column width, but got a string "${i}". Treating as ${u}px.`)}else this._width=i}get width(){return this._width}set locked(i){this._locked=i}get locked(){return this._locked}get level(){return this.parent&&Hg(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(i){return this.level<i?i-this.level+1:1}get headerTemplateRef(){const i=this.headerTemplates.first;return i?i.templateRef:void 0}get footerTemplateRef(){return this.footerTemplate?this.footerTemplate.templateRef:void 0}get columnMenuTemplateRef(){const i=this.columnMenuTemplates.first;return i?i.templateRef:null}get displayTitle(){return this.title}get isVisible(){return!this.hidden&&this.matchesMedia}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(a),e.Y36(Tu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column-base"]],contentQueries:function(i,u,I){if(1&i&&(e.Suo(I,ym,5),e.Suo(I,vm,4),e.Suo(I,Of,4)),2&i){let K;e.iGM(K=e.CRH())&&(u.footerTemplate=K.first),e.iGM(K=e.CRH())&&(u.headerTemplates=K),e.iGM(K=e.CRH())&&(u.columnMenuTemplates=K)}},inputs:{resizable:"resizable",reorderable:"reorderable",minResizableWidth:"minResizableWidth",maxResizableWidth:"maxResizableWidth",title:"title",width:"width",autoSize:"autoSize",locked:"locked",sticky:"sticky",hidden:"hidden",media:"media",lockable:"lockable",stickable:"stickable",columnMenu:"columnMenu",includeInChooser:"includeInChooser",style:"style",headerStyle:"headerStyle",filterStyle:"filterStyle",footerStyle:"footerStyle",cssClass:["class","cssClass"],headerClass:"headerClass",filterClass:"filterClass",footerClass:"footerClass"},decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),bm=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridFilterCellTemplate",""]]}),a})(),Sm=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridFilterMenuTemplate",""]]}),a})();function Cm(a){return Xn(a.field)}let hh=(()=>{class a extends Gl{constructor(i,u){super(i,u),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupHeaderColumnTemplateRef(){return this.groupHeaderColumnTemplate?this.groupHeaderColumnTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return void 0===this.title?this.field:this.title}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column"]],contentQueries:function(i,u,I){if(1&i&&(e.Suo(I,Fp,5),e.Suo(I,cv,5),e.Suo(I,dh,5),e.Suo(I,Gg,5),e.Suo(I,_m,5),e.Suo(I,bm,5),e.Suo(I,Sm,5)),2&i){let K;e.iGM(K=e.CRH())&&(u.template=K.first),e.iGM(K=e.CRH())&&(u.groupHeaderTemplate=K.first),e.iGM(K=e.CRH())&&(u.groupHeaderColumnTemplate=K.first),e.iGM(K=e.CRH())&&(u.groupFooterTemplate=K.first),e.iGM(K=e.CRH())&&(u.editTemplate=K.first),e.iGM(K=e.CRH())&&(u.filterCellTemplate=K.first),e.iGM(K=e.CRH())&&(u.filterMenuTemplate=K.first)}},inputs:{field:"field",format:"format",sortable:"sortable",groupable:"groupable",editor:"editor",filter:"filter",filterable:"filterable",editable:"editable"},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})();function ph(a){return a.isSpanColumn}let cp=(()=>{class a extends Gl{constructor(i,u){if(super(i,u),this.isSpanColumn=!0,this.template=new e.n_E,this.editTemplate=new e.n_E,this.childColumns=new e.n_E,this.includeInChooser=!1,this._editable=!0,i&&i.isSpanColumn)throw new Error("SpanColumn cannot be nested inside another SpanColumn")}set editable(i){this._editable=i}get editable(){return Xn(this.editTemplateRef)&&this._editable}set width(i){}get width(){return this.childColumns.reduce((i,u)=>i+u.width,0)}get leafIndex(){return this.childColumns.first.leafIndex}get templateRef(){const i=this.template.first;return i?i.templateRef:void 0}get editTemplateRef(){const i=this.editTemplate.first;return i?i.templateRef:void 0}get colspan(){return this.childColumns.filter(i=>i.isVisible).length}set locked(i){this._locked=i}get locked(){return this._locked||this.childColumns.some(i=>i.locked)}get childrenArray(){return this.childColumns.toArray()}get hasChildren(){return this.childColumns.length>0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-span-column"]],contentQueries:function(i,u,I){if(1&i&&(e.Suo(I,Fp,4),e.Suo(I,_m,4),e.Suo(I,hh,4)),2&i){let K;e.iGM(K=e.CRH())&&(u.template=K),e.iGM(K=e.CRH())&&(u.editTemplate=K),e.iGM(K=e.CRH())&&(u.childColumns=K)}},inputs:{editable:"editable",locked:"locked"},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})();const mu=a=>a.reduce((f,i)=>f.concat(ph(i)?i.childrenArray:[i]),[]),Af=a=>a.reduce((f,i)=>f.concat(ph(i)?[i].concat(i.childrenArray):[i]),[]),Zu=a=>mu(a).filter(f=>f.isVisible),uv=a=>f=>(f||[]).reduce((i,u)=>i+(u[a]||0),0),dv=uv("width"),Ku=uv("colspan"),hv=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),Rf=a=>a.reduce((f,i)=>(i.isColumnGroup?f=f.concat(Rf((a=>a.children.filter(f=>f!==a))(i))):i.isSpanColumn?f=f.concat(i.childrenArray):f.push(i),f),[]).filter(f=>f.isVisible),mv=(a,...f)=>Rf(f).some(a),zp=a=>(0,Je.Xo)(a,[{field:"orderIndex",dir:"asc"}]),_v=a=>Go(a.parent)&&ph(a.parent);function Bp(a){return a.isColumnGroup}let vv=(()=>{class a extends Gl{constructor(i,u){if(super(i,u),this.parent=i,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,i&&i.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent")}rowspan(){return 1}get colspan(){return this.children?Ku(this.children.filter(i=>i!==this&&i.isVisible)):1}get leafIndex(){return this.children?(this.firstChild||{}).leafIndex:-1}get childrenArray(){return this.children.filter(i=>i!==this)}get hasChildren(){return Boolean(this.firstChild)}get firstChild(){return this.children.find(i=>i!==this)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column-group"]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,Gl,4),2&i){let K;e.iGM(K=e.CRH())&&(u.children=K)}},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),Vg=(()=>{class a{constructor(i){this.templateRef=i,this._condition=()=>!0}set showIf(i){if("function"!=typeof i)throw new Error(`showIf must be a function, but received ${JSON.stringify(i)}.`);this._condition=i}get showIf(){return this._condition}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridDetailTemplate",""]],inputs:{showIf:["kendoGridDetailTemplateShowIf","showIf"]}}),a})();const ru=()=>(0,o.X_)()&&document.createElement;let yv,jg=null,C2=null,Wg=(()=>{class a{constructor(i,u){this.zone=i,this.changeDetector=u,this.changes=new e.vpe,!(typeof window>"u")&&this.zone.runOutsideAngular(()=>{this.subscriptions=(0,P.R)(window,"resize").pipe((0,ae.e)(100)).subscribe(()=>{yv!==window.devicePixelRatio&&i.run(()=>{jg=null,this.changes.emit(),this.changeDetector.markForCheck()})})})}ngOnDestroy(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=null)}get scrollbarWidth(){return function Yg(){if(null===jg&&ru()){yv=window.devicePixelRatio||1;const a=document.createElement("div");a.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",a.innerHTML="&nbsp;",document.body.appendChild(a),jg=a.offsetWidth-a.scrollWidth,document.body.removeChild(a)}return jg}()}get rtlScrollLeft(){return function w2(){if(null===C2&&ru()){const a=document.createElement("div");a.style.direction="rtl",a.style.display="block",a.style.clear="both",a.style.width="100px",a.style.visibility="hidden",a.style.position="absolute",a.style.left="-10000px",a.style.overflow="scroll",a.style.zoom="1";const f=document.createElement("div");f.style.width="200px",f.style.height="1px",a.append(f),document.body.appendChild(a);const i=a.scrollLeft;a.scrollLeft=-1,C2=a.scrollLeft<0?a.scrollLeft:i,document.body.removeChild(a)}return C2}()}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.R0b),e.LFG(e.sBO))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const bv=a=>void 0!==a.items&&void 0!==a.field,wm=a=>a.reduce((f,i)=>bv(i)?f.concat(wm(i.items)):f.concat([i]),[]),Cv=(a,{footers:f,level:i,dataIndex:u,parentGroupIndex:I,groupIndex:K,parentGroup:at})=>{const jt=a[0];return Xn(jt)&&bv(jt)?((a=>void 0!==a.offset&&void 0!==a.skipHeader)(jt)&&(K=Xn(jt.offset)?jt.offset:K),new $g(a,f,i,u,I,K,at)):new Dy(a,u,I,at)};class wv{constructor(f,i=0){this.arr=f,this.idx=i,this.arr=f||[]}[ou](){return this}next(){return this.idx<this.arr.length?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}}}class x2{constructor(f,i=0,u=(I=>I)){this.dataIndex=i,this.resultMap=u,this._innerIterator=f[ou]?f[ou]():new wv(f)}[ou](){return this}next(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}class Dy extends x2{constructor(f,i,u,I){super(f,i,(K,at)=>({done:K.done,value:{data:K.value,groupIndex:u,index:at,type:"data",group:I}}))}get index(){return this.dataIndex}}class $g{constructor(f,i=!1,u=0,I=0,K="",at=0,jt){this.arr=f,this.outputFooters=i,this.level=u,this.dataIndex=I,this.parentIndex=K,this.groupIndex=at,this.parentGroup=jt,this.currentGroupIndex="",this.arr=f||[],this._iterator=new x2(this.arr,this.dataIndex)}[ou](){return this}nextGroupItem(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=`${(a=this.parentIndex)&&a+"_"}${this.groupIndex++}`,{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0});var a}footerItem(){if(this.current){const f=this.current;return this.current=null,{done:!1,value:{data:f,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:f,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}innerIterator(f){return this._innerIterator||(this._innerIterator=Cv(f.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}nextDataItem(f){const u=this.innerIterator(f).next();return Xn(u.value)&&!u.done&&"data"===u.value.type&&(this.dataIndex=u.value.index+1),u.done?void 0:u}next(){return Xn(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}get index(){return this.dataIndex+1}}class Ey{constructor(f,i=0,u=!1){this.source=f,this.skip=i,this.groupFooters=u,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}isGridDataResult(f){return void 0!==f.total&&void 0!==f.data}get total(){return this.isObject?this.source.total:this.source.length}get data(){return this.isObject?this.source.data:this.source}map(f){return this.data.map(f)}filter(f){return this.data.filter(f)}reduce(f,i){return this.data.reduce(f,i)}forEach(f){this.data.forEach(f)}some(f){return this.data.some(f)}[ou](){return Cv(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}toString(){return this.data.toString()}}class zh{constructor(f){this.accessor=f}get total(){return this.accessor().total}get length(){return this.accessor().data.length}get first(){return this.accessor().data[0]}get last(){return this.accessor().data[this.length-1]}at(f){return((a,f)=>{const i=a[0];return Xn(i)&&bv(i)?wm(a)[f]:a[f]})(this.accessor().data,f)}map(f){return this.accessor().map(f)}filter(f){return this.accessor().filter(f)}reduce(f,i){return this.accessor().reduce(f,i)}forEach(f){this.accessor().forEach(f)}some(f){return this.accessor().some(f)}[ou](){return this.accessor()[ou]()}toString(){return this.accessor().toString()}}class ld{constructor(f,i,u){this.keysX=new Map,this.totalKeysCount=0,f&&i&&u&&f.forEach(I=>this.add(I[i],I[u]))}get size(){return this.totalKeysCount}add(f,i){this.keysX.has(f)||this.keysX.set(f,new Set),this.has(f,i)||(this.keysX.get(f).add(i),this.totalKeysCount+=1)}delete(f,i){this.has(f,i)&&(this.keysX.get(f).delete(i),this.totalKeysCount-=1)}has(f,i){return this.keysX.has(f)&&this.keysX.get(f).has(i)}clear(){this.keysX.clear(),this.totalKeysCount=0}toArray(f,i){return Array.from(this.keysX).reduce((u,I)=>{const[K,at]=I;return Array.from(at).forEach(jt=>u.push({[f]:K,[i]:jt})),u},[])}}let xm=(()=>{class a{constructor(i){this.renderer=i,this.navigableElements=[],this.currentActiveIndex=0,this.defaultFocusableSelector="\n        [kendogridtoolbarfocusable],\n        [kendogridaddcommand],\n        [kendogridcancelcommand],\n        [kendogrideditcommand],\n        [kendogridremovecommand],\n        [kendogridsavecommand],\n        [kendogridexcelcommand],\n        [kendogridpdfcommand]\n    "}notify(){this.navigableElements=this.navigableElements.length&&Array.from(this.navigableElements[0].parentElement.querySelectorAll(this.defaultFocusableSelector))||[],this.currentActiveIndex=0,this.updateFocus()}focus(){this.navigableElements[this.currentActiveIndex]?.focus()}updateFocus(){this.navigableElements.length&&(this.navigableElements.forEach(i=>{this.renderer.setAttribute(i,"tabindex","-1")}),this.renderer.setAttribute(this.navigableElements[this.currentActiveIndex],"tabindex","0"),(0,o.X_)()&&document.activeElement.closest(".k-toolbar")&&this.navigableElements[this.currentActiveIndex].focus())}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.Qsj))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Gd=(()=>{class a{constructor(i){this.renderer=i,this.topToolbarNavigation=new xm(this.renderer),this.bottomToolbarNavigation=new xm(this.renderer)}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.Qsj))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Dm=(()=>{class a{constructor(i,u){this.ctx=i,this.cd=u,this.selectedKeys=[],this.selectedKeysChange=new e.vpe,this.rowSelectionState=new Set,this.cellSelectionState=new ld,this.init()}get isCellSelectionMode(){return Xn(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}ngOnChanges(i){Xn(i.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}init(){Xn(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=i=>this.rowSelectionState.has(this.getItemKey(i))),Xn(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=(i,u,I)=>{const K=this.getSelectionItem(i,u,I);return{selected:this.cellSelectionState.has(K.itemKey,K.columnKey),item:K}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}destroy(){this.selectionChangeSubscription.unsubscribe()}reset(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}getItemKey(i){if(this.selectionKey){if("string"==typeof this.selectionKey)return i.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(i)}return i.index}getSelectionItem(i,u,I){const K={};return K.itemKey=this.getItemKey(i),Xn(u)||Xn(I)?(this.columnKey&&("string"==typeof this.columnKey&&(K.columnKey=i.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(K.columnKey=this.columnKey(u,I))),{itemKey:K.itemKey,columnKey:K.columnKey?K.columnKey:I}):K}onSelectionChange(i){i.selectedRows?(i.deselectedRows.forEach(u=>{const I=this.getItemKey(u);this.rowSelectionState.delete(I)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),i.selectedRows.forEach(u=>{const I=this.getItemKey(u);this.rowSelectionState.add(I)})):(i.deselectedCells.forEach(({itemKey:u,columnKey:I})=>{this.cellSelectionState.delete(u,I)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),i.selectedCells.forEach(({itemKey:u,columnKey:I})=>{this.cellSelectionState.add(u,I)})),this.cd.markForCheck(),this.notifyChange()}notifyChange(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}setState(i){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new ld(i,"itemKey","columnKey"):this.rowSelectionState=new Set(i)}stateToArray(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gd),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[e.TTD]}),a})();class xv{constructor(f){this.columns=f,this.allColumns=new e.n_E,this.leafColumns=new e.n_E,this.lockedColumns=new e.n_E,this.nonLockedColumns=new e.n_E,this.lockedLeafColumns=new e.n_E,this.nonLockedLeafColumns=new e.n_E,this.totalLevels=0,this.changes=new e.vpe,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}refresh(){const f=this.totalLevels,i=new Array,u=new Array,I=new Array,K=new Array,at=new Array,jt=new Array,Kn=new Array,Ti=new Array,ns=new Array;let ls=!1,ws=!1,pr=!1,sr=0,na=0;this.totalLevels=0,this.columns().forEach(Xo=>{const qo=!0===Xo.isLocked?u:I,Ia=!0===Xo.isLocked?K:at,ba=!0===Xo.isLocked?Ti:ns;Bp(Xo)||(qo.push(Xo),i.push(Xo),Kn.push(...Zu([Xo])),ba.push(...Zu([Xo])),ls=ls||mv(eo=>Boolean(eo.groupHeaderColumnTemplateRef),Xo),ws=ws||mv(eo=>Boolean(eo.groupFooterTemplateRef),Xo),pr=pr||mv(eo=>Boolean(eo.footerTemplateRef),Xo),Xo.isLocked||(sr+=Xo.width||0),Xo.isSpanColumn?Xo.childColumns.forEach(eo=>{eo.leafIndex=na++}):Xo.leafIndex=na++),Ia.push(Xo),jt.push(Xo),this.totalLevels=Xo.level>this.totalLevels?Xo.level:this.totalLevels}),this.hasGroupHeaderColumn=ls,this.hasGroupFooter=ws,this.hasFooter=pr,this.leafColumnsToRender=Kn,this.lockedColumnsToRender=Ti,this.nonLockedColumnsToRender=ns,this.unlockedWidth=sr;const _o=((...a)=>{let f=!1;for(let i=0;i<a.length;i++){const[u,I]=a[i];f=f||u.length!==I.length,u.reset(I)}return f})([this.leafColumns,i],[this.lockedLeafColumns,u],[this.nonLockedLeafColumns,I],[this.lockedColumns,K],[this.allColumns,jt],[this.nonLockedColumns,at])||f!==this.totalLevels;return _o&&this.changes.emit(),_o}}const Pf=(a,f)=>{a.forEach(i=>{f(i),i.isColumnGroup&&i.hasChildren&&Pf(i.childrenArray,f)})},Up=(a,f)=>{zp(a).forEach(i=>{f(i),i.isColumnGroup&&i.hasChildren&&Up(i.childrenArray,f)})},Dv=(a,f)=>{const i=[];return zp(a).forEach(u=>{if(f(u))if(u.isColumnGroup){const I=Dv(u.childrenArray,f);I.length&&i.push(u,...I)}else(!u.isSpanColumn||Dv(u.childrenArray,f).length)&&i.push(u)}),i};class Em{constructor(f){this.columns=f}static empty(){return new Em(new e.n_E)}forEach(f){Pf(this.columns,f)}filter(f){const i=[];return Pf(this.columns,u=>{f(u)&&i.push(u)}),i}filterHierarchy(f){return Dv(this.columns.toArray(),f)}filterSort(f){const i=[];return Up(this.columns.toArray(),u=>{f(u)&&i.push(u)}),i}toArray(){const f=[];return Pf(this.columns,i=>{f.push(i)}),f}rootColumns(){return this.columns.toArray()}totalColumnLevels(){let f=0;return this.forEach(i=>{f=Math.max(i.level,f)}),f}}class up{constructor(){this._columnList=Em.empty}get columns(){return mu(this._columnList().toArray()).filter(Cm)}registerColumnsContainer(f){this._columnList=f}formatForGroup(f){const i=this.columnForGroup(f);return i?i.format:""}isGroupable(f){const[i]=this.columns.filter(u=>u.field===f);return!i||i.groupable}groupTitle(f){const i=this.columnForGroup(f);return i?i.title||i.field:this.groupField(f)}groupHeaderTemplate(f){const i=this.columnForGroup(f);return i?i.groupHeaderTemplateRef||i.groupHeaderColumnTemplateRef:void 0}groupField(f){return f.data?f.data.field:f.field}columnForGroup(f){const i=this.groupField(f),[u]=this.columns.filter(I=>I.field===i);return u}}let Gp=(()=>{class a{constructor(i){this.ngZone=i,this.changes=new e.vpe}notify(){(!this.subscription||this.subscription.closed)&&(this.subscription=this.ngZone.onStable.asObservable().pipe((0,he.q)(1)).subscribe(()=>this.changes.emit()))}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.R0b))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),dp=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridNoRecordsTemplate",""]]}),a})();const Ev=a=>f=>f.forEach(i=>i.style.height=a),Tv=(a,f)=>{if(!(0,o.X_)())return;const i=document.activeElement,u=((a,f)=>{const i=[];for(let u=0,I=a.length;u<I&&f[u];u++)i.push([a[u],f[u]]);return i})(a.rows,f.rows);(a=>{a.filter(([f,i])=>f.style.height||i.style.height).forEach(Ev(""))})(u);const I=(a=>a.map(([f,i])=>{const u=f.offsetHeight,I=i.offsetHeight;return u<I?I:u}))(u);[a,f].forEach(K=>K.style.display="none"),u.forEach((a=>(f,i)=>Ev(`${a[i]+1}px`)(f))(I)),[a,f].forEach(K=>K.style.display=""),document.activeElement!==i&&(a.contains(i)||f.contains(i))&&i.focus()};let Nf=(()=>{class a{constructor(){this.isColumnMenu=!1,this.isPopupOpen=!1}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),bc=(()=>{class a{constructor(i){this.changes=new G.x,this.menuTabbingService=i}filter(i){this.changes.next(i)}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Nf,8))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Ju=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoPagerTemplate",""]]}),a})(),pp=(()=>{class a{constructor(){this.savePDF=new e.vpe,this.drawPDF=new e.vpe,this.exportClick=new e.vpe,this.dataChanged=new e.vpe}save(i){this.emitEvent(this.savePDF,i)}draw(i,u){this.emitEvent(this.drawPDF,{component:i,promise:u})}emitEvent(i,u){if(0===i.observers.length){if((0,e.X6Q)())throw new Error("Creating PDF requires including the PDFModule and adding the <kendo-grid-pdf> component.")}else i.emit(u)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();class Zg extends Nh{constructor(){super()}}let fp=(()=>{class a{constructor(){this.scroll=!1}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const I2=a=>window.matchMedia(a).matches;let Mv=(()=>{class a{constructor(){this.matchMedia=I2}matchesMedia(i){return!i||this.matchMedia((a=>({xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[a]||a))(i))}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Vd=(()=>{class a{constructor(){this.saveToExcel=new e.vpe,this.exportClick=new e.vpe}save(i){if(0===this.saveToExcel.observers.length){if((0,e.X6Q)())throw new Error("Saving excel requires including the ExcelModule and adding the <kendo-grid-excel> component.")}else this.saveToExcel.emit(i)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Kg=(()=>{class a{constructor(i){this.templateRef=i,this._position="top"}set position(i){this._position=i}get position(){return this._position}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),a})(),Bh=(()=>{class a{constructor(i){this.ngZone=i,this.changes=new G.x,this.elements=[],this.subscriptions=new N.w0,this.headerSubscription=new N.w0,this.bodySubscription=new N.w0,this.subscriptions.add(this.changes.subscribe(u=>this.scrollLeft(u)))}registerEmitter(i,u){this.unregister(u),this.elements.push({element:i,sourceType:u}),("body"===u||"header"===u)&&this.ngZone.runOutsideAngular(()=>{const I=(0,P.R)(i,"scroll").pipe((0,Se.U)(({target:{scrollLeft:at}})=>({scrollLeft:at,sourceType:u}))),K=I.pipe((0,Q.x)((at,jt)=>at.scrollLeft===jt.scrollLeft),(0,te.h)(at=>!this.source||this.source===at.sourceType),(0,pe.b)(at=>this.source=at.sourceType)).subscribe(at=>this.changes.next(at));K.add(I.pipe((0,te.h)(at=>this.source&&this.source!==at.sourceType)).subscribe(()=>this.source=void 0)),"body"===u?this.bodySubscription.add(K):this.headerSubscription.add(K)})}destroy(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}scrollLeft({scrollLeft:i,sourceType:u}){this.ngZone.runOutsideAngular(()=>{this.elements.filter(I=>u!==I.sourceType).forEach(({element:I})=>I.scrollLeft=i)})}unregister(i){const u=this.elements.findIndex(I=>I.sourceType===i);u>-1&&("header"===i?(this.headerSubscription.unsubscribe(),this.headerSubscription=new N.w0):"body"===i&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new N.w0),this.elements.splice(u,1))}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.R0b))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),kv=(()=>{class a{constructor(){this.resizeSubscription=new N.w0(()=>{}),this.dispatcher=new G.x,this.changes=this.dispatcher.asObservable().pipe((0,Ee.p)(100))}connect(i){this.resizeSubscription.add(i.subscribe(this.dispatcher))}destroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Ov=a=>a.parent?Ov(a.parent):!!a.locked,T2=(a,f)=>Object.assign({columns:Rf([a]),locked:Ov(a)},f);let Lf=(()=>{class a{constructor(){this.changes=new e.vpe,this.tables=[],this.batch=null}start(i){this.trackColumns(i);const u=(this.column.isColumnGroup?[i]:[]).concat(Rf([i]));this.changes.emit({columns:u,locked:Ov(this.column),type:"start"})}resizeColumns(i){const u=T2(this.column,{deltaPercent:i,type:"resizeColumn"});this.changes.emit(u)}resizeTable(i,u){const I=T2(i,{delta:u,type:"resizeTable"});this.changes.emit(I)}resizedColumn(i){this.resizedColumns.push(i)}end(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}registerTable(i){return this.tables.push(i),()=>{this.tables.splice(this.tables.indexOf(i),1)}}measureColumns(i){null!==this.batch?this.batch.push(...i):this.autoFitBatch(i,()=>this.end())}autoFit(...i){const u=i.filter(I=>!I.isLocked);this.autoFitStart(u),this.autoFitBatch(this.batch,()=>{if(u.length<i.length){const I=i.filter(K=>K.isLocked);this.autoFitStart(I),this.autoFitBatch(this.batch,()=>this.end())}else this.end()})}trackColumns(i){this.resizedColumns=[],this.column=i}autoFitStart(i){if(this.batch=[],this.resizedColumns=[],0===i.length)return;const u=i[0].isLocked;this.changes.emit({type:"start",columns:i,locked:u}),this.changes.emit({type:"triggerAutoFit",columns:i,locked:u})}autoFitBatch(i,u){const I=i.length>0&&i[0].column.isLocked,K=this.tables.filter(at=>at.locked===I).map(at=>at.autoFit(i));(0,y.$)(...K).pipe((0,he.q)(1)).subscribe(at=>{this.changes.emit({columns:i.map(jt=>jt.column),type:"autoFitComplete",widths:at,locked:I}),u&&u()}),this.batch=null}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Jg=a=>!0===a||"string"==typeof a&&a.indexOf("row")>-1;class My extends Nh{constructor(f){super(),this.originalEvent=f}}let Hp=(()=>{class a{constructor(i,u,I,K,at){this.popupService=i,this.renderer=u,this.ngZone=I,this.localization=at,this.onClose=new G.x,this.pointerEventsSub=new N.w0,this.scrollSubscription=K.changes.subscribe(()=>this.destroy())}open(i,u,I,K="k-grid-filter-popup"){const at=Xn(I)&&this.popupRef===I;if(this.destroy(),!at){const Kn=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:Kn},popupAlign:{vertical:"top",horizontal:Kn},anchor:i,popupClass:K,content:u,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(i)}const jt=this.popupRef?.popupElement;return jt&&this.attachMouseListeners(jt),this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.pointerEventsSub.unsubscribe(),this.pointerEventsSub=null,this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(i){(0,o.X_)()&&(this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",u=>{if(!((a,f)=>{for(;a;){if(f(a))return!0;a=a.parentNode}return!1})(u.target,I=>this.popupRef.popupElement===I||I===i)){const I=new My(u);this.onClose.next(I),!I.isDefaultPrevented()&&this.canClosePopup&&this.destroy(),this.canClosePopup=!0}})))}attachMouseListeners(i){this.pointerEventsSub=new N.w0,this.ngZone.runOutsideAngular(()=>{this.pointerEventsSub.add(this.renderer.listen(i,"pointerdown",u=>{u.stopImmediatePropagation(),this.canClosePopup=!1})),this.pointerEventsSub.add(this.renderer.listen(i,"pointerup",()=>{this.canClosePopup=!0}))})}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Ft.qL),e.LFG(e.Qsj),e.LFG(e.R0b),e.LFG(Bh),e.LFG(ee.oQ))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Qg=a=>{if(!(0,o.X_)())return;let f=!1;return()=>(f||(document.body.appendChild(a),f=!0),a)},Pv=a=>{const{clientTop:f,clientLeft:i}=(a=>a.ownerDocument.documentElement)(a),{pageYOffset:u,pageXOffset:I}=(a=>a.ownerDocument.defaultView)(a),{top:K,left:at}=a.getBoundingClientRect();return{top:K+u-f,left:at+I-i}},O2=(a,f)=>0!=(4&f.compareDocumentPosition(a)),ky=(a,f)=>a===f||0!=(16&f.compareDocumentPosition(a)),Xg=(a,f)=>{const i=Pv(a),{offsetWidth:u,offsetHeight:I}=a;return{left:i.left+(f?0:u),top:i.top,height:I}};let Tm=(()=>{class a{constructor(){this.changes=new e.vpe,this.register=[],this.lastTarget=null}add(i){this.register.push(i)}remove(i){this.register=this.register.filter(u=>u!==i)}notifyDrag(i,u,I){const K=this.targetFor(u);this.lastTarget!==K&&(this.changes.next({draggable:i,mouseEvent:I,target:this.lastTarget,type:"leave"}),K&&this.changes.next({draggable:i,mouseEvent:I,target:K,type:"enter"}),this.lastTarget=K)}notifyDrop(i,u){this.changes.next({draggable:i,mouseEvent:u,target:this.lastTarget,type:"drop"}),this.lastTarget=null}targetFor(i){const u=ky.bind(null,i);return this.register.find(({element:{nativeElement:I}})=>u(I))}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const A2=(a,f)=>{const i=a.querySelector(".k-icon");i.className=i.className.replace(/(plus|cancel)/,f?"plus":"cancel")},Vp=(a,f=null)=>{const i=a.querySelectorAll(".k-icon")[1],u=null===f?"":f?"k-i-lock":"k-i-unlock";i.className=i.className.replace(/(k-i-unlock|k-i-lock)/,"")+` ${u}`};let qg=(()=>{class a{constructor(i){this.santizer=i}create(i){if(!(0,o.X_)())return;this.dom=document.createElement("div"),(a=>{a.className="k-header k-drag-clue",a.style.position="absolute",a.style.zIndex="20000"})(this.dom);const u=this.santizer.sanitize(e.q3G.HTML,i);this.dom.innerHTML=`\n            <span class="k-icon k-drag-status k-i-cancel">\n                <span class="k-icon k-icon-modifier"></span>\n            </span>\n            ${u}\n        `}attach(){return Qg(this.dom)}remove(){var i;this.dom&&this.dom.parentNode&&(i=this.dom,setTimeout(()=>document.body.removeChild(i)),this.dom=null)}show(){this.dom.style.display=""}hide(){this.dom.style.display="none"}enable(){A2(this.dom,!0)}disable(){A2(this.dom,!1)}removeLock(){Vp(this.dom)}toggleLock(i){Vp(this.dom,i)}move(i){this.dom.style.top=i.pageY+"px",this.dom.style.left=i.pageX+"px"}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(st.H7))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Nv=(()=>{class a{create(){(0,o.X_)()&&(this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide())}attach(){return Qg(this.dom)}remove(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}hide(){this.dom.style.display="none"}position({left:i,top:u,height:I}){this.dom.style.display="block",this.dom.style.height=I+"px",this.dom.style.top=u+"px",this.dom.style.left=i-this.dom.offsetWidth/2+"px"}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Mm=(()=>{class a{constructor(){this.changes=new e.vpe}reorder(i){this.changes.emit(i)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();class Lv extends Nh{constructor({column:f,newIndex:i,oldIndex:u}){super(),this.column=f,this.newIndex=i,this.oldIndex=u}}class km{constructor(f,i,u,I,K,at,jt,Kn){this.dataRows=f,this.headerRows=i,this.isVirtual=u,this.hasPager=I,this.hasDetailTemplate=K,this.gridElement=at,this.virtualColumns=jt,this.columns=Kn}get maxLogicalRowIndex(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}const Oy={left:"0px",right:"0px"};let Mu=(()=>{class a{constructor(){this.visibilityChange=new e.vpe,this.lockedChange=new e.vpe,this.stickyChange=new e.vpe,this.columnRangeChange=new e.vpe,this.columnsContainer=new xv(()=>[])}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get isLocked(){return this.lockedLeafColumns.length>0}get totalLevels(){return this.columnsContainer.totalLevels}get hiddenColumns(){return this.list?this.list().filter(i=>!i.isVisible):[]}get leafNamedColumns(){const i=mu(this.list().filterSort(u=>!u.isColumnGroup)).filter(u=>u.matchesMedia&&u.displayTitle);return(0,Je.Xo)(i,[{field:"locked",dir:"desc"}])}get unlockedRootCount(){return this.list().rootColumns().filter(i=>!i.locked&&i.isVisible).length}stickyColumnsStyles(i){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(I=>I.sticky&&!I.locked&&I.isVisible)),0===this.stickyColumns.length)return Oy;const u=this.stickyColumns.reduce((I,K)=>(K.leafIndex<i.leafIndex?I.left+=K.width:K.leafIndex>i.leafIndex&&(I.right+=K.width),I),{left:0,right:0});return{left:`${u.left}px`,right:`${u.right}px`}}init(i,u){this.columnsContainer=i,this.list=u,this.stickyColumns=null}changeVisibility(i){this.stickyColumns=null,this.visibilityChange.emit(i)}changeLocked(i){this.stickyColumns=null,this.lockedChange.emit(i)}changeStuck(i){this.stickyColumns=null,this.stickyChange.emit(i)}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();class Ff{constructor(){this.changes=new G.x}sort(f){this.changes.next(f)}}class Ay{constructor(f){this.columns=f}}class jd{constructor(f){this.columns=f}}function gp(a,f){return"data"===f.type&&f.isEditing?f.data:a}class gu{constructor(f){this.columns=f}}let Uh=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridCellLoadingTemplate",""]]}),a})(),_p=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridLoadingTemplate",""]]}),a})(),Qu=(()=>{class a{constructor(){this.changes=new G.x}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Gf={forbidden:"cancel",before:"insert-middle",after:"insert-middle"},Hf={forbidden:gt.p5j,before:gt.Ryu,after:gt.Ryu},Fv={zIndex:"20000",display:"flex",position:"fixed"},zv=["k-drag-clue","k-reorder-clue"],Bv={zIndex:"19000",position:"absolute"},Om=["k-drop-hint","k-drop-hint-h"],Uv={handle:".k-table-td.k-drag-cell",dragTarget:".k-master-row",dropTarget:".k-master-row"};let cd=(()=>{class a{constructor(i){this.renderer=i,this.hintElement=null,this.defaultSelectors=Uv,this.hintText="",this.lastDropPosition="forbidden",this.dragTarget=null,this.dropTarget=null,this.rowReorder=new e.vpe}press(i){this.dragTarget=i.dragTarget,this.offsetY=i.dragEvent.offsetY}dragStart(){this.createDropIndicator()}drag(i){(0,o.EN)(i.hintElement)&&!(0,o.EN)(this.hintElement)&&(this.hintElement=i.hintElement,this.decorateHint());const u_x=i.dragEvent.clientX,u_y=i.dragEvent.clientY-this.offsetY;(0,o.EN)(this.hintElement)&&(this.renderer.setStyle(this.hintElement,"left",`${u_x}px`),this.renderer.setStyle(this.hintElement,"top",`${u_y}px`)),this.positionDropIndicator(i)}dragEnter(i){this.dropTarget=i.dropTarget}dragLeave(){this.dropTarget=null,this.hide()}dragEnd(){this.destroyDropIndicator(),this.dragTarget=null,this.dropTarget=null,this.hintElement=null}drop(i){this.destroyDropIndicator();const u=this.rowReorderArgs(this.dragTarget,this.dropTarget,i.dragData);this.rowReorder.emit(u)}reorderRows(i,u){if("forbidden"===this.lastDropPosition)return;const{draggedRows:I,dropTargetRow:K}=i,at=I[0].dataItem,jt=K.dataItem,Kn=u.indexOf(at),Ti=u.indexOf(jt),ns=this.calculateIndexToAdd(Kn,Ti);u.splice(Kn,1),u.splice(ns,0,at)}get hintIcon(){return Gf[this.lastDropPosition]}get hintSVGIcon(){return Hf[this.lastDropPosition]}getDefaultHintText(i,u){let I="";const K=i.toArray().filter(Kn=>!Kn.hidden&&(0,o.EN)(Kn.field)).map(Kn=>Kn.field),jt=this.getDragRowPerElement(this.dragTarget,u)?.dataItem;return(0,o.EN)(jt)&&K.forEach(Kn=>{const Ti=jt[Kn];(0,o.EN)(Ti)&&(I+=`${Ti} `)}),I.trim()}rowReorderArgs(i,u,I){return{draggedRows:[this.getDragRowPerElement(i,I)],dropTargetRow:this.getDragRowPerElement(u,I),dropPosition:this.lastDropPosition}}getDragRowPerElement(i,u){let I=i?.getAttribute("data-kendo-grid-item-index");return I=I?parseInt(I,10):-1,{dataItem:-1===I?null:u[I-(this.skip||0)],rowIndex:I,element:i}}createDropIndicator(){(0,o.X_)()&&(this.dropIndicator=document.createElement("div"),this.decorateDropIndicator(),this.dropIndicator.innerHTML='\n            <div class="k-drop-hint-start"></div>\n            <div class="k-drop-hint-line"></div>\n        ',document.body.appendChild(this.dropIndicator),this.hide())}destroyDropIndicator(){(0,o.X_)()&&this.dropIndicator&&this.dropIndicator.parentElement&&(document.body.removeChild(this.dropIndicator),this.dropIndicator=null)}decorateHint(){zv.forEach(i=>this.renderer.addClass(this.hintElement,i)),Object.keys(Fv).forEach(i=>this.renderer.setStyle(this.hintElement,i,Fv[i]))}positionDropIndicator(i){this.lastDropPosition=this.getDropPosition(i.dragEvent),this.updateDropIndicatorPosition()}calculateIndexToAdd(i,u){return i>u&&"after"===this.lastDropPosition?u+1:i>u&&"before"===this.lastDropPosition||i<u&&"after"===this.lastDropPosition?u:i<u&&"before"===this.lastDropPosition?u-1:void 0}decorateDropIndicator(){Om.forEach(i=>this.renderer.addClass(this.dropIndicator,i)),Object.keys(Bv).forEach(i=>this.renderer.setStyle(this.dropIndicator,i,Bv[i]))}getDropPosition(i){if(this.dropTarget===this.dragTarget||!(0,o.EN)(this.dropTarget)||((a,f)=>this.dropTarget?.parentElement!==this.dragTarget?.parentElement)())return"forbidden";const u=this.dropTarget.getBoundingClientRect(),K=u.height/2,at=i.clientY,jt=u.top;let Kn=null;return at<jt+K?Kn="before":at>=jt+u.height-K&&(Kn="after"),("before"===Kn&&((a,f)=>this.dropTarget===this.dragTarget.nextElementSibling)()||"after"===Kn&&((a,f)=>this.dropTarget===this.dragTarget.previousElementSibling)())&&(Kn="forbidden"),Kn}updateDropIndicatorPosition(){if(this.shouldHideDropIndicator()||!this.dropTarget)return void this.hide();this.show();const i=function Yp(a){const{clientTop:f,clientLeft:i}=(a=>a?.ownerDocument.documentElement)(a),{pageYOffset:u,pageXOffset:I}=(a=>a?.ownerDocument.defaultView)(a),{top:K,left:at}=a.getBoundingClientRect();return{top:K+u-f,left:at+I-i}}(this.dropTarget);let u=i.top;"after"===this.lastDropPosition&&(u+=this.dropTarget.offsetHeight),this.renderer.setStyle(this.dropIndicator,"left",`${i.left+this.dropIndicator.offsetWidth/2}px`),this.renderer.setStyle(this.dropIndicator,"top",`${u}px`)}shouldHideDropIndicator(){return"forbidden"===this.lastDropPosition}hide(){(0,o.EN)(this.dropIndicator)&&(this.dropIndicator.style.display="none")}show(){(0,o.EN)(this.dropIndicator)&&(this.dropIndicator.style.display="")}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(e.Qsj))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),t_=(()=>{class a{constructor(i,u){this.ctx=i,this.wrapper=u,this.context={},this.role="toolbar",this._size="medium",this.navigationService=this.ctx[`${this.wrapper.nativeElement.getAttribute("position")}ToolbarNavigation`]}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}set position(i){this.context.position=i}set size(i){this._size=i,"none"===i&&this.wrapper.nativeElement.classList.remove("k-toolbar-sm","k-toolbar-md")}get size(){return this._size}clickHandler(i){if(this.navigable&&(0,o.X_)()){const u=(0,o.oq)(i.target,o.EB),I=this.navigationService.navigableElements.indexOf(u);I>-1&&(this.navigationService.currentActiveIndex=I),this.navigationService.updateFocus(),i.target===this.wrapper.nativeElement&&this.navigationService.focus()}}arrowLeftListener(){this.navigable&&(0,o.X_)()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex--,this.navigationService.currentActiveIndex<0&&(this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1),this.navigationService.updateFocus())}arrowRightListener(){this.navigable&&(0,o.X_)()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex++,this.navigationService.currentActiveIndex>=this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex=0),this.navigationService.updateFocus())}homeKeyListener(i){this.navigable&&(0,o.X_)()&&this.navigationService.navigableElements.length&&(i.preventDefault(),this.navigationService.currentActiveIndex=0,this.navigationService.updateFocus())}endKeyListener(i){this.navigable&&(0,o.X_)()&&this.navigationService.navigableElements.length&&(i.preventDefault(),this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1,this.navigationService.updateFocus())}get toolbarTemplateRef(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gd),e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-toolbar"]],hostVars:5,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.clickHandler(K)})("keydown.arrowleft",function(K){return u.arrowLeftListener(K)})("keydown.arrowright",function(K){return u.arrowRightListener(K)})("keydown.home",function(K){return u.homeKeyListener(K)})("keydown.end",function(K){return u.endKeyListener(K)}),2&i&&(e.uIk("role",u.role),e.ekj("k-toolbar-sm",u.sizeSmallClass)("k-toolbar-md",u.sizeMediumClass))},inputs:{position:"position",size:"size",navigable:"navigable"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,u){1&i&&e.YNc(0,yl,1,2,null,0),2&i&&e.Q6J("ngIf",u.toolbarTemplateRef)},dependencies:[Ue.O5,Ue.tP],encapsulation:2}),a})();const fh=a=>(({buttonCount:a=10,info:f=!0,type:i="numeric",pageSizes:u=!1,previousNext:I=!0,responsive:K=!0,position:at="bottom"})=>({buttonCount:a,info:f,pageSizes:!0===u?[5,10,20]:u,previousNext:I,type:i,responsive:K,position:at}))(!0===a?{}:a);let vp=(()=>{class a{constructor(i){this.root=i,this.active=!0,this.children=[],this.root.registerGroup(this)}get focusableChildren(){return this.children.filter(i=>i.canFocus())}get isActive(){return this.active}ngOnDestroy(){this.root.unregisterGroup(this),this.active=!0}registerElement(i){this.unregisterElement(i),this.children.push(i)}unregisterElement(i){this.children=this.children.filter(u=>u!==i)}isNavigable(){const i=this.focusableChildren;return 1===i.length&&i[0].isNavigable()}canFocus(){return this.focusableChildren.length>0}focus(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}activate(){this.toggleState(!0)}deactivate(){this.toggleState(!1)}hasFocus(){return this.children.reduce((i,u)=>i||u.hasFocus(),!1)}toggleState(i){this.active!==i&&(this.active=i,this.children.forEach(u=>u.toggle(i)))}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(rh))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),Wp=(()=>{class a{constructor(i,u,I){this.localization=i,this.pagerContext=u,this.cd=I,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize,this.size="medium"}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(i){return this.localization.get(i)}changePage(i){return this.pagerContext.changePage(i),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(fu),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,inputs:{size:"size"}}),a})(),Am=(()=>{class a extends Wp{constructor(i,u,I,K){super(i,u,I),this.navigationService=K,this.caretAltLeftIcon=gt.Me8,this.caretAltToLeftIcon=gt.EN9}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize=I,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(fu),e.Y36(e.sBO),e.Y36(Zc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-prev-buttons"]],features:[e.qOj],decls:2,vars:12,consts:[["kendoButton","","type","button","role","button","icon","caret-alt-to-left","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-first",3,"kendoGridFocusable","title","svgIcon","disabled","size","click"],["kendoButton","","type","button","icon","caret-alt-left","fillMode","flat","rounded","none",1,"k-pager-nav",3,"kendoGridFocusable","disabled","svgIcon","size","title","click"]],template:function(i,u){1&i&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return 1!==u.currentPage&&u.changePage(0)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return 1!==u.currentPage&&u.changePage(u.currentPage-2)}),e.qZA()),2&i&&(e.Q6J("kendoGridFocusable",!u.disabled)("title",u.textFor("pagerFirstPage"))("svgIcon",u.caretAltToLeftIcon)("disabled",u.disabled)("size",u.size),e.uIk("aria-label",u.textFor("pagerFirstPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!u.disabled)("disabled",u.disabled)("svgIcon",u.caretAltLeftIcon)("size",u.size)("title",u.textFor("pagerPreviousPage")),e.uIk("aria-label",u.textFor("pagerPreviousPage")))},dependencies:[Lt.zx,Nc],encapsulation:2,changeDetection:0}),a})(),Rm=(()=>{class a extends Wp{constructor(i,u,I){super(i,I,u),this.pagerContext=I,this.numbersWrapClass=!0}get buttons(){const i=[];for(let u=this.start;u<=this.end;u++)i.push(u);return i}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const i=this.currentPage,u=this.buttonCount;if(i>u){const I=i%u;return 0===I?i-u+1:i-I+1}return 1}pageLabel(i){const u=this.textFor("pagerPage");return u?u+" "+i:i.toString()}onSelectChange(i){const u=i.target,I=Number(u.value);Number.isNaN(I)?this.changePage("previousButtons"===u.value?this.start-2:this.end):this.changePage(I-1)}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize=I,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(e.sBO),e.Y36(fu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-pager-numbers-wrap",u.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[e.qOj],decls:8,vars:12,consts:[["kendoGridFocusable","",1,"k-dropdown-list","k-dropdown","k-picker","k-picker-solid","k-rounded-md",3,"ngClass","change"],["value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons",3,"selected",4,"ngIf"],[1,"k-pager-numbers"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","click",4,"ngIf"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","selected","click",4,"ngFor","ngForOf"],["type","button","kendoGridFocusable","","kendoButton","","class","k-pager-nav","fillMode","flat","themeColor","primary","rounded","none",3,"size","click",4,"ngIf"],["value","previousButtons",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",3,"selected"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"size","click"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"size","selected","click"]],template:function(i,u){1&i&&(e.TgZ(0,"select",0),e.NdJ("change",function(K){return u.onSelectChange(K)}),e.YNc(1,ft,2,2,"option",1),e.YNc(2,ge,2,8,"option",2),e.YNc(3,He,2,2,"option",3),e.qZA(),e.TgZ(4,"div",4),e.YNc(5,Bt,2,3,"button",5),e.YNc(6,bn,2,6,"button",6),e.YNc(7,Jn,2,3,"button",7),e.qZA()),2&i&&(e.Q6J("ngClass",e.WLB(9,ci,"small"===u.size,"medium"===u.size||!u.size)),e.uIk("title",u.textFor("selectPage"))("aria-label",u.textFor("selectPage")),e.xp6(1),e.Q6J("ngIf",u.start>1),e.xp6(1),e.Q6J("ngForOf",u.buttons),e.xp6(1),e.Q6J("ngIf",u.end<u.totalPages),e.xp6(2),e.Q6J("ngIf",u.start>1),e.xp6(1),e.Q6J("ngForOf",u.buttons),e.xp6(1),e.Q6J("ngIf",u.end<u.totalPages))},dependencies:[Lt.zx,Nc,Ue.mk,Ue.O5,Ue.sg],encapsulation:2,changeDetection:0}),a})(),Pm=(()=>{class a{constructor(i,u){this.host=i,this.renderer=u}ngAfterViewInit(){this.renderer.addClass(this.host.numericInput.nativeElement,"k-pager-nav")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(kt.Uw),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridPagerInput",""]]}),a})(),n_=(()=>{class a extends Wp{constructor(i,u,I,K,at){super(i,u,at),this.pagerContext=u,this.zone=I,this.navigationService=K,this.handleKeyDown=jt=>{const Kn=this.numericInput.value||this.current;jt.keyCode===o.R8.Enter&&(jt.preventDefault(),Kn!==this.current&&this.zone.run(()=>{this.changePage(Kn-1)}))},this.handleBlur=()=>{const jt=this.numericInput.value;jt?jt!==this.current&&this.zone.run(()=>{this.changePage(jt-1)}):this.numericInput.writeValue(this.current)}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize=I,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(fu),e.Y36(e.R0b),e.Y36(Zc),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-input"]],viewQuery:function(i,u){if(1&i&&e.Gf(kt.Uw,5),2&i){let I;e.iGM(I=e.CRH())&&(u.numericInput=I.first)}},features:[e.qOj],decls:4,vars:17,consts:[[1,"k-pager-input","k-label"],["kendoGridPagerInput","","format","n0",3,"kendoGridFocusable","spinners","decimals","disabled","value","min","max","size","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(i,u){1&i&&(e.TgZ(0,"span",0),e._uU(1),e._UZ(2,"kendo-numerictextbox",1),e._uU(3),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",u.textFor("pagerPage")," "),e.xp6(1),e.Q6J("kendoGridFocusable",u.hasPages)("spinners",!1)("decimals",0)("disabled",!u.hasPages)("value",u.current)("min",u.hasPages?1:0)("max",u.totalPages)("size",u.size)("autoCorrect",!0)("title",u.textFor("pagerPageNumberInputTitle"))("kendoEventsOutsideAngular",e.WLB(14,Oi,u.handleKeyDown,u.handleBlur)),e.xp6(1),e.AsE(" ",u.textFor("pagerOf")," ",u.totalPages," "))},dependencies:[kt.Uw,Pm,Nc,o.nV],encapsulation:2}),a})(),$p=(()=>{class a extends Wp{constructor(i,u,I,K){super(i,u,I),this.navigationService=K,this.caretAltRightIcon=gt.bI8,this.caretAltToRightIcon=gt.$2l}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize=I,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(fu),e.Y36(e.sBO),e.Y36(Zc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-next-buttons"]],features:[e.qOj],decls:2,vars:12,consts:[["kendoButton","","type","button","icon","caret-alt-right","fillMode","flat","rounded","none",1,"k-pager-nav",3,"kendoGridFocusable","size","svgIcon","disabled","title","click"],["kendoButton","","type","button","icon","caret-alt-to-right","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-last",3,"kendoGridFocusable","size","svgIcon","disabled","title","click"]],template:function(i,u){1&i&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return u.currentPage!==u.totalPages&&u.changePage(u.currentPage)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return u.currentPage!==u.totalPages&&u.changePage(u.totalPages-1)}),e.qZA()),2&i&&(e.Q6J("kendoGridFocusable",!u.disabled)("size",u.size)("svgIcon",u.caretAltRightIcon)("disabled",u.disabled)("title",u.textFor("pagerNextPage")),e.uIk("aria-label",u.textFor("pagerNextPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!u.disabled)("size",u.size)("svgIcon",u.caretAltToRightIcon)("disabled",u.disabled)("title",u.textFor("pagerLastPage")),e.uIk("aria-label",u.textFor("pagerLastPage")))},dependencies:[Lt.zx,Nc],encapsulation:2,changeDetection:0}),a})(),Zp=(()=>{class a extends Wp{constructor(i,u,I){super(i,I,u),this.pagerContext=I}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize=I,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(e.sBO),e.Y36(fu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-info"]],hostVars:4,hostBindings:function(i,u){2&i&&e.ekj("k-pager-info",u.classes)("k-label",u.classes)},features:[e.qOj],decls:1,vars:5,template:function(i,u){1&i&&e._uU(0),2&i&&e.xDo("",u.currentPageText," - ",u.maxItems," ",u.textFor("pagerOf")," ",u.total," ",u.textFor("pagerItems"),"")},encapsulation:2,changeDetection:0}),a})(),i_=(()=>{class a{constructor(i){this.host=i,this.keydownHandler=u=>{u.keyCode===o.R8.Escape&&this.host.isOpen&&(u.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){this.host.wrapper.nativeElement.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(vn.rI))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridPagerDropDown",""]]}),a})(),s_=(()=>{class a extends Wp{constructor(i,u,I,K){super(i,I,u),this.pagerContext=I,this.navigationService=K,this._pageSizes=[]}set pageSizes(i){let u=[];i.forEach(I=>{u.push("number"==typeof I?{text:I.toString(),value:I}:I)}),this.pageSize&&!u.some(I=>I.value===this.pageSize)&&(u=[{text:this.pageSize.toString(),value:this.pageSize},...u]),this._pageSizes=u}get pageSizes(){return this._pageSizes}get classes(){return!0}get showInitialPageSize(){return 0===this.pageSizes.filter(i=>"number"==typeof i.value?i.value===Number(this.pageSize):this.total===Number(this.pageSize)).length}pageSizeChange(i){this.pageSize="number"==typeof i?i:this.total,this.pagerContext.changePageSize(this.pageSize)}getValue(i){return"number"==typeof i.value?i.value:this.total}onChanges({total:i,skip:u,pageSize:I}){this.total=i,this.skip=u,this.pageSize="number"==typeof I?I:this.total,this.cd.markForCheck()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(e.sBO),e.Y36(fu),e.Y36(Zc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager-page-sizes"]],hostVars:4,hostBindings:function(i,u){2&i&&e.ekj("k-pager-sizes",u.classes)("k-label",u.classes)},inputs:{pageSizes:"pageSizes"},features:[e.qOj],decls:3,vars:7,consts:[["kendoGridPagerDropDown","","kendoGridFocusable","","textField","text","valueField","value",1,"k-dropdown",3,"size","tabindex","data","valuePrimitive","value","valueChange"],["dropdownlist",""],[3,"for","text"]],template:function(i,u){if(1&i&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(K){return u.pageSizeChange(K)}),e.qZA(),e._UZ(2,"kendo-label",2)),2&i){const I=e.MAs(1);e.Q6J("size",u.size)("tabindex",0)("data",u.pageSizes)("valuePrimitive",!0)("value",u.pageSize),e.xp6(2),e.Q6J("for",I)("text",u.textFor("pagerItemsPerPage"))}},dependencies:[vn.rI,jn._n,i_,Nc],encapsulation:2,changeDetection:0}),a})(),Nm=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns){this.pagerContext=i,this.navigationService=u,this.element=I,this.renderer=K,this.zone=at,this.localizationService=jt,this.cellContext=Kn,this.focusRoot=Ti,this.focusGroup=ns,this.total=0,this.skip=1,this.pageChange=new e.vpe,this.pagerWrapClass=!0,this.gridPagerClass=!0,this.settings=fh({}),this.subscriptions=new N.w0,this._templateContext={},this._isFocused=!1,this._size="medium",this.resizeHandler=()=>{const ls=this.element.nativeElement;if(this.template||!ls)return;const ws=ls.offsetWidth;ws<600?(this.renderer.removeClass(ls,"k-pager-mobile-md"),this.renderer.addClass(ls,"k-pager-mobile-sm")):ws>=600&&ws<768?(this.renderer.addClass(ls,"k-pager-mobile-md"),this.renderer.removeClass(ls,"k-pager-mobile-sm")):this.clearResponsiveClasses()}}set options(i){this.settings=fh(i)}set size(i){this._size=i,"none"===i&&this.element.nativeElement.classList.remove("k-pager-sm","k-pager-md")}get size(){return this._size}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}get isFocused(){return this._isFocused}get pagerAriaLabel(){return this.navigationService.pagerEnabled?this.pagerLabel:void 0}get pagerLabel(){const i=this.localizationService.get("pagerLabel")||"";return yc(yc(i,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}get focusTrapTabIndex(){return this.focusGroup.isActive?"0":"-1"}onFocusIn(i){this.navigationService.pagerEnabled&&(i.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}onFocusOut(){this.navigationService.pagerEnabled&&(this._isFocused=!1)}onEscape(){this.navigationService.pagerEnabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}onEnter(i){this.navigationService.pagerEnabled&&i.target===this.element.nativeElement&&(i.preventDefault(),this.focusRoot.activate(),this.focusFirstElement())}navigateToPreviousPage(i){this.shouldTriggerPageChange(i.target,this.currentPage>1)&&this.pagerContext.prevPage()}navigateToNextPage(i){this.shouldTriggerPageChange(i.target,this.currentPage<this.totalPages)&&this.pagerContext.nextPage()}navigateToFirstPage(i){this.shouldTriggerPageChange(i.target,this.currentPage>1)&&this.pagerContext.changePage(0)}navigateToLastPage(i){this.shouldTriggerPageChange(i.target,this.currentPage<this.totalPages)&&this.pagerContext.changePage(this.totalPages-1)}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get templateContext(){const i=this._templateContext;return i.totalPages=this.totalPages,i.total=this.total,i.skip=this.skip,i.pageSize=this.pageSize,i.currentPage=this.currentPage,i}ngOnInit(){this.subscriptions.add(this.pagerContext.pageChange.subscribe(this.changePage.bind(this))),this.navigationService.pagerEnabled&&this.focusRoot.deactivate()}ngDoCheck(){this.updateCellContext()}ngOnChanges(i){(0,o.aG)(["pageSize","skip","total"],i,!1)&&this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total});const u=i.template;u&&(u.currentValue?this.clearResponsiveClasses():this.resizeHandler()),i.options&&(this.settings.responsive?this.resizeHandler():this.clearResponsiveClasses())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}changePage(i){this.pageChange.emit(i)}onInnerFocusIn(i,u){this.zone.onStable.pipe((0,he.q)(1)).subscribe(()=>{"start"===u?i.relatedTarget===this.element.nativeElement?this.focusFirstElement():this.focusLastElement():this.focusFirstElement()})}clearResponsiveClasses(){const i=this.element.nativeElement;this.renderer.removeClass(i,"k-pager-mobile-sm"),this.renderer.removeClass(i,"k-pager-mobile-md")}shouldTriggerPageChange(i,u){return this.navigationService.pagerEnabled&&i===this.element.nativeElement&&u}focusFirstElement(){const i=Lg(this.element.nativeElement,!0);i&&i.focus()}focusLastElement(){const i=((a,f=!0)=>((a,f,i=!0)=>{let u=null;return $u(a,I=>(f(I)&&(u=I),!1),i),u})(a,i=>Df(i,f),!1))(this.element.nativeElement,!0);i&&i.focus()}updateCellContext(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(fu),e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(ee.oQ),e.Y36(ah,8),e.Y36(rh),e.Y36(vp))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-pager"]],hostVars:11,hostBindings:function(i,u){1&i&&e.NdJ("focusin",function(K){return u.onFocusIn(K)})("focusout",function(){return u.onFocusOut()})("keydown.escape",function(){return u.onEscape()})("keydown.enter",function(K){return u.onEnter(K)})("keydown.arrowleft",function(K){return u.navigateToPreviousPage(K)})("keydown.pageup",function(K){return u.navigateToPreviousPage(K)})("keydown.arrowright",function(K){return u.navigateToNextPage(K)})("keydown.pagedown",function(K){return u.navigateToNextPage(K)})("keydown.home",function(K){return u.navigateToFirstPage(K)})("keydown.end",function(K){return u.navigateToLastPage(K)}),2&i&&(e.uIk("aria-label",u.pagerAriaLabel),e.ekj("k-pager-wrap",u.pagerWrapClass)("k-grid-pager",u.gridPagerClass)("k-pager-sm",u.sizeSmallClass)("k-pager-md",u.sizeMediumClass)("k-focus",u.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",size:"size",template:"template"},outputs:{pageChange:"pageChange"},features:[e._Bn([{provide:Rp,useValue:!0},{provide:rh,deps:[Rp],useClass:rh},{provide:vp,deps:[rh],useClass:vp}]),e.TTD],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"size",4,"ngIf"],[3,"size","buttonCount",4,"ngIf"],[3,"size","pageSizes",4,"ngIf"],[3,"size"],[3,"size","buttonCount"],[3,"size","pageSizes"],["pageSizes",""],[3,"resize"]],template:function(i,u){1&i&&(e.YNc(0,es,1,2,"div",0),e.YNc(1,Cs,1,2,"ng-container",1),e.YNc(2,Me,7,6,"ng-container",2),e.YNc(3,tn,1,2,"div",0),e.YNc(4,oi,1,0,"kendo-resize-sensor",3)),2&i&&(e.Q6J("ngIf",u.navigationService.pagerEnabled),e.xp6(1),e.Q6J("ngIf",null==u.template?null:u.template.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=u.template&&u.template.templateRef)),e.xp6(1),e.Q6J("ngIf",u.navigationService.pagerEnabled),e.xp6(1),e.Q6J("ngIf",u.settings.responsive))},dependencies:[Am,Rm,n_,$p,Zp,s_,o.NG,Ue.O5,Ue.tP],encapsulation:2}),a})(),Gh=(()=>{class a{constructor(i,u){this.element=i,this.service=u,this.context={},this.enter=new e.vpe,this.leave=new e.vpe,this.drop=new e.vpe,this.subscriptions=new N.w0}ngOnInit(){this.service.add(this);const i=this.service.changes.pipe((0,te.h)(({target:u})=>u===this));this.subscriptions.add(i.pipe((0,te.h)(({type:u})=>"leave"===u)).subscribe(u=>{this.leave.next(this.eventArgs(u))})),this.subscriptions.add(i.pipe((0,te.h)(({type:u})=>"enter"===u)).subscribe(u=>{this.enter.next(this.eventArgs(u))})),this.subscriptions.add(i.pipe((0,te.h)(({type:u})=>"drop"===u)).subscribe(u=>{this.drop.next(this.eventArgs(u))}))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}eventArgs(i){return{target:this,mouseEvent:i.mouseEvent,draggable:i.draggable}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(Tm))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),a})();const Hh=a=>f=>new RegExp(`(^| )${a}( |$)`).test(f.className),L2=sh(Hh("k-i-x"),Hh("k-svg-i-x"),Hh("k-icon-button")),Gv=sh(Hh("k-i-sort-asc-small"),Hh("k-i-sort-desc-small"),Hh("k-svg-i-sort-asc-small"),Hh("k-svg-i-sort-desc-small")),Hv=Ld(ih(L2),ih(Gv),ih(Df),ih(Rc("label"))),Vv=({clientX:a,clientY:f})=>(0,o.X_)()&&document.elementFromPoint(a,f);let Yv=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti){this.draggable=i,this.element=u,this.zone=I,this.service=K,this.hint=at,this.cue=jt,this.nav=Kn,this.renderer=Ti,this.context={},this.drag=new e.vpe,this.subscriptions=new N.w0}set enableDrag(i){this.enabled=i,this.updateTouchAction()}get hostClass(){return this.enabled}ngOnInit(){this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe((0,te.h)(i=>this.enabled),(0,te.h)(({originalEvent:{target:i}})=>i===this.element.nativeElement||Hv(i)),(0,pe.b)(i=>{const u=i.originalEvent;i.isTouch||u.preventDefault(),this.nav.navigateTo(u.target)}),(0,se.w)((a=>f=>(0,A.of)(f).pipe((0,we.g)(150),(0,oe.R)(a)))(this.draggable.kendoRelease)),(0,pe.b)(i=>{this.hint.create(this.context.hint),this.cue.create()}),(0,se.w)(i=>this.draggable.kendoDrag.pipe((0,pe.b)(u=>{u.isTouch&&u.originalEvent.preventDefault()}),(0,pe.b)(this.hint.attach()),(0,pe.b)(this.cue.attach()),(0,oe.R)(this.draggable.kendoRelease),(0,Se.U)(u=>({move:u,down:i})))),(0,pe.b)(this.performDrag.bind(this)),(0,q.c)(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}drop(i){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,i)}performDrag({move:i}){this.hint.move(i);const u=this.elementUnderCursor(i);u&&this.service.notifyDrag(this,u,i),this.drag.emit({draggable:this,mouseEvent:i})}elementUnderCursor(i){this.hint.hide();let u=Vv(i);return u&&/k-grouping-dropclue/.test(u.className)&&(u=((a,f)=>{a.style.display="none";const i=f();return a.style.display="block",i})(u,Vv.bind(this,i))),this.hint.show(),u}updateTouchAction(){this.element&&(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(o.pD,1),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Tm),e.Y36(qg),e.Y36(Nv),e.Y36(Zc),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-grid-draggable-header",u.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),a})();const F2=({field:a})=>Bo(a),z2=({groups:a,field:f})=>a.some(i=>i.field===f),Lm=sh(({target:a,field:f})=>a.field===f,Ld(({target:a})=>a.lastTarget,({groups:a,field:f})=>a.map(i=>i.field).indexOf(f)===a.length-1));let Vf=(()=>{class a{constructor(i,u,I,K,at){this.hint=i,this.cue=u,this.groupInfoService=I,this.localization=K,this.cd=at,this.change=new e.vpe,this.groups=[],this.dropTargets=new e.n_E,this.groupTitles=[],this.subscription=new N.w0}get groupHeaderClass(){return!0}set text(i){this.emptyText=i}get text(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")}ngAfterViewInit(){this.subscription.add(Za(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngOnInit(){this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngDoCheck(){const i=this.groups.map(u=>this.groupInfoService.groupTitle(u));(i.length!==this.groupTitles.length||i.some((u,I)=>u!==this.groupTitles[I]))&&(this.groupTitles=i,this.cd.markForCheck())}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}messageFor(i){return this.localization.get(i)}getTitle(i){return this.messageFor("desc"===i.dir?"sortedDescending":"sortedAscending")}getDirectionIcon(i){return"desc"===i.dir?"sort-desc-sm":"sort-asc-sm"}getDirectionSvgIcon(i){return"desc"===i.dir?gt.K8M:gt.dpm}directionChange(i){i.dir=i.dir?i.dir:"asc",i.dir="asc"===i.dir?"desc":"asc";const u=this.groups.findIndex(K=>K.field===i.field),I=[...this.groups.slice(0,u),i,...this.groups.slice(u+1)];this.change.emit(I)}insert(i,u){const I=this.groups.filter(K=>K.field!==i);(I.length||0===this.groups.length)&&this.change.emit([...I.slice(0,u),{field:i},...I.slice(u)])}remove(i){this.change.emit(this.groups.filter(u=>u.field!==i.field))}canDrop(i,u){return!("groupIndicator"===i.type?Lm:(a=>sh(F2,z2,(a=>({field:f})=>!a.isGroupable(f))(this.groupInfoService)))())({field:i.field,groups:this.groups,target:u})}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new N.w0;const i=this.dropTargets.reduce((K,at)=>(0,T.T)(K,at.enter),(0,F.D)([])),u=this.dropTargets.reduce((K,at)=>(0,T.T)(K,at.leave),(0,F.D)([])),I=this.dropTargets.reduce((K,at)=>(0,T.T)(K,at.drop),(0,F.D)([]));this.targetSubscription.add(i.pipe((0,pe.b)(K=>this.hint.removeLock()),(0,te.h)(({draggable:K,target:at})=>this.canDrop(K.context,at.context)),(0,pe.b)(this.enter.bind(this)),(0,q.c)(I.pipe((0,oe.R)(u.pipe((0,pe.b)(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}enter({draggable:i,target:u}){this.hint.enable();let I=u.context.lastTarget||O2(i.element.nativeElement,u.element.nativeElement);this.localization.rtl&&(I=!I),this.cue.position(Xg(u.element.nativeElement,I))}leave(){this.hint.disable(),this.cue.hide()}drop({target:i,draggable:u}){const I=u.context.field,K=this.dropTargets.toArray().indexOf(i);this.insert(I,K)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(qg),e.Y36(Nv),e.Y36(up),e.Y36(ee.oQ),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-group-panel"]],viewQuery:function(i,u){if(1&i&&e.Gf(Gh,5),2&i){let I;e.iGM(I=e.CRH())&&(u.dropTargets=I)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-grouping-header",u.groupHeaderClass)},inputs:{text:"text",navigable:"navigable",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[["class","k-grouping-drop-container","kendoDropTarget","",3,"context",4,"ngIf"],["role","none",3,"navigable",4,"ngIf"],["kendoDropTarget","",1,"k-grouping-drop-container",3,"context"],["role","none",3,"navigable"],["kendoDropTarget","","kendoDraggableColumn","","kendoDraggable","",3,"title","enableDrag","context","label","removable","icon","svgIcon","contentClick","remove",4,"ngFor","ngForOf"],["kendoDropTarget","","kendoDraggableColumn","","kendoDraggable","",3,"title","enableDrag","context","label","removable","icon","svgIcon","contentClick","remove"]],template:function(i,u){1&i&&(e.YNc(0,hs,2,3,"div",0),e.YNc(1,gr,2,2,"kendo-chiplist",1),e.YNc(2,Hr,2,2,"div",0)),2&i&&(e.Q6J("ngIf",0===u.groups.length),e.xp6(1),e.Q6J("ngIf",0!==u.groups.length),e.xp6(1),e.Q6J("ngIf",0!==u.groups.length))},dependencies:[Lt.rf,Lt.Yw,Ue.O5,Gh,Ue.sg,Yv,o.pD],encapsulation:2,changeDetection:0}),a})(),jf=(()=>{class a{constructor(){this.columns=[],this.groups=[],this.sort=new Array}get columnsToRender(){return Zu(this.columns)}trackBy(i,u){return i}isSorted(i){const u=this.sortDescriptor(i.field);return this.isSortable(i)&&("asc"===u.dir||"desc"===u.dir)}getColumnComponent(i){return i}isSortable(i){return!Bo(i.field)&&Go(i.sortable)}sortDescriptor(i){return this.sort.find(u=>u.field===i)||{field:i}}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",sort:"sort"},attrs:Yo,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width","k-sorted",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(i,u){1&i&&(e.ynx(0),e.YNc(1,wa,1,2,"col",0),e.YNc(2,oc,1,2,"col",1),e.YNc(3,Al,1,4,"col",2),e.BQk()),2&i&&(e.xp6(1),e.Q6J("ngForOf",u.groups),e.xp6(1),e.Q6J("ngIf",null==u.detailTemplate?null:u.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",u.columnsToRender)("ngForTrackBy",u.trackBy))},dependencies:[Ue.sg,Ue.O5],encapsulation:2}),a})();const r_={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},Fm=(...a)=>Object.assign({},r_,...a),Wv=(a,f)=>!1!==a.filter&&f.field&&f.filterable,$v=(a,f)=>!1!==a.sort&&f.field&&f.sortable,a_=(a,f)=>a.lock&&f.lockable&&!(f.parent&&!f.parent.isSpanColumn),zm=a=>!1!==a.columnChooser,ud=a=>a.autoSizeColumn,Kv=a=>a.autoSizeAllColumns,Jv=(a,f,i)=>{i?a.autoFitColumn(i):a.autoFitColumns(),f.close()},Yf=(a={filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"},f=>Object.keys(a).reduce((i,u)=>(i[a[u]]=f.get(u),i),{})),Bm=a=>a.map(f=>f.toJSON());var a;let ga=(()=>{class a{constructor(i,u){this.operator=i,this.localization=u,this.messages=Yf(this.localization),this._text=this.messages[this.operator],this.subscription=this.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(i){this._text=Bo(i)?this.messages[this.operator]:i}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}toJSON(){return{text:this.text,value:this.operator}}refreshText(){const i=this._text===this.messages[this.operator];this.messages=Yf(this.localization),i&&(this._text=this.messages[this.operator])}}return a.\u0275fac=function(i){return new(i||a)(e.Y36("filterOperator"),e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-operator-base"]],inputs:{text:"text"},decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})();const Um=(a,f,i,u)=>Xn(f)&&Xn(f.filters)&&f.filters.length>a?f.filters[a]:((a,f,i)=>((f=f||{filters:[],logic:"and"}).filters[a]=i,i))(a,f,{field:i,operator:u}),Wf=a=>[{text:a.get("filterAndLogic"),value:"and"},{text:a.get("filterOrLogic"),value:"or"}],Xv=a=>Xn(a.filters)?a.filters.reduce((f,i)=>f.concat((0,Je.GO)(i)?Xv(i):[i]),[]):[],qv=(a,f)=>{Xn(a)&&Xn(a.filters)&&(a.filters=a.filters.filter(i=>(0,Je.GO)(i)?(qv(i,f),i.filters.length):i.field!==f))},Gm=(a,f)=>Xv(a||{}).filter(i=>i.field===f),Hm=(a,f)=>(qv(a,f),a),Vm=a=>f=>Object.keys(a).map(i=>({text:f.get(i),value:a[i]}));let Vh=(()=>{class a{constructor(i){this.filterService=i,this.operatorList=new e.n_E,this.size="medium"}get hostClasses(){return!0}get operators(){return this._operators?.length?this._operators:this.defaultOperators}set operators(i){this._operators=i}ngAfterContentInit(){this.operationListSubscription=Za(this.operatorList).pipe((0,Se.U)(i=>i.toArray()),(0,Se.U)(Bm)).subscribe(i=>{this.operators=i})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(i){return((a,f)=>{const[i]=Gm(a,f);return i})(this.filter,i)}filtersByField(i){return Gm(this.filter,i)}removeFilter(i){return Hm(this.filter,i)}updateFilter(i){const u=this.filter||{filters:[],logic:"and"},[I]=Xv(u).filter(K=>K.field===i.field);return Xn(I)?Object.assign(I,i):u.filters.push(i),u}applyFilter(i){this.filterService.filter(i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc))},a.\u0275dir=e.lG2({type:a,contentQueries:function(i,u,I){if(1&i&&e.Suo(I,ga,4),2&i){let K;e.iGM(K=e.CRH())&&(u.operatorList=K)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell",u.hostClasses)},inputs:{operators:"operators"}}),a})();const mh=a=>{if(a)return(0,Je.GO)(a)?{filters:mh(a.filters),logic:a.logic}:Array.isArray(a)?a.map(mh):(a=>(a=>{const f={};if(Object.assign(f,a),a.constructor!==Object){const i=a.constructor.prototype;Object.getOwnPropertyNames(i).forEach(u=>{"constructor"!==u&&i.hasOwnProperty(u)&&(f[u]=a[u])})}return f})(a))(a)};let Y2=(()=>{class a{constructor(i,u){this.host=i,this.resolver=u}ngOnInit(){this.component=this.host.createComponent(this.resolver.resolveComponentFactory(this.componentType())),this.initComponent({column:this.column,filter:this.filter})}ngOnDestroy(){this.component&&(this.component.destroy(),this.component=null)}ngOnChanges(i){(0,o.aG)(["column","filter"],i)&&this.initComponent({column:this.column,filter:this.filter})}initComponent({column:i,filter:u}){const I=this.component.instance;I.column=i,I.filter=u}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.s_b),e.Y36(e._Vd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridFilterHostBase",""]],inputs:{column:"column",filter:"filter"},features:[e.TTD]}),a})();const W2=Vm({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let l_=(()=>{class a extends Vh{constructor(i,u){super(i),this.localization=u,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=W2(this.localization),this.operatorList.length&&(this.operators=Bm(this.operatorList.toArray()))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ))},a.\u0275dir=e.lG2({type:a,inputs:{column:"column",filter:"filter",operator:"operator"},features:[e.qOj]}),a})(),Yd=(()=>{class a{constructor(i,u,I,K){this.element=I,this.renderer=K,this.change=new e.vpe,this.composing=!1,this.filterDelay=500,this.changeRequests=new G.x,this.accessor=i[0],u.runOutsideAngular(()=>{const at=K.listen(I.nativeElement,"compositionstart",()=>this.composing=!0),jt=K.listen(I.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=()=>{at(),jt()}})}set value(i){this.accessor.writeValue(i)}set disabled(i){this.accessor.setDisabledState(i)}ngAfterViewInit(){this.addAriaAttributes(),this.accessor.registerOnChange(i=>this.filterDelay>0?this.changeRequests.next(i):this.change.emit(i)),this.subscribeChanges()}ngOnChanges(i){(0,o.ln)("filterDelay",i)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe((0,ke.b)(this.filterDelay),(0,te.h)(()=>!this.composing)).subscribe(i=>this.change.emit(i))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}addAriaAttributes(){const i=this.columnLabel;if(this.kendoInput&&this.kendoInput.focusableId&&(0,o.X_)()){const u=this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`)||this.element.nativeElement;this.renderer.setAttribute(u,"aria-label",i)}else this.renderer.setAttribute(this.element.nativeElement,"aria-label",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(vt.JU,2),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoFilterInput",""]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,o.GX,7),2&i){let K;e.iGM(K=e.CRH())&&(u.kendoInput=K.first)}},inputs:{filterDelay:"filterDelay",columnLabel:"columnLabel",value:"value"},features:[e.TTD]}),a})();const Qb=new Set(["isnull","isnotnull","isempty","isnotempty"]),Jp=a=>Qb.has(a);let jm=(()=>{class a extends Vh{constructor(i){super(i)}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){const i=this.currentFilter;return this._operator||(this._operator=i?i.operator:this.defaultOperator),this._operator}set currentOperator(i){this._operator=i;const u=Jp(i);this.filterInputDisabled=u,u?this.applyNoValueFilter(i):!Bs(i)&&Xn(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){return Bo(this._defaultOperator)?this.operators&&this.operators.length?this.operators[0].value:"eq":this._defaultOperator}set defaultOperator(i){this._defaultOperator=i}set filterInputDisabled(i){this.input&&(this.input.disabled=i)}ngAfterContentInit(){Xn(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)),this.filterInputDisabled=Jp(this.currentOperator))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(i){(!Bo(i)||this.filterByField(this.column.field))&&this.filterChange(Bo(i)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:i}))}onClear(){this.onChange(null),this.filterInputDisabled=Jp(this.defaultOperator)}applyNoValueFilter(i){this.filterChange(this.updateFilter({field:this.column.field,operator:i,value:null}))}ngOnChanges(i){(0,o.ln)("filter",i,!1)&&(this._operator=null,this.filterInputDisabled=Jp(this.currentOperator))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc))},a.\u0275dir=e.lG2({type:a,contentQueries:function(i,u,I){if(1&i&&e.Suo(I,Yd,5),2&i){let K;e.iGM(K=e.CRH())&&(u.input=K.first)}},inputs:{column:"column",filter:"filter",defaultOperator:"defaultOperator"},features:[e.qOj,e.TTD]}),a})(),au=(()=>{class a{constructor(i){this.host=i,this.keydownHandler=u=>{u.keyCode===o.R8.Escape&&this.host.isOpen&&(u.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){const i=this.host.wrapper.nativeElement;i.setAttribute("aria-label",this.filterMenuDropDownLabel),i.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(vn.rI))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoFilterMenuDropDown",""]],inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"}}),a})(),c_=(()=>{class a extends jm{constructor(i){super(null),this.localizationService=i}get hostClasses(){return!1}ngAfterViewInit(){this.isFirstDropDown&&this.filterService&&this.filterService.menuTabbingService&&(this.filterService.menuTabbingService.firstFocusable=this.firstOperatorDropDown,this.firstOperatorDropDown.focus())}operatorChange(i){this.currentOperator=i}filterChange(i){this.applyFilter(i)}get currentFilter(){return this._currentFilter}set currentFilter(i){this._currentFilter=i}updateFilter(i){return Object.assign(this.currentFilter,i),this.filter}onChange(i){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:i}))}onShiftTab(i){i.stopImmediatePropagation(),(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.isFirstDropDown&&this.filterService.menuTabbingService.lastFocusable&&(i.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get filterMenuDropDownLabel(){const i=this.localizationService.get("filterMenuOperatorsDropDownLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-menu-input-wrapper"]],viewQuery:function(i,u){if(1&i&&e.Gf(vn.rI,5),2&i){let I;e.iGM(I=e.CRH())&&(u.firstOperatorDropDown=I.first)}},inputs:{filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",currentFilter:"currentFilter"},features:[e.qOj],ngContentSelectors:ll,decls:2,vars:4,consts:[["kendoFilterMenuDropDown","","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","value","valuePrimitive","valueChange","keydown.shift.tab"]],template:function(i,u){1&i&&(e.F$t(),e.TgZ(0,"kendo-dropdownlist",0),e.NdJ("valueChange",function(K){return u.operatorChange(K)})("keydown.shift.tab",function(K){return u.onShiftTab(K)}),e.qZA(),e.Hsn(1)),2&i&&e.Q6J("filterMenuDropDownLabel",u.filterMenuDropDownLabel)("data",u.operators)("value",u.currentOperator)("valuePrimitive",!0)},dependencies:[vn.rI,au],encapsulation:2}),a})(),t1=(()=>{class a{constructor(i){this.localizationService=i,this.operators=[]}get columnLabel(){const i=this.localizationService.get("filterInputLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-string-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},decls:2,vars:11,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoTextBox","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0),e._UZ(1,"input",1),e.qZA()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("currentFilter",u.currentFilter)("filterService",u.filterService)("isFirstDropDown",u.isFirstDropDown)("menuTabbingService",u.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("filterDelay",0)("ngModel",null==u.currentFilter?null:u.currentFilter.value))},dependencies:[c_,kt.mP,vt.Fj,Yd,vt.JJ,vt.On],encapsulation:2}),a})(),ku=(()=>{class a extends l_{constructor(i){super(null,i),this.logicOperators=Wf(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return Um(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Um(1,this.filter,(this.column||{}).field,this.operator)}logicChange(i){this.filter.logic=i}get filterMenuDropDownLabel(){const i=this.localization.get("filterMenuLogicDropDownLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=Wf(this.localization),super.localizationChange()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-string-filter-menu"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell",u.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:9,consts:[[3,"currentFilter","operators","filterService","column","filter","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService"]],template:function(i,u){1&i&&(e._UZ(0,"kendo-grid-string-filter-menu-input",0),e.YNc(1,Zl,1,4,"kendo-dropdownlist",1),e.YNc(2,Co,1,6,"kendo-grid-string-filter-menu-input",2)),2&i&&(e.Q6J("currentFilter",u.firstFilter)("operators",u.operators)("filterService",u.filterService)("column",u.column)("filter",u.filter)("isFirstDropDown",!0)("menuTabbingService",u.menuTabbingService),e.xp6(1),e.Q6J("ngIf",u.extra),e.xp6(1),e.Q6J("ngIf",u.extra))},dependencies:[t1,vn.rI,Ue.O5,au],encapsulation:2}),a})();const dd=Vm({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let hd=(()=>{class a extends Vh{constructor(i,u){super(i),this.localization=u,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=dd(this.localization)}set format(i){this._format=i}get format(){return Bo(this._format)?this.columnFormat:this._format}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!Bo(this.column.format)?Op(this.column.format):"n2"}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=dd(this.localization),this.operatorList.length&&(this.operators=Bm(this.operatorList.toArray()))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ))},a.\u0275dir=e.lG2({type:a,inputs:{column:"column",filter:"filter",operator:"operator",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},features:[e.qOj]}),a})(),u_=(()=>{class a{constructor(i){this.localization=i,this.operators=[],this.step=1,this.spinners=!0}messageFor(i){return this.localization.get(i)}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-numeric-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",filterDelay:"filterDelay",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},decls:3,vars:20,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0)(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA()()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("currentFilter",u.currentFilter)("filterService",u.filterService)("isFirstDropDown",u.isFirstDropDown)("menuTabbingService",u.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("filterDelay",u.filterDelay)("autoCorrect",!0)("value",null==u.currentFilter?null:u.currentFilter.value)("format",u.format)("decimals",u.decimals)("spinners",u.spinners)("min",u.min)("max",u.max)("step",u.step),e.xp6(1),e.Q6J("increment",u.messageFor("filterNumericIncrement"))("decrement",u.messageFor("filterNumericDecrement")))},dependencies:[c_,kt.Uw,kt.wS,Yd],encapsulation:2}),a})(),Ym=(()=>{class a extends hd{constructor(i){super(null,i),this.logicOperators=Wf(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0,this.filterDelay=500}get hostClasses(){return!1}get firstFilter(){return Um(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Um(1,this.filter,(this.column||{}).field,this.operator)}logicChange(i){this.filter.logic=i}get filterMenuDropDownLabel(){const i=this.localization.get("filterMenuLogicDropDownLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=Wf(this.localization),super.localizationChange()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-numeric-filter-menu"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell",u.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",filterDelay:"filterDelay",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:16,consts:[[3,"currentFilter","operators","filterService","column","filter","filterDelay","format","decimals","spinners","min","max","step","menuTabbingService","isFirstDropDown"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService"]],template:function(i,u){1&i&&(e._UZ(0,"kendo-grid-numeric-filter-menu-input",0),e.YNc(1,Ao,1,4,"kendo-dropdownlist",1),e.YNc(2,Wo,1,12,"kendo-grid-numeric-filter-menu-input",2)),2&i&&(e.Q6J("currentFilter",u.firstFilter)("operators",u.operators)("filterService",u.filterService)("column",u.column)("filter",u.filter)("filterDelay",u.filterDelay)("format",u.format)("decimals",u.decimals)("spinners",u.spinners)("min",u.min)("max",u.max)("step",u.step)("menuTabbingService",u.menuTabbingService)("isFirstDropDown",!0),e.xp6(1),e.Q6J("ngIf",u.extra),e.xp6(1),e.Q6J("ngIf",u.extra))},dependencies:[u_,vn.rI,Ue.O5,au],encapsulation:2}),a})();const n1=Vm({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let $2=(()=>{class a extends Vh{constructor(i,u){super(i),this.localization=u,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=n1(this.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(i){this._format=i}get format(){return Bo(this._format)?this.columnFormat:this._format}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!Bo(this.column.format)?Op(this.column.format):"d"}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=n1(this.localization),this.operatorList.length&&(this.operators=Bm(this.operatorList.toArray()))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-date-filter-base"]],inputs:{column:"column",filter:"filter",operator:"operator",format:"format",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber"},features:[e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),Z2=(()=>{class a{constructor(i,u){this.popupService=i,this.localizationService=u,this.operators=[]}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}open(i){this.subscription=this.popupService.onClose.pipe((0,te.h)(()=>i.isActive)).subscribe(u=>u.preventDefault())}messageFor(i){return this.localizationService.get(i)}get columnLabel(){const i=this.localizationService.get("filterInputLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Hp),e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-date-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",menuTabbingService:"menuTabbingService",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",isFirstDropDown:"isFirstDropDown"},decls:4,vars:22,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","value","placeholder","formatPlaceholder","format","min","max","activeView","bottomView","topView","weekNumber","open"],["picker",""],[3,"toggle","today"]],template:function(i,u){if(1&i){const I=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0)(1,"kendo-datepicker",1,2),e.NdJ("open",function(){e.CHM(I);const at=e.MAs(2);return e.KtG(u.open(at))}),e._UZ(3,"kendo-datepicker-messages",3),e.qZA()()}2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("currentFilter",u.currentFilter)("filterService",u.filterService)("isFirstDropDown",u.isFirstDropDown)("menuTabbingService",u.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("filterDelay",0)("value",null==u.currentFilter?null:u.currentFilter.value)("placeholder",u.placeholder)("formatPlaceholder",u.formatPlaceholder)("format",u.format)("min",u.min)("max",u.max)("activeView",u.activeView)("bottomView",u.bottomView)("topView",u.topView)("weekNumber",u.weekNumber),e.xp6(2),e.Q6J("toggle",u.messageFor("filterDateToggle"))("today",u.messageFor("filterDateToday")))},dependencies:[c_,De.Lr,De.cY,Yd],encapsulation:2}),a})(),d_=(()=>{class a extends $2{constructor(i){super(null,i),this.logicOperators=Wf(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return Um(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Um(1,this.filter,(this.column||{}).field,this.operator)}logicChange(i){this.filter.logic=i}get filterMenuDropDownLabel(){const i=this.localization.get("filterMenuLogicDropDownLabel")||"";return yc(i,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=Wf(this.localization),super.localizationChange()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-date-filter-menu"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell",u.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:18,consts:[[3,"currentFilter","operators","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService"]],template:function(i,u){1&i&&(e._UZ(0,"kendo-grid-date-filter-menu-input",0),e.YNc(1,tr,1,4,"kendo-dropdownlist",1),e.YNc(2,Ra,1,15,"kendo-grid-date-filter-menu-input",2)),2&i&&(e.Q6J("currentFilter",u.firstFilter)("operators",u.operators)("filterService",u.filterService)("column",u.column)("filter",u.filter)("activeView",u.activeView)("bottomView",u.bottomView)("topView",u.topView)("format",u.format)("formatPlaceholder",u.formatPlaceholder)("placeholder",u.placeholder)("min",u.min)("max",u.max)("weekNumber",u.weekNumber)("isFirstDropDown",!0)("menuTabbingService",u.menuTabbingService),e.xp6(1),e.Q6J("ngIf",u.extra),e.xp6(1),e.Q6J("ngIf",u.extra))},dependencies:[Z2,vn.rI,Ue.O5,au],encapsulation:2}),a})(),$f=(()=>{class a extends Vh{constructor(i,u){super(i),this.localization=u,this.operator="eq",this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-boolean-filter-base"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell-boolean",u.hostClasses)},inputs:{column:"column",filter:"filter"},features:[e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),yp=(()=>{class a{constructor(i,u){this.hostElement=i,this.renderer=u}ngAfterViewInit(){this.radioButtonEl=this.hostElement.nativeElement,this.renderer.setAttribute(this.hostElement.nativeElement,"aria-label",this.columnLabel)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.Qsj))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoFilterMenuRadioButton",""]],inputs:{columnLabel:"columnLabel"}}),a})(),Zf=(()=>{class a extends $f{constructor(i){super(null,i),this.filter={filters:[],logic:"and"},this.idPrefix=(0,o.M8)()}get hostClasses(){return!1}ngAfterViewInit(){this.filterService.menuTabbingService.firstFocusable=this.radioButtons.first.radioButtonEl,this.radioButtons.first.radioButtonEl.focus()}radioId(i){return`${this.idPrefix}_${i}`}onChange(i,u){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:i})),this.filterService.menuTabbingService.firstFocusable=u}isSelected(i){return this.filtersByField(this.column.field).some(({value:u})=>u===i)}onShiftTab(i){(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.filterService.menuTabbingService.lastFocusable&&(i.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column.title||this.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-boolean-filter-menu"]],viewQuery:function(i,u){if(1&i&&e.Gf(yp,5),2&i){let I;e.iGM(I=e.CRH())&&(u.radioButtons=I)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell",u.hostClasses)},inputs:{filter:"filter",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:2,vars:1,consts:[[1,"k-radio-list","k-reset"],[4,"ngFor","ngForOf"],["type","radio","kendoFilterMenuRadioButton","","kendoRadioButton","",3,"columnLabel","name","checked","change","keydown.shift.tab"],["input",""],[1,"k-radio-label"]],template:function(i,u){1&i&&(e.TgZ(0,"ul",0),e.YNc(1,pl,5,6,"li",1),e.qZA()),2&i&&(e.xp6(1),e.Q6J("ngForOf",u.items))},dependencies:[Ue.sg,kt._B,yp],encapsulation:2}),a})(),h_=(()=>{class a extends Y2{constructor(i,u){super(i,u)}componentType(){return Xn(this.column)&&!Bo(this.column.filter)?(a=>({boolean:Zf,date:d_,numeric:Ym,text:ku}[this.column.filter]))():ku}initComponent(i){super.initComponent(i),this.component.instance.filterService=this.filterService,this.component.instance.menuTabbingService=this.menuTabbingService}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.s_b),e.Y36(e._Vd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoFilterMenuHost",""]],inputs:{filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj]}),a})();const Wm=({value:a,operator:f})=>!Bo(a)||(a=>"isnull"===a||"isnotnull"===a||"isempty"===a||"isnotempty"===a)(f),$m=(a,f,i)=>a.reduce((u,I)=>u||(I.filters?$m(I.filters,f,I):I.field===f?i:u),void 0),By=(a,f,i="and")=>{const u=$m((a||{}).filters||[],f);return Xn(u)?u.logic:i};let p_=(()=>{class a{constructor(i,u,I,K,at){this.parentService=i,this.childService=u,this.localization=I,this.cd=K,this.close=new e.vpe,this.actionsClass="k-actions",this._templateContext={},this.menuTabbingService=at}set filter(i){this._filter=mh(i)}get filter(){return this._filter}get childFilter(){return Xn(this._childFilter)||(this._childFilter={filters:Gm(this.filter,(this.column||{}).field),logic:By(this.filter,(this.column||{}).field)}),this._childFilter}ngOnInit(){this.subscription=this.childService.changes.subscribe(i=>this._childFilter=i),this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngAfterViewChecked(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}get disabled(){return!this.childFilter.filters.some(Wm)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}get hasTemplate(){return Xn(this.column)&&Xn(this.column.filterMenuTemplateRef)}submit(){const i=(a=>(a.filters=a.filters.filter(Wm),a))(this.childFilter);if(i.filters.length){const u=this.filter||{filters:[],logic:"and"};Hm(u,this.column.field),u.filters.push(i),this.parentService.filter(u)}return this.close.emit(),!1}reset(){const i=this.filter||{filters:[],logic:"and"};Hm(i,this.column.field),this.parentService.filter(i),this.close.emit()}onTab(i,u){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(i.preventDefault(),"reset"===u?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}get clearText(){return this.localization.get("filterClearButton")}get filterText(){return this.localization.get("filterFilterButton")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc,4),e.Y36(bc),e.Y36(ee.oQ),e.Y36(e.sBO),e.Y36(Nf))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(i,u){if(1&i&&(e.Gf(sl,5),e.Gf(Dl,5)),2&i){let I;e.iGM(I=e.CRH())&&(u.resetButton=I.first),e.iGM(I=e.CRH())&&(u.filterButton=I.first)}},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[e._Bn([bc,Nf])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,u){1&i&&(e.TgZ(0,"form",0),e.NdJ("submit",function(){return u.submit()})("reset",function(){return u.reset()}),e.TgZ(1,"div",1),e.ynx(2,2),e.YNc(3,ra,2,4,"ng-container",3),e.YNc(4,va,2,1,"ng-container",3),e.BQk(),e.TgZ(5,"div",4)(6,"button",5,6),e.NdJ("keydown.tab",function(K){return u.onTab(K,"reset")}),e._uU(8),e.qZA(),e.TgZ(9,"button",7,8),e.NdJ("keydown.tab",function(K){return u.onTab(K,"filter")}),e._uU(11),e.qZA()()()()),2&i&&(e.xp6(2),e.Q6J("ngSwitch",u.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngClass",u.actionsClass),e.xp6(3),e.Oqu(u.clearText),e.xp6(1),e.Q6J("disabled",u.disabled),e.xp6(2),e.Oqu(u.filterText))},dependencies:[vt._Y,vt.JL,vt.F,Ue.RF,Ue.n9,h_,Ue.O5,Ue.tP,Ue.mk],encapsulation:2}),a})(),f_=(()=>{class a{constructor(i,u,I,K){this.filterService=i,this.popupService=u,this.localization=I,this.navigationService=K,this.filterIcon=gt.QR$,this.tabIndex="-1"}get hasFilters(){return Gm(this.filter,(this.column||{}).field).length>0}get filterLabel(){const i=this.localization.get("filterMenuTitle")||"";return yc(i,"columnName",this.column.title||this.column.field)}toggle(i,u){return this.popupRef=this.popupService.open(i,u,this.popupRef),this.popupRef||(this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}close(){this.popupService.destroy(),this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(Hp),e.Y36(ee.oQ),e.Y36(Zc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(i,u){if(1&i&&(e.Gf(Mr,7),e.Gf(Ba,7,e.Rgc)),2&i){let I;e.iGM(I=e.CRH())&&(u.anchor=I.first),e.iGM(I=e.CRH())&&(u.template=I.first)}},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:5,consts:[["href","#",1,"k-grid-filter-menu","k-grid-header-menu",3,"tabindex","click","keydown.enter"],["anchor",""],["name","filter",3,"svgIcon"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(i,u){if(1&i){const I=e.EpF();e.TgZ(0,"a",0,1),e.NdJ("click",function(){e.CHM(I);const at=e.MAs(1),jt=e.MAs(4);return e.KtG(u.toggle(at,jt))})("keydown.enter",function(at){return at.stopImmediatePropagation()}),e._UZ(2,"kendo-icon-wrapper",2),e.qZA(),e.YNc(3,Mc,1,2,"ng-template",null,3,e.W1O)}2&i&&(e.ekj("k-active",u.hasFilters),e.Q6J("tabindex",u.tabIndex),e.uIk("title",u.filterLabel),e.xp6(2),e.Q6J("svgIcon",u.filterIcon))},dependencies:[St.ZS,p_],encapsulation:2}),a})(),Zm=(()=>{class a{constructor(i){this.closeMenu=new e.vpe,this.menuTabbingService=i}close(){this.closeMenu.emit()}}return a.\u0275fac=function(i){return new(i||a)(e.LFG(Nf))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})();const Kf_autoSizeColumn="The auto size column does not work with enabled virtual columns",Kf_autoSizeAllColumns="The auto size all columns does not work with enabled virtual columns";let gh=(()=>{class a{constructor(){this.hostClass=!0}ngOnInit(){if((0,e.X6Q)()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}close(){this.service.close()}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-columnmenu-item-wrapper",u.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),Wd=(()=>{class a{constructor(i){this.templateRef=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.Rgc,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),a})(),pd=(()=>{class a{constructor(){this.itemClick=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.contentState="collapsed"}ngOnChanges(i){i.expanded&&this.updateContentState()}onClick(i){this.itemClick.emit(i),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,Wd,5),2&i){let K;e.iGM(K=e.CRH())&&(u.contentTemplate=K.first)}},inputs:{icon:"icon",svgIcon:"svgIcon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[e.TTD],decls:4,vars:9,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],[3,"name","svgIcon"],["class","k-columnmenu-item-content",3,"overflow",4,"ngIf"],[1,"k-columnmenu-item-content"],[3,"ngTemplateOutlet"]],template:function(i,u){1&i&&(e.TgZ(0,"div",0),e.NdJ("click",function(K){return u.onClick(K)})("keydown.enter",function(K){return u.onClick(K)}),e._UZ(1,"kendo-icon-wrapper",1),e._uU(2),e.qZA(),e.YNc(3,gc,3,4,"div",2)),2&i&&(e.ekj("k-selected",u.selected)("k-disabled",u.disabled),e.uIk("aria-expanded",u.expanded),e.xp6(1),e.Q6J("name",u.icon)("svgIcon",u.svgIcon),e.xp6(1),e.hij(" ",u.text," "),e.xp6(1),e.Q6J("ngIf",u.contentTemplate))},dependencies:[St.ZS,Ue.O5,Ue.tP],encapsulation:2,data:{animation:[(0,ie.X$)("state",[(0,ie.SB)("collapsed",(0,ie.oB)({display:"none"})),(0,ie.SB)("expanded",(0,ie.oB)({display:"block"})),(0,ie.eR)("collapsed => expanded",[(0,ie.oB)({height:"0px",display:"block"}),(0,ie.jt)("100ms ease-in",(0,ie.oB)({height:"*"}))]),(0,ie.eR)("expanded => collapsed",[(0,ie.oB)({height:"*"}),(0,ie.jt)("100ms ease-in",(0,ie.oB)({height:"0px"}))])])]}}),a})(),Qp=(()=>{class a extends gh{constructor(i,u,I){super(),this.localization=i,this.columnInfoService=u,this.changeDetector=I,this.unlockIcon=gt.GZK,this.lockIcon=gt.YGw}get text(){return this.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get svgIcon(){return this.locked?this.unlockIcon:this.lockIcon}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(i){let u=this.service.column;for(;u.parent;)u=u.parent;const I=[u],K=[];for(;I.length;){const at=I.shift();at.locked=i,K.push(at),at.hasChildren&&I.push(...at.childrenArray)}this.columnInfoService.changeLocked(K)}get locked(){return this.service.column.locked}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Mu),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-lock"]],features:[e.qOj],decls:1,vars:4,consts:[[3,"text","icon","svgIcon","disabled","itemClick"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return u.toggleColumn()}),e.qZA()),2&i&&e.Q6J("text",u.text)("icon",u.icon)("svgIcon",u.svgIcon)("disabled",u.disabled)},dependencies:[pd],encapsulation:2}),a})(),Km=(()=>{class a extends gh{constructor(i,u,I){super(),this.localization=i,this.columnInfoService=u,this.changeDetector=I,this.stickIcon=gt.Lpe,this.unstickIcon=gt.yXJ}get text(){return this.localization.get(this.sticky?"unstick":"stick")}get icon(){return this.sticky?"unstick":"stick"}get svgIcon(){return this.sticky?this.unstickIcon:this.stickIcon}get disabled(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(i){let u=this.service.column;for(;u.parent;)u=u.parent;const I=[u],K=[];for(;I.length;){const at=I.shift();at.sticky=i,K.push(at),at.hasChildren&&I.push(...at.childrenArray)}this.columnInfoService.changeStuck(K)}get sticky(){return this.service.column.sticky}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Mu),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-stick"]],features:[e.qOj],decls:1,vars:4,consts:[[3,"text","icon","svgIcon","disabled","itemClick"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return u.toggleColumn()}),e.qZA()),2&i&&e.Q6J("text",u.text)("icon",u.icon)("svgIcon",u.svgIcon)("disabled",u.disabled)},dependencies:[pd],encapsulation:2}),a})(),Xp=(()=>{class a extends gh{constructor(i,u){super(),this.localization=i,this.hostElement=u,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.actionsClass="k-actions",this.setColumnPositionIcon=gt.x$Z,this._isLast=!1}set isLast(i){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=i}get isLast(){return this._isLast}onTab(i,u){this.isLast&&u&&(i.preventDefault(),i.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}onExpand(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}getLastFocusableItem(){const i=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return i[this.expanded?i.length-1:0]}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","set-column-position",3,"text","svgIcon","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("keydown.tab",function(K){return u.onTab(K,!u.expanded)})("collapse",function(){return u.onCollapse()})("expand",function(){return u.onExpand()}),e.YNc(1,Hc,2,2,"ng-template",1),e.qZA()),2&i&&e.Q6J("text",u.localization.get("setColumnPosition"))("svgIcon",u.setColumnPositionIcon)("expanded",u.expanded)},dependencies:[pd,Qp,Km,Wd,Ue.O5],encapsulation:2}),a})(),Jm=(()=>{class a{constructor(i,u,I){this.element=i,this.ngZone=u,this.renderer=I,this.reset=new e.vpe,this.apply=new e.vpe,this.columnChange=new e.vpe,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-actions",this.unlockedCount=0}get className(){return!0}set columns(i){this._columns=i.filter(u=>!1!==u.includeInChooser),this.allColumns=i,this.updateColumnState()}get columns(){return this._columns}isDisabled(i){return!(this.allowHideAll||this.hasFiltered||i.hidden||this.columns.find(u=>u!==i&&!u.hidden))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!i.locked&&!i.hidden}ngOnInit(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubscriptions=this.renderer.listen(this.element.nativeElement,"click",i=>{if(ap(i.target,"k-checkbox"))if(this.autoSync){const u=parseInt(i.target.getAttribute("data-index"),10),I=this.columns[u],K=!i.target.checked;Boolean(I.hidden)!==K&&this.ngZone.run(()=>{I.hidden=K,this.columnChange.emit([I])})}else this.updateDisabled()})})}ngOnChanges(i){this.service&&(i.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),i.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}ngOnDestroy(){this.domSubscriptions&&this.domSubscriptions()}cancelChanges(){this.forEachCheckBox((i,u)=>{i.checked=!this.columns[u].hidden}),this.updateDisabled(),this.reset.emit()}applyChanges(){const i=[];this.forEachCheckBox((u,I)=>{const K=this.columns[I],at=!u.checked;Boolean(K.hidden)!==at&&(K.hidden=at,i.push(K))}),this.updateDisabled(),this.apply.emit(i)}onTab(i){this.isLast&&(i.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}forEachCheckBox(i){const u=this.element.nativeElement.getElementsByClassName("k-checkbox"),I=u.length;for(let K=0;K<I;K++)i(u[K],K)}updateDisabled(){if(this.allowHideAll&&!this.hasLocked)return;const i=[];if(this.forEachCheckBox((u,I)=>{u.checked&&i.push({checkbox:u,index:I}),u.disabled=!1}),this.allowHideAll||1!==i.length||this.hasFiltered){if(this.hasLocked&&!this.hasUnlockedFiltered){const u=this.columns,I=i.filter(K=>!u[K.index].locked);1===I.length&&(I[0].checkbox.disabled=!0)}}else i[0].checkbox.disabled=!0}updateColumnState(){this.hasLocked=this.allColumns.filter(u=>u.locked&&(!u.hidden||!1!==u.includeInChooser)).length>0,this.hasVisibleLocked=this.allColumns.filter(u=>u.locked&&!u.hidden).length>0,this.unlockedCount=this.columns.filter(u=>!u.locked&&!u.hidden).length;const i=this.allColumns.filter(u=>!1===u.includeInChooser&&!u.hidden);i.length?(this.hasFiltered=i.length>0,this.hasUnlockedFiltered=i.filter(u=>!u.locked).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnlist"]],viewQuery:function(i,u){if(1&i&&e.Gf(Nu,5),2&i){let I;e.iGM(I=e.CRH())&&(u.applyButton=I.first)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-column-list-wrapper",u.className)},inputs:{columns:"columns",autoSync:"autoSync",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[e.TTD],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click"],["applyButton",""]],template:function(i,u){1&i&&(e.TgZ(0,"div",0),e.YNc(1,Kl,4,4,"label",1),e.qZA(),e.YNc(2,cl,6,3,"div",2)),2&i&&(e.xp6(1),e.Q6J("ngForOf",u.columns),e.xp6(1),e.Q6J("ngIf",!u.autoSync))},dependencies:[Ue.sg,Ue.O5,Ue.mk],encapsulation:2}),a})(),Qm=(()=>{class a extends gh{constructor(i,u,I,K){super(),this.localization=i,this.columnInfoService=u,this.changeDetector=I,this.hostElement=K,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions",this.columnsIcon=gt.b8s}get columns(){return this.columnInfoService.leafNamedColumns}onApply(i){this.close(),i.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(i))}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Mu),e.Y36(e.sBO),e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","columns",3,"text","svgIcon","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return u.onCollapse()})("expand",function(){return u.onExpand()}),e.YNc(1,ec,1,9,"ng-template",1),e.qZA()),2&i&&e.Q6J("text",u.localization.get("columns"))("svgIcon",u.columnsIcon)("expanded",u.expanded)},dependencies:[pd,Jm,Wd],encapsulation:2}),a})(),Lc=(()=>{class a extends gh{constructor(i,u){super(),this.localization=i,this.hostElement=u,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions",this.filterIcon=gt.QR$}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(e.SBq))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","filter",3,"text","svgIcon","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return u.onCollapse()})("expand",function(){return u.onExpand()}),e.YNc(1,_u,1,6,"ng-template",1),e.qZA()),2&i&&e.Q6J("text",u.localization.get("filter"))("svgIcon",u.filterIcon)("expanded",u.expanded)},dependencies:[pd,p_,Wd],encapsulation:2}),a})(),lu=(()=>{class a{constructor(i,u,I){this.hostElement=i,this.renderer=u,this.ngZone=I,this._isFirst=!1,this._isLast=!1,this.subs=new N.w0,this.onTab=K=>{K.keyCode===o.R8.Tab&&(this.isFirst&&K.shiftKey&&K.target===this.columnMenuItems[0]&&(K.preventDefault(),this.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),this.isLast&&!K.shiftKey)&&this.getLastColumnMenuItem()===K.target&&!this.menuItemComponent.expanded&&(K.preventDefault(),this.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}set isFirst(i){if(i){const u=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=u,this.ngZone.runOutsideAngular(()=>{const I=this.renderer.listen(u,"keydown",this.onTab);this.subs.add(I)})}this._isFirst=i}get isFirst(){return this._isFirst}set isLast(i){if(this.columnMenuItems){if(i){const u=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=u,this.ngZone.runOutsideAngular(()=>{const I=this.renderer.listen(u,"keydown",this.onTab);this.subs.add(I)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=i}}get isLast(){return this._isLast}ngAfterViewInit(){this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(i=>this.renderer.setAttribute(i,"tabindex","0")),this.menuItemComponent instanceof Lc&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}getLastColumnMenuItem(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}isExpandableItem(){return this.menuItemComponent instanceof Lc||this.menuItemComponent instanceof Qm||this.menuItemComponent instanceof Xp}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),a})(),o1=(()=>{class a{constructor(i,u){this.service=i,this.ngZone=u}ngAfterContentInit(){this.columnMenuItems.length&&(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe((0,he.q)(1)).subscribe(()=>this.service.menuTabbingService.firstFocusable.focus()))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Zm),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,lu,5),2&i){let K;e.iGM(K=e.CRH())&&(u.columnMenuItems=K)}},ngContentSelectors:ll,decls:1,vars:0,template:function(i,u){1&i&&(e.F$t(),e.Hsn(0))},encapsulation:2}),a})(),Jc=(()=>{class a extends gh{constructor(i,u,I){super(),this.localization=i,this.sortService=u,this.renderer=I,this.sortAscSmallIcon=gt.dpm,this.sortDescSmallIcon=gt.K8M}get sortedAsc(){const i=this.descriptor;return i&&(!i.dir||"asc"===i.dir)}get sortedDesc(){const i=this.descriptor;return i&&"desc"===i.dir}toggleSort(i){const u=this.service.column.field,{mode:I,allowUnsort:K}=Fm(this.service.sortable),at=this.descriptor,jt="multiple"===I?this.service.sort.filter(Kn=>Kn.field!==u):[];if(at&&at.dir===i){if(!K)return}else jt.push({field:u,dir:i});this.sortService.sort(jt),this.close()}get descriptor(){return[].concat(this.service.sort||[]).find(i=>i.field===this.service.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Ff),e.Y36(e.Qsj))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-sort"]],features:[e.qOj],decls:2,vars:6,consts:[["icon","sort-asc-small",3,"text","svgIcon","selected","itemClick"],["icon","sort-desc-small",3,"text","svgIcon","selected","itemClick"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return u.toggleSort("asc")}),e.qZA(),e.TgZ(1,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){return u.toggleSort("desc")}),e.qZA()),2&i&&(e.Q6J("text",u.localization.get("sortAscending"))("svgIcon",u.sortAscSmallIcon)("selected",u.sortedAsc),e.xp6(1),e.Q6J("text",u.localization.get("sortDescending"))("svgIcon",u.sortDescSmallIcon)("selected",u.sortedDesc))},dependencies:[pd],encapsulation:2}),a})(),Xm=(()=>{class a extends gh{constructor(i,u){super(),this.localization=i,this.ctx=u,this.maxWidthIcon=gt.Uyc}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&console.warn(Kf_autoSizeColumn)}autoSizeColumn(){Jv(this.ctx.grid,this.service,this.column)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Gd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-autosize-column"]],inputs:{column:"column"},features:[e.qOj],decls:1,vars:1,consts:[["class","k-grid-columnmenu-autosize-column","icon","max-width",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","max-width",1,"k-grid-columnmenu-autosize-column",3,"text","svgIcon","itemClick"]],template:function(i,u){1&i&&e.YNc(0,Wa,1,2,"kendo-grid-columnmenu-item",0),2&i&&e.Q6J("ngIf",!u.ctx.grid.virtualColumns)},dependencies:[pd,Ue.O5],encapsulation:2}),a})(),$d=(()=>{class a extends gh{constructor(i,u){super(),this.localization=i,this.ctx=u,this.displayInlineBlockIcon=gt.YIC}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&console.warn(Kf_autoSizeAllColumns)}autoSizeAllColumns(){Jv(this.ctx.grid,this.service)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Gd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-columnmenu-autosize-all-columns"]],features:[e.qOj],decls:1,vars:1,consts:[["icon","display-inline-block",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","display-inline-block",3,"text","svgIcon","itemClick"]],template:function(i,u){1&i&&e.YNc(0,Lu,1,2,"kendo-grid-columnmenu-item",0),2&i&&e.Q6J("ngIf",!u.ctx.grid.virtualColumns)},dependencies:[pd,Ue.O5],encapsulation:2}),a})(),m_=(()=>{class a{constructor(i,u,I,K,at){this.navigationService=i,this.popupService=u,this.localization=I,this.service=K,this.ctx=at,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.moreVerticalIcon=gt.xIX,this.closeSubscription=K.closeMenu.subscribe(this.close.bind(this))}get isActive(){return this.hasFilter&&Gm(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(i=>i.field===this.column.field)}get hasFilter(){return Wv(this.settings,this.column)}get hasSort(){return $v(this.settings,this.column)}get hasColumnChooser(){return zm(this.settings)}get hasAutoSizeColumn(){return ud(this.settings)}get hasAutoSizeAllColumns(){return Kv(this.settings)}get hasLock(){return a_(this.settings,this.column)}get hasStick(){return((a,f)=>this.settings.stick&&f.stickable&&!(f.parent&&!f.parent.isSpanColumn))(0,this.column)}get hasPosition(){return((a,f)=>this.settings.setColumnPosition&&(f.stickable||f.lockable)&&!(f.parent&&!f.parent.isSpanColumn))(0,this.column)}ngAfterViewInit(){this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&(this.settings.autoSizeAllColumns&&(this.settings.autoSizeAllColumns=!1,console.warn(Kf_autoSizeAllColumns)),this.settings.autoSizeColumn&&(this.settings.autoSizeColumn=!1,console.warn(Kf_autoSizeColumn)))}ngOnChanges(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}ngOnDestroy(){this.close(),this.closeSubscription.unsubscribe()}toggle(i,u,I){i&&(i.preventDefault(),i.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(u,I,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}close(){this.popupService.destroy(),this.popupRef=null,this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}get columnMenuTitle(){const i=this.localization.get("columnMenu")||"";return yc(i,"columnName",this.column.title||this.column.field)}getExpandedState(i){return"object"==typeof i&&i.expanded}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Zc),e.Y36(Hp),e.Y36(ee.oQ),e.Y36(Zm),e.Y36(Gd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column-menu"]],viewQuery:function(i,u){if(1&i&&(e.Gf(Mr,7),e.Gf(Ba,7,e.Rgc)),2&i){let I;e.iGM(I=e.CRH())&&(u.anchor=I.first),e.iGM(I=e.CRH())&&(u.template=I.first)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-grid-column-menu-standalone",u.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[e._Bn([Zm,Nf]),e.TTD],decls:7,vars:6,consts:[["href","#",1,"k-grid-header-menu","k-grid-column-menu",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],["name","more-vertical",3,"svgIcon"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],["class","k-separator",3,"borderColor",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"service","kendoGridColumnMenuItem","column",4,"ngIf"],[3,"service","kendoGridColumnMenuItem",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[1,"k-separator"],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],[3,"service","kendoGridColumnMenuItem","column"],["autoSizeColumnItem",""],[3,"service","kendoGridColumnMenuItem"],["autoSizeAllColumnsItem",""],["filterItem",""]],template:function(i,u){if(1&i){const I=e.EpF();e.TgZ(0,"a",0,1),e.NdJ("click",function(at){e.CHM(I);const jt=e.MAs(1),Kn=e.MAs(4);return e.KtG(u.toggle(at,jt,Kn))})("keydown.enter",function(at){return at.stopImmediatePropagation()}),e._UZ(2,"kendo-icon-wrapper",2),e.qZA(),e.YNc(3,Xu,1,5,"ng-template",null,3,e.W1O),e.YNc(5,Qo,11,10,"ng-template",null,4,e.W1O)}2&i&&(e.Q6J("ngClass",e.VKq(4,B,u.isActive))("tabindex",u.tabIndex),e.uIk("title",u.columnMenuTitle),e.xp6(2),e.Q6J("svgIcon",u.moreVerticalIcon))},dependencies:[St.ZS,o1,Jc,Qp,Km,Xp,Qm,Xm,$d,Lc,Ue.mk,Ue.tP,Ue.O5,lu],encapsulation:2}),a})(),qm=(()=>{class a{constructor(i,u){this.localization=i,this.sizing=u,this.clearText="Clear",this.filterClearIcon=gt.rbJ,this.size="medium",this.operators=[],this.showOperators=!0,this.valueChange=new e.vpe,this.clear=new e.vpe}get hostClasses(){return!0}onChange(i){this.valueChange.emit(i)}clearClick(){return this.clear.emit(),!1}clearKeydown(i){(i.keyCode===o.R8.Enter||i.keyCode===o.R8.Space)&&this.clear.emit()}dropdownKeydown(i){i.defaultPrevented||i.keyCode===o.R8.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),i.preventDefault())}ngOnInit(){this.subs=this.localization.changes.subscribe(()=>this.clearText=this.localization.get("filterClearButton")),this.subs.add(this.sizing.changes.subscribe(i=>this.size=i))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(i,u){if(1&i&&e.Gf(ce,5),2&i){let I;e.iGM(I=e.CRH())&&(u.dropdown=I.first)}},hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell-operator",u.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","size","valueChange","keydown",4,"ngIf"],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"svgIcon","title","size","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","size","valueChange","keydown"],["dropdown",""],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"svgIcon","title","size","click","keydown"]],template:function(i,u){1&i&&(e.YNc(0,Dt,2,6,"kendo-dropdownlist",0),e.YNc(1,nn,1,3,"button",1)),2&i&&(e.Q6J("ngIf",u.showOperators),e.xp6(1),e.Q6J("ngIf",u.showButton))},dependencies:[vn.rI,Lt.zx,Ue.O5,Nc],encapsulation:2}),a})();const qp=["isnull","isnotnull","isempty","isnotempty"];let ef=(()=>{class a extends jm{constructor(i){super(i),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){const i=this.currentFilter;return Xn(i)&&(!Bo(i.value)||qp.indexOf(String(i.operator))>=0)}filterChange(i){this.applyFilter(i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(i,u){2&i&&e.ekj("k-filtercell-wrapper",u.hostClasses)("k-filtercell",u.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[e.qOj],ngContentSelectors:ll,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(i,u){1&i&&(e.F$t(),e.Hsn(0),e.TgZ(1,"kendo-grid-filter-cell-operators",0),e.NdJ("clear",function(){return u.onClear()})("valueChange",function(K){return u.currentOperator=K}),e.qZA()),2&i&&(e.xp6(1),e.Q6J("showOperators",u.showOperators)("operators",u.operators)("showButton",u.showButton)("value",u.currentOperator))},dependencies:[qm],encapsulation:2}),a})(),tf=(()=>{class a extends l_{constructor(i,u,I){super(i,u),this.filterDelay=500,this.showOperators=!0,this.subs=I.changes.subscribe(K=>this.size=K)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column.title||this.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:2,vars:9,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"size","columnLabel","filterDelay","ngModel"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-textbox",1),e.qZA()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("showOperators",u.showOperators),e.xp6(1),e.Q6J("size",u.size)("columnLabel",u.columnLabel)("filterDelay",u.filterDelay)("ngModel",null==u.currentFilter?null:u.currentFilter.value))},dependencies:[ef,kt.PL,Nc,Yd,vt.JJ,vt.On],encapsulation:2}),a})(),g_=(()=>{class a extends hd{constructor(i,u,I){super(i,u),this.localization=u,this.filterDelay=500,this.showOperators=!0,this.subs=I.changes.subscribe(K=>this.size=K)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(i){return this.localization.get(i)}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column.title||this.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","size","step"],[3,"increment","decrement"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA()()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("showOperators",u.showOperators),e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("filterDelay",u.filterDelay)("autoCorrect",!0)("value",null==u.currentFilter?null:u.currentFilter.value)("format",u.format)("decimals",u.decimals)("spinners",u.spinners)("min",u.min)("max",u.max)("size",u.size)("step",u.step),e.xp6(1),e.Q6J("increment",u.messageFor("filterNumericIncrement"))("decrement",u.messageFor("filterNumericDecrement")))},dependencies:[ef,kt.Uw,kt.wS,Nc,Yd],encapsulation:2}),a})(),eg=(()=>{class a extends $f{constructor(i,u,I,K){super(i,u),this.cd=I,this.size="medium",this.subs=K.changes.subscribe(at=>this.size=at)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}localizationChange(){super.localizationChange(),this.cd.markForCheck()}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column.title||this.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ),e.Y36(e.sBO),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-boolean-filter-cell"]],features:[e.qOj],decls:2,vars:12,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"size","columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-dropdownlist",1),e.qZA()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("showOperators",!1)("defaultOperator",u.operator),e.xp6(1),e.Q6J("size",u.size)("columnLabel",u.columnLabel)("defaultItem",u.defaultItem)("data",u.items)("popupSettings",e.DdM(11,Fe))("valuePrimitive",!0)("value",null==u.currentFilter?null:u.currentFilter.value))},dependencies:[ef,vn.rI,Yd,Nc],encapsulation:2}),a})(),__=(()=>{class a extends $2{constructor(i,u,I){super(i,u),this.localization=u,this.showOperators=!0,this.subs=I.changes.subscribe(K=>this.size=K)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(i){return this.localization.get(i)}get columnLabel(){const i=this.localization.get("filterInputLabel")||"";return yc(i,"columnName",this.column.title||this.column.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(ee.oQ),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[e.qOj],decls:3,vars:19,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","size","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),e._UZ(2,"kendo-datepicker-messages",2),e.qZA()()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("defaultOperator",u.operator)("showOperators",u.showOperators),e.xp6(1),e.Q6J("columnLabel",u.columnLabel)("value",null==u.currentFilter?null:u.currentFilter.value)("format",u.format)("size",u.size)("formatPlaceholder",u.formatPlaceholder)("placeholder",u.placeholder)("activeView",u.activeView)("bottomView",u.bottomView)("topView",u.topView)("min",u.min)("max",u.max)("weekNumber",u.weekNumber),e.xp6(1),e.Q6J("toggle",u.messageFor("filterDateToggle"))("today",u.messageFor("filterDateToday")))},dependencies:[ef,De.Lr,De.cY,Yd,Nc],encapsulation:2}),a})(),Q2=(()=>{class a extends Y2{constructor(i,u){super(i,u)}componentType(){return Bo(this.column.filter)?tf:(a=>({boolean:eg,date:__,numeric:g_,text:tf}[this.column.filter]))()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.s_b),e.Y36(e._Vd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoFilterCellHost",""]],features:[e.qOj]}),a})(),r1=(()=>{class a{constructor(){this.hostRole="gridcell",this.size="medium",this._templateContext={}}get filter(){return this._filter}set filter(i){this._filter=mh(i)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return Xn(this.column.filterCellTemplateRef)}get isFilterable(){return Xn(this.column)&&!Bo(this.column.field)&&this.column.filterable}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridFilterCell",""]],hostVars:1,hostBindings:function(i,u){2&i&&e.uIk("role",u.hostRole)},inputs:{column:"column",filter:"filter",size:"size"},attrs:hi,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,u){1&i&&e.YNc(0,Pa,4,3,"ng-container",0),2&i&&e.Q6J("ngIf",u.isFilterable)},dependencies:[Ue.O5,Ue.RF,Ue.n9,Q2,Ue.tP],encapsulation:2}),a})(),a1=0,nf=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti){this.focusGroup=i,this.element=u,this.columnInfoService=I,this.idService=K,this.navigationService=at,this.renderer=jt,this.zone=Kn,this.cellContext=Ti,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function Jf(){return a1++}()}get id(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}get ariaColIndex(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}ngOnInit(){this.navigationService.tableEnabled&&(this.navigationChange=this.navigationService.changes.subscribe(i=>this.onNavigationChange(i)))}ngDoCheck(){!this.navigationService.tableEnabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}ngOnChanges(i){if(!this.navigationService.tableEnabled)return;const u=Object.keys(i);if(1===u.length&&"groupItem"===u[0]||-1===this.logicalColIndex)return;const I=i.logicalColIndex,K=i.logicalRowIndex,at=I&&!I.isFirstChange()?I.previousValue:this.logicalColIndex,jt=K&&!K.isFirstChange()?K.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(at,jt,this),this.registerChanges(),this.updateElement()}ngOnDestroy(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}onNavigationChange(i){(this.logicalColIndex===i.colIndex&&this.logicalRowIndex===i.rowIndex||this.logicalColIndex===i.prevColIndex&&this.logicalRowIndex===i.prevRowIndex)&&this.updateElement()}updateElement(){const i=this.element.nativeElement;this.renderer.setAttribute(i,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(()=>this.isFocused()&&i.focus()),this.renderer.addClass(i,"k-focus")),this.headerLabelText&&i.setAttribute("aria-label","")):(this.renderer.removeClass(i,"k-focus"),this.headerLabelText&&i.setAttribute("aria-label",this.headerLabelText))}microtask(i){this.zone.runOutsideAngular(()=>Promise.resolve(null).then(i))}registerChanges(){this.logicalSlaveCell||this.navigationService.registerCell(this)}registerNoChanges(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}isFocusable(){return this.navigationService.isCellFocusable(this)}isFocused(){return this.navigationService.isCellFocused(this)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(vp),e.Y36(e.SBq),e.Y36(Mu),e.Y36(Tu),e.Y36(Zc),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(ah,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(i,u){2&i&&e.uIk("id",u.id)("aria-colindex",u.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[e._Bn([{provide:vp,deps:[rh],useClass:vp}]),e.TTD]}),a})(),v_=(()=>{class a{constructor(i,u){this.localization=i,this.columnInfoService=u,this.columns=[],this.groups=[],this.filterRowClass=!0}addStickyStyles(i){return{...i.sticky?this.columnInfoService.stickyColumnsStyles(i):null,...i.filterStyle}}filterLabel(i){const u=this.localization.get("filterInputLabel")||"";return yc(u,"columnName",i.title||i.field)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Mu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-filter-row",u.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:Ua,decls:3,vars:3,consts:[["class","k-table-td","role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["class","k-table-td","role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["class","k-table-td","kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td"],["kendoGridFilterCell","","kendoGridLogicalCell","",1,"k-table-td",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(i,u){1&i&&(e.YNc(0,fa,1,2,"td",0),e.YNc(1,qu,1,2,"td",1),e.YNc(2,Fu,1,9,"td",2)),2&i&&(e.Q6J("ngForOf",u.groups),e.xp6(1),e.Q6J("ngIf",null==u.detailTemplate?null:u.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",u.columns))},dependencies:[r1,Ue.sg,Ue.O5,nf,Ue.PC,Ue.mk],encapsulation:2}),a})(),X2=0,sf=(()=>{class a{constructor(i,u){this.idService=i,this.navigation=u,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function q2(){return X2++}(),this.tableRowClass=!0}get hostRole(){return this.logicalSlaveRow?"presentation":"row"}get ariaRowIndex(){return this.logicalRowIndex+1}get ariaOwns(){if(!this.navigation.enabled||this.logicalSlaveRow||0===this.logicalSlaveCellsCount)return;const i=[],u=this.logicalCellsCount+this.logicalSlaveCellsCount;for(let I=this.logicalCellsCount;I<u;I++)i.push(this.idService.cellId(this.logicalRowIndex,I));return i.join(" ")}ngOnChanges(i){if(!this.navigation.enabled||this.logicalSlaveRow)return;const u=i.logicalRowIndex;if(u||i.logicalSlaveRow){const K=u&&!u.isFirstChange()?u.previousValue:this.logicalRowIndex;this.navigation.unregisterRow(K,this),this.navigation.registerRow(this)}else(0,o.aG)(["dataRowIndex","dataItem"],i)&&this.navigation.updateRow(this)}ngOnDestroy(){this.navigation.unregisterRow(this.logicalRowIndex,this)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Tu),e.Y36(Zc))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridLogicalRow",""]],hostVars:5,hostBindings:function(i,u){2&i&&(e.uIk("role",u.hostRole)("aria-rowindex",u.ariaRowIndex)("aria-owns",u.ariaOwns),e.ekj("k-table-row",u.tableRowClass))},inputs:{logicalRowIndex:"logicalRowIndex",logicalSlaveRow:"logicalSlaveRow",logicalCellsCount:"logicalCellsCount",logicalSlaveCellsCount:"logicalSlaveCellsCount",dataRowIndex:"dataRowIndex",dataItem:"dataItem"},features:[e.TTD]}),a})(),rf=(()=>{class a{constructor(i){this.viewContainerRef=i}set templateContext(i){this.removeView(),i.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(i.templateRef,i))}ngOnDestroy(){this.removeView()}removeView(){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.s_b))},a.\u0275dir=e.lG2({type:a,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),a})(),Qf=(()=>{class a{constructor(i,u,I,K){this.selectionService=i,this.el=u,this.renderer=I,this.ngZone=K,this.selectAllChange=new e.vpe,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){const u=!(!(()=>{if(!(0,o.X_)())return;const a=window.navigator.userAgent,f=a.indexOf("MSIE "),i=a.indexOf("Trident/");return f>0||i>0})()||void 0!==this.selectionService.selectAllState)||this.el.nativeElement.checked,I=this.selectionService.options,K=I.enabled&&"multiple"===I.mode,at=(0,o.g$)(this.selectAllChange);(K||at)&&this.ngZone.run(()=>{K&&this.selectionService.updateAll(u),at&&this.selectAllChange.emit(u?"checked":"unchecked")})}setState(){const i=this.stateSet?this.stateToBool():this.selectionService.selectAllState,u=this.el.nativeElement;this.renderer.setProperty(u,"indeterminate",!Xn(i)),this.renderer.setProperty(u,"checked",!!Xn(i)&&i)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Mf),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(i,u){2&i&&e.uIk("type",u.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[e.TTD]}),a})();const jh=a=>a.nativeElement.parentElement.offsetWidth,e0=a=>mu(a).filter(f=>!f.isColumnGroup),Gy=({originalEvent:a})=>{a.stopPropagation(),a.preventDefault()},tg=a=>!(!a.parent||!a.parent.isSpanColumn);let y_=(()=>{class a{constructor(i,u,I,K,at,jt,Kn){this.draggable=i,this.element=u,this.service=I,this.zone=K,this.cdr=at,this.localization=jt,this.columnInfoService=Kn,this.columns=[],this.subscriptions=new N.w0,this.rtl=!1}get visible(){return this.column.resizable?"block":"none"}get leftStyle(){return Go(this.rtl)?0:null}get rightStyle(){return Go(this.rtl)?null:0}autoFit(){const i=e0(this.columns),u=Rf([this.column]).filter(K=>Go(K.resizable)),I=u.map(K=>{const at=tg(K),jt=!!at&&K.parent.childColumns.last===K,Kn=((a,f)=>{let i=0,u=0,I=0;for(;i<f.length;){const K=f[i],at=tg(K);if(K===a)break;u--<=0&&at&&(u=K.parent.childColumns.length-1,I+=u),i++}return i-I})(K,i);return{column:K,headerIndex:this.columnsForLevel(K.level).indexOf(K),index:Kn,isLastInSpan:jt,isParentSpan:at,level:K.level}});u.forEach(K=>K.width=0),this.service.measureColumns(I)}ngOnInit(){Bs(this.column.width)&&(this.column.implicitWidth=jh(this.element));const i=this.service.changes.pipe((0,te.h)(()=>this.column.resizable),(0,te.h)(u=>Xn(u.columns.find(I=>I===this.column))));this.subscriptions.add(i.pipe((0,te.h)(u=>"start"===u.type)).subscribe(this.initState.bind(this))),this.subscriptions.add(i.pipe((0,te.h)(u=>"resizeColumn"===u.type)).subscribe(this.resize.bind(this))),this.subscriptions.add(this.service.changes.pipe((0,te.h)(u=>"start"===u.type),(0,te.h)(this.shouldUpdate.bind(this)),(0,he.q)(1)).subscribe(this.initColumnWidth.bind(this))),this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe((0,pe.b)(Gy),(0,pe.b)(()=>this.service.start(this.column)),(0,se.w)((a=>f=>(0,A.of)(f).pipe((0,we.g)(150),(0,oe.R)(a)))(this.draggable.kendoRelease)),(0,se.w)(((a,f)=>i=>f.kendoDrag.pipe((0,oe.R)(f.kendoRelease.pipe((0,pe.b)(()=>a.end()))),(0,Se.U)(({pageX:u})=>({originalX:i.pageX,pageX:u}))))(this.service,this.draggable))).subscribe(({pageX:u,originalX:I})=>{const at=((a,f)=>a/(this.column.resizeStartWidth||this.column.width)*100)(u-I);this.service.resizeColumns(at)}))),this.subscriptions.add(i.pipe((0,te.h)(u=>"autoFitComplete"===u.type)).subscribe(this.sizeToFit.bind(this))),this.subscriptions.add(i.pipe((0,te.h)(u=>"triggerAutoFit"===u.type)).subscribe(this.autoFit.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(({rtl:u})=>this.rtl=u))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}shouldUpdate(){return!e0(this.columns).map(i=>i.width).some(Bs)}initColumnWidth(){this.column.width=jh(this.element)}initState(){this.column.resizeStartWidth=jh(this.element),this.service.resizedColumn({column:this.column,oldWidth:this.column.resizeStartWidth})}resize({deltaPercent:i}){let u=((a,f)=>{const i=f<0?-1:1;return Math.ceil(Math.abs(f)/100*a)*i})(this.column.resizeStartWidth,i);Go(this.rtl)&&(u*=-1);let I=Math.max(this.column.resizeStartWidth+u,this.column.minResizableWidth);Xn(this.column.maxResizableWidth)&&(I=Math.min(I,this.column.maxResizableWidth));const K=this.getTableDelta(I,u);this.updateWidth(this.column,I),this.service.resizeTable(this.column,K)}sizeToFit({columns:i,widths:u}){const I=i.indexOf(this.column),K=Math.max(...u.map(jt=>jt[I]))+1,at=K-this.column.resizeStartWidth;this.updateWidth(this.column,K),this.service.resizeTable(this.column,at)}updateWidth(i,u){i.width=u,this.columnInfoService.hiddenColumns.forEach(I=>{Bs(I.width)&&Xn(I.implicitWidth)&&(I.width=I.implicitWidth)}),this.cdr.markForCheck()}columnsForLevel(i){return Zu(this.columns?this.columns.filter(u=>u.level===i):[])}getTableDelta(i,u){const I=this.column.minResizableWidth,K=this.column.maxResizableWidth,at=this.column.resizeStartWidth,jt=i>I,Kn=i<K;return(Xn(K)?jt&&Kn:jt)?u:i<=I?I-at:at-K}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(o.pD,1),e.Y36(e.SBq),e.Y36(Lf),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(ee.oQ),e.Y36(Mu))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(i,u){1&i&&e.NdJ("dblclick",function(){return u.autoFit()}),2&i&&e.Udp("display",u.visible)("left",u.leftStyle)("right",u.rightStyle)},inputs:{columns:"columns",column:"column"}}),a})();const lf=(...a)=>Object.assign.apply(null,[{}].concat(a)),s0=(a,f)=>a.parent===f.parent||_v(f)&&s0(a,f.parent),Vy=Ld(({draggable:a})=>["column","columnGroup"].indexOf(a.context.type)>=0,({draggable:a})=>a.context.column.reorderable,({draggable:a})=>!_v(a.context.column),({draggable:a,target:f})=>a.element.nativeElement!==f.element.nativeElement,({draggable:a,target:f})=>s0(a.context.column,f.context.column),ih(({draggable:a})=>!Go(a.context.column.locked)&&(({parent:a})=>!Go(a))(a.context.column)&&a.context.lastColumn),({draggable:a,target:f})=>!1!==a.context.column.lockable||a.context.column.isLocked===f.context.column.isLocked),o0=["alt","ctrl","shift","meta"];let S_=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns,ls){this.popupService=i,this.hint=u,this.cue=I,this.reorderService=K,this.idService=at,this.sortService=jt,this.localization=Kn,this.columnInfoService=Ti,this.cd=ns,this.contextService=ls,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.size="medium",this.sortedFields={},this.hostClass=!0,this.dropTargets=new e.n_E,this.sortAscSmallIcon=gt.dpm,this.sortDescSmallIcon=gt.K8M,this.subscription=new N.w0}get headerClass(){return!this.scrollable}get sortableLabel(){return this.localization.get("sortable")}get columnMenuSettings(){return this.columnMenu}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}sortColumn(i){this.sortService.sort(i)}getColumnComponent(i){return i}onSortClick(i,u,I){const K=u.target;if(i.headerTemplateRef&&K!==I&&Boolean(xf(K,Bd,I)))return;const at=this.matchModifier(u),jt=this.toggleSort(i,at);this.sortColumn(jt)}onHeaderKeydown(i,u){if(u.keyCode===o.R8.ArrowDown&&u.altKey&&this.showFilterMenu){u.preventDefault(),u.stopImmediatePropagation();const Kn=this.filterMenus.find(Ti=>Ti.column===i);return void Kn.toggle(Kn.anchor.nativeElement,Kn.template)}if(u.keyCode===o.R8.ArrowDown&&u.altKey&&this.showColumnMenu(i)){u.preventDefault(),u.stopImmediatePropagation();const Kn=this.columnMenus.find(Ti=>Ti.column===i);return void Kn.toggle(null,Kn.anchor.nativeElement,Kn.template)}const I=u.ctrlKey||u.metaKey;if((u.keyCode===o.R8.Enter||u.keyCode===o.R8.Space)&&I&&this.isGroupable(i))return u.preventDefault(),u.stopImmediatePropagation(),this.groups.some(Ti=>Ti.field===i.field)?this.groups=this.groups.filter(Ti=>Ti.field!==i.field):this.groups.push({field:i.field}),void this.contextService.grid.groupChange.emit(this.groups);if((u.keyCode===o.R8.ArrowLeft||u.keyCode===o.R8.ArrowRight)&&I&&this.isReorderable(i)){u.preventDefault();const Kn=this.columnInfoService.leafNamedColumns.length,ls=(u.keyCode===o.R8.ArrowLeft?-1:1)*(this.localization.rtl?-1:1),pr=Math.min(Math.max(0,i.leafIndex+ls),Kn-1),sr=this.contextService.grid;return sr.reorderColumn(i,pr,{before:ls<0}),void sr.columnReorder.emit(new Lv({column:i,newIndex:pr,oldIndex:i.leafIndex}))}if(this.sortable&&!u.defaultPrevented&&!1!==i.sortable&&u.keyCode===o.R8.Enter&&Xn(i.field)){const Kn=this.matchModifier(u);this.sortService.sort(this.toggleSort(i,Kn))}}showSortNumbering(i){const{showIndexes:u}=Fm(this.sortable);return u&&this.sort&&this.sort.filter(({dir:I})=>Xn(I)).length>1&&this.sortOrder(i.field)>0}sortOrder(i){return this.sort.filter(({dir:u})=>Xn(u)).findIndex(u=>u.field===i)+1}sortState(i){if(!this.isSortable(i))return;const u=this.sortDescriptor(i.field);return"asc"===u.dir?"ascending":"desc"===u.dir?"descending":void 0}sortStatus(i){if(!this.sortedFields[i.field]||!this.isSortable(i))return;let u="sortedDefault";const I=this.sortDescriptor(i.field);return"asc"===I.dir?u="sortedAscending":"desc"===I.dir&&(u="sortedDescending"),this.localization.get(u)}toggleSort(i,u=!0){const{allowUnsort:I,mode:K,initialDirection:at}=Fm(this.sortable,i.sortable),jt=this.toggleDirection(i.field,I,at);return"single"!==K&&u?[...this.sort.filter(Kn=>Kn.field!==i.field),jt]:[jt]}matchModifier(i){const{multiSortKey:u}=Fm(this.sortable);return"none"===u?o0.every(I=>!i[`${I}Key`]):"ctrl"===u?i.ctrlKey||i.metaKey:i[`${u}Key`]}ngAfterViewInit(){this.subscription.add(Za(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngDoCheck(){this._leafColumns=Zu(this.columns||[]).filter(i=>!Bp(i))}ngOnChanges(i){const u=i.sort;u&&!u.isFirstChange()&&u.currentValue.forEach(I=>{this.sortedFields[I.field]=!0})}ngOnInit(){this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}selectAllCheckboxId(){return this.idService.selectAllCheckboxId()}get selectAllCheckboxLabel(){return this.localization.get("selectAllCheckboxLabel")}isFirstOnRow(i,u){const I=K=>K&&(this.columnsForLevel(K.level).indexOf(K)>0||I(K.parent));return 0===u&&!this.groups.length&&!this.detailTemplate&&I(i.parent)}logicalColumnIndex(i){const u=i.leafIndex;return Xn(u)?u+(Xn(this.detailTemplate)?1:0):-1}get showFilterMenu(){return!this.columnMenu&&(a=>"string"==typeof a&&a.indexOf("menu")>-1)(this.filterable)}get showFilterRow(){return Jg(this.filterable)}showColumnMenu(i){return this.columnMenu&&i.columnMenu&&(this.columnMenuTemplate||i.columnMenuTemplates.length||((a,f)=>Kv(a)||zm(a)||Wv(a,f)||ud(a)||a_(a,f)||$v(a,f))(this.columnMenu,i))}isFilterable(i){return!Bo(i.field)&&!0===i.filterable}canDrop(i,u){return this.reorderable&&Vy({draggable:i,target:u})}shouldActivate(i){const u=this.isReorderable(i);return!(!u&&!Cm(i))&&(this.isGroupable(i)||u)}isSortable(i){return!Bo(i.field)&&Go(this.sortable)&&Go(i.sortable)}isCheckboxColumn(i){return wy(i)&&!i.templateRef}trackByIndex(i,u){return i}addStickyStyles(i){const u=this.columnInfoService.stickyColumnsStyles(i);return{...i.style,...u}}toggleDirection(i,u,I){const K=this.sortDescriptor(i),[at,jt]=(a=>"asc"===a?["asc","desc"]:["desc","asc"])(I);let Kn=at;return K.dir===at?Kn=jt:K.dir===jt&&u&&(Kn=void 0),{dir:Kn,field:i}}columnsForLevel(i){const u=this.columns?this.columns.filter(I=>I.level===i):[];return zp(Zu(u))}isColumnGroupComponent(i){return Bp(i)}sortDescriptor(i){return this.sort.find(u=>u.field===i)||{field:i}}get columnLevels(){return new Array((this.totalColumnLevels||0)+1)}get leafColumns(){return this._leafColumns}isReorderable(i){return this.reorderable&&i.reorderable}isGroupable(i){return this.groupable&&Cm(i)&&!1!==i.groupable}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new N.w0;const i=(0,T.T)(...this.dropTargets.map(K=>K.enter)),u=(0,T.T)(...this.dropTargets.map(K=>K.leave)),I=(0,T.T)(...this.dropTargets.map(K=>K.drop));this.targetSubscription.add(i.pipe((0,pe.b)(({target:K,draggable:at})=>{if("groupIndicator"===at.context.type)return;const jt=Go(K.context.column.isLocked),Kn=Go(at.context.column.isLocked);(this.lockedColumnsCount>0||jt||Kn)&&this.hint.toggleLock(jt)}),(0,te.h)(({draggable:K,target:at})=>this.canDrop(K,at)),(0,se.w)(this.trackMove.bind(this,u,I)),(0,Se.U)(K=>lf(K,{before:this.calculateBefore(K),changeContainer:K.changeContainer})),(0,Se.U)(this.normalizeTarget.bind(this)),(0,pe.b)(this.enter.bind(this)),(0,se.w)(K=>I.pipe((0,Se.U)(()=>K),(0,oe.R)(u.pipe((0,pe.b)(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}normalizeTarget(i){let u=i.target;const I=u.context.column.parent;if(I&&I.isSpanColumn){const K=this.dropTargets.toArray(),at=K.find(Ti=>Ti.context.column.parent===I),jt=K.indexOf(at);u=K[jt+(i.before?0:I.childColumns.length-1)]}return lf(i,{target:u})}trackMove(i,u,I){const K=I.target.context.column,at=this.columnsForLevel(K.level),jt=at.indexOf(K),Ti=I.draggable.context.column.isLocked!==K.isLocked;return Ti&&(K.locked?jt===at.length-1:0===jt)?I.draggable.drag.pipe((0,oe.R)(i),(0,oe.R)(u),(0,Se.U)(({mouseEvent:ns})=>lf({changeContainer:!0},I,{mouseEvent:ns}))):(0,A.of)(lf({changeContainer:Ti},I))}calculateBefore({draggable:i,target:u,mouseEvent:I,changeContainer:K=!1}){const at=u.element.nativeElement;let jt=!1;if(K){const{left:Kn}=Pv(at);jt=Kn+at.offsetWidth/2>I.pageX,this.localization.rtl&&(jt=!jt)}else jt=O2(i.element.nativeElement,at);return jt}enter({target:i,before:u}){this.hint.enable(),this.localization.rtl&&(u=!u),this.cue.position(Xg(i.element.nativeElement,u))}leave(){this.hint.disable(),this.cue.hide()}drop({draggable:i,target:u,before:I,changeContainer:K}){this.reorderService.reorder({before:I,changeContainer:K,source:i.context.column,target:u.context.column})}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Hp),e.Y36(qg),e.Y36(Nv),e.Y36(Mm),e.Y36(Tu),e.Y36(Ff),e.Y36(ee.oQ),e.Y36(Mu),e.Y36(e.sBO),e.Y36(Gd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridHeader",""]],viewQuery:function(i,u){if(1&i&&(e.Gf(Gh,5),e.Gf(f_,5),e.Gf(m_,5)),2&i){let I;e.iGM(I=e.CRH())&&(u.dropTargets=I),e.iGM(I=e.CRH())&&(u.filterMenus=I),e.iGM(I=e.CRH())&&(u.columnMenus=I)}},hostVars:4,hostBindings:function(i,u){2&i&&e.ekj("k-grid-header",u.headerClass)("k-table-thead",u.hostClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",tabIndex:"tabIndex",size:"size"},features:[e.TTD],attrs:eu,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-group-cell k-header k-table-th","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header k-table-th","role","gridcell","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header","k-table-th"],["role","gridcell","kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-header","k-table-th",3,"logicalRowIndex","logicalColIndex"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","k-sorted","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[1,"k-cell-inner"],[1,"k-link"],[3,"templateContext"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[1,"k-column-title"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-link",3,"click"],["link",""],[1,"k-sort-icon"],["role","note",3,"name","svgIcon",4,"ngIf"],["class","k-sort-order",4,"ngIf"],["role","status",1,"k-sort-status",3,"innerHtml"],["role","note",3,"name","svgIcon"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"]],template:function(i,u){1&i&&(e.ynx(0),e.YNc(1,is,4,8,"tr",0),e.YNc(2,Zi,1,9,"tr",1),e.BQk()),2&i&&(e.xp6(1),e.Q6J("ngForOf",u.columnLevels),e.xp6(1),e.Q6J("ngIf",u.showFilterRow))},dependencies:[f_,m_,St.ZS,v_,Ue.sg,sf,Ue.O5,nf,Gh,o.pD,Yv,Ue.mk,Ue.PC,rf,Qf,Nc,y_],encapsulation:2}),a})();class d1{constructor(f=0,i,u){this.total=f,this.rowHeight=i,this.detailRowHeight=u,this.offsets=[],this.heights=[];let I=0;for(let K=0;K<f;K++)this.offsets.push(I),I+=i,this.heights.push(i)}height(f){return this.heights[f]}expandDetail(f){this.height(f)===this.rowHeight&&this.updateRowHeight(f,this.detailRowHeight)}collapseDetail(f){this.height(f)>this.rowHeight&&this.updateRowHeight(f,-1*this.detailRowHeight)}isExpanded(f){return this.height(f)>this.rowHeight}index(f){if(f<0)return;const i=this.offsets.reduce((u,I,K)=>void 0!==u?u:I===f?K:I>f?K-1:void 0,void 0);return void 0===i?this.total-1:i}offset(f){return this.offsets[f]}totalHeight(){return this.heights.reduce((f,i)=>f+i,0)}updateRowHeight(f,i){this.total>0&&(this.heights[f]+=i,this.offsets=((a,f,i)=>[...a.slice(0,f+1),...a.slice(f+1).map(u=>u+i)])(this.offsets,f,i))}}class ig{constructor(f){this.offset=f}}class C_{constructor(f,i){this.skip=f,this.take=i}}class sg{}class a0{constructor(f){this.scrollObservable=f,this.firstLoaded=0}create(f,i,u,I){this.rowHeightService=f,this.firstLoaded=i,this.lastLoaded=i+u,this.take=u,this.total=I,this.lastScrollTop=0;const K=new j.X(new ig(this.rowHeightService.offset(i)));return this.subscription=Y.y.create(at=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(jt=>this.onScroll(jt,at))}).subscribe(at=>K.next(at)),K}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollTop:f,offsetHeight:i,scrollHeight:u,clientHeight:I},K){if(!(0,o.X_)()||this.lastScrollTop===f)return;const at=this.lastScrollTop>=f;this.lastScrollTop=f;let jt=this.rowHeightService.index(f),Kn=this.rowHeightService.offset(jt);const Ti=this.rowHeightService.index(f+i);if(!at)if(Ti>=this.lastLoaded&&this.lastLoaded<this.total){const ns=jt+this.take-this.total;ns>0&&(jt-=ns,Kn=this.rowHeightService.offset(jt)),this.firstLoaded=jt,K.next(new ig(Kn));let ls=this.firstLoaded+this.take;this.lastLoaded=Math.min(ls,this.total),ls=ls>this.total?this.total-this.firstLoaded:this.take,K.next(new C_(this.firstLoaded,this.take))}else u-I-f<2&&K.next(new sg);if(at&&jt<this.firstLoaded){const ns=Math.floor(.3*this.take);this.firstLoaded=Math.max(jt-ns,0),K.next(new ig(this.rowHeightService.offset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),K.next(new C_(this.firstLoaded,this.take))}}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=void 0)}}const h1="k-hierarchy-cell k-detail-cell k-group-cell";let rg=(()=>{class a extends Gl{constructor(i,u){super(i,u),this.parent=i}get templateRef(){return this.template?this.template.templateRef:void 0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-command-column"]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,Fp,5),2&i){let K;e.iGM(K=e.CRH())&&(u.template=K.first)}},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),Xf=(()=>{class a{constructor(i,u,I,K){this.selectionService=i,this.el=u,this.renderer=I,this.ngZone=K,this.type="checkbox",this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this)),this.destroyKeyDown=this.renderer.listen(this.el.nativeElement,"keydown",this.onKeyDown.bind(this))})}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick(),this.destroyKeyDown&&this.destroyKeyDown()}onClick(){this.selectionService.options.enabled&&this.ngZone.run(()=>{const i=this.selectionService.toggleByIndex(this.itemIndex);i.ctrlKey=!0,i.shiftKey=!1,this.selectionService.changes.emit(i)})}onKeyDown(i){i.keyCode===o.R8.Enter&&this.onClick()}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Mf),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridSelectionCheckbox",""]],hostVars:1,hostBindings:function(i,u){2&i&&e.uIk("type",u.type)},inputs:{itemIndex:["kendoGridSelectionCheckbox","itemIndex"]}}),a})();const l0=/\{\d+:?/;let ag=(()=>{class a{constructor(i){this.intlService=i}transform(i,u,I){if(!Bo(u)){const K=(0,je.Yn)(u)(i);return Bo(I)?K:this.formatValue(I,K)}return i}formatValue(i,u){const I=this.intlService;return Nd(i)&&i.match(l0)?I.format(i,u):I.toString(u,i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(pt.aJ,16))},a.\u0275pipe=e.Yjl({name:"valueOf",type:a,pure:!1}),a})(),p1=(()=>{class a{constructor(i,u,I,K){this.editService=i,this.idService=u,this.localizationService=I,this.cellContext=K,this.isNew=!1,this.isLoading=!1,this.isVirtual=!1,this.reorderIcon=gt.A2f,this._templateContext={},this._editTemplateContext={}}get commandCellClass(){return this.isCommand(this.column)}get dragHandleCellClass(){return Fh(this.column)}get dragRowHandleLabel(){return Fh(this.column)?this.localizationService.get("dragRowHandleLabel"):void 0}set rowIndex(i){this._rowIndex=i,this.updateCellContext()}get rowIndex(){return this._rowIndex}get isEdited(){if(!this.editService.isEditing()&&!this.isNew||!this.isColumnEditable)return!1;const i=this.editService.columnContext(this.rowIndex,this.column);return this.isFieldEditable(i,this.column)}get showLoading(){return this.isVirtual&&this.isLoading}get formGroup(){return this.editService.context(this.rowIndex).group}get templateContext(){return this._templateContext}get editTemplateContext(){return this._editTemplateContext.$implicit=this.formGroup,this._editTemplateContext.isNew=this.isNew,this._editTemplateContext.column=this.column,this._editTemplateContext.dataItem=this.dataItem,this._editTemplateContext.formGroup=this.formGroup,this._editTemplateContext.rowIndex=this.rowIndex,this._editTemplateContext}get format(){if(Cm(this.column)&&!Bo(this.column.format))return Op(this.column.format)}get isBoundColumn(){return this.column.field&&!this.column.templateRef}get isCheckboxColumn(){return wy(this.column)&&!this.column.templateRef}get selectionCheckboxId(){return this.idService.selectionCheckboxId(this.rowIndex)}get selectionCheckboxLabel(){return this.localizationService.get("selectionCheckboxLabel")}get isSpanColumn(){return Hg(this.column)&&!this.column.templateRef}get childColumns(){return Zu([this.column])}get isRowReorderColumn(){return Fh(this.column)&&!this.column.templateRef}get isColumnEditable(){return!(!this.column||this.isCommand(this.column))&&!1!==this.column.editable}ngDoCheck(){this.updateCellContext()}ngOnChanges(i){this.updateTemplateContext()}ngAfterContentChecked(){this.updateTemplateContext()}isCommand(i){return i instanceof rg}isFieldEditable(i,u){return!!Xn(i)&&(!!Xn(u.editTemplate)||Xn(i.group)&&Xn(i.group.get(u.field)))}updateCellContext(){this.cellContext&&(this.cellContext.rowIndex=this._rowIndex)}updateTemplateContext(){if(!this.column.templateRef)return;const i=this._templateContext;i.isNew=this.isNew,i.column=this.column,i.dataItem=this.dataItem,i.rowIndex=this.rowIndex,i.columnIndex=this.columnIndex,i.$implicit=this.dataItem}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(Tu),e.Y36(ee.oQ),e.Y36(ah,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridCell",""]],hostVars:7,hostBindings:function(i,u){2&i&&(e.uIk("aria-label",u.dragRowHandleLabel),e.ekj("k-command-cell",u.commandCellClass)("k-drag-cell",u.dragHandleCellClass)("k-touch-action-none",u.dragHandleCellClass))},inputs:{column:"column",columnIndex:"columnIndex",isNew:"isNew",isLoading:"isLoading",isVirtual:"isVirtual",loadingTemplate:"loadingTemplate",rowIndex:"rowIndex",dataItem:"dataItem"},features:[e.TTD],attrs:ks,decls:3,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngIf","ngIfElse"],["loading",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf"],[1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"kendoGridSelectionCheckbox"],["name","reorder",3,"svgIcon"],["class","k-skeleton-text k-skeleton",4,"ngIf"],[1,"k-skeleton-text","k-skeleton"],[3,"ngSwitch",4,"ngIf"],["kendoGridFocusable","",3,"format","formControl",4,"ngSwitchCase"],["type","checkbox","class","k-checkbox k-checkbox-md k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchCase"],["type","text","class","k-textbox k-input k-input-solid k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchDefault"],["kendoGridFocusable","",3,"format","formControl"],["type","checkbox","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"formControl"],["type","text","kendoGridFocusable","",1,"k-textbox","k-input","k-input-solid","k-rounded-md",3,"formControl"]],template:function(i,u){1&i&&(e.ynx(0,0),e.YNc(1,ho,4,2,"ng-container",1),e.YNc(2,tu,3,2,"ng-container",1),e.BQk()),2&i&&(e.Q6J("ngSwitch",u.isEdited),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0))},dependencies:[St.ZS,kt.Uw,De.Lr,Ue.RF,Ue.n9,Ue.O5,Ue.tP,Ue.sg,Nc,Xf,vt.JJ,vt.oH,vt.Wl,Ue.ED,vt.Fj,ag],encapsulation:2}),a})(),c0=(()=>{class a{constructor(i,u,I){this.groupsService=i,this.groupInfoService=u,this.localization=I,this.skipGroupDecoration=!1,this.hasDetails=!1,this.totalColumnsCount=0,this.groups=[],this.isExpanded=!1,this.caretAltDownIcon=gt.M7i,this.caretAltRightIcon=gt.bI8,this.groupItemClass=!0,this.tableGroupRowClass=!0}ngDoCheck(){const i={group:this.item.data,groupIndex:this.item.index,parentGroup:Ef(this.item.parentGroup)};this.isExpanded=this.groupsService.isExpanded(i)}prefixGroupCell(i){return new Array(i.level)}toggleGroup(i){return this.groupsService.toggleRow(i),!1}groupSpan(i){const u=(this.groups||[]).length,I=this.hasDetails?1:0;if(this.hasGroupHeaderColumn)return u+1+I-i.level;const K=Ku(this.columns);return this.skipGroupDecoration?K:u+K+I-i.level}logicalColSpan(){return this.skipGroupDecoration?1:this.totalColumnsCount}ariaRole(){return this.skipGroupDecoration?"presentation":"gridcell"}formatForGroup(i){return this.groupInfoService.formatForGroup(i)}groupTitle(i){return this.groupInfoService.groupTitle(i)}groupHeaderTemplate(i){return this.groupInfoService.groupHeaderTemplate(i)}get groupButtonTitle(){return this.localization.get(this.isExpanded?"groupCollapse":"groupExpand")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Pp),e.Y36(up),e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridGroupHeader",""]],hostVars:4,hostBindings:function(i,u){2&i&&e.ekj("k-grouping-row",u.groupItemClass)("k-table-group-row",u.tableGroupRowClass)},inputs:{rowIndex:"rowIndex",logicalRowIndex:"logicalRowIndex",item:"item",skipGroupDecoration:"skipGroupDecoration",hasDetails:"hasDetails",totalColumnsCount:"totalColumnsCount",hasGroupHeaderColumn:"hasGroupHeaderColumn",groupHeaderColumns:"groupHeaderColumns",columns:"columns",groups:"groups"},attrs:id,decls:3,vars:3,consts:[[4,"ngIf"],["aria-selected","false","class","k-table-td","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngIf"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[1,"k-reset"],["href","#","tabindex","-1","role","presentation",3,"click"],[3,"name","svgIcon"],[3,"templateContext"],["role","gridcell","class","k-table-td","aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngFor","ngForOf"],["role","gridcell","aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,u){1&i&&(e.YNc(0,nu,2,1,"ng-container",0),e.YNc(1,jc,3,9,"td",1),e.YNc(2,Xh,2,1,"ng-container",0)),2&i&&(e.Q6J("ngIf",!u.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",!(u.skipGroupDecoration&&u.hasGroupHeaderColumn)),e.xp6(1),e.Q6J("ngIf",u.hasGroupHeaderColumn))},dependencies:[St.ZS,Ue.O5,Ue.sg,nf,rf,Ue.tP,ag],encapsulation:2}),a})(),bp=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns,ls,ws,pr,sr){this.detailsService=i,this.groupsService=u,this.changeNotification=I,this.editService=K,this.localization=at,this.ngZone=jt,this.renderer=Kn,this.element=Ti,this.domEvents=ns,this.selectionService=ls,this.cellSelectionService=ws,this.columnInfoService=pr,this.navigationService=sr,this.columns=[],this.groups=[],this.skip=0,this.noRecordsText=this.localization.get("noRecords"),this.isLocked=!1,this.skipGroupDecoration=!1,this.showGroupFooters=!1,this.lockedColumnsCount=0,this.totalColumnsCount=0,this.trackBy=gp,this.hostClass=!0,this.minusIcon=gt.$sV,this.plusIcon=gt.R7U,this.rowClass=()=>null,this.cellKeydownSubscription=this.navigationService.cellKeydown.subscribe(na=>this.cellKeydownHandler(na)),this.trackByWrapper=this.trackByWrapper.bind(this),this.trackByColumns=this.trackByColumns.bind(this)}get newDataItem(){return this.editService.newDataItem}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-(this.allColumns||this.columns).length}isAriaSelected(i,u){return this.cellSelectionService.isCellSelected(i,u)||this.isRowSelected(i)?"true":"false"}toggleRow(i,u){return this.detailsService.toggleRow(i,u),!1}isExpanded(i){return this.detailsService.isExpanded(i.index,i.data)}detailButtonIconName(i){return this.isExpanded(i)?"minus":"plus"}detailButtonSvgIcon(i){return this.isExpanded(i)?this.minusIcon:this.plusIcon}detailButtonTitle(i){const u=this.isExpanded(i)?"detailCollapse":"detailExpand";return this.localization.get(u)}isGroup(i){return"group"===i.type}isDataItem(i){return!this.isGroup(i)&&!this.isFooter(i)}isFooter(i){return"footer"===i.type}isFooterItemInExpandedGroup(i){return this.isInExpandedGroup({data:i.data,index:i.groupIndex,parentGroup:i.group.parentGroup})}isDataItemInExpandedGroup(i){return this.isInExpandedGroup({data:i.group.data,index:i.groupIndex,parentGroup:i.group.parentGroup})}isInExpandedGroup(i){return this.groupsService.isInExpandedGroup(i)}isParentGroupExpanded(i){return this.groupsService.isInExpandedGroup(i.parentGroup)}isOdd(i){return i.index%2!=0}isSelectable(){return this.selectable&&!1!==this.selectable.enabled}isRowSelected(i){return this.selectionService.isSelected(i.index)}trackByWrapper(i,u){return"data"===u.type&&(u.isEditing=this.editService.hasEdited(u.index)),this.trackBy(i,u)}trackByColumns(i,u){return this.virtualColumns?i:u}ngDoCheck(){this.groupHeaderColumns=this.hasGroupHeaderColumn?Zu(this.skipGroupDecoration?this.columns:this.columns.toArray().slice(1)):[],this.groupHeaderSlaveCellsCount=this.isLocked?this.hasGroupHeaderColumn?this.columnsContainer.nonLockedColumnsToRender.length:1:0}ngAfterViewChecked(){this.rowSticky&&this.applyStickyRowsStyling()}ngOnChanges(i){(0,o.ln)("columns",i,!1)&&this.changeNotification.notify()}logicalRowIndex(i){let u=this.skip+i;this.hasDetailTemplate&&(u*=2);const I=1+u,K=this.editService.hasNewItem?1:0,at=Jg(this.filterable)?1:0;return I+(this.columnInfoService.totalLevels+at+K)}addRowLogicalIndex(){return this.columnInfoService.totalLevels+1+(Jg(this.filterable)?1:0)}logicalColIndex(i){return Xn(i.leafIndex)?i.leafIndex+(this.hasDetailTemplate?1:0):-1}ngOnInit(){this.ngZone.runOutsideAngular(()=>{const u=this.clickHandler.bind(this),I=this.renderer.listen(this.element.nativeElement,"mousedown",u),K=this.renderer.listen(this.element.nativeElement,"mouseup",u),at=this.renderer.listen(this.element.nativeElement,"click",u),jt=this.renderer.listen(this.element.nativeElement,"contextmenu",u),Kn=this.renderer.listen(this.element.nativeElement,"touchstart",u),Ti=this.renderer.listen(this.element.nativeElement,"touchend",u);this.clickSubscription=()=>{I(),K(),at(),jt()},this.touchSubscription=()=>{Kn(),Ti()}});let i=this.localization.get("noRecords");this.l10nSubscription=this.localization.changes.subscribe(()=>{this.noRecordsText===i&&(this.noRecordsText=this.localization.get("noRecords"),i=this.noRecordsText)})}ngOnDestroy(){this.clickSubscription&&this.clickSubscription(),this.touchSubscription&&this.touchSubscription(),this.l10nSubscription&&this.l10nSubscription.unsubscribe(),this.cellKeydownSubscription.unsubscribe(),clearTimeout(this.clickTimeout)}isEditingCell(i,u){return this.editService.isEditing()&&this.editService.isEditedColumn(i,u)}isEditingRow(i){return this.editService.isEditing()&&this.editService.hasEdited(i)}get hasGroupHeaderColumn(){return this.columnsContainer.hasGroupHeaderColumn}get columnsContainer(){return this.columnInfoService.columnsContainer}get columnsSpan(){return Ku(this.columns)}get allColumnsSpan(){return Ku(this.allColumns||this.columns)}get colSpan(){return this.columnsSpan+this.groups.length+(this.hasDetailTemplate?1:0)}get footerColumns(){return this.isLocked?this.columnsContainer.lockedColumnsToRender:this.columnsContainer.nonLockedColumnsToRender}showGroupHeader(i){return!i.data.skipHeader}addStickyColumnStyles(i){const u=this.columnInfoService.stickyColumnsStyles(i);return{...i.style,...u}}resizeHandler(){this.applyStickyRowsStyling()}get hasDetailTemplate(){return Xn(this.detailTemplate)}clickHandler(i){const u=this.element.nativeElement,I=this.eventTarget(i);let K,at,jt,Kn,Ti=I;do{K=Pc(Ti,Rc("td")),at=Pc(K,Rc("tr")),jt=Pc(at,Rc("tbody")),Ti=jt,Kn=xf(Ti,zd("k-grid"),u)}while(jt&&jt!==u&&!Kn);if(K&&!ap(K,h1)&&!ap(at,"k-grouping-row k-group-footer k-detail-row k-grid-norecords")&&jt===u&&!Kn&&(this.editService.preventCellClose(),!(I!==K&&Df(I,!1)||Rc("label")(I)||ap(I,"k-icon k-svg-icon")||xf(I,zd("k-grid k-grid-ignore-click"),K)))){const ls=this.cellClickArgs(K,at,i);"mousedown"===i.type||"touchstart"===i.type?this.domEvents.cellMousedown.emit(ls):"mouseup"===i.type||"touchend"===i.type?this.domEvents.cellMouseup.emit(ls):(ls.isEditedColumn||!this.editService.closeCell(i))&&("click"===i.type?this.clickTimeout=setTimeout(()=>{this.emitCellClick(ls)},0):this.emitCellClick(ls))}}emitCellClick(i){this.domEvents.cellClick.emit(Object.assign(i,{isEdited:i.isEditedRow||i.isEditedColumn}))}cellKeydownHandler(i){i.keyCode===o.R8.Enter&&this.clickHandler(i)}cellClickArgs(i,u,I){const K=((a,f)=>{let i=0;for(let u=0;u<f.length;u++){if(f[u]===a)return i;ap(f[u],"k-hierarchy-cell k-group-cell")||i++}})(i,u.cells),at=this.columns.toArray()[K],jt=this.lockedColumnsCount+K;let Kn=u.getAttribute("data-kendo-grid-item-index");return Kn=Kn?parseInt(Kn,10):-1,{column:at,columnIndex:jt,dataItem:-1===Kn?this.editService.newDataItem:this.data.at(Kn-this.skip),isEditedColumn:this.editService.isEditedColumn(Kn,at),isEditedRow:this.editService.isEdited(Kn),originalEvent:I,rowIndex:Kn,type:"keydown"===I.type?"click":I.type}}eventTarget(i){if((0,o.X_)()){if("touchend"===i.type){const u=i.changedTouches[0];return document.elementFromPoint(u.clientX,u.clientY)}return i.target}}applyStickyRowsStyling(){if(!(0,o.X_)())return;const i=(a=>[].slice.call(a))(this.element.nativeElement.querySelectorAll(".k-grid-row-sticky"));if(i.length){let I=0;const K=[];i.forEach(at=>{const jt=at.getBoundingClientRect().height;K.push({accumulatedHeight:I,rowHeight:jt}),I+=jt}),i.forEach((at,jt)=>{this.renderer.setStyle(at,"top",`${K[jt].accumulatedHeight}px`),this.renderer.setStyle(at,"bottom",I-K[jt].accumulatedHeight-K[jt].rowHeight+"px")})}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(If),e.Y36(Pp),e.Y36(Gp),e.Y36(Iu),e.Y36(ee.oQ),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Fd),e.Y36(Mf),e.Y36(ad),e.Y36(Mu),e.Y36(Zc))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridTableBody",""]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-table-tbody",u.hostClass)},inputs:{columns:"columns",allColumns:"allColumns",groups:"groups",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",data:"data",skip:"skip",selectable:"selectable",filterable:"filterable",noRecordsText:"noRecordsText",isLocked:"isLocked",isLoading:"isLoading",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",skipGroupDecoration:"skipGroupDecoration",showGroupFooters:"showGroupFooters",lockedColumnsCount:"lockedColumnsCount",totalColumnsCount:"totalColumnsCount",virtualColumns:"virtualColumns",trackBy:"trackBy",rowSticky:"rowSticky",rowClass:"rowClass"},features:[e.TTD],attrs:Gu,decls:4,vars:5,consts:[[4,"ngIf"],["class","k-grid-norecords","role","row",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"resize",4,"ngIf"],["kendoGridLogicalRow","",1,"k-grid-add-row","k-grid-edit-row","k-master-row",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],["class","k-table-td","kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","isNew","column","dataItem","k-grid-content-sticky","ngClass","left","ngStyle","logicalRowIndex","logicalColIndex","colSpan",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",1,"k-table-td",3,"rowIndex","columnIndex","isNew","column","dataItem","ngClass","ngStyle","logicalRowIndex","logicalColIndex","colSpan"],["role","row",1,"k-grid-norecords"],[1,"k-table-td"],[3,"templateContext"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","class","k-grid-row-sticky","ngClass","k-master-row","k-grid-edit-row","k-selected",4,"ngIf"],["class","k-detail-row","kendoGridLogicalRow","",3,"k-alt","dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount",4,"ngIf"],["class","k-group-footer","kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","ngClass"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false","role","gridcell",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell",4,"ngIf"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell","class","k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","k-grid-content-sticky","k-touch-action-none","k-touch-action-auto","ngClass","k-grid-edit-cell","ngStyle","k-selected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell"],["kendoGridLogicalCell","","aria-selected","false","role","gridcell",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell"],["href","#","tabindex","-1",3,"click",4,"ngIf"],["href","#","tabindex","-1",3,"click"],[3,"name","svgIcon"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",1,"k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","ngClass","ngStyle"],["kendoGridLogicalRow","",1,"k-detail-row",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount"],["class","k-group-cell k-table-td",4,"ngFor","ngForOf"],[1,"k-hierarchy-cell","k-table-td"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-detail-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","colIndex","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-group-cell","k-table-td"],["kendoGridLogicalRow","",1,"k-group-footer",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalCell","","class","k-table-td",3,"logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell",4,"ngFor","ngForOf"],[1,"k-group-cell"],["kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex"],[3,"resize"]],template:function(i,u){1&i&&(e.YNc(0,Ga,5,8,"ng-container",0),e.YNc(1,Oc,4,3,"tr",1),e.YNc(2,wu,5,4,"ng-container",2),e.YNc(3,wh,1,0,"kendo-resize-sensor",3)),2&i&&(e.Q6J("ngIf",u.editService.hasNewItem),e.xp6(1),e.Q6J("ngIf",0===(null==u.data?null:u.data.length)||null===u.data),e.xp6(1),e.Q6J("ngForOf",u.data)("ngForTrackBy",u.trackByWrapper),e.xp6(1),e.Q6J("ngIf",u.rowSticky))},dependencies:[p1,c0,St.ZS,o.NG,Ue.O5,sf,Ue.sg,nf,Ue.mk,Ue.PC,rf,Ue.tP],encapsulation:2}),a})();const $y=({columns:a})=>Math.max(1,(a=>a.filter(f=>Go(f.resizable)&&f.isVisible))(a).length),u0=a=>f=>f.querySelector(a),lg=(a,f="td")=>i=>i.querySelectorAll(`${f}:not(.k-group-cell):not(.k-hierarchy-cell)`)[a],cg=a=>a.offsetWidth,w_=(...a)=>f=>a.reduce((i,u)=>i?u(i):0,f);let f1=(()=>{class a{constructor(i,u,I,K,at){this.element=i,this.renderer=u,this.service=I,this.zone=K,this.cdr=at,this.locked=!1,this.firstResize=!1}get minWidth(){return this.firstResize?0:null}ngOnInit(){const i=this.service.changes.pipe((0,te.h)(u=>this.locked===u.locked));this.subscription=i.pipe((0,te.h)(u=>"start"===u.type),(0,pe.b)(this.initState.bind(this)),(0,Se.U)($y),(0,se.w)(u=>i.pipe((0,te.h)(I=>"resizeTable"===I.type),(0,Se.U)(I=>I.delta),function Ct(a,f=null){return f=f??a,(0,Ye.e)((i,u)=>{let I=[],K=0;i.subscribe((0,ct.x)(u,at=>{let jt=null;K++%f==0&&I.push([]);for(const Kn of I)Kn.push(at),a<=Kn.length&&(jt=jt??[],jt.push(Kn));if(jt)for(const Kn of jt)(0,ut.P)(I,Kn),u.next(Kn)},()=>{for(const at of I)u.next(at);u.complete()},void 0,()=>{I=null}))})}(u)))).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}initState(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=cg(this.element.nativeElement))}resize(i){if(!this.virtualColumns||this.locked){const u=i.reduce((K,at)=>K+at,0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+u+"px")}this.cdr.detectChanges()}autoFitObservable(i){return Y.y.create(u=>{this.zone.runOutsideAngular(()=>{this.renderer.addClass(this.element.nativeElement,"k-autofitting"),this.cdr.detectChanges();const I=i.map(this.measureColumn.bind(this));this.renderer.removeClass(this.element.nativeElement,"k-autofitting"),u.next(I)})})}measureColumn(i){const u=this.element.nativeElement,I=w_((a=>f=>f.querySelectorAll("thead>tr")[a])(i.level),lg(i.headerIndex,"th"),cg)(u);let K=0;(!i.isParentSpan||i.isParentSpan&&i.isLastInSpan)&&(K=w_(u0("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),lg(i.index),cg)(u));const at=w_(u0("tfoot>tr"),lg(i.index),cg)(u);return Math.max(I,K,at)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Lf),e.Y36(e.R0b),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,selectors:[["table"]],hostVars:2,hostBindings:function(i,u){2&i&&e.Udp("min-width",u.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),a})(),ug=(()=>{class a{constructor(i){this.wrapper=i,this.hostClass=!0,this._size="medium"}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}set size(i){this._size=i,"none"===i&&this.wrapper.nativeElement.classList.remove("k-table-sm","k-table-md")}get size(){return this._size}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridTable",""]],hostVars:6,hostBindings:function(i,u){2&i&&e.ekj("k-table",u.hostClass)("k-table-sm",u.sizeSmallClass)("k-table-md",u.sizeMediumClass)},inputs:{size:"size"}}),a})(),m1=(()=>{class a{constructor(i,u,I,K){this.el=i,this.renderer=u,this.resizeService=I,this.ctx=K,this.enabled=!1}set lockedWidth(i){this._lockedWidth=i,this.enabled&&(this.attachResize(),this.resize())}set kendoGridResizableContainer(i){const u=i!==this.enabled;this.enabled=i,u&&(this.attachResize(),this.resize())}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}attachResize(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}resize(){if(this.ctx.grid&&this.ctx.grid.wrapper){const u=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&u>0?u+"px":"")}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(kv),e.Y36(Gd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),a})();const g1=(a,f,i)=>{for(let u=0,I=0;u<f.length;u++){const K=i(f[u]);if(I<=a&&a<=I+K-1)return f[u];I+=K}},_1=(a,f)=>g1(a,f,i=>i.hasAttribute("data-kendo-grid-item-index")?1:0),Ky={},Jy=new e.OlP("grid-scroll-service-factory");function v1(a){return new a0(a)}const qf=a=>{const f=a.wheelDeltaY;return a.wheelDelta&&(void 0===f||f)?a.wheelDelta:a.detail&&a.axis===a.VERTICAL_AXIS?10*-a.detail:0},Sp=a=>a?a.nativeElement:null;let tm=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns,ls,ws,pr,sr,na,_o,Xo,qo,Ia){this.changeNotification=I,this.suspendService=K,this.groupsService=at,this.ngZone=jt,this.renderer=Kn,this.scrollSyncService=Ti,this.resizeService=ns,this.editService=ls,this.supportService=ws,this.navigationService=pr,this.localization=na,this.columnResizingService=_o,this.changeDetector=Xo,this.pdfService=qo,this.columnInfo=Ia,this.hostClass=!0,this.hostRole="presentation",this.groups=[],this.skip=0,this.columns=new xv(()=>[]),this.selectable=!1,this.groupable=!1,this.trackBy=gp,this.sort=new Array,this.size="medium",this.contentScroll=new e.vpe,this.pageChange=new e.vpe,this.scrollBottom=new e.vpe,this.columnsStartIdx=0,this.resizeSensors=new e.n_E,this.dispatcher=new G.x,this.containerScrollTop=0,this.scrollLeft=0,this.rtl=!1,this.scroller=i(this.dispatcher),this.subscriptions=u.changes.subscribe(ba=>this.detailExpand(ba)),this.subscriptions.add(sr.requests.subscribe(ba=>this.scrollTo(ba)))}get showFooter(){return this.groupable&&this.groupable.showFooter}get totalWidth(){if(this.virtualColumns&&this.columns.unlockedWidth)return this.columns.unlockedWidth}get lockedLeafColumns(){return this.columns.lockedLeafColumns}get nonLockedLeafColumns(){return this.columns.nonLockedLeafColumns}get nonLockedColumnsToRender(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedLeafColumns}get leafColumns(){return this.columns.leafColumnsToRender}get lockedWidth(){const i=32*this.groups.length;return mu(this.lockedLeafColumns.toArray()).reduce((u,I)=>u+(I.width||0),i)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return dv(mu(this.nonLockedColumnsToRender.toArray()))}get isLocked(){return this.lockedLeafColumns.length>0}ngOnInit(){this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add((0,T.T)(this.columns.changes,this.resizeService.changes).subscribe(()=>{this.virtualColumns&&this.ngZone.run(()=>{this.updateViewportColumns(),this.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(({rtl:i})=>this.rtl=i))}ngOnChanges(i){if(!(0,o.X_)())return;const u=i.skip;u&&u.firstChange&&u.currentValue>0&&this.handleInitialScrollToSkip(),(0,o.ln)("skip",i)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),(0,o.aG)(["total","take"],i)&&this.init(),this.rebind=!1}ngDoCheck(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}ngAfterViewInit(){(0,o.X_)()&&(this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService())}ngAfterViewChecked(){const i=this.isLocked;i&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=i}syncRowsHeight(){this.lockedContainer&&Tv(this.lockedTable.nativeElement,this.table.nativeElement)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}init(){this.suspendService.scroll||(this.rowHeightService=new d1(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),su()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}lockedScroll(){if(!this.suspendService.scroll){const i=this.lockedContainer.nativeElement.scrollTop;i!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=i)}}lockedMousewheel(i){if(!i.ctrlKey){((a,f)=>{const i=qf(a),u=f.scrollTop;0===u&&0<i||f.scrollHeight<=f.offsetHeight+u&&i<0||event.preventDefault()})(i,this.container.nativeElement);const u=qf(i);this.container.nativeElement.scrollTop-=u}}lockedKeydown(i){if(i.keyCode===o.R8.PageDown||i.keyCode===o.R8.PageUp){const I=this.container.nativeElement;I.scrollTop+=I.offsetHeight*(i.keyCode===o.R8.PageDown?1:-1)*.8,i.preventDefault()}}detailExpand({index:i,expand:u}){u?this.rowHeightService.expandDetail(i):this.rowHeightService.collapseDetail(i),this.totalHeight=this.rowHeightService.totalHeight(),this.resetNavigationViewport()}attachContainerScroll(){su()||(this.ngZone.runOutsideAngular(()=>{this.subscriptions.add((0,P.R)(this.container.nativeElement,"scroll").pipe((0,Se.U)(i=>i.target),(0,te.h)(()=>!this.suspendService.scroll),(0,pe.b)(i=>{this.onContainerScroll(i),this.resetNavigationViewport(),this.virtualColumns&&this.handleColumnScroll();const u=this.navigationService.viewport||Ky,I=this.navigationService.columnViewport||Ky;this.contentScroll.emit({scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,startRow:u.firstItemIndex,endRow:u.lastItemIndex,startColumn:I.firstItemIndex,endColumn:I.lastItemIndex})})).subscribe(this.dispatcher))}),this.scrollSyncService.registerEmitter(this.container.nativeElement,"body"))}createScroller(){this.cleanupScroller();const i=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.skipScroll=!1,this.scrollerSubscription=i.pipe((0,te.h)(u=>u instanceof C_),(0,te.h)(()=>{const u=this.skipScroll;return this.skipScroll=!1,!u}),(0,pe.b)(()=>this.rebind=!0)).subscribe(u=>this.ngZone.run(()=>this.pageChange.emit(u))),this.scrollerSubscription.add(i.pipe((0,te.h)(u=>u instanceof ig)).subscribe(this.scroll.bind(this))),this.scrollerSubscription.add(i.pipe((0,te.h)(u=>u instanceof sg)).subscribe(()=>this.scrollBottom.emit()))}scroll({offset:i=0}){this.isVirtual&&[Sp(this.table),Sp(this.lockedTable)].filter(Xn).forEach(((a,f)=>i=>a.setStyle(i,"transform",`translateY(${f}px)`))(this.renderer,i)),this.resetNavigationViewport()}onContainerScroll({scrollTop:i}){this.containerScrollTop=i,this.lockedContainer&&(this.lockedContainer.nativeElement.scrollTop=i)}handleInitialScrollToSkip(){const u=this.changeNotification.changes.pipe((0,te.h)(()=>this.isVirtual&&this.skip>0&&this.total>0)).subscribe(I=>{this.scrollTo({row:this.skip}),u.unsubscribe()})}handleRowSync(){const i=()=>Xn(this.lockedContainer);return(0,T.T)(this.changeNotification.changes,this.groupsService.changes.pipe((0,te.h)(i),(0,q.c)((()=>this.ngZone.onStable.asObservable().pipe((0,he.q)(1)))())),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe((0,te.h)(I=>"end"===I.type)),this.supportService.changes).pipe((0,pe.b)(()=>this.resetNavigationViewport()),(0,te.h)(i)).subscribe(()=>{const I=this.container.nativeElement.scrollTop,K=this.container.nativeElement.scrollLeft;this.syncRowsHeight(),this.syncContainerHeight(),this.lockedContainer.nativeElement.scrollTop=this.container.nativeElement.scrollTop=I,this.container.nativeElement.scrollLeft=K,this.resizeSensors.forEach(at=>at.acceptSize())})}handleRowNavigationLocked(){return this.navigationService.changes.pipe((0,te.h)(()=>Xn(this.lockedContainer)),(0,we.g)(10)).subscribe(i=>{if(this.lockedLeafColumns.length<=i.prevColIndex&&i.colIndex<this.lockedLeafColumns.length){const u=this.navigationService.activeCell;u&&u.colIndex+u.colSpan<i.prevColIndex&&(this.container.nativeElement.scrollLeft=0)}})}scrollToVirtualRow(i){if(!(0,o.X_)())return;Xn(this.detailTemplate)&&(i=Math.floor(i/2));const u=this.rowHeightService.offset(i);this.container.nativeElement.scrollTop=u,this.resetNavigationViewport()}scrollTo({row:i,column:u}){if(rp(i))if(this.isVirtual)this.scrollToVirtualRow(i);else{const I=_1(i,this.table.nativeElement.rows);I&&(this.container.nativeElement.scrollTop=I.offsetTop)}if(rp(u))if(u-=this.lockedLeafColumns.length,this.virtualColumns){const I=this.columns.leafColumnsToRender;let K=0;for(let jt=0;jt<u;jt++)K+=I[jt].width||0;this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(K+(this.lockedLeafColumns.length?0:32*this.groups.length+(this.detailTemplate&&u>0?32:0)))}else if(0===u&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{const I=_1(0,this.table.nativeElement.rows);if(I){const K=((a,f)=>g1(a,f,i=>ap(i,h1)?0:parseInt(i.getAttribute("colSpan"),10)||1))(u,I.cells);K&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(K))}}}resetNavigationViewport(){if(!(o.X_&&this.container&&this.navigationService.tableEnabled&&this.navigationService.needsViewport()&&0!==this.data.length))return;const{scrollTop:i,offsetHeight:u}=this.container.nativeElement,I=i+u,K=this.rowHeightService.index(i),at=this.rowHeightService.index(I),jt=this.rowHeightService.offset(at);let Kn=K,Ti=at;if(Xn(this.detailTemplate)){Kn*=2,Ti*=2,this.rowHeightService.offset(K)+this.rowHeight<i&&Kn++;const ls=this.rowHeightService.height(at);this.rowHeightService.isExpanded(at)&&!(jt+ls>I)&&Ti++}this.navigationService.setViewport(Kn,Ti)}cleanupScroller(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}initResizeService(){this.resizeService.connect((0,T.T)(...this.resizeSensors.map(i=>i.resize)))}syncContainerHeight(){[Sp(this.lockedContainer)].filter(Xn).map(i=>{i.style.height="";let u=this.container.nativeElement.offsetHeight;return((a,f)=>this.table.nativeElement.offsetWidth>this.container.nativeElement.clientWidth)()&&(u-=this.supportService.scrollbarWidth),{el:i,height:u}}).forEach((a=>({el:f,height:i})=>a.setStyle(f,"height",`${i}px`))(this.renderer))}updateViewportColumns(i){const u=this.columns.nonLockedLeafColumns.toArray();let{startIdx:I,endIdx:K,offset:at}=i||this.calculateViewportColumns();const jt=Math.max(0,I-1),Kn=Math.min(K+1,u.length-1);if(jt<I)for(let ns=I-1;ns>=jt;ns--)at-=u[ns].width;const Ti=u.slice(jt,Kn+1);if(this.viewportColumnsWidth=Ti.reduce((ns,ls)=>ns+ls.width,0),jt>0){const ns=new Gl;ns.width=at,Ti.unshift(ns)}this.viewportColumns=new e.n_E,this.viewportColumns.reset(Ti),this.columnsStartIdx=jt,this.columnsEndIdx=Kn,this.columnInfo.columnRangeChange.emit({start:jt,end:Kn,offset:at}),i||this.updateColumnViewport(I,K)}handleColumnScroll(){const u=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==u){this.scrollLeft=u;const I=this.calculateViewportColumns();this.updateColumnViewport(I.startIdx,I.endIdx),(I.startIdx<this.columnsStartIdx||this.columnsEndIdx<I.endIdx)&&(tv(this.columnUpdateFrame),this.columnUpdateFrame=ev(()=>{this.ngZone.run(()=>{this.updateViewportColumns(I),this.changeDetector.markForCheck()})}))}}updateColumnViewport(i,u){const I=this.lockedLeafColumns.length,K=this.nonLockedLeafColumns.toArray(),at=I+i+(this.detailTemplate&&i>0?1:0);let jt=I+u+(this.detailTemplate?1:0);for(let Kn=0;Kn<K.length;Kn++){const Ti=K[Kn];Ti.isSpanColumn&&(jt+=Ti.childColumns.length)}this.navigationService.setColumnViewport(at,jt)}calculateViewportColumns(){const{scrollLeft:i,clientWidth:u}=this.container.nativeElement,I=this.columns.nonLockedLeafColumns.toArray(),K=this.normalizeScrollLeft(i),at=K+u;let jt,ls,Kn=0,Ti=0,ns=0;for(ls=0;ls<I.length;ls++){const ws=I[ls];if(Ti+=ws.width||0,void 0===jt&&Ti>K&&(jt=ls,ns=Ti-(ws.width||0)),Ti>=at){Kn=ls;break}}return!Kn&&ls>0&&(Kn=I.length-1),{startIdx:jt,endIdx:Kn,offset:ns}}viewportWidthChange(){return this.viewportColumns.toArray().reduce((u,I)=>u+I.width,0)!==this.viewportColumnsWidth}normalizeScrollLeft(i){return this.rtl?function sv(a,f,i){let u=a;return i<0?u=-a:i>0&&(u=f.scrollWidth-f.offsetWidth-a),u}(i,this.container.nativeElement,this.supportService.rtlScrollLeft):i}elementScrollLeft(i){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-i.offsetLeft-i.offsetWidth):i.offsetLeft}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Jy),e.Y36(If),e.Y36(Gp),e.Y36(fp),e.Y36(Pp),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Bh),e.Y36(kv),e.Y36(Iu),e.Y36(Wg),e.Y36(Zc),e.Y36(fm),e.Y36(ee.oQ),e.Y36(Lf),e.Y36(e.sBO),e.Y36(pp),e.Y36(Mu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-list"]],viewQuery:function(i,u){if(1&i&&(e.Gf(xh,7),e.Gf(Vu,5),e.Gf(ju,5),e.Gf(kd,7),e.Gf(o.NG,5)),2&i){let I;e.iGM(I=e.CRH())&&(u.container=I.first),e.iGM(I=e.CRH())&&(u.lockedContainer=I.first),e.iGM(I=e.CRH())&&(u.lockedTable=I.first),e.iGM(I=e.CRH())&&(u.table=I.first),e.iGM(I=e.CRH())&&(u.resizeSensors=I)}},hostVars:3,hostBindings:function(i,u){2&i&&(e.uIk("role",u.hostRole),e.ekj("k-grid-container",u.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate",sort:"sort",size:"size"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[e._Bn([{provide:Jy,useValue:v1}]),e.TTD],decls:13,vars:37,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["kendoGridTable","","role","presentation",1,"k-grid-table",3,"virtualColumns","size"],["table",""],["kendoGridColGroup","","role","presentation",3,"groups","columns","detailTemplate","sort"],["kendoGridTableBody","","role","rowgroup",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation","kendoGridTable","",1,"k-grid-table",3,"locked","size"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(i,u){1&i&&(e.YNc(0,Dh,10,35,"div",0),e.TgZ(1,"div",1,2)(3,"div",3)(4,"table",4,5),e._UZ(6,"colgroup",6)(7,"tbody",7),e.qZA(),e.YNc(8,od,1,0,"kendo-resize-sensor",8),e.qZA(),e.YNc(9,Eh,1,0,"kendo-resize-sensor",8),e.TgZ(10,"div",9),e._UZ(11,"div"),e.qZA(),e.YNc(12,Ih,2,2,"div",10),e.qZA()),2&i&&(e.Q6J("ngIf",u.isLocked),e.xp6(1),e.Q6J("kendoGridResizableContainer",u.lockedLeafColumns.length>0)("lockedWidth",u.lockedWidth+1),e.xp6(3),e.Udp("width",u.nonLockedWidth,"px"),e.Q6J("virtualColumns",u.virtualColumns)("size",u.size),e.xp6(2),e.Q6J("groups",u.isLocked?e.DdM(36,Od):u.groups)("columns",u.nonLockedColumnsToRender)("detailTemplate",u.detailTemplate)("sort",u.sort),e.xp6(1),e.Q6J("skipGroupDecoration",u.isLocked)("data",u.data)("groups",u.groups)("showGroupFooters",u.showFooter)("columns",u.nonLockedColumnsToRender)("allColumns",u.nonLockedLeafColumns)("detailTemplate",u.detailTemplate)("noRecordsTemplate",u.noRecordsTemplate)("lockedColumnsCount",u.lockedLeafColumns.length)("totalColumnsCount",u.leafColumns.length)("skip",u.skip)("selectable",u.selectable)("trackBy",u.trackBy)("filterable",u.filterable)("rowClass",u.rowClass)("rowSticky",u.rowSticky)("virtualColumns",u.virtualColumns)("isLoading",u.loading)("isVirtual",u.isVirtual)("cellLoadingTemplate",u.cellLoadingTemplate),e.xp6(1),e.Q6J("ngIf",u.isLocked),e.xp6(1),e.Q6J("ngIf",u.isLocked||u.virtualColumns),e.xp6(2),e.Udp("height",u.totalHeight,"px"),e.xp6(1),e.Q6J("ngIf",u.virtualColumns))},dependencies:[jf,bp,o.NG,Ue.O5,o.nV,f1,ug,m1],encapsulation:2}),a})(),b1=(()=>{class a{constructor(i){this.columnInfoService=i,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0,this.hostClass=!0,this.hostRole="rowgroup"}get footerClass(){return!this.scrollable}get columnsToRender(){return Zu(this.columns||[])}logicalColumnIndex(i){const u=i.leafIndex;return Xn(u)?u+(Xn(this.detailTemplate)?1:0):-1}addStickyStyles(i){const u=this.columnInfoService.stickyColumnsStyles(i);return{...i.style,...u}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Mu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridFooter",""]],hostVars:5,hostBindings:function(i,u){2&i&&(e.uIk("role",u.hostRole),e.ekj("k-grid-footer",u.footerClass)("k-table-tfoot",u.hostClass))},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex"},attrs:Wc,decls:5,vars:9,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-table-td k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation","class","k-table-td k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","class","k-table-td","role","gridcell","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td","k-group-cell"],["role","presentation",1,"k-table-td","k-hierarchy-cell"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(i,u){1&i&&(e.ynx(0),e.TgZ(1,"tr",0),e.YNc(2,ic,1,0,"td",1),e.YNc(3,Yu,1,0,"td",2),e.YNc(4,eh,2,12,"td",3),e.qZA(),e.BQk()),2&i&&(e.xp6(1),e.ekj("k-footer-template",!0),e.Q6J("logicalRowIndex",u.logicalRowIndex)("logicalSlaveRow",u.lockedColumnsCount>0)("logicalCellsCount",u.columns.length)("logicalSlaveCellsCount",u.columns.length-u.lockedColumnsCount),e.xp6(1),e.Q6J("ngForOf",u.groups),e.xp6(1),e.Q6J("ngIf",null==u.detailTemplate?null:u.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",u.columnsToRender))},dependencies:[sf,Ue.sg,Ue.O5,nf,Ue.mk,Ue.PC,rf],encapsulation:2}),a})(),nm=(()=>{class a{constructor(i){this.localization=i,this.hostClass=!0}get loadingText(){return this.localization.get("loading")}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(i,u){2&i&&e.ekj("k-loading-mask",u.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:Ad,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(i,u){1&i&&(e.YNc(0,Ip,5,1,"ng-container",0),e.YNc(1,xu,1,1,null,0)),2&i&&(e.Q6J("ngIf",!u.loadingTemplate),e.xp6(1),e.Q6J("ngIf",u.loadingTemplate))},dependencies:[Ue.O5,Ue.tP],encapsulation:2}),a})(),dg=(()=>{class a extends ee.Z1{}return a.\u0275fac=function(){let f;return function(u){return(f||(f=e.n5z(a)))(u||a)}}(),a.\u0275dir=e.lG2({type:a,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",selectPage:"selectPage",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",autosizeThisColumn:"autosizeThisColumn",autosizeAllColumns:"autosizeAllColumns",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand",topToolbarLabel:"topToolbarLabel",bottomToolbarLabel:"bottomToolbarLabel",groupPanelLabel:"groupPanelLabel",dragRowHandleLabel:"dragRowHandleLabel"},features:[e.qOj]}),a})(),x_=(()=>{class a extends dg{constructor(i){super(),this.service=i}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridLocalizedMessages",""]],features:[e._Bn([{provide:dg,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj]}),a})();const E_=(a,f)=>Pc(a,zd("k-grid-edit-cell"))&&Pc(a,Rc("kendo-grid"))===f;let fd=(()=>{class a{constructor(i,u,I,K,at,jt,Kn,Ti,ns,ls,ws,pr,sr,na,_o,Xo,qo,Ia,ba,eo,Vr,Ha,Fc,pc,Qc,Ll,gd,Pu){this.supportService=i,this.selectionService=u,this.cellSelectionService=I,this.wrapper=K,this.groupInfoService=at,this.groupsService=jt,this.changeNotification=Kn,this.detailsService=Ti,this.editService=ns,this.filterService=ls,this.pdfService=ws,this.responsiveService=pr,this.renderer=sr,this.excelService=na,this.ngZone=_o,this.scrollSyncService=Xo,this.domEvents=qo,this.columnResizingService=Ia,this.changeDetectorRef=ba,this.columnReorderService=eo,this.columnInfoService=Vr,this.navigationService=Ha,this.sortService=Fc,this.scrollRequestService=pc,this.localization=Qc,this.ctx=Ll,this.sizingService=gd,this.rowReorderService=Pu,this.scrollable="scrollable",this.selectable=!1,this.trackBy=gp,this.virtualColumns=!1,this.gridData=()=>this.flatData,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new e.vpe,this.pageChange=new e.vpe,this.groupChange=new kf(this.ngZone),this.sortChange=new e.vpe,this.selectionChange=new e.vpe,this.rowReorder=new e.vpe,this.dataStateChange=new e.vpe,this.groupExpand=new e.vpe,this.groupCollapse=new e.vpe,this.detailExpand=new e.vpe,this.detailCollapse=new e.vpe,this.edit=new e.vpe,this.cancel=new e.vpe,this.save=new e.vpe,this.remove=new e.vpe,this.add=new e.vpe,this.cellClose=new e.vpe,this.cellClick=new kf(this.ngZone),this.pdfExport=new e.vpe,this.excelExport=new e.vpe,this.columnResize=new kf(this.ngZone),this.columnReorder=new e.vpe,this.columnVisibilityChange=new e.vpe,this.columnLockedChange=new e.vpe,this.columnStickyChange=new e.vpe,this.scrollBottom=new e.vpe,this.contentScroll=new e.vpe,this.columns=new e.n_E,this.hostClass=!0,this.footer=new e.n_E,this.selectionDirective=!1,this.ariaRootId=`k-${(0,o.M8)()}`,this.columnsContainer=new xv(()=>this.columnList.filterHierarchy(Hl=>(su()||(Hl.matchesMedia=this.matchesMedia(Hl)),Hl.isVisible))),this.view=new zh(()=>new Ey(this.data,this.skip,this.hasGroupFooters)),this.shouldGenerateColumns=!0,this._sort=new Array,this._group=new Array,this._skip=0,this._data=[],this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this._rowReorderable=!1,this._navigable=[],this._size="medium",this._loading=!1,this.rtl=!1,this._rowClass=()=>null,(0,ln.s)(b2),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(({rtl:Hl})=>{this.rtl=Hl,this.direction=this.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(()=>this.columnList),this.columnInfoService.init(this.columnsContainer,()=>this.columnList),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(Hl=>{this.columnVisibilityChange.emit(new Ay(Hl))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(Hl=>{this.columnLockedChange.emit(new jd(Hl))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(Hl=>{this.columnStickyChange.emit(new gu(Hl))}),this.groupExpandCollapseSubscription=((a,f,i,u)=>a.changes.pipe((0,te.h)(({group:I})=>Xn(I))).subscribe(I=>I.expand?f.emit(u(I)):i.emit(u(I))))(jt,this.groupExpand,this.groupCollapse,({group:Hl,groupIndex:Eg,parentGroup:vh})=>({group:Hl,groupIndex:Eg,parentGroup:vh})),this.detailsServiceSubscription=((a,f,i,u)=>a.changes.pipe((0,te.h)(({dataItem:I})=>Xn(I))).subscribe(I=>I.expand?f.emit(I):i.emit(I)))(Ti,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(Hl=>{this.filterChange.emit(Hl)}),this.sortSubscription=this.sortService.changes.subscribe(Hl=>{this.sortChange.emit(Hl)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new Em(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}set data(i){this._data=i}get data(){return this._data}get hintText(){return this.rowReorderService.getDefaultHintText(this.columnList,this.flatData)}get skip(){return this._skip}set skip(i){"number"==typeof i&&i>=0&&(this._skip=this.rowReorderService.skip=i)}set sort(i){Ro(i)&&(this._sort=i)}get sort(){return this._sort}set size(i){this._size=i,"none"===i&&this.wrapper.nativeElement.classList.remove("k-grid-sm","k-grid-md"),this.sizingService.changes.next(this.size)}get size(){return this._size}set group(i){Ro(i)&&(this._group=i)}get group(){return this._group}get showTopToolbar(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}get showBottomToolbar(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}get isLocked(){return this.lockedLeafColumns.length>0}get showTopPager(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}get showBottomPager(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}get hasPager(){return this.showTopPager||this.showBottomPager}get showGroupPanel(){return this.groupable&&!1!==this.groupable.enabled}get groupableEmptyText(){return this.groupable.emptyText}get marqueeSelection(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}set rowReorderable(i){this._rowReorderable=i,i?this.rowReorderSubscription=this.rowReorderService.rowReorder.subscribe(u=>{this.ngZone.run(()=>{this.rowReorder.emit(u)})}):this.rowReorderSubscription?.unsubscribe()}get rowReorderable(){return this._rowReorderable}set navigable(i){this._navigable="boolean"!=typeof i?i:i?["table","pager","toolbar"]:[]}get navigable(){return this._navigable}set navigatable(i){this.navigable=i}get navigatable(){return this.navigable}set rowClass(i){if((0,e.X6Q)()&&"function"!=typeof i)throw new Error(`rowClass must be a function, but received ${JSON.stringify(i)}.`);this._rowClass=i}get rowClass(){return this._rowClass}set rowSticky(i){if((0,e.X6Q)()&&Xn(i)&&"function"!=typeof i)throw new Error(`rowSticky must be a function, but received ${JSON.stringify(i)}.`);Xn(i)&&(this._rowSticky=i)}get rowSticky(){return this._rowSticky}set rowSelected(i){if((0,e.X6Q)()&&"function"!=typeof i)throw new Error(`rowSelected must be a function, but received ${JSON.stringify(i)}.`);this._rowSelected=i}get rowSelected(){return this._rowSelected}set cellSelected(i){if((0,e.X6Q)()&&"function"!=typeof i)throw new Error(`cellSelected must be a function, but received ${JSON.stringify(i)}.`);this._cellSelected=i}get cellSelected(){return this._cellSelected}get activeCell(){return this.navigationService.activeCell}get activeRow(){return this.navigationService.activeRow}set loading(i){this._loading=i,this.rowReorderable&&this.notifyReorderContainers()}get loading(){return this._loading}get dir(){return this.direction}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}get lockedClasses(){return this.lockedLeafColumns.length>0}get virtualClasses(){return this.isVirtual}get noScrollbarClass(){return 0===this.scrollbarWidth}get detailTemplate(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0}set detailTemplate(i){this._customDetailTemplate=i}get cellLoadingTemplate(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0}set cellLoadingTemplate(i){this._cellLoadingTemplate=i}get loadingTemplate(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0}set loadingTemplate(i){this._loadingTemplate=i}get noRecordsTemplate(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0}set noRecordsTemplate(i){this._customNoRecordsTemplate=i}get pagerTemplate(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0}set pagerTemplate(i){this._customPagerTemplate=i}get toolbarTemplate(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0}set toolbarTemplate(i){this._customToolbarTemplate=i}get scrollbarWidth(){return this.supportService.scrollbarWidth}get headerPadding(){if(su())return"";const i=Math.max(0,this.scrollbarWidth)+"px";return`0 ${this.rtl?0:i} 0 ${this.rtl?i:0}`}get hasGroupFooters(){return this.columnsContainer.hasGroupFooter}get showFooter(){return this.columnsContainer.hasFooter}get showGroupFooters(){return this.groupable&&this.groupable.showFooter}get ariaRowCount(){return this.totalColumnLevels+1+this.view.total}get ariaColCount(){return this.columnsContainer.leafColumnsToRender.length}get navigation(){return this.navigationService}get isVirtual(){return"virtual"===this.scrollable}get isScrollable(){return"none"!==this.scrollable}get visibleColumns(){return this.columnsContainer.allColumns}get lockedColumns(){return this.columnsContainer.lockedColumns}get nonLockedColumns(){return this.columnsContainer.nonLockedColumns}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get stickyColumns(){return this.columns.filter(i=>i.sticky)}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get leafColumns(){return this.columnsContainer.leafColumns}get totalColumnLevels(){return this.columnsContainer.totalLevels}get headerColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}get headerLeafColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}get lockedWidth(){const i=32*this.group.length;return mu(this.lockedLeafColumns.toArray()).reduce((u,I)=>u+(I.width||0),i)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce((i,u)=>i+(u.width||0),0):this.columnsContainer.unlockedWidth}get selectableSettings(){if(this.selectionService)return this.selectionService.options}get columnMenuTemplate(){const i=this.columnMenuTemplates.first;return i?i.templateRef:null}get totalCount(){return this.isVirtual||!Xn(this.pageSize)?this.view.total:this.pageSize}getDefaultSelectors(i){return this.rowReorderService.defaultSelectors[i]}getHintSettings(i){return this.rowReorderService[i]}expandRow(i){this.toggleDetailRowLegacy(i,!0)}collapseRow(i){this.toggleDetailRowLegacy(i,!1)}expandGroup(i){this.toggleGroupRowLegacy(i,!0)}collapseGroup(i){this.toggleGroupRowLegacy(i,!1)}resetGroupsState(){this.groupsService.reset()}expandGroupChildren(i){this.groupsService.expandChildren(i)}onDataChange(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),Xn(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}ngOnChanges(i){(0,o.ln)("data",i)&&this.onDataChange(),this.lockedLeafColumns.length&&(0,o.aG)(["pageSize","skip","sort","group"],i)&&this.changeNotification.notify(),(0,o.aG)(["pageSize","scrollable","virtualColumns"],i)&&this.updateNavigationMetadata(),(0,o.ln)("virtualColumns",i)&&(this.viewportColumns=this.leafViewportColumns=null),(0,o.ln)("height",i,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height",`${this.height}px`),(0,o.ln)("filterable",i)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe((0,he.q)(1))),(0,o.aG)(["columnMenu","sortable","filterable"],i,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),(0,o.ln)("scrollable",i)&&this.isScrollable&&this.ngZone.onStable.pipe((0,he.q)(1)).subscribe(()=>this.attachScrollSync()),(0,o.ln)("selectable",i)&&this.shouldResetSelection(i.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),(0,o.ln)("groupable",i,!0)&&(this.groupable=i.groupable.currentValue),(0,o.ln)("navigable",i,!0)&&(this.navigationService.enabled?this.navigationService.setActiveSections(this.navigable):this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable))}ngAfterViewInit(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}ngAfterContentChecked(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}ngAfterContentInit(){this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new Em(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(()=>this.verifySettings())}ngOnInit(){this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable)}ngOnDestroy(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}attachScrollSync(){su()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=Za(this.footer).subscribe(i=>i.map(u=>u.nativeElement).filter(Xn).forEach(u=>{this.scrollSyncService.registerEmitter(u,"footer"),u.scrollLeft=this.wrapper.nativeElement.querySelector(".k-grid-content")?.scrollLeft}))))}get ariaLabel(){return this.localization.get("gridLabel")}messageFor(i){return this.localization.get(i)}editRow(i,u,I){if(this.editService.editRow(i,u),Xn(I)&&I.skipFocus)return;const K=`tr[data-kendo-grid-item-index="${i}"]`,at=I&&I.columnIndex,jt=isNaN(at)?K:`${K} td[data-kendo-grid-column-index="${at}"]`;this.focusEditElement(jt)}closeRow(i){this.editService.close(i)}addRow(i){if(!(i instanceof vt.cw)){const I=Object.keys(i).reduce((a=>(f,i)=>(f[i]=new vt.NI(a[i]),f))(i),{});i=new vt.cw(I)}this.editService.addRow(i),this.focusEditElement(".k-grid-add-row")}editCell(i,u,I){const K=this.columnInstance(u);this.editService.editCell(i,K,I),this.focusEditElement(".k-grid-edit-cell")}closeCell(){return!this.editService.closeCell()}cancelCell(){this.editService.cancelCell()}isEditing(){return this.editService.isEditing()}isEditingCell(){return this.editService.isEditingCell()}saveAsPDF(){this.pdfService.save(this)}drawPDF(){const i=(()=>{let a,f;const i=new Promise((u,I)=>{a=K=>(u(K),i),f=K=>(I(K),i)});return i.resolve=a,i.reject=f,i})();return this.pdfService.draw(this,i),i}saveAsExcel(){this.excelService.save(this)}autoFitColumn(i){this.columnResizingService.autoFit(i)}autoFitColumns(i=this.columns){let u;u=i instanceof e.n_E?i.toArray():i,this.columnResizingService.autoFit(...u)}notifyPageChange(i,u){"list"===i&&!this.isVirtual||this.pageChange.emit(u)}notifyScrollBottom(){"none"!==this.scrollable&&(0,o.g$)(this.scrollBottom)&&this.ngZone.run(()=>this.scrollBottom.emit({sender:this}))}focusEditElement(i){this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(()=>{this.focusElementSubscription=this.ngZone.onStable.asObservable().pipe((0,he.q)(1)).subscribe(()=>{const u=this.wrapper.nativeElement;!this.setEditFocus(u.querySelector(i))&&this.isLocked&&this.setEditFocus(u.querySelector(`.k-grid-content ${i}`)),this.focusElementSubscription=null})})}focus(){return this.assertNavigable(),this.navigationService.focusCell()}focusCell(i,u){return this.assertNavigable(),this.navigationService.focusCell(i,u)}focusNextCell(i=!0){return this.assertNavigable(),this.navigationService.focusNextCell(i)}focusPrevCell(i=!0){return this.assertNavigable(),this.navigationService.focusPrevCell(i)}scrollTo(i){this.scrollRequestService.scrollTo(i)}reorderColumn(i,u,I={before:!1}){let at=zp(this.allColumnsForLevel(i.level))[u];!at||at.isLocked&&!i.isLocked&&1===this.columnsContainer.nonLockedColumns.length||(ph(at)&&!I.before&&(at=at.childColumns.last),this.reorder({before:I.before,source:i,target:at}))}set isDetailExpanded(i){this.detailsService.userCallback=i}get isDetailExpanded(){return this.detailsService.userCallback}set isGroupExpanded(i){this.groupsService.userCallback=i,this.groupable=Xn(i)}get isGroupExpanded(){return this.groupsService.userCallback}handleReorderEvents(i,u){this.rowReorderService[u](i)}reorder({target:i,source:u,before:I,changeContainer:K}){this.ngZone.run(()=>{const at=zp(this.allColumnsForLevel(u.level));let jt=at.indexOf(i);i.parent&&i.parent.isSpanColumn&&(jt=at.indexOf(i.parent),I&&(i=i.parent));const Kn=at.indexOf(u);K&&(I&&0<jt&&Kn<jt?jt--:!I&&Kn>jt&&jt++);const Ti=new Lv({column:u,oldIndex:Kn,newIndex:jt});this.columnReorder.emit(Ti),!Ti.isDefaultPrevented()&&(K&&this.columnLockedChange.emit(new jd([u])),this.updateColumnIndices({columnsForLevel:at,source:u,target:i,before:I}),u.locked!==i.locked&&(u.locked=i.locked),this.columnsContainer.refresh(),this.changeDetectorRef.markForCheck())})}updateColumnIndices({columnsForLevel:i,source:u,target:I,before:K}){const at=Af(i),jt=at.indexOf(u);let Kn=0,Ti=0,ns=1;u.isSpanColumn&&(ns+=u.childColumns.length);let ls=0;for(;ls<at.length;){const ws=at[ls];if(ws===I)Kn=K?Ti:Ti+1,Ti=K?Ti+ns:Ti,ws.orderIndex=Ti,Kn===Ti+1&&(Ti+=ns);else{if(ws===u){ls+=ns;continue}ws.orderIndex=Ti}Ti++,ls++}for(ls=jt;ls<jt+ns;ls++)at[ls].orderIndex=Kn++;this.updateIndicesForLevel(u.level+1)}updateIndicesForLevel(i){const u=this.allColumnsForLevel(i-1),I=[];zp(u).forEach(K=>{K.isColumnGroup&&I.push(...K.childrenArray.sort((at,jt)=>at.orderIndex-jt.orderIndex))}),Af(I).map((K,at)=>K.orderIndex=at),i<this.columnList.totalColumnLevels()&&this.updateIndicesForLevel(i+1)}allColumnsForLevel(i){return this.columnList.toArray().filter(u=>u.level===i)}initSelectionService(){if(!this.selectable)return this.selectionService.ngOnDestroy(),void this.cellSelectionService.ngOnDestroy();!this.selectionDirective&&!Xn(this.defaultSelection)&&(this.defaultSelection=new Dm(this.ctx,this.changeDetectorRef));const i=this.selectable.cell,u=i?this.cellSelectionService:this.selectionService,I=i?this.selectionService:this.cellSelectionService;I.active&&(I.ngOnDestroy(),u.addSubscriptions(),I.active=!1),u.active=!0,u.init({cellSelected:i?this.cellSelected:void 0,rowSelected:i?void 0:this.rowSelected,selectable:this.selectable,view:this.view,columns:i?this.columnList.toArray():void 0}),!this.selectionDirective&&!this.selectableSettings.enabled&&this.defaultSelection.reset(),this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.selectionSubscription=i?this.cellSelectionService.changes.subscribe(K=>{this.ngZone.run(()=>this.selectionChange.emit(K))}):this.selectionService.changes.subscribe(K=>{this.ngZone.run(()=>this.selectionChange.emit(K))})}setEditFocus(i){if(i)return this.navigationService.tryFocus(i)}columnInstance(i){let u;if(u="number"==typeof i?this.columnsContainer.lockedLeafColumns.toArray().concat(this.columnsContainer.nonLockedLeafColumns.toArray())[i]:"string"==typeof i?this.columnList.filter(I=>I.field===i)[0]:i,!u&&(0,e.X6Q)())throw new Error(`Invalid column ${i}`);return u}verifySettings(){if((0,e.X6Q)()){const i=this.lockedLeafColumns.length||this.columnMenu&&this.columnMenu.lock,u=this.stickyColumns.length||this.columnMenu&&this.columnMenu.stick;if(i&&this.detailTemplate)throw new Error("Having both detail template and locked columns is not supported.");if(u&&this.detailTemplate)throw new Error("Having both detail template and sticky columns is not supported.");if(this.lockedLeafColumns.length&&!this.nonLockedLeafColumns.length)throw new Error("There should be at least one non-locked column");if((i||this.virtualColumns)&&mu(this.columnList.toArray()).filter(I=>!I.width&&!Bp(I)).length)throw new Error((i?"Locked":"Virtual")+" columns feature requires all columns to have set width.");if(i&&!this.isScrollable)throw new Error("Locked columns are only supported when scrolling is enabled.");if(this.columnList.filter(Bp).filter(I=>!I.hasChildren).length)throw new Error("ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.");if(this.columnList.filter(I=>I.locked&&I.parent&&!I.parent.isLocked).length)throw new Error("Locked child columns require their parent columns to be locked.");if((this.rowHeight||this.detailRowHeight)&&!this.isVirtual)throw new Error("Row height and detail row height settings require virtual scrolling mode to be enabled.");if(u&&mu(this.columnList.toArray()).filter(I=>!I.width&&!Bp(I)).length)throw new Error("Sticky columns feature requires all columns to have set width.");if(u&&!this.isScrollable)throw new Error("Sticky columns are only supported when scrolling is enabled.");if(u&&this.virtualColumns)throw new Error("Having both sticky columns and column virtualization is not supported.");if(this.rowSticky&&"virtual"===this.scrollable)throw new Error('Having both sticky rows and row virtualization (scrollable="virtual") is not supported.');if(this.rowSticky&&this.groupable)throw new Error("Having both sticky rows and grouping is not supported.");(a=>{mu(a.toArray()).filter(Cm).filter(({field:f})=>!(a=>!Bo(a)&&hv.test(a)&&"."!==a[0]&&"."!==a[a.length-1])(f)).forEach(({field:f})=>console.warn(`\n                Grid column field name '${f}' does not look like a valid JavaScript identifier.\n                Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit.\n                Please use only valid identifier names to ensure error-free operation.\n            `))})(this.columnList)}}autoGenerateColumns(){this.shouldGenerateColumns&&!this.columns.length&&this.view.length&&this.columns.reset(Object.keys(this.view.at(0)).map(i=>{const u=new hh;return u.field=i,u}))}attachStateChangesEmitter(){this.stateChangeSubscription=(0,T.T)(this.pageChange.pipe((0,Se.U)(i=>({filter:this.filter,group:this.group,skip:i.skip,sort:this.sort,take:i.take}))),this.sortChange.pipe((0,Se.U)(i=>({filter:this.filter,group:this.group,skip:this.skip,sort:i,take:this.pageSize}))),this.groupChange.pipe((0,Se.U)(i=>({filter:this.filter,group:i,skip:this.skip,sort:this.sort,take:this.pageSize}))),this.filterChange.pipe((0,Se.U)(i=>({filter:i,group:this.group,skip:0,sort:this.sort,take:this.pageSize})))).subscribe(i=>{this.closeCell(),this.cancelCell(),this.dataStateChange.emit(i),this.rowReorderable&&this.ngZone.onStable.pipe((0,he.q)(1)).subscribe(()=>{this.notifyReorderContainers()})})}attachEditHandlers(){this.editService&&(this.editServiceSubscription=this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))}emitCRUDEvent(i){const{action:u,rowIndex:I,formGroup:K}=i;let at=this.view.at(I-this.skip);switch("add"!==u&&!at&&(at=K.value),this.closeCell(),Object.assign(i,{dataItem:at,sender:this}),u){case"add":this.add.emit(i);break;case"cancel":this.cancel.emit(i);break;case"edit":this.edit.emit(i);break;case"remove":this.remove.emit(i);break;case"save":this.save.emit(i);break;case"cellClose":this.cellClose.emit(i)}}attachDomEventHandlers(){this.cellClickSubscription=this.domEvents.cellClick.subscribe(i=>{this.cellClick.emit(Object.assign({sender:this},i))})}attachElementEventHandlers(){if(su())return;const i=this.wrapper.nativeElement,u=this.ariaRoot.nativeElement;this.ngZone.runOutsideAngular(()=>{const I=this.resizeCheck.bind(this),K=this.renderer.listen("window","resize",I),at=this.renderer.listen("window","orientationchange",I),jt=this.renderer.listen("document","click",sr=>{const na=document.activeElement;this.editService.shouldCloseCell()&&!Pc(sr.target,zd("k-animation-container k-grid-ignore-click"))&&(!na||!Pc(na,zd("k-animation-container"))&&!E_(na,this.wrapper.nativeElement))&&this.editService.closeCell(sr)}),Kn=this.renderer.listen("window","blur",sr=>{const na=document.activeElement;na&&!(Rc("input")(na)&&"file"===na.type&&E_(na,this.wrapper.nativeElement))&&this.editService.closeCell(sr),this.domEvents.windowBlur.emit(sr)}),Ti=this.renderer.listen(i,"click",sr=>{this.domEvents.click.emit(sr)}),ns=this.renderer.listen(i,"keydown",sr=>{this.domEvents.keydown.emit(sr)});let ls=!1;const ws=this.renderer.listen(u,"focusin",sr=>{this.domEvents.focus.emit(sr),ls||(this.domEvents.focusIn.emit(sr),ls=!0)}),pr=this.renderer.listen(u,"focusout",sr=>{const na=sr.relatedTarget||document.activeElement;!Pc(na,Xo=>Xo===u)&&(this.domEvents.focusOut.emit(sr),ls=!1)});this.detachElementEventHandlers=()=>{K(),at(),jt(),Kn(),Ti(),ns(),ws(),pr()}})}matchesMedia(i){return this.responsiveService.matchesMedia(i.media)}resizeCheck(){if(window.innerWidth!==this.cachedWindowWidth){this.cachedWindowWidth=window.innerWidth;let i=!1;this.columnList.filterHierarchy(u=>{const I=this.matchesMedia(u);return u.matchesMedia!==I&&(i=!0,u.matchesMedia=I),u.isVisible}),i&&this.ngZone.run(()=>{this.changeDetectorRef.markForCheck()})}}emitPDFExportEvent(){const i=new Zg;this.pdfExport.emit(i),i.isDefaultPrevented()||this.saveAsPDF()}syncHeaderHeight(i){return i.pipe((0,te.h)(()=>Xn(this.lockedHeader))).subscribe(()=>Tv(this.lockedHeader.nativeElement.children[0],this.header.nativeElement.children[0]))}columnsContainerChange(){this.columnsContainerChangeSubscription=this.syncHeaderHeight(this.columnsContainer.changes.pipe((0,te.h)(()=>this.lockedColumns.length>0),(0,se.w)(()=>this.ngZone.onStable.asObservable().pipe((0,he.q)(1)))))}handleColumnResize(){const i=this.columnResizingService.changes;this.columnResizingSubscription=i.pipe((0,pe.b)(u=>{"start"===u.type?this.renderer.addClass(this.wrapper.nativeElement,"k-grid-column-resizing"):"end"===u.type&&this.renderer.removeClass(this.wrapper.nativeElement,"k-grid-column-resizing")}),(0,te.h)(u=>"start"===u.type),(0,se.w)(()=>i.pipe((0,oe.R)(i.pipe((0,te.h)(u=>"triggerAutoFit"===u.type))),(0,te.h)(u=>"end"===u.type)))).subscribe(this.notifyResize.bind(this))}notifyResize(i){const u=i.resizedColumns.filter(I=>Go(I.column.resizable)&&!I.column.isColumnGroup).map(I=>({column:I.column,newWidth:I.column.width,oldWidth:I.oldWidth}));this.columnResize.emit(u)}assertNavigable(){if((0,e.X6Q)()&&!this.navigationService.enabled)throw new Error("The Grid should be configured as navigable to control focus")}navigationMetadata(){const i=this.isVirtual,I=i?this.view.total:this.pageSize,K=this.editService.hasNewItem?1:0,at=Jg(this.filterable)?1:0;return new km(I,this.totalColumnLevels+1+at+K,i,this.hasPager,Xn(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}updateNavigationMetadata(){this.navigationService.metadata=this.navigationMetadata()}applyAutoSize(){const i=this.columns.filter(u=>this.autoSize?!1!==u.autoSize:u.autoSize);i.length>0&&this.ngZone.onStable.pipe((0,he.q)(1)).subscribe(u=>this.autoFitColumns(i))}onColumnRangeChange(i){const u=this.viewportColumns=[],I=this.columnsContainer.nonLockedLeafColumns.toArray().slice(i.start,i.end+1);for(let K=0;K<I.length;K++){let at=I[K];for(;at.parent;)at=at.parent;const jt=[at];for(;jt.length;)at=jt.shift(),u.push(at),at.isColumnGroup&&jt.unshift(...at.childrenArray);const Kn=u[u.length-1];for(at=I[K];at!==Kn&&K<I.length;)K++,at=I[K]}if(i.start>0){const K=I[0];let at=i.offset,jt=u[0],Kn=0;for(;jt!==K;)at-=jt.isColumnGroup?0:jt.width,Kn++,jt=u[Kn];if(at>0){const Ti=this.columnsContainer.totalLevels;let ns;for(let ls=0;ls<=Ti;ls++){const ws=ls<Ti?new vv(ns):new Gl(ns);ns=ws,ws.title="\xa0",ws.width=at,u.unshift(ws)}}}this.leafViewportColumns=u.filter(K=>!K.isColumnGroup)}toggleDetailRowLegacy(i,u){const I="function"==typeof this.isDetailExpanded;if((0,e.X6Q)()&&I)throw new Error("The expandRow and collapseRow methods should not be called when using the kendoGridDetailsExpandBy directive or the isDetailExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!(0,e.X6Q)()&&I||this.detailsService.isExpanded(i,null)!==u&&this.detailsService.toggleRow(i,null)}toggleGroupRowLegacy(i,u){const I="function"==typeof this.isGroupExpanded;if((0,e.X6Q)()&&I)throw new Error("The expandGroup and collapseGroup methods should not be called when using the kendoGridExpandGroupBy directive or the isGroupExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!(0,e.X6Q)()&&I||this.groupsService.isExpanded({groupIndex:i})!==u&&this.groupsService.toggleRow({index:i})}shouldResetSelection(i){const u=i.previousValue;if(!u)return!1;const I=i.currentValue;return!I||!1===I.enabled||u.cell!==I.cell}notifyReorderContainers(){this.dragTargetContainer?.notify(),this.dropTargetContainer?.notify()}get flatData(){return Ro(this.data)?this.data:this.data.data}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Wg),e.Y36(Mf),e.Y36(ad),e.Y36(e.SBq),e.Y36(up),e.Y36(Pp),e.Y36(Gp),e.Y36(If),e.Y36(Iu),e.Y36(bc),e.Y36(pp),e.Y36(Mv),e.Y36(e.Qsj),e.Y36(Vd),e.Y36(e.R0b),e.Y36(Bh),e.Y36(Fd),e.Y36(Lf),e.Y36(e.sBO),e.Y36(Mm),e.Y36(Mu),e.Y36(Zc),e.Y36(Ff),e.Y36(fm),e.Y36(ee.oQ),e.Y36(Gd),e.Y36(Qu),e.Y36(cd))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid"]],contentQueries:function(i,u,I){if(1&i&&(e.Suo(I,Gl,4),e.Suo(I,Vg,4),e.Suo(I,Uh,4),e.Suo(I,_p,4),e.Suo(I,dp,4),e.Suo(I,Ju,4),e.Suo(I,Kg,4),e.Suo(I,Of,4)),2&i){let K;e.iGM(K=e.CRH())&&(u.columns=K),e.iGM(K=e.CRH())&&(u.detailTemplateChildren=K),e.iGM(K=e.CRH())&&(u.cellLoadingTemplateChildren=K),e.iGM(K=e.CRH())&&(u.loadingTemplateChildren=K),e.iGM(K=e.CRH())&&(u.noRecordsTemplateChildren=K),e.iGM(K=e.CRH())&&(u.pagerTemplateChildren=K),e.iGM(K=e.CRH())&&(u.toolbarTemplateChildren=K),e.iGM(K=e.CRH())&&(u.columnMenuTemplates=K)}},viewQuery:function(i,u){if(1&i&&(e.Gf(th,5),e.Gf(Rd,5),e.Gf(Th,7),e.Gf(mn,5),e.Gf(ze,5),e.Gf(Pd,5)),2&i){let I;e.iGM(I=e.CRH())&&(u.lockedHeader=I.first),e.iGM(I=e.CRH())&&(u.header=I.first),e.iGM(I=e.CRH())&&(u.ariaRoot=I.first),e.iGM(I=e.CRH())&&(u.dragTargetContainer=I.first),e.iGM(I=e.CRH())&&(u.dropTargetContainer=I.first),e.iGM(I=e.CRH())&&(u.footer=I)}},hostVars:13,hostBindings:function(i,u){2&i&&(e.uIk("dir",u.dir),e.ekj("k-grid",u.hostClass)("k-grid-sm",u.sizeSmallClass)("k-grid-md",u.sizeMediumClass)("k-grid-lockedcolumns",u.lockedClasses)("k-grid-virtual",u.virtualClasses)("k-grid-no-scrollbar",u.noScrollbarClass))},inputs:{data:"data",pageSize:"pageSize",height:"height",rowHeight:"rowHeight",detailRowHeight:"detailRowHeight",skip:"skip",scrollable:"scrollable",selectable:"selectable",sort:"sort",size:"size",trackBy:"trackBy",filter:"filter",group:"group",virtualColumns:"virtualColumns",filterable:"filterable",sortable:"sortable",pageable:"pageable",groupable:"groupable",rowReorderable:"rowReorderable",navigable:"navigable",navigatable:"navigatable",autoSize:"autoSize",rowClass:"rowClass",rowSticky:"rowSticky",rowSelected:"rowSelected",cellSelected:"cellSelected",resizable:"resizable",reorderable:"reorderable",loading:"loading",columnMenu:"columnMenu",hideHeader:"hideHeader",isDetailExpanded:"isDetailExpanded",isGroupExpanded:"isGroupExpanded"},outputs:{filterChange:"filterChange",pageChange:"pageChange",groupChange:"groupChange",sortChange:"sortChange",selectionChange:"selectionChange",rowReorder:"rowReorder",dataStateChange:"dataStateChange",groupExpand:"groupExpand",groupCollapse:"groupCollapse",detailExpand:"detailExpand",detailCollapse:"detailCollapse",edit:"edit",cancel:"cancel",save:"save",remove:"remove",add:"add",cellClose:"cellClose",cellClick:"cellClick",pdfExport:"pdfExport",excelExport:"excelExport",columnResize:"columnResize",columnReorder:"columnReorder",columnVisibilityChange:"columnVisibilityChange",columnLockedChange:"columnLockedChange",columnStickyChange:"columnStickyChange",scrollBottom:"scrollBottom",contentScroll:"contentScroll"},exportAs:["kendoGrid"],features:[e._Bn([Wg,ee.oQ,Mu,Mf,ad,If,Pp,up,Gp,Iu,pp,fp,{provide:ah,useValue:rv},{provide:ee.mM,useValue:"kendo.grid"},bc,Mv,fu,Vd,Bh,kv,Wu,Fd,Lf,Hp,Tm,qg,Nv,Mm,Zc,rh,Tu,fm,Ff,Gd,Qu,cd]),e.TTD],decls:14,vars:18,consts:function(){let f,i,u,I,K,at,jt,Kn,Ti,ns,ls,ws,pr,sr,na,_o,Xo,qo,Ia,ba,eo,Vr,Ha,Fc,pc,Qc,Ll,gd,Pu,Hl,Eg,vh,j0,F1,Ig,Y0,W0,vb,$0,Z0,K0,z1,Tg,cu,Y_,B1,J0,Q0,U1,X0,G1,H1,V1,j1,Y1,q0,yb,W_,bb,Sb,ey,Cb,Mg,wb,ty,xb,am,$_,kg,Og,W1,$1,Db,Ag,Z_,ny;return f=$localize`:kendo.grid.groupPanelEmpty|The label visible in the Grid group panel when it is empty:Drag a column header and drop it here to group by that column`,i=$localize`:kendo.grid.noRecords|The label visible in the Grid when there are no records:No records available.`,u=$localize`:kendo.grid.pagerFirstPage|The label for the first page button in Grid pager:Go to the first page`,I=$localize`:kendo.grid.pagerPreviousPage|The label for the previous page button in Grid pager:Go to the previous page`,K=$localize`:kendo.grid.pagerNextPage|The label for the next page button in Grid pager:Go to the next page`,at=$localize`:kendo.grid.pagerLastPage|The label for the last page button in Grid pager:Go to the last page`,jt=$localize`:kendo.grid.pagerPage|The label before the current page number in the Grid pager:Page`,Kn=$localize`:kendo.grid.pagerOf|The label before the total pages number in the Grid pager:of`,Ti=$localize`:kendo.grid.pagerItems|The label after the total pages number in the Grid pager:items`,ns=$localize`:kendo.grid.pagerPageNumberInputTitle|The label for the pager input in the Grid pager:Page Number`,ls=$localize`:kendo.grid.pagerItemsPerPage|The label for the page size chooser in the Grid pager:items per page`,ws=$localize`:kendo.grid.filter|The label of the filter cell or icon:Filter`,pr=$localize`:kendo.grid.filterEqOperator|The text of the equal filter operator:Is equal to`,sr=$localize`:kendo.grid.filterNotEqOperator|The text of the not equal filter operator:Is not equal to`,na=$localize`:kendo.grid.filterIsNullOperator|The text of the is null filter operator:Is null`,_o=$localize`:kendo.grid.filterIsNotNullOperator|The text of the is not null filter operator:Is not null`,Xo=$localize`:kendo.grid.filterIsEmptyOperator|The text of the is empty filter operator:Is empty`,qo=$localize`:kendo.grid.filterIsNotEmptyOperator|The text of the is not empty filter operator:Is not empty`,Ia=$localize`:kendo.grid.filterStartsWithOperator|The text of the starts with filter operator:Starts with`,ba=$localize`:kendo.grid.filterContainsOperator|The text of the contains filter operator:Contains`,eo=$localize`:kendo.grid.filterNotContainsOperator|The text of the does not contain filter operator:Does not contain`,Vr=$localize`:kendo.grid.filterEndsWithOperator|The text of the ends with filter operator:Ends with`,Ha=$localize`:kendo.grid.filterGteOperator|The text of the greater than or equal filter operator:Is greater than or equal to`,Fc=$localize`:kendo.grid.filterGtOperator|The text of the greater than filter operator:Is greater than`,pc=$localize`:kendo.grid.filterLteOperator|The text of the less than or equal filter operator:Is less than or equal to`,Qc=$localize`:kendo.grid.filterLtOperator|The text of the less than filter operator:Is less than`,Ll=$localize`:kendo.grid.filterIsTrue|The text of the IsTrue boolean filter option:Is True`,gd=$localize`:kendo.grid.filterIsFalse|The text of the IsFalse boolean filter option:Is False`,Pu=$localize`:kendo.grid.filterBooleanAll|The text of the (All) boolean filter option:(All)`,Hl=$localize`:kendo.grid.filterAfterOrEqualOperator|The text of the after or equal date filter operator:Is after or equal to`,Eg=$localize`:kendo.grid.filterAfterOperator|The text of the after date filter operator:Is after`,vh=$localize`:kendo.grid.filterBeforeOperator|The text of the before date filter operator:Is before`,j0=$localize`:kendo.grid.filterBeforeOrEqualOperator|The text of the before or equal date filter operator:Is before or equal to`,F1=$localize`:kendo.grid.filterFilterButton|The text of the filter button:Filter`,Ig=$localize`:kendo.grid.filterClearButton|The text of the clear filter button:Clear`,Y0=$localize`:kendo.grid.filterAndLogic|The text of the And filter logic:And`,W0=$localize`:kendo.grid.filterOrLogic|The text of the Or filter logic:Or`,vb=$localize`:kendo.grid.loading|The loading text:Loading`,$0=$localize`:kendo.grid.gridLabel|The Grid aria-label:Data table`,Z0=$localize`:kendo.grid.columns|The text shown in the column menu for the columns item:Columns`,K0=$localize`:kendo.grid.lock|The text shown in the column menu for the lock item:Lock`,z1=$localize`:kendo.grid.unlock|The text shown in the column menu for the unlock item:Unlock`,Tg=$localize`:kendo.grid.setColumnPosition|The text shown in the column menu for the set column position item:Set Column Position`,cu=$localize`:kendo.grid.stick|The text shown in the column menu for the stick item:Stick`,Y_=$localize`:kendo.grid.unstick|The text shown in the column menu for the unstick item:Unstick`,B1=$localize`:kendo.grid.sortable|The label of the sort icon:Sortable`,J0=$localize`:kendo.grid.sortAscending|The text shown in the column menu for the sort ascending item:Sort Ascending`,Q0=$localize`:kendo.grid.sortDescending|The text shown in the column menu for the sort descending item:Sort Descending`,U1=$localize`:kendo.grid.autosizeAllColumns|The text shown in the column menu for the autosize all columns item:Autosize All Columns`,X0=$localize`:kendo.grid.autosizeThisColumn|The text shown in the column menu for the autosize this column item:Autosize This Column`,G1=$localize`:kendo.grid.sortedAscending|The status announcement when a column is sorted ascending:Sorted Ascending`,H1=$localize`:kendo.grid.sortedDescending|The status announcement when a column is sorted descending:Sorted Descending`,V1=$localize`:kendo.grid.sortedDefault|The status announcement when a column is no longer sorted:Not Sorted`,j1=$localize`:kendo.grid.columnsApply|The text shown in the column menu or column chooser for the columns apply button:Apply`,Y1=$localize`:kendo.grid.columnsReset|The text shown in the column menu or column chooser for the columns reset button:Reset`,q0=$localize`:kendo.grid.detailExpand|The title of the expand icon of detail rows.:Expand Details`,yb=$localize`:kendo.grid.detailCollapse|The title of the collapse icon of detail rows.:Collapse Details`,W_=$localize`:kendo.grid.filterDateToday|The text of the Today button of the Date filter.:TODAY`,bb=$localize`:kendo.grid.filterDateToggle|The title of the Toggle button of the Date filter.:Toggle Calendar`,Sb=$localize`:kendo.grid.filterNumericDecrement|The title of the Decrement button of the Numeric filter.:Decrement`,ey=$localize`:kendo.grid.filterNumericIncrement|The title of the Increment button of the Numeric filter.:Increment`,Cb=$localize`:kendo.grid.selectionCheckboxLabel|The labels of the checkbox column checkboxes.:Select Row`,Mg=$localize`:kendo.grid.selectAllCheckboxLabel|The label of the checkbox column select all checkbox.:Select All Rows`,wb=$localize`:kendo.grid.groupCollapse|The text of the title and aria-label attributes applied to the collapse icon of group rows.:Collapse Group`,ty=$localize`:kendo.grid.groupExpand|The text of the title and aria-label attributes applied to the expand icon of group rows.:Expand Group`,xb=$localize`:kendo.grid.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Grid Pager:Select page`,am=$localize`:kendo.grid.topToolbarLabel|The label for the Grid top toolbar:Top toolbar`,$_=$localize`:kendo.grid.bottomToolbarLabel|The label for the Grid bottom toolbar:Bottom toolbar`,kg=$localize`:kendo.grid.groupPanelLabel|The label for the Grid group panel toolbar:Group panel`,Og=$localize`:kendo.grid.dragRowHandleLabel|The label for the Grid drag row handle:Drag row`,W1=$localize`:kendo.grid.pagerLabel|The label for the Grid pager:${"\ufffd0\ufffd"}:INTERPOLATION:`,$1=$localize`:kendo.grid.filterInputLabel|The label of the filter row and menu inputs:${"\ufffd0\ufffd"}:INTERPOLATION:`,Db=$localize`:kendo.grid.filterMenuTitle|The title of the filter menu icon:${"\ufffd0\ufffd"}:INTERPOLATION:`,Ag=$localize`:kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,Z_=$localize`:kendo.grid.filterMenuLogicDropDownLabel|The label of the filter menu logic dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,ny=$localize`:kendo.grid.columnMenu|The title of the column menu icon:${"\ufffd0\ufffd"}:INTERPOLATION:`,[["kendoGridLocalizedMessages","","groupPanelEmpty",f,"noRecords",i,"pagerFirstPage",u,"pagerPreviousPage",I,"pagerNextPage",K,"pagerLastPage",at,"pagerPage",jt,"pagerOf",Kn,"pagerItems",Ti,"pagerPageNumberInputTitle",ns,"pagerItemsPerPage",ls,"filter",ws,"filterEqOperator",pr,"filterNotEqOperator",sr,"filterIsNullOperator",na,"filterIsNotNullOperator",_o,"filterIsEmptyOperator",Xo,"filterIsNotEmptyOperator",qo,"filterStartsWithOperator",Ia,"filterContainsOperator",ba,"filterNotContainsOperator",eo,"filterEndsWithOperator",Vr,"filterGteOperator",Ha,"filterGtOperator",Fc,"filterLteOperator",pc,"filterLtOperator",Qc,"filterIsTrue",Ll,"filterIsFalse",gd,"filterBooleanAll",Pu,"filterAfterOrEqualOperator",Hl,"filterAfterOperator",Eg,"filterBeforeOperator",vh,"filterBeforeOrEqualOperator",j0,"filterFilterButton",F1,"filterClearButton",Ig,"filterAndLogic",Y0,"filterOrLogic",W0,"loading",vb,"gridLabel",$0,"columns",Z0,"lock",K0,"unlock",z1,"setColumnPosition",Tg,"stick",cu,"unstick",Y_,"sortable",B1,"sortAscending",J0,"sortDescending",Q0,"autosizeAllColumns",U1,"autosizeThisColumn",X0,"sortedAscending",G1,"sortedDescending",H1,"sortedDefault",V1,"columnsApply",j1,"columnsReset",Y1,"detailExpand",q0,"detailCollapse",yb,"filterDateToday",W_,"filterDateToggle",bb,"filterNumericDecrement",Sb,"filterNumericIncrement",ey,"selectionCheckboxLabel",Cb,"selectAllCheckboxLabel",Mg,"groupCollapse",wb,"groupExpand",ty,"selectPage",xb,"topToolbarLabel",am,"bottomToolbarLabel",$_,"groupPanelLabel",kg,"dragRowHandleLabel",Og,6,"pagerLabel","filterInputLabel","filterMenuTitle","filterMenuOperatorsDropDownLabel","filterMenuLogicDropDownLabel","columnMenu"],["pagerLabel",W1,"filterInputLabel",$1,"filterMenuTitle",Db,"filterMenuOperatorsDropDownLabel",Ag,"filterMenuLogicDropDownLabel",Z_,"columnMenu",ny],["class","k-toolbar k-grid-toolbar","position","top",3,"size","navigable",4,"ngIf"],["class","k-grid-pager-top k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["role","toolbar",3,"navigable","text","groups","change",4,"ngIf"],["role","grid",1,"k-grid-aria-root",3,"id"],["ariaRoot",""],[4,"ngIf"],["kendoGridLoading","",3,"loadingTemplate",4,"ngIf"],["class","k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["class","k-toolbar k-grid-toolbar k-grid-toolbar-bottom","position","bottom",3,"size","navigable",4,"ngIf"],["defaultHint",""],["position","top",1,"k-toolbar","k-grid-toolbar",3,"size","navigable"],[1,"k-grid-pager-top","k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange"],["role","toolbar",3,"navigable","text","groups","change"],["class","k-grid-header","role","presentation",3,"padding",4,"ngIf"],["kendoDragTargetContainer","","kendoDropTargetContainer","","mode","manual","kendoDraggable","","kendoGridSelectionMarquee","",3,"dragDisabled","dropDisabled","dragTargetFilter","dropTargetFilter","dragHandle","hint","dragData","data","rowHeight","detailRowHeight","total","take","groups","groupable","skip","trackBy","columns","selectable","filterable","detailTemplate","noRecordsTemplate","size","rowClass","rowSticky","loading","isVirtual","cellLoadingTemplate","loadingTemplate","virtualColumns","enableDrag","sort","press","dragStart","drag","dragEnter","dragLeave","dragEnd","drop","pageChange","scrollBottom","contentScroll"],["class","k-grid-footer",3,"padding",4,"ngIf"],["role","presentation",1,"k-grid-header"],["role","presentation","class","k-grid-header-locked",3,"width",4,"ngIf"],["role","presentation","data-scrollable","",1,"k-grid-header-wrap",3,"kendoGridResizableContainer","lockedWidth"],["header",""],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"virtualColumns","size"],["kendoGridColGroup","","role","presentation",3,"columns","groups","detailTemplate"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","filter","filterable","groupable","reorderable","groups","sortable","columnMenu","columnMenuTemplate","lockedColumnsCount","totalColumnsCount","detailTemplate","tabIndex"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation",1,"k-grid-header-locked"],["lockedHeader",""],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"locked","size"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","groups","filter","filterable","groupable","reorderable","sortable","columnMenu","columnMenuTemplate","totalColumnsCount","detailTemplate","tabIndex"],["role","presentation",1,"k-width-container"],[1,"k-grid-footer"],["class","k-grid-footer-locked",3,"width",4,"ngIf"],["data-scrollable","",1,"k-grid-footer-wrap",3,"kendoGridResizableContainer","lockedWidth"],["footer",""],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"size"],["kendoGridColGroup","",3,"columns","groups","detailTemplate"],["kendoGridFooter","",3,"logicalRowIndex","scrollable","groups","columns","lockedColumnsCount","detailTemplate"],[1,"k-grid-footer-locked"],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"locked","size"],["kendoGridFooter","",3,"scrollable","groups","columns","detailTemplate","logicalRowIndex"],["kendoGridTable","",3,"size"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex",4,"ngIf"],["kendoGridTableBody","","kendoDraggable","","kendoGridSelectionMarquee","",3,"isLoading","groups","data","skip","columns","selectable","filterable","noRecordsTemplate","detailTemplate","showGroupFooters","trackBy","rowClass","enableDrag"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate",4,"ngIf"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate"],["kendoGridLoading","",3,"loadingTemplate"],[1,"k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange"],["position","bottom",1,"k-toolbar","k-grid-toolbar","k-grid-toolbar-bottom",3,"size","navigable"],["innerCssClass","k-drag-status",3,"name","svgIcon"]]},template:function(i,u){1&i&&(e.ynx(0,0),e.DtL(1,1),e.BQk(),e.YNc(2,Mh,1,4,"kendo-grid-toolbar",2),e.YNc(3,Tp,1,8,"kendo-pager",3),e.YNc(4,Mp,1,5,"kendo-grid-group-panel",4),e.TgZ(5,"div",5,6),e.YNc(7,Oh,4,35,"ng-container",7),e.YNc(8,op,6,21,"ng-container",7),e.YNc(9,nh,1,1,"div",8),e.qZA(),e.YNc(10,H,1,8,"kendo-pager",9),e.YNc(11,Ae,1,4,"kendo-grid-toolbar",10),e.YNc(12,h,2,3,"ng-template",null,11,e.W1O)),2&i&&(e.pQV("Page navigation, page {currentPage} of {totalPages}")("{columnName} Filter")("{columnName} Filter Menu")("{columnName} Filter Operators")("{columnName} Filter Logic")("{columnName} Column Menu"),e.QtT(1),e.xp6(2),e.Q6J("ngIf",u.showTopToolbar),e.xp6(1),e.Q6J("ngIf",u.showTopPager),e.xp6(1),e.Q6J("ngIf",u.showGroupPanel),e.xp6(1),e.Q6J("id",u.ariaRootId),e.uIk("aria-label",u.ariaLabel)("aria-rowcount",u.ariaRowCount)("aria-colcount",u.ariaColCount),e.xp6(2),e.Q6J("ngIf",u.isScrollable),e.xp6(1),e.Q6J("ngIf",!u.isScrollable),e.xp6(1),e.Q6J("ngIf",u.loading),e.xp6(1),e.Q6J("ngIf",u.showBottomPager),e.xp6(1),e.Q6J("ngIf",u.showBottomToolbar))},dependencies:[t_,Nm,Vf,jf,S_,tm,b1,bp,nm,St.ZS,x_,Ue.O5,f1,ug,m1,mn,ze,o.pD,Ug],encapsulation:2}),a})(),hg=(()=>{class a{constructor(i,u,I,K){this.grid=i,this.changeDetector=u,this.localDataChangesService=I,this.rowReorderService=K,this.state={skip:0},this.originalData=[],I&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}set skip(i){Xn(i)||(i=0),this.grid.skip=this.state.skip=i,this.rowReorderService&&(this.rowReorderService.skip=i)}set sort(i){this.grid.sort=this.state.sort=i}set filter(i){this.grid.filter=this.state.filter=i}set pageSize(i){this.grid.pageSize=this.state.take=i}set group(i){this.grid.group=this.state.group=i}set data(i){this.originalData=i||[],this.localDataChangesService&&(this.localDataChangesService.data=i),this.dataChanged=!0}ngOnInit(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)),this.rowReorderService&&(this.rowReorderSubscription=this.grid.rowReorder.subscribe(this.onRowReorder.bind(this)))}ngOnDestroy(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe()}ngOnChanges(i){(0,o.aG)(["pageSize","skip","sort","group","filter"],i)&&this.rebind()}ngDoCheck(){this.dataChanged&&this.updateGridData()}onStateChange(i){this.applyState(i),this.rebind()}onRowReorder(i){this.rowReorderService.reorderRows(i,this.originalData),this.rebind()}rebind(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}notifyDataChange(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}process(i){return(0,Je.N4)(this.originalData,i)}applyState({skip:i,take:u,sort:I,group:K,filter:at}){this.skip=i,this.pageSize=u,this.sort=I,this.group=K,this.filter=at}updateGridData(){this.grid.data=this.process(this.state),this.dataChanged=!1}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(fd),e.Y36(e.sBO),e.Y36(Wu),e.Y36(cd))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[e.TTD]}),a})(),I_=(()=>{class a extends Dm{constructor(i,u){super(i,u),this.ctx=i}ngOnInit(){!1===this.ctx.grid.selectable&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}ngOnDestroy(){super.destroy()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gd),e.Y36(e.sBO))},a.\u0275dir=e.lG2({type:a,selectors:[["","kendoGridSelectBy",""]],features:[e.qOj]}),a})();let M_=(()=>{class a extends dg{constructor(i){super(),this.service=i}get override(){return!0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-messages"]],features:[e._Bn([{provide:dg,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})();const m0=Vm({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let g0=(()=>{class a extends Vh{constructor(i,u,I,K){super(i),this.localization=I,this.showOperators=!0,this.size="medium",this.defaultOperators=m0(this.localization),this.column=u,this.subs=K.changes.subscribe(at=>this.size=at)}set valueField(i){this._valueField=i}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(bc),e.Y36(hh),e.Y36(ee.oQ),e.Y36(Qu))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[e.qOj],decls:2,vars:8,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","size","valueField","value"]],template:function(i,u){1&i&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-autocomplete",1),e.qZA()),2&i&&(e.Q6J("column",u.column)("filter",u.filter)("operators",u.operators)("showOperators",u.showOperators),e.xp6(1),e.Q6J("data",u.data)("size",u.size)("valueField",u.valueField)("value",null==u.currentFilter?null:u.currentFilter.value))},dependencies:[ef,vn.jf,Yd],encapsulation:2}),a})(),Zd=(()=>{class a{static exports(){return[hh,cp,vv,ym,Vg,Nc,ug]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[Ue.ez,St.pc],o.QY,o.OY,St.pc]}),a})();const lb=[qm,(()=>{class a extends ga{constructor(i){super("contains",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-contains-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("doesnotcontain",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-not-contains-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("endswith",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-endswith-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("eq",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-eq-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("isempty",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-isempty-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("isnotempty",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-isnotempty-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("isnotnull",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-isnotnull-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("isnull",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-isnull-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("neq",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-neq-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("startswith",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-startswith-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("gt",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-gt-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("gte",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-gte-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("lt",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-lt-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("lte",i)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-lte-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("after",i)}toJSON(){return{text:this.text,value:"gt"}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-after-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("after-eq",i)}toJSON(){return{text:this.text,value:"gte"}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-after-eq-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("before-eq",i)}toJSON(){return{text:this.text,value:"lte"}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-before-eq-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),(()=>{class a extends ga{constructor(i){super("before",i)}toJSON(){return{text:this.text,value:"lt"}}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-filter-before-operator"]],features:[e._Bn([{provide:ga,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})()],x1=[Ue.ez,vt.UX,vt.u5,vn.g9,vn.WN,kt.rw,De.I$,Ft.Zj,Zd,Lt.hJ];let df=(()=>{class a{static exports(){return[...lb]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[...x1],Ue.ez,vt.UX,vt.u5,vn.g9,vn.WN,kt.rw,De.I$,Ft.Zj,Zd,Lt.hJ]}),a})(),R_=(()=>{class a{static exports(){return[v_,r1,bm,qm,tf,g_,g0,eg,__,df.exports()]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[df],df]}),a})();const E1=[Ue.ez,kt.rw,jn.r3,Lt.hJ,vn.q2,o.uv,Zd];let S0=(()=>{class a{static exports(){return[Nm,Am,$p,Rm,n_,Zp,s_,Ju,i_,Pm]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[...E1]]}),a})(),I1=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({}),a})(),im=(()=>{class a{static exports(){return[cv,dh,Gg]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[Ue.ez,Zd,I1,Lt.oP]]}),a})(),sm=(()=>{class a{static exports(){return[ku,Sm,Ym,d_,Zf,au,yp,df.exports()]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[df],df]}),a})(),fg=(()=>{class a{constructor(i,u,I,K,at,jt){this.localization=i,this.columnInfoService=u,this.popupService=I,this.ngZone=K,this.renderer=at,this.changeDetector=jt,this.columnsIcon=gt.b8s,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(i,u){if(this.popupRef)this.close();else{const I=this.localization.rtl?"right":"left";if(this.popupRef=this.popupService.open({anchor:i.element,content:u,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:I},popupAlign:{vertical:"top",horizontal:I}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),!(0,o.X_)())return;this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:K})=>{Pc(K,at=>at===this.popupRef.popupElement||at===i.element)||this.close()}))}}onApply(i){this.close(),i.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(i))}onChange(i){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(i)}close(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(ee.oQ),e.Y36(Mu),e.Y36(Ft.qL),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:4,vars:2,consts:[["kendoButton","","type","button","fillMode","flat","icon","columns",3,"svgIcon","click"],["anchor",""],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(i,u){if(1&i){const I=e.EpF();e.TgZ(0,"button",0,1),e.NdJ("click",function(){e.CHM(I);const at=e.MAs(1),jt=e.MAs(3);return e.KtG(u.toggle(at,jt))}),e.qZA(),e.YNc(2,x,3,6,"ng-template",null,2,e.W1O)}2&i&&(e.Q6J("svgIcon",u.columnsIcon),e.uIk("title",u.localization.get("columns")))},dependencies:[Lt.zx,Jm],encapsulation:2}),a})(),N_=(()=>{class a{static exports(){return[fg,Lc,pd,Wd,Jc,Qp,Km,Xp,Qm,Of,o1,lu,m_,Xm,$d]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[Ue.ez,sm,Lt.hJ]]}),a})();const D0=[Ue.ez,im,R_,sm,Zd,I1,N_];let T1=(()=>{class a{static exports(){return[vm,Qf]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[...D0]]}),a})(),L_=(()=>{class a extends Gl{constructor(i,u){super(i,u),this.parent=i,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(i,u,I){if(1&i&&e.Suo(I,Fp,5),2&i){let K;e.iGM(K=e.CRH())&&(u.template=K.first)}},inputs:{showSelectAll:"showSelectAll"},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})(),F_=(()=>{class a extends Lt.zx{constructor(i,u,I,K,at,jt){super(I,K,null,at,jt),this.editService=i,this.cellContext=u,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(i){i.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(ah),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ee.oQ),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.onClick(K)}),2&i&&(e.Udp("display",u.visible),e.ekj("k-grid-edit-command",u.commandClass))},features:[e.qOj],attrs:ue,ngContentSelectors:ll,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(i,u){1&i&&(e.F$t(),e.YNc(0,At,1,2,"kendo-icon-wrapper",0),e.YNc(1,di,2,1,"span",1),e.YNc(2,Qi,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&i&&(e.Q6J("ngIf",u.icon||u.svgIcon),e.xp6(1),e.Q6J("ngIf",u.imageUrl),e.xp6(1),e.Q6J("ngIf",u.iconClass))},dependencies:[St.ZS,Ue.O5,Ue.mk],encapsulation:2}),a})(),E0=(()=>{class a extends Lt.zx{constructor(i,u,I,K,at,jt){super(I,K,null,at,jt),this.editService=i,this.cellContext=u,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(i){i.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(ah),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ee.oQ),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.onClick(K)}),2&i&&(e.Udp("display",u.visible),e.ekj("k-grid-cancel-command",u.commandClass))},features:[e.qOj],attrs:Rs,ngContentSelectors:ll,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(i,u){1&i&&(e.F$t(),e.YNc(0,Vs,1,2,"kendo-icon-wrapper",0),e.YNc(1,zo,2,1,"span",1),e.YNc(2,xr,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&i&&(e.Q6J("ngIf",u.icon||u.svgIcon),e.xp6(1),e.Q6J("ngIf",u.imageUrl),e.xp6(1),e.Q6J("ngIf",u.iconClass))},dependencies:[St.ZS,Ue.O5,Ue.mk],encapsulation:2}),a})(),I0=(()=>{class a extends Lt.zx{constructor(i,u,I,K,at,jt){super(I,K,null,at,jt),this.editService=i,this.cellContext=u,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(i){i.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(ah),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ee.oQ),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.onClick(K)}),2&i&&(e.Udp("display",u.visible),e.ekj("k-grid-save-command",u.commandClass))},features:[e.qOj],attrs:vr,ngContentSelectors:ll,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(i,u){1&i&&(e.F$t(),e.YNc(0,Fa,1,2,"kendo-icon-wrapper",0),e.YNc(1,lc,2,1,"span",1),e.YNc(2,Ul,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&i&&(e.Q6J("ngIf",u.icon||u.svgIcon),e.xp6(1),e.Q6J("ngIf",u.imageUrl),e.xp6(1),e.Q6J("ngIf",u.iconClass))},dependencies:[St.ZS,Ue.O5,Ue.mk],encapsulation:2}),a})(),T0=(()=>{class a extends Lt.zx{constructor(i,u,I,K,at,jt){super(I,K,null,at,jt),this.editService=i,this.cellContext=u,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(i){i.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(ah),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ee.oQ),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.onClick(K)}),2&i&&(e.Udp("display",u.visible),e.ekj("k-grid-remove-command",u.commandClass))},features:[e.qOj],attrs:$c,ngContentSelectors:ll,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(i,u){1&i&&(e.F$t(),e.YNc(0,$a,1,2,"kendo-icon-wrapper",0),e.YNc(1,Zr,2,1,"span",1),e.YNc(2,cc,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&i&&(e.Q6J("ngIf",u.icon||u.svgIcon),e.xp6(1),e.Q6J("ngIf",u.imageUrl),e.xp6(1),e.Q6J("ngIf",u.iconClass))},dependencies:[St.ZS,Ue.O5,Ue.mk],encapsulation:2}),a})(),cb=(()=>{class a extends Lt.zx{constructor(i,u,I,K,at){super(u,I,null,K,at),this.editService=i}onClick(i){i.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Iu),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ee.oQ),e.Y36(e.R0b))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(i,u){1&i&&e.NdJ("click",function(K){return u.onClick(K)}),2&i&&e.ekj("k-grid-add-command",u.commandClass)},features:[e.qOj],attrs:hr,ngContentSelectors:ll,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(i,u){1&i&&(e.F$t(),e.YNc(0,uc,1,2,"kendo-icon-wrapper",0),e.YNc(1,Eu,2,1,"span",1),e.YNc(2,ya,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&i&&(e.Q6J("ngIf",u.icon||u.svgIcon),e.xp6(1),e.Q6J("ngIf",u.imageUrl),e.xp6(1),e.Q6J("ngIf",u.iconClass))},dependencies:[St.ZS,Ue.O5,Ue.mk],encapsulation:2}),a})(),M1=(()=>{class a extends Gl{constructor(i,u){super(i,u),this.parent=i,this.isRowReorderColumn=!0}}return a.\u0275fac=function(i){return new(i||a)(e.Y36(Gl,13),e.Y36(Tu,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["kendo-grid-rowreorder-column"]],inputs:{dragHandleIcon:"dragHandleIcon",dragHandleSVGIcon:"dragHandleSVGIcon"},features:[e._Bn([{provide:Gl,useExisting:(0,e.Gpc)(()=>a)}]),e.qOj],decls:0,vars:0,template:function(i,u){},encapsulation:2}),a})();const M0=[Ue.ez,vt.UX,vt.u5,Zd,im,kt.Ln,De.I$,o.uv];let mg=(()=>{class a{static exports(){return[rg,L_,Xf,Fp,dp,_m,F_,E0,I0,T0,cb,Uh,_p,M1]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[...M0]]}),a})();const oS=[Ue.ez,Zd];let ub=(()=>{class a{static exports(){return[]}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[...oS]]}),a})();im.exports(),Zd.exports(),mg.exports(),T1.exports(),ub.exports(),S0.exports(),R_.exports(),sm.exports(),N_.exports();let F0=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[Ue.ez,im,Zd,mg,T1,ub,S0,R_,sm,o.uv,N_,ht]]}),a})();Rc("KENDO-GRID-LIST"),Rc("TABLE")},28942:(fn,ve,_)=>{"use strict";_.d(ve,{ZS:()=>ke,oJ:()=>q,pc:()=>Ft});var e=_(94650),o=_(8416),T=_(13710),A=_(11481),G=_(36895),F=_(77579),N=_(61135),R=_(50727),P=_(54004),y=_(18505);function j(st,Ze){if(1&st&&(e.O4$(),e._UZ(0,"svg",1)),2&st){const $e=e.oxw();e.Udp("pointer-events","none"),e.Q6J("innerHTML",$e.content,e.oJD),e.uIk("viewBox",$e.icon.viewBox)}}function Y(st,Ze){if(1&st&&e._UZ(0,"kendo-svg-icon",2),2&st){const $e=e.oxw();e.Q6J("ngClass",$e.innerCssClass)("icon",$e.getSvgIcon)("size",null==$e.iconSettings?null:$e.iconSettings.size)("themeColor",null==$e.iconSettings?null:$e.iconSettings.themeColor)("flip",null==$e.iconSettings?null:$e.iconSettings.flip)}}function ee(st,Ze){if(1&st&&e._UZ(0,"kendo-icon",5),2&st){const $e=e.oxw(2);e.Q6J("ngClass",$e.innerCssClass)("name",$e.name)("size",null==$e.iconSettings?null:$e.iconSettings.size)("themeColor",null==$e.iconSettings?null:$e.iconSettings.themeColor)("flip",null==$e.iconSettings?null:$e.iconSettings.flip)}}function se(st,Ze){if(1&st&&e._UZ(0,"span",6),2&st){const $e=e.oxw(2);e.Q6J("ngClass",$e.customClasses)}}function he(st,Ze){if(1&st&&(e.YNc(0,ee,1,5,"kendo-icon",3),e.YNc(1,se,1,1,"ng-template",null,4,e.W1O)),2&st){const $e=e.MAs(2),Oe=e.oxw();e.Q6J("ngIf",!Oe.customFontIconClass)("ngIfElse",$e)}}const Se={name:"@progress/kendo-angular-icons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310472,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},te={default:"k-icon",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"};let oe=(()=>{class st{constructor($e,Oe){this.element=$e,this.renderer=Oe,(0,T.s)(Se)}get horizontalFlip(){return"horizontal"===this.flip||"both"===this.flip}get verticalFlip(){return"vertical"===this.flip||"both"===this.flip}set themeColor($e){const Oe=this.element.nativeElement;this._themeColor=$e,this.renderer.removeClass(Oe,`!k-color-${$e}`),$e&&this.renderer.addClass(Oe,`!k-color-${$e}`)}get themeColor(){return this._themeColor}set size($e){const Nt=te[$e],xt=this.element.nativeElement;this.renderer.removeClass(xt,te[this.size]),$e&&"default"!==$e&&this.renderer.addClass(xt,Nt),this._size=$e}get size(){return this._size}}return st.\u0275fac=function($e){return new($e||st)(e.Y36(e.SBq),e.Y36(e.Qsj))},st.\u0275dir=e.lG2({type:st,selectors:[["","kendoIconBase",""]],hostVars:4,hostBindings:function($e,Oe){2&$e&&e.ekj("k-flip-h",Oe.horizontalFlip)("k-flip-v",Oe.verticalFlip)},inputs:{flip:"flip",themeColor:"themeColor",size:"size"}}),st})(),q=(()=>{class st extends oe{constructor($e,Oe){super($e,Oe),this.element=$e,this.renderer=Oe,this.hostClass=!0,this.hostAriaHidden=!0}set name($e){if((0,o.X_)()){const Oe=this.element.nativeElement;this.renderer.removeClass(Oe,`k-i-${this.name}`),this.renderer.addClass(Oe,`k-i-${$e}`)}this._name=$e}get name(){return this._name}}return st.\u0275fac=function($e){return new($e||st)(e.Y36(e.SBq),e.Y36(e.Qsj))},st.\u0275cmp=e.Xpm({type:st,selectors:[["kendo-icon"]],hostVars:3,hostBindings:function($e,Oe){2&$e&&(e.uIk("aria-hidden",Oe.hostAriaHidden),e.ekj("k-icon",Oe.hostClass))},inputs:{name:"name"},exportAs:["kendoIcon"],features:[e.qOj],decls:0,vars:0,template:function($e,Oe){},encapsulation:2}),st})(),we=(()=>{class st extends oe{constructor($e,Oe,Nt){super(Oe,Nt),this.domSanitizer=$e,this.element=Oe,this.renderer=Nt,this.hostClass=!0,this.hostAriaHidden=!0}set icon($e){const Oe=this.element.nativeElement,Nt=(0,o.X_)();this._icon&&this._icon.name&&Nt&&this.renderer.removeClass(Oe,`k-svg-i-${this._icon.name}`),this._icon=$e,Nt&&this.renderer.addClass(Oe,`k-svg-i-${this._icon.name}`)}get icon(){return this._icon}get content(){return this.domSanitizer.bypassSecurityTrustHtml(this.icon.content)}get visible(){return this.icon&&(0,o.X_)()}ngOnInit(){this.verifyIconProperty()}verifyIconProperty(){if((0,e.X6Q)()&&!this._icon)throw new Error("\n                Invalid configuration.\n                The input [icon] is required for the Kendo UI SVG Icon component for Angular.\n                See https://www.telerik.com/kendo-angular-ui/components/icons/svg-icon\n            ")}}return st.\u0275fac=function($e){return new($e||st)(e.Y36(A.H7),e.Y36(e.SBq),e.Y36(e.Qsj))},st.\u0275cmp=e.Xpm({type:st,selectors:[["kendo-svg-icon"]],hostVars:3,hostBindings:function($e,Oe){2&$e&&(e.uIk("aria-hidden",Oe.hostAriaHidden),e.ekj("k-svg-icon",Oe.hostClass))},inputs:{icon:"icon"},exportAs:["kendoSVGIcon"],features:[e.qOj],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"pointerEvents","innerHTML",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"innerHTML"]],template:function($e,Oe){1&$e&&e.YNc(0,j,1,4,"svg",0),2&$e&&e.Q6J("ngIf",Oe.visible)},dependencies:[G.O5],encapsulation:2}),st})(),Q=(()=>{class st{constructor(){this.changes=new F.x}notify($e){this.changes.next($e)}getSvgIcon($e){return null}getCustomFontIconClass($e){return null}}return st.\u0275fac=function($e){return new($e||st)},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})();const pe=new e.OlP("Kendo UI Icon-Settings token");let Ee=(()=>{class st{constructor($e,Oe){this._iconSettings=$e,this.iconSettingsService=Oe,this.changes=new N.X(this.iconSettings||{type:"font"}),this.subs=new R.w0,Oe&&this.subs.add(Oe.changes.pipe((0,P.U)(Nt=>(st=>null!=st)(Nt)?Nt:this._iconSettings),(0,y.b)(Nt=>this._iconSettings=Nt)).subscribe(Nt=>this.changes.next(Nt)))}get iconSettings(){return this._iconSettings}ngOnDestroy(){this.subs.unsubscribe()}getSvgIcon($e){return this.iconSettingsService&&this.iconSettingsService.getSvgIcon($e)}getCustomFontIconClass($e){return this.iconSettingsService&&this.iconSettingsService.getCustomFontIconClass($e)}}return st.\u0275fac=function($e){return new($e||st)(e.LFG(pe,8),e.LFG(Q,8))},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})(),ke=(()=>{class st{constructor($e){this.iconsService=$e,this.hostClass=!0,this.innerCssClass="",this.customFontClass="",this.subs=new R.w0,this.subs=$e.changes.subscribe(Oe=>{this.iconSettings=Oe})}get customClasses(){return[this.customFontClass,this.innerCssClass,this.customFontIconClass].filter(Oe=>!!Oe).join(" ")}get getSvgIcon(){return this.iconsService.getSvgIcon(this.name)||this.svgIcon}get customFontIconClass(){return this.iconsService.getCustomFontIconClass(this.name)||this.customFontClass}ngOnDestroy(){this.subs.unsubscribe()}}return st.\u0275fac=function($e){return new($e||st)(e.Y36(Ee))},st.\u0275cmp=e.Xpm({type:st,selectors:[["kendo-icon-wrapper"]],hostVars:2,hostBindings:function($e,Oe){2&$e&&e.ekj("k-icon-wrapper-host",Oe.hostClass)},inputs:{name:"name",svgIcon:"svgIcon",innerCssClass:"innerCssClass",customFontClass:"customFontClass"},exportAs:["kendoIconWrapper"],decls:3,vars:2,consts:[[3,"ngClass","icon","size","themeColor","flip",4,"ngIf","ngIfElse"],["font",""],[3,"ngClass","icon","size","themeColor","flip"],[3,"ngClass","name","size","themeColor","flip",4,"ngIf","ngIfElse"],["custom",""],[3,"ngClass","name","size","themeColor","flip"],[3,"ngClass"]],template:function($e,Oe){if(1&$e&&(e.YNc(0,Y,1,5,"kendo-svg-icon",0),e.YNc(1,he,3,2,"ng-template",null,1,e.W1O)),2&$e){const Nt=e.MAs(2);e.Q6J("ngIf","svg"===(null==Oe.iconSettings?null:Oe.iconSettings.type))("ngIfElse",Nt)}},dependencies:[we,q,G.O5,G.mk],encapsulation:2}),st})(),ut=(()=>{class st{}return st.\u0275fac=function($e){return new($e||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[G.ez],G.ez]}),st})(),vt=(()=>{class st{}return st.\u0275fac=function($e){return new($e||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[G.ez]]}),st})(),Ft=(()=>{class st{}return st.\u0275fac=function($e){return new($e||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({providers:[Ee],imports:[[ut,vt],ut,vt]}),st})()},94023:(fn,ve,_)=>{"use strict";_.d(ve,{wd:()=>nn,qm:()=>hi,rw:()=>rc,Kb:()=>Wl,Uw:()=>go,wS:()=>Ls,Ln:()=>nl,_B:()=>cs,cc:()=>qs,qU:()=>Br,ow:()=>fc,MR:()=>br,UP:()=>Jn,PL:()=>ja,mP:()=>Il,oc:()=>Bl,Em:()=>sc});var e={};_.r(e),_.d(e,{Arc:()=>Je.Z,Circle:()=>ln.Z,Matrix:()=>$e.Z,Point:()=>st.Z,Rect:()=>Ft.Z,Segment:()=>Ze.Z,Size:()=>Oe.Z,Transformation:()=>xt.Z,toMatrix:()=>Nt.Z,transform:()=>Ot.Z});var o=_(94650),T=_(24006),A=_(50727),G=_(54968),y=(_(17445),_(56451),_(61135),_(77579),_(95698)),he=(_(39300),_(24351),_(68675),_(82722),_(35684)),Se=_(78372),oe=(_(59468),_(5651)),q=_(8416),we=_(13710),ae=_(16010),Q=_(78833),pe=_(36895),Ee=_(99912),ke=_(87160),Ye=_(28942),ct=_(5643),vt=(_(1174),_(32429),_(76211),_(52097)),ln=_(96616),Je=_(8713),Ft=_(84572),st=_(83274),Ze=_(57192),$e=_(13748),Oe=_(57303),Nt=_(47108),xt=_(71577),Ot=_(40904);_(27590);const Si=["track"],fi=["thumb"],bi=function(ye,Xe,w){return{keydown:ye,focus:Xe,blur:w}},Zn=["numericInput"],mn=function(ye,Xe){return{mouseup:ye,mouseleave:Xe}},ze=function(ye){return{mousedown:ye}};function wt(ye,Xe){if(1&ye&&(o.TgZ(0,"span",4)(1,"button",5),o._UZ(2,"kendo-icon-wrapper",6),o.qZA(),o.TgZ(3,"button",7),o._UZ(4,"kendo-icon-wrapper",8),o.qZA()()),2&ye){const w=o.oxw();o.Q6J("kendoEventsOutsideAngular",o.WLB(15,mn,w.releaseArrow,w.releaseArrow)),o.xp6(1),o.ekj("k-active",w.arrowDirection===w.ArrowDirection.Up),o.Q6J("kendoEventsOutsideAngular",o.VKq(18,ze,w.increasePress))("title",w.incrementTitle),o.uIk("aria-hidden",!0)("aria-label",w.incrementTitle),o.xp6(1),o.Q6J("svgIcon",w.arrowUpIcon),o.xp6(1),o.ekj("k-active",w.arrowDirection===w.ArrowDirection.Down),o.Q6J("kendoEventsOutsideAngular",o.VKq(20,ze,w.decreasePress))("title",w.decrementTitle),o.uIk("aria-hidden",!0)("aria-label",w.decrementTitle),o.xp6(1),o.Q6J("svgIcon",w.arrowDownIcon)}}const ht=function(ye,Xe,w,X,tt,cn,xi){return{mousedown:ye,dragenter:Xe,keydown:w,input:X,focus:tt,blur:cn,paste:xi}},U=["input"],gt=function(ye,Xe,w,X,tt){return{focus:ye,blur:Xe,click:w,dragstart:X,drop:tt}};function Lt(ye,Xe){}function kt(ye,Xe){if(1&ye&&o.YNc(0,Lt,0,0,"ng-template",8),2&ye){const w=o.oxw();o.Q6J("ngTemplateOutlet",null==w.prefixTemplate?null:w.prefixTemplate.templateRef)}}function vn(ye,Xe){if(1&ye){const w=o.EpF();o.TgZ(0,"span",9),o.NdJ("click",function(){o.CHM(w);const tt=o.oxw();return o.KtG(tt.clearValue())})("mousedown",function(tt){return tt.preventDefault()})("keydown.enter",function(tt){o.CHM(w);const cn=o.oxw();return o.KtG(cn.clearValue(tt))})("keydown.space",function(tt){o.CHM(w);const cn=o.oxw();return o.KtG(cn.clearValue(tt))}),o._UZ(1,"kendo-icon-wrapper",10),o.qZA()}if(2&ye){const w=o.oxw();o.Q6J("tabindex",w.tabIndex)("title",w.clearTitle()),o.uIk("aria-label",w.clearTitle()),o.xp6(1),o.Q6J("name",w.clearButtonClass)("customFontClass",w.customClearButtonClasses)("svgIcon",w.svgIcon("xIcon"))}}function jn(ye,Xe){if(1&ye&&o._UZ(0,"kendo-icon-wrapper",11),2&ye){const w=o.oxw();o.Q6J("name",w.errorIconClasses)("customFontClass",w.customIconClasses)("svgIcon",w.svgIcon("exclamationCircleIcon"))}}function St(ye,Xe){if(1&ye&&o._UZ(0,"kendo-icon-wrapper",11),2&ye){const w=o.oxw();o.Q6J("name",w.successIconClasses)("customFontClass",w.customSuccessIconClasses)("svgIcon",w.svgIcon("checkIcon"))}}function De(ye,Xe){}function ie(ye,Xe){if(1&ye&&o.YNc(0,De,0,0,"ng-template",8),2&ye){const w=o.oxw();o.Q6J("ngTemplateOutlet",null==w.suffixTemplate?null:w.suffixTemplate.templateRef)}}const je=function(ye,Xe,w){return{focus:ye,blur:Xe,input:w}},Hs=ye=>null!=ye,Pr=(ye,Xe)=>ye===Xe||null===ye&&void 0===Xe||void 0===ye&&null===Xe,kr=ye=>ye&&(!ye.touched||ye.control&&"blur"===ye.control.updateOn),ko={small:"sm",medium:"md",large:"lg"},Nr={small:"sm",medium:"md",large:"lg",full:"full"},cr=(ye,Xe,w,X)=>{switch(Xe){case"size":return{toRemove:`k-${ye}-${ko[w]}`,toAdd:"none"!==X?`k-${ye}-${ko[X]}`:""};case"rounded":return{toRemove:`k-rounded-${Nr[w]}`,toAdd:"none"!==X?`k-rounded-${Nr[X]}`:""};case"fillMode":return{toRemove:`k-${ye}-${w}`,toAdd:"none"!==X?`k-${ye}-${X}`:""}}},js=ye=>Math.min(ye,20),fr=ye=>(String(ye).split(".")[1]||"").length,Lr=(ye,Xe)=>{const w=js(Xe);return parseFloat(ye.toFixed(w))},ur=(ye,Xe)=>{const w=((ye,Xe)=>Math.max(fr(ye),fr(Xe)))(ye,Xe);return Lr(ye+Xe,w)};function ar(ye,Xe,...w){if(ye&&ye.nativeElement)return ye.nativeElement[Xe].apply(ye.nativeElement,w)}const Xt={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310663,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Vo=(()=>{class ye extends oe.Z1{}return ye.\u0275fac=function(){let Xe;return function(X){return(Xe||(Xe=o.n5z(ye)))(X||ye)}}(),ye.\u0275dir=o.lG2({type:ye,selectors:[["kendo-switch-messages-base"]],inputs:{on:"on",off:"off"},features:[o.qOj]}),ye})(),Wr=(()=>{class ye extends Vo{constructor(w){super(),this.service=w}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(oe.oQ))},ye.\u0275dir=o.lG2({type:ye,selectors:[["","kendoSwitchLocalizedMessages",""]],features:[o._Bn([{provide:Vo,useExisting:(0,o.Gpc)(()=>ye)}]),o.qOj]}),ye})();const Oo="k-focus";let Br=(()=>{class ye{constructor(w,X,tt,cn,xi,is){this.renderer=w,this.hostElement=X,this.localizationService=tt,this.injector=cn,this.changeDetector=xi,this.ngZone=is,this.focusableId=`k-${(0,q.M8)()}`,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.valueChange=new o.vpe,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new A.w0,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=Zi=>{},this.ngTouched=()=>{},this.handleFocus=()=>{this.isFocused||(this.focused=!0,(0,q.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}))},this.handleBlur=Zi=>{this.hostElement.nativeElement.contains(Zi&&Zi.relatedTarget)||(this.changeDetector.markForCheck(),this.focused=!1,((0,q.g$)(this.onBlur)||kr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()}))},(0,we.s)(Xt),this.direction=tt.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}set checked(w){this.setHostClasses(w),this._checked=w}get checked(){return this._checked}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}set thumbRounded(w){const X=w||"full";this.handleThumbClasses(X),this._thumbRounded=X}get thumbRounded(){return this._thumbRounded}set trackRounded(w){const X=w||"full";this.handleTrackClasses(X),this._trackRounded=X}get trackRounded(){return this._trackRounded}set tabIndex(w){this.tabindex=w}get tabIndex(){return this.tabindex}get ieClass(){return Ee.Xh&&Ee.Xh.msie}get ariaDisabled(){return!!this.disabled||void 0}get ariaReadonly(){return this.readonly}get disabledClass(){return this.disabled}get onLabelMessage(){return this.onLabel||this.localizationService.get("on")}get offLabelMessage(){return this.offLabel||this.localizationService.get("off")}get isEnabled(){return!this.disabled&&!this.readonly}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangeSubscription=this.localizationService.changes.pipe((0,he.T)(1)).subscribe(({rtl:w})=>{this.direction=w?"rtl":"ltr"}),this.control=this.injector.get(T.a5,null),this.ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>this.initialized=!0)}ngAfterViewInit(){const w=this.hostElement.nativeElement;this.attachHostClickHandler(),!this.checked&&!w.classList.contains("k-switch-off")&&this.renderer.addClass(w,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()}focus(){this.track&&this.track.nativeElement.focus()}blur(){this.track&&this.track.nativeElement.blur()}setDisabledState(w){this.disabled=w,this.changeDetector.markForCheck()}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}writeValue(w){this.checked=null!==w&&w,this.changeDetector.markForCheck()}registerOnChange(w){this.ngChange=w}registerOnTouched(w){this.ngTouched=w}keyDownHandler(w){const X=w.keyCode;this.isEnabled&&(X===q.R8.Space||X===q.R8.Enter)&&(this.changeValue(!this.checked),w.preventDefault())}clickHandler(){this.isEnabled&&this.changeValue(!this.checked)}isEmpty(){return!1}changeValue(w){this.checked!==w&&this.ngZone.run(()=>{this.checked=w,this.ngChange(w),this.valueChange.emit(w),this.changeDetector.markForCheck()})}set focused(w){if(this.isFocused!==w&&this.hostElement){const X=this.hostElement.nativeElement;w?this.renderer.addClass(X,Oo):this.renderer.removeClass(X,Oo),this.isFocused=w}}attachHostClickHandler(){this.ngZone.runOutsideAngular(()=>{this.hostClickSubscription.add(this.renderer.listen(this.hostElement.nativeElement,"click",this.clickHandler))})}setHostClasses(w){const X=this.hostElement.nativeElement;w?(this.renderer.removeClass(X,"k-switch-off"),this.renderer.addClass(X,"k-switch-on")):(this.renderer.removeClass(X,"k-switch-on"),this.renderer.addClass(X,"k-switch-off"))}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("switch",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}handleTrackClasses(w){const X=this.hostElement?.nativeElement,tt=this.track?.nativeElement;if(!X||!tt)return;const cn=cr("switch","rounded",this.trackRounded,w);cn.toRemove&&(this.renderer.removeClass(X,cn.toRemove),this.renderer.removeClass(tt,cn.toRemove)),cn.toAdd&&(this.renderer.addClass(X,cn.toAdd),this.renderer.addClass(tt,cn.toAdd))}handleThumbClasses(w){const X=this.thumb?.nativeElement;if(!X)return;const tt=cr("switch","rounded",this.thumbRounded,w);tt.toRemove&&this.renderer.removeClass(X,tt.toRemove),tt.toAdd&&this.renderer.addClass(X,tt.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(oe.oQ),o.Y36(o.zs3),o.Y36(o.sBO),o.Y36(o.R0b))},ye.\u0275cmp=o.Xpm({type:ye,selectors:[["kendo-switch"]],viewQuery:function(w,X){if(1&w&&(o.Gf(Si,7),o.Gf(fi,7)),2&w){let tt;o.iGM(tt=o.CRH())&&(X.track=tt.first),o.iGM(tt=o.CRH())&&(X.thumb=tt.first)}},hostVars:9,hostBindings:function(w,X){2&w&&(o.uIk("dir",X.direction)("aria-disabled",X.ariaDisabled)("aria-readonly",X.ariaReadonly),o.ekj("k-ie",X.ieClass)("k-switch",X.hostClasses)("k-disabled",X.disabledClass))},inputs:{focusableId:"focusableId",onLabel:"onLabel",offLabel:"offLabel",checked:"checked",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",size:"size",thumbRounded:"thumbRounded",trackRounded:"trackRounded",tabIndex:"tabIndex"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoSwitch"],features:[o._Bn([oe.oQ,{provide:oe.mM,useValue:"kendo.switch"},{multi:!0,provide:T.JU,useExisting:(0,o.Gpc)(()=>ye)},{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}])],decls:10,vars:23,consts:function(){let Xe,w;return Xe=$localize`:kendo.switch.on|The **On** label of the Switch.:ON`,w=$localize`:kendo.switch.off|The **Off** label of the Switch.:OFF`,[["kendoSwitchLocalizedMessages","","on",Xe,"off",w],["role","switch",1,"k-switch-track",3,"id","kendoEventsOutsideAngular"],["track",""],[1,"k-switch-label-on"],[1,"k-switch-label-off"],["tabindex","-1",1,"k-switch-thumb-wrap",3,"kendoEventsOutsideAngular"],[1,"k-switch-thumb"],["thumb",""]]},template:function(w,X){1&w&&(o.ynx(0,0),o.TgZ(1,"span",1,2)(3,"span",3),o._uU(4),o.qZA(),o.TgZ(5,"span",4),o._uU(6),o.qZA()(),o.TgZ(7,"span",5),o._UZ(8,"span",6,7),o.qZA(),o.BQk()),2&w&&(o.xp6(1),o.Udp("transition-duration",X.initialized?"200ms":"0ms"),o.Q6J("id",X.focusableId)("kendoEventsOutsideAngular",o.kEZ(15,bi,X.keyDownHandler,X.handleFocus,X.handleBlur)),o.uIk("aria-checked",X.checked)("tabindex",X.disabled?void 0:X.tabIndex)("aria-disabled",X.disabled)("aria-invalid",X.isControlInvalid),o.xp6(2),o.uIk("aria-hidden",!0),o.xp6(1),o.Oqu(X.onLabelMessage),o.xp6(1),o.uIk("aria-hidden",!0),o.xp6(1),o.Oqu(X.offLabelMessage),o.xp6(1),o.Udp("transition-duration",X.initialized?"200ms":"0ms"),o.Q6J("kendoEventsOutsideAngular",o.kEZ(19,bi,X.keyDownHandler,X.handleFocus,X.handleBlur)))},dependencies:[Wr,q.nV],encapsulation:2}),ye})(),Il=(()=>{class ye{constructor(w,X,tt){this.renderer=w,this.inputElement=X,this.ngZone=tt,this.hostClasses=!0,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.onValueChange=new o.vpe,this.autoFillStart=new o.vpe,this.autoFillEnd=new o.vpe,this.listeners=[]}set value(w){this.inputElement&&(this.inputElement.nativeElement.value=w??"",this.onValueChange.emit())}get value(){return this.inputElement.nativeElement.value}get id(){return this.inputElement.nativeElement.id}set id(w){this.renderer.setAttribute(this.inputElement.nativeElement,"id",w)}ngAfterViewInit(){const w=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(w,"focus",()=>this.onFocus.emit()),this.renderer.listen(w,"blur",()=>this.onBlur.emit())],this.ngZone.runOutsideAngular(()=>{this.renderer.listen(w,"animationstart",X=>{"autoFillStart"===X.animationName?this.autoFillStart.emit():"autoFillEnd"===X.animationName&&this.autoFillEnd.emit()})})}ngOnDestroy(){this.listeners.forEach(w=>w())}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(o.R0b))},ye.\u0275dir=o.lG2({type:ye,selectors:[["input","kendoTextBox",""]],hostVars:10,hostBindings:function(w,X){2&w&&o.ekj("k-textbox",X.hostClasses)("k-input",X.hostClasses)("k-input-md",X.hostClasses)("k-rounded-md",X.hostClasses)("k-input-solid",X.hostClasses)},inputs:{value:"value"},features:[o._Bn([{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}])]}),ye})(),br=(()=>{class ye{constructor(w,X,tt,cn,xi,is){this.renderer=w,this.element=X,this.zone=tt,this.changeDetector=cn,this.injector=xi,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new o.vpe,this.autoSize=!1,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.onValueChange=new o.vpe,this.autoFillStart=new o.vpe,this.autoFillEnd=new o.vpe,this.listeners=[],this.ngChange=Zi=>{},this.ngTouched=()=>{},this.direction=is?"rtl":"ltr"}get id(){return this.element.nativeElement.id}set id(w){this.renderer.setAttribute(this.element.nativeElement,"id",w)}writeValue(w){this.elementValue=w,this.resize()}registerOnChange(w){this.ngChange=w}registerOnTouched(w){this.ngTouched=w}setDisabledState(w){this.setElementProperty("disabled",w)}ngOnInit(){const w=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.listeners=[this.renderer.listen(w,"focus",this.handleFocus.bind(this)),this.renderer.listen(w,"blur",this.handleBlur.bind(this)),this.renderer.listen(w,"animationstart",X=>{"autoFillStart"===X.animationName?this.autoFillStart.emit():"autoFillEnd"===X.animationName&&this.autoFillEnd.emit()})],(0,q.X_)()&&this.autoSize&&(this.resizeSubscription=(0,G.R)(window,"resize").pipe((0,Se.b)(50)).subscribe(()=>this.resize())),this.inputSubscription=(0,G.R)(w,"input").subscribe(this.handleInput.bind(this))}),this.control=this.injector.get(T.a5,null)}ngOnChanges(w){const X=this.element.nativeElement;w.value&&(this.elementValue=this.value),w.autoSize&&(this.autoSize?(this.initialHeight=X.offsetHeight,this.renderer.setStyle(X,"resize","none")):(this.renderer.setStyle(X,"overflow-y","auto"),this.renderer.setStyle(X,"resize","both"),X.style.height=`${this.initialHeight}px`)),this.zone.onStable.pipe((0,y.q)(1)).subscribe(()=>this.resize())}ngOnDestroy(){this.listeners.forEach(w=>w()),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get elementValue(){return this.element?this.element.nativeElement.value:""}set elementValue(w){this.setElementProperty("value",w??"")}setElementProperty(w,X){this.element&&this.renderer.setProperty(this.element.nativeElement,w,X)}resize(){if(!this.autoSize)return;const w=this.element.nativeElement;this.renderer.setStyle(w,"overflow-y","hidden"),w.style.height=`${this.initialHeight}px`;const X=w.scrollHeight;X>this.initialHeight&&(w.style.height=`${X}px`)}handleInput(){const w=this.elementValue;this.value=w,(this.control||(0,q.g$)(this.onValueChange)||(0,q.g$)(this.valueChange))&&this.zone.run(()=>{this.ngChange(w),this.onValueChange.emit(w),this.valueChange.emit(w),this.changeDetector.markForCheck()}),this.resize()}handleFocus(){(0,q.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()})}handleBlur(){((0,q.g$)(this.onBlur)||kr(this.control))&&this.zone.run(()=>{this.ngTouched(),this.onBlur.emit(),this.changeDetector.markForCheck()})}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(o.zs3),o.Y36(oe.lw,8))},ye.\u0275dir=o.lG2({type:ye,selectors:[["textarea","kendoTextArea",""]],hostVars:13,hostBindings:function(w,X){2&w&&(o.uIk("dir",X.direction),o.ekj("k-textarea",X.elementClasses)("k-input",X.elementClasses)("k-input-md",X.elementClasses)("k-rounded-md",X.elementClasses)("k-input-solid",X.elementClasses)("k-autofill",X.autofillClass))},inputs:{autoSize:"autoSize",value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([{provide:T.JU,useExisting:(0,o.Gpc)(()=>ye),multi:!0},{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}]),o.TTD]}),ye})();const qa=/[eE][\-+]?([0-9]+)/,ca=ye=>ye>=0?Math.floor(ye):Math.ceil(ye),Ma=ye=>{},ne=ye=>!isNaN(ye)&&null!==ye;function qt(ye,Xe){const w=Xe-String(ye).length;let X=ye;if(w>0){const tt=new Array(w+1).join("0");X=parseFloat(ye+tt)}return X}var Zt=(()=>{return(ye=Zt||(Zt={}))[ye.Down=-1]="Down",ye[ye.None=0]="None",ye[ye.Up=1]="Up",Zt;var ye})();let Rn=(()=>{class ye extends oe.Z1{}return ye.\u0275fac=function(){let Xe;return function(X){return(Xe||(Xe=o.n5z(ye)))(X||ye)}}(),ye.\u0275dir=o.lG2({type:ye,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[o.qOj]}),ye})(),ii=(()=>{class ye extends Rn{constructor(w){super(),this.service=w}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(oe.oQ))},ye.\u0275dir=o.lG2({type:ye,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[o._Bn([{provide:Rn,useExisting:(0,o.Gpc)(()=>ye)}]),o.qOj]}),ye})();const $n=["min","max","step","decimals"],Ii={decimals:null,max:null,min:null,step:1},ro="k-focus";let go=(()=>{class ye{constructor(w,X,tt,cn,xi,is,Zi){this.intl=w,this.renderer=X,this.localizationService=tt,this.injector=cn,this.ngZone=xi,this.changeDetector=is,this.hostElement=Zi,this.focusableId=`k-${(0,q.M8)()}`,this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new o.vpe,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.ArrowDirection=Zt,this.arrowDirection=Zt.None,this.hostClasses=!0,this.arrowUpIcon=ae.fRI,this.arrowDownIcon=ae.M7i,this.inputValue="",this.minValidateFn=Ma,this.maxValidateFn=Ma,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Ma,this.ngTouched=Ma,this.ngValidatorChange=Ma,this.domEvents=[],this.increasePress=ks=>{this.arrowPress(Zt.Up,ks)},this.decreasePress=ks=>{this.arrowPress(Zt.Down,ks)},this.releaseArrow=()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==Zt.None&&(this.arrowDirection=Zt.None,this.changeDetector.detectChanges())},this.handlePaste=()=>{this.isPasted=!0},this.handleInput=()=>{const ks=this.numericInput.nativeElement;let{selectionStart:Io,selectionEnd:dr,value:_r}=ks;if(this.pressedKey===q.R8.NumpadDecimal&&(_r=this.replaceNumpadDotValue()),this.isPasted&&(_r=this.formatInputValue(this.intl.parseNumber(_r))),!this.isValid(_r))return ks.value=this.inputValue,void this.setSelection(Io-1,dr-1);const Kr=this.intl.parseNumber(_r);let ma=this.restrictDecimals(Kr);if(this.autoCorrect){const Da=this.limitInputValue(ma);ma=Da.value,Io=Da.selectionStart,dr=Da.selectionEnd}Kr!==ma||this.hasTrailingZeros(_r)||!this.focused?(this.setInputValue(ma),this.setSelection(Io,dr)):this.inputValue=_r,this.isPasted&&(ks.value=this.inputValue),this.updateValue(ma),this.previousSelection=null,this.isPasted=!1},this.handleDragEnter=()=>{!this.focused&&!this.isDisabled&&this.setInputValue(this.value,!0)},this.handleMouseDown=()=>{this.mouseDown=!0},this.handleFocus=()=>{if(!this.focused&&(this.focused=!0,!this.isDisabled)){const ks=this.selectOnFocus||!this.mouseDown;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{ks?this.selectAll():this.selectCaret()},0)})}this.mouseDown=!1,(0,q.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),((0,q.g$)(this.onBlur)||kr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.handleKeyDown=ks=>{if(this.isDisabled)return;let Io;ks.keyCode===q.R8.ArrowDown?Io=-1:ks.keyCode===q.R8.ArrowUp&&(Io=1),Io&&this.step&&(ks.preventDefault(),this.addStep(Io));const dr=this.numericInput.nativeElement;this.previousSelection={end:dr.selectionEnd,start:dr.selectionStart},this.pressedKey=ks.keyCode},this.handleWheel=ks=>{if(this.focused&&!this.isDisabled&&this.changeValueOnScroll){ks.preventDefault();const Io=(ye=>{let Xe=0;return ye.wheelDelta?(Xe=ye.wheelDelta/120,Xe=Xe>0?Math.ceil(Xe):Math.floor(Xe)):ye.detail&&(Xe=Math.round(-ye.detail/3)),Xe})(ks);this.addStep(Io)}},(0,we.s)(Xt),this.direction=tt.rtl?"rtl":"ltr"}get format(){return this._format??"n2"}set format(w){this._format=w}set tabIndex(w){this.tabindex=w}get tabIndex(){return this.tabindex}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}set rounded(w){const X=w||"medium";this.handleClasses(X,"rounded"),this._rounded=X}get rounded(){return this._rounded}set fillMode(w){const X=w||"solid";this.handleClasses(X,"fillMode"),this._fillMode=X}get fillMode(){return this._fillMode}get disableClass(){return this.disabled}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:w})=>{this.direction=w?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(T.a5,null),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement,"mousewheel",this.handleWheel.bind(this))),this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement,"DOMMouseScroll",this.handleWheel.bind(this)))})}ngAfterViewInit(){["size","rounded","fillMode"].forEach(X=>{this.handleClasses(this[X],X)})}ngOnChanges(w){(0,q.aG)($n,w,!1)&&this.parseOptions($n.filter(X=>w[X])),this.verifySettings(),(0,q.aG)(["min","max","rangeValidation"],w,!1)&&(this.minValidateFn=this.rangeValidation?(ye=>Xe=>!Hs(ye)||!Hs(Xe.value)||Xe.value>=ye?null:{minError:{minValue:ye,value:Xe.value}})(this.min):Ma,this.maxValidateFn=this.rangeValidation?(ye=>Xe=>!Hs(ye)||!Hs(Xe.value)||Xe.value<=ye?null:{maxError:{maxValue:ye,value:Xe.value}})(this.max):Ma,this.ngValidatorChange()),(0,q.aG)(["autoCorrect","decimals","min"],w)&&delete this.numericRegex,(0,q.aG)(["value","format"],w,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(w=>w())}validate(w){return this.minValidateFn(w)||this.maxValidateFn(w)}registerOnValidatorChange(w){this.ngValidatorChange=w}writeValue(w){this.verifyValue(w);const X=this.restrictModelValue(w);this.value=X,this.setInputValue()}registerOnChange(w){this.ngChange=w}registerOnTouched(w){this.ngTouched=w}setDisabledState(w){this.changeDetector.markForCheck(),this.disabled=w}focus(){ar(this.numericInput,"focus")}blur(){ar(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(w){this.renderer.setProperty(this.numericInput.nativeElement,"value",w)}get focused(){return this.isFocused}set focused(w){if(this.isFocused!==w&&this.hostElement){const X=this.hostElement.nativeElement;w?this.renderer.addClass(X,ro):this.renderer.removeClass(X,ro),this.isFocused=w}}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}get isDisabled(){return this.disabled||this.readonly}arrowPress(w,X){X.preventDefault(),!this.isDisabled&&!(ye=>ye.button&&2===ye.button||ye.which&&3===ye.which)(X)&&(Ee.$w||(this.focused=!0,this.focus()),this.arrowDirection!==w&&(this.arrowDirection=w,this.changeDetector.detectChanges()),this.step?this.spin(w,500):this.setInputValue())}updateValue(w){Pr(this.value,w)||this.ngZone.run(()=>{this.value=w,this.ngChange(w),this.valueChange.emit(w),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let w=this.inputValue||"";if(this.previousSelection){const X=this.numericInput.nativeElement,{selectionStart:tt,selectionEnd:cn}=X,{start:xi,end:is}=this.previousSelection;X.value=w=w.substring(0,xi)+this.decimalSeparator+w.substring(is),this.setSelection(tt,cn)}return w}isValid(w){return this.numericRegex||(this.numericRegex=(ye=>{const{autoCorrect:Xe,decimals:w,min:X}=ye;let xi,tt=ye.separator;return"."===tt&&(tt="\\"+tt),xi=0===w?"\\d*":`(?:(?:\\d+(${tt}\\d*)?)|(?:${tt}\\d*))?`,new RegExp(`^${Xe&&null!==X&&X>=0?"":"-?"}${xi}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(w)}spin(w,X){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(w,50)},X),this.addStep(w)}addStep(w){let X=ur(this.value||0,this.step*w);X=this.limitValue(X),X=this.restrictDecimals(X),this.setInputValue(X),this.updateValue(X)}setSelection(w,X){this.focused&&ar(this.numericInput,"setSelectionRange",w,X)}limitValue(w){let X=w;return this.isInRange(w)||(ne(this.max)&&w>this.max&&(X=this.max),ne(this.min)&&w<this.min&&(X=this.min)),X}limitInputValue(w){const{selectionStart:X,selectionEnd:tt,value:cn}=this.numericInput.nativeElement;let xi=w,is=!1;if(!this.isInRange(w)){const Zi=cn.length-String(this.inputValue).length,{min:ks,max:Io}=this,dr=ne(Io),_r=ne(ks);let Kr,ma,Da=w;if(0===X&&this.inputValue.substr(1)===cn)return{selectionEnd:tt,selectionStart:X,value:null};if(dr&&w>Io?w>0?ma=!0:Kr=Io:_r&&w<ks&&(w>0?Kr=ks:ma=!0),Kr){const ol=this.tryPadValue(w,Kr);ol&&ca(w)!==ca(Kr)&&(Da=ol,is=!0)}else ma&&this.inputValue&&X!==cn.length&&(Da=parseFloat(cn.substr(0,X)+cn.substr(X+Zi)));xi=this.limitValue(Da),is=(is||xi!==Da)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+Zi>0}return{selectionEnd:is?String(xi).length:tt,selectionStart:X,value:xi}}tryPadValue(w,X){const tt=String(Math.floor(X)).length,cn=qt(w,tt),xi=qt(w,tt+1);let is;return this.isInRange(cn)?is=cn:this.isInRange(xi)&&(is=xi),is}isInRange(w){return!ne(w)||(!ne(this.min)||this.min<=w)&&(!ne(this.max)||w<=this.max)}restrictModelValue(w){let X=this.restrictDecimals(w,!0);return this.autoCorrect&&this.limitValue(X)!==X&&(X=null),X}restrictDecimals(w,X){let tt=w;if(w&&this.hasDecimals){const cn=this.decimals,xi=String(w);if(X||qa.test(xi))tt=Lr(w,cn);else{const is=xi.split(".");let Zi=is[1];Zi&&Zi.length>cn&&(Zi=Zi.substr(0,cn),tt=parseFloat(`${is[0]}.${Zi}`))}}return tt}formatInputValue(w){let X=Object.is(w,-0)?"-0":String(w);const tt=qa.exec(X);return tt&&(X=w.toFixed(js(parseInt(tt[1],10)))),X.replace(".",this.decimalSeparator)}formatValue(w,X){let tt;return tt=null!==w&&(ye=>typeof ye<"u")(w)&&""!==w?X&&!this.readonly?this.formatInputValue(w):this.intl.formatNumber(w,this.format):"",tt}setInputValue(w=this.value,X=this.focused){const tt=this.formatValue(w,X);this.elementValue=tt,this.inputValue=tt}verifySettings(){if((0,o.X6Q)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(w){if((0,o.X6Q)()&&w&&"number"!=typeof w)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(w)} was set.`)}parseOptions(w){for(let X=0;X<w.length;X++){const tt=w[X],cn=this[tt];if("string"==typeof cn){const xi=parseFloat(cn),is=!isNaN(xi);if((0,o.X6Q)()&&!is&&""!==cn)throw new Error(`The NumericTextBox component requires value of type Number or a String representing a number for the ${tt} property and ${JSON.stringify(cn)} was set.`);this[tt]=is?xi:Ii[tt]}}}intlChange(){delete this.numericRegex,this.numericInput&&(!this.focused||!this.isValid(this.elementValue))&&this.setInputValue()}hasTrailingZeros(w){if(this.hasDecimals&&this.focused){const X=w.split(this.decimalSeparator)[1];return X&&X.length>this.decimals&&X.lastIndexOf("0")===X.length-1}}selectAll(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}selectCaret(){const w=(ye=>this.numericInput.nativeElement.selectionStart)(),X=this.elementValue,tt=X.substring(0,w);if(this.setInputValue(),tt.length){const cn=((ye,Xe)=>{const w=`${this.decimalSeparator}0123456789-`;return ye.split("").reduce((X,tt)=>w.includes(tt)?++X:X,0)})(tt),xi=this.adjustSignificantChars(X,cn);this.setSelection(xi,xi)}else this.setSelection(0,0)}numberOfLeadingZeroes(w){const X=w.indexOf(this.decimalSeparator),tt=w.match(/^[^1-9]*?(0+)/);if(tt){const xi=tt[1].length;return tt[0].length===X?xi-1:xi}return 0}adjustSignificantChars(w,X){const tt=this.numberOfLeadingZeroes(w);return tt>0?Math.max(0,X-tt):X}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("input",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(ke.aJ),o.Y36(o.Qsj),o.Y36(oe.oQ),o.Y36(o.zs3),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(o.SBq))},ye.\u0275cmp=o.Xpm({type:ye,selectors:[["kendo-numerictextbox"]],viewQuery:function(w,X){if(1&w&&o.Gf(Zn,7),2&w){let tt;o.iGM(tt=o.CRH())&&(X.numericInput=tt.first)}},hostVars:7,hostBindings:function(w,X){2&w&&(o.uIk("dir",X.direction),o.ekj("k-disabled",X.disableClass)("k-input",X.hostClasses)("k-numerictextbox",X.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[o._Bn([oe.oQ,{provide:oe.mM,useValue:"kendo.numerictextbox"},{provide:T.JU,useExisting:(0,o.Gpc)(()=>ye),multi:!0},{provide:T.Cf,useExisting:(0,o.Gpc)(()=>ye),multi:!0},{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}]),o.TTD],decls:4,vars:21,consts:function(){let Xe,w;return Xe=$localize`:kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value`,w=$localize`:kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value`,[["kendoNumericTextBoxLocalizedMessages","","increment",Xe,"decrement",w],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],["name","caret-alt-up","innerCssClass","k-button-icon",3,"svgIcon"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"]]},template:function(w,X){1&w&&(o.GkF(0,0),o._UZ(1,"input",1,2),o.YNc(3,wt,5,22,"span",3)),2&w&&(o.xp6(1),o.Q6J("id",X.focusableId)("tabindex",X.tabIndex)("disabled",X.disabled)("readonly",X.readonly)("kendoEventsOutsideAngular",o.Hh0(13,ht,X.handleMouseDown,X.handleDragEnter,X.handleKeyDown,X.handleInput,X.handleFocus,X.handleBlur,X.handlePaste)),o.uIk("aria-valuemin",X.min)("aria-valuemax",X.max)("aria-valuenow",X.value)("title",X.title)("placeholder",X.placeholder)("maxLength",X.maxlength)("aria-invalid",X.isControlInvalid),o.xp6(2),o.Q6J("ngIf",X.spinners))},dependencies:[Ye.ZS,ii,q.nV,pe.O5],encapsulation:2}),ye})(),Ls=(()=>{class ye extends Rn{constructor(w){super(),this.service=w}get override(){return!0}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(oe.oQ))},ye.\u0275cmp=o.Xpm({type:ye,selectors:[["kendo-numerictextbox-messages"]],features:[o._Bn([{provide:Rn,useExisting:(0,o.Gpc)(()=>ye)}]),o.qOj],decls:0,vars:0,template:function(w,X){},encapsulation:2}),ye})();var Ms=(()=>{return(ye=Ms||(Ms={}))[ye.Literal=0]="Literal",ye[ye.Mask=1]="Mask",ye[ye.Undefined=2]="Undefined",Ms;var ye})();class ao{constructor(Xe,w,X=Ms.Undefined){this.value=Xe,this.rest=w,this.type=X}map(Xe){return new ao(Xe(this.value),this.rest)}chain(Xe){return Xe(this.value,this.rest)}fold(Xe,w){return Xe(this.value,this.rest)}concat(Xe){return this.map((w,X)=>Xe.chain((tt,cn)=>w.concat([tt])))}toString(){return`Result({ value: '${this.value}', rest: ${this.rest} })`}}class Po{constructor(Xe=[],w=[]){this.input=Xe,this.control=w,this.inputCursor=0,this.controlCursor=0}eof(){return this.inputCursor>=this.input.length}next(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}}peek(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}}eat_input(){this.inputCursor++}eat_control(){this.controlCursor++}eat(){this.inputCursor++,this.controlCursor++}}const zs=ye=>(ye||"").split("");class Uo{constructor(Xe){this.parse=Xe}run(Xe,w=""){return this.parse(Xe instanceof Po?Xe:new Po(zs(Xe),zs(w)))}map(Xe){return new Uo(w=>this.parse(w).map(Xe))}chain(Xe){return new Uo(w=>this.parse(w).chain((X,tt)=>Xe(X).run(tt)))}isLiteral(Xe){return this.run(Xe).type===Ms.Literal}}const Tr=(ye,Xe)=>new Uo(w=>{let{char:X}=w.next();const tt=ye[X];return"\\"===X?(X=w.next().char,new ao(Xe.literal(X),w)):new ao(tt?Xe.mask(tt):Xe.literal(X),w)}),Oa=({prompt:ye,promptPlaceholder:Xe})=>new Uo(w=>{const{char:X}=w.next();return new ao(X===ye?Xe:X,w)}),za=ye=>new Uo(Xe=>{const{char:w}=Xe.next();return new ao(ye?w:"",Xe)}),Sr=ye=>ye.reduce((Xe,w)=>((ye,Xe)=>ye.chain(w=>Xe.map(X=>w.concat([X]))))(Xe,w),(ye=>new Uo(Xe=>new ao(ye,Xe)))([])),$r=ye=>new Uo(Xe=>{let w=new ao([],Xe);for(;!Xe.eof();)w=w.concat(ye.run(Xe));return w});let el=(()=>{class ye{constructor(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}update({mask:w="",prompt:X="",promptPlaceholder:tt=" ",rules:cn={},includeLiterals:xi=!1}){this.mask=w,this.prompt=X,this.promptPlaceholder=tt,this.rules=cn,this.includeLiterals=xi,this.tokenize()}validationValue(w=""){let X=w;return Sr(this.validationTokens).run(w).fold(tt=>{X=tt.join("")}),X}rawValue(w=""){let X=w;return this.rawTokens.length&&Sr(this.rawTokens).run(w).fold(tt=>{X=tt.join("")}),X}maskRaw(w=""){let X=w;return this.maskTokens.length&&Sr(this.maskTokens).run(w).fold(tt=>{X=tt.join("")}),X}maskInput(w,X,tt){return w.length<X.length?this.maskRemoved(w,X,tt):this.maskInserted(w,X,tt)}maskInRange(w,X,tt,cn){let xi="";const is=cn,Zi=X.split("").slice(0,tt),ks=X.split("").slice(cn);return Sr(this.maskTokens.slice(tt,cn)).run(w).fold(Io=>{xi=Zi.concat(Io).concat(ks).join("")}),{selection:is,value:xi}}maskRemoved(w,X,tt){let cn="",xi=tt;const is=w.split("").slice(tt),Zi=w.split("").slice(0,tt).join("");return Sr(this.maskTokens.slice(0,this.maskTokens.length-(w.length-tt))).run(Zi,X).fold(Io=>{xi=this.adjustPosition(Io,xi),cn=Io.concat(is).join("")}),{selection:xi,value:cn}}adjustPosition(w,X){const tt=w[X];return this.maskTokens[X].isLiteral(tt)||tt===this.prompt?X:X+1}maskInserted(w,X,tt){let cn="",xi=tt;const is=w.slice(0,tt);return Sr(this.unmaskTokens).run(is,X).chain(Zi=>{xi=Zi.join("").length;const ks=X.slice(xi);return Sr(this.maskTokens).run(Zi.join("")+ks,X)}).fold(Zi=>{cn=Zi.join("")}),{selection:xi,value:cn}}get maskTokenCreator(){const{prompt:w,promptPlaceholder:X}=this;return{literal:tt=>(ye=>new Uo(Xe=>Xe.peek().char===ye?(Xe.eat(),new ao(ye,Xe,Ms.Literal)):new ao(ye,Xe,Ms.Literal)))(tt),mask:tt=>(({prompt:ye,promptPlaceholder:Xe})=>w=>new Uo(X=>{for(;!X.eof();){const{char:tt,control:cn}=X.peek();if(tt===cn&&cn===ye)return X.eat(),new ao(ye,X,Ms.Mask);if(w.test(tt))return X.eat(),new ao(tt,X,Ms.Mask);if(tt===Xe)return X.eat(),new ao(ye,X,Ms.Mask);X.eat_input()}return X.eat(),new ao(ye,X,Ms.Mask)}))({prompt:w,promptPlaceholder:X})(tt)}}get unmaskTokenCreator(){return{literal:w=>(ye=>new Uo(Xe=>{if(Xe.eof())return new ao("",Xe);const{char:w}=Xe.peek();return w===ye&&Xe.eat(),new ao(ye,Xe)}))(w),mask:w=>(ye=>Xe=>new Uo(w=>{for(;!w.eof();){const{char:X,control:tt}=w.peek();if(X===ye&&tt===ye)return w.eat(),new ao(X,w);if(Xe.test(X))return w.eat(),new ao(X,w);w.eat_input()}return w.eat(),new ao("",w)}))(this.prompt)(w)}}get rawTokenCreator(){const{prompt:w,promptPlaceholder:X,includeLiterals:tt}=this;return{literal:cn=>za(tt),mask:cn=>Oa({prompt:w,promptPlaceholder:X})}}get validationTokenCreator(){const{prompt:w}=this;return{literal:X=>za(!1),mask:X=>Oa({prompt:w,promptPlaceholder:""})}}tokenize(){$r(Tr(this.rules,this.maskTokenCreator)).run(this.mask).fold((w,X)=>{this.maskTokens=w}),$r(Tr(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((w,X)=>{this.unmaskTokens=w}),$r(Tr(this.rules,this.rawTokenCreator)).run(this.mask).fold((w,X)=>{this.rawTokens=w}),$r(Tr(this.rules,this.validationTokenCreator)).run(this.mask).fold((w,X)=>{this.validationTokens=w})}}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275prov=o.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Jo=Promise.resolve(null),Yl="k-focus";let Wl=(()=>{class ye{constructor(w,X,tt,cn,xi,is,Zi){this.service=w,this.renderer=X,this.hostElement=tt,this.ngZone=cn,this.injector=xi,this.changeDetector=is,this.focusableId=`k-${(0,q.M8)()}`,this.disabled=!1,this.readonly=!1,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.valueChange=new o.vpe,this.hostClasses=!0,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=()=>{this.focused=!0,this.maskOnFocus&&this.emptyMask&&(this.updateInput(this.service.maskRaw(this.value)),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.setSelection(0,0)},0)})),(0,q.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleClick=()=>{if(this.focused&&!this.focusClick){this.focusClick=!0;const{selectionStart:ks,selectionEnd:Io}=this.input.nativeElement;ks===Io&&this.setFocusSelection()}},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.focusClick=!1,this.maskOnFocus&&this.emptyMask&&this.updateInput(this.maskedValue),((0,q.g$)(this.onBlur)||kr(this.control))&&this.ngZone.run(()=>{this.onTouched(),this.onBlur.emit()})},this.onChange=ks=>{},this.onTouched=()=>{},(0,we.s)(Xt),this.direction=Zi?"rtl":"ltr",this.updateService()}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}set rounded(w){const X=w||"medium";this.handleClasses(X,"rounded"),this._rounded=X}get rounded(){return this._rounded}set fillMode(w){const X=w||"solid";this.handleClasses(X,"fillMode"),this._fillMode=X}get fillMode(){return this._fillMode}set rules(w){this._rules=Object.assign({},this.defaultRules,w)}get rules(){return this._rules||this.defaultRules}set tabIndex(w){this.tabindex=w}get tabIndex(){return this.tabindex}get hostDisabledClass(){return this.disabled}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(T.a5,null)}ngAfterViewInit(){["size","rounded","fillMode"].forEach(X=>{this.handleClasses(this[X],X)})}isEmpty(){if(this.input)return!this.input.nativeElement.value}handleDragDrop(){return!1}focus(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())}blur(){this.input&&this.input.nativeElement.blur()}pasteHandler(w){const{selectionStart:X,selectionEnd:tt}=w.target;tt!==X&&(this.isPasted=!0,this.selection=[X,tt])}inputHandler(w){const X=w.target.value,[tt,cn]=this.selection;if(!this.mask)return this.updateValueWithEvents(X),void(this.isPasted=!1);let xi;this.isPasted?(this.isPasted=!1,xi=this.service.maskInRange(X.slice(tt,X.length-(this.maskedValue.length-cn)),this.maskedValue,tt,cn)):xi=this.service.maskInput(X,this.maskedValue||"",w.target.selectionStart),this.updateInput(xi.value,xi.selection),this.updateValueWithEvents(xi.value)}ngOnChanges(w){if(w.value&&(this.value=this.normalizeValue()),!this.mask)return void this.updateInput(this.value);const X=this.extractChanges(w);this.updateService(X);const tt=this.service.maskRaw(this.value);this.updateInput(tt,null,!0),(w.includeLiterals||(0,q.ln)("promptPlaceholder",w))&&Jo.then(()=>{this.updateValueWithEvents(this.maskedValue)})}writeValue(w){this.value=this.normalizeValue(w),this.updateInput(this.service.maskRaw(this.value)),this.includeLiterals&&this.updateValue(this.maskedValue)}registerOnChange(w){this.onChange=w}registerOnTouched(w){this.onTouched=w}setDisabledState(w){this.changeDetector.markForCheck(),this.disabled=w}validate(w){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}updateValueWithEvents(w){this.updateValue(w),(0,q.g$)(this.valueChange)&&this.valueChange.emit(this.value)}updateValue(w){this.value=!this.mask||this.service.validationValue(w)||this.includeLiterals?this.service.rawValue(w):"",this.onChange(this.value)}updateInput(w="",X,tt){tt&&w===this.maskedValue||(this.maskedValue=w,this.renderer.setProperty(this.input.nativeElement,"value",this.maskOnFocus&&!this.focused&&this.emptyMask?"":w),void 0!==X&&this.setSelection(X,X))}extractChanges(w){return Object.keys(w).filter(X=>"rules"!==X).reduce((X,tt)=>(X[tt]=w[tt].currentValue,X),{})}updateService(w){const X=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},w);this.service.update(X)}setSelection(w=this.selection[0],X=this.selection[1]){this.focused&&ar(this.input,"setSelectionRange",w,X)}get emptyMask(){return this.service.maskRaw()===this.maskedValue}setFocusSelection(){const w=this.input.nativeElement.selectionStart,X=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;X>=0&&X<w&&(this.selection=[X,X],this.setSelection())}get focused(){return this.isFocused}set focused(w){if(this.isFocused!==w&&this.hostElement){const X=this.hostElement.nativeElement;w?this.renderer.addClass(X,Yl):this.renderer.removeClass(X,Yl),this.isFocused=w}}normalizeValue(w=this.value){const X=Hs(w);if(X&&"string"!=typeof w){if((0,o.X6Q)())throw new Error("The MaskedTextBox component supports only string values.");return String(w)}return X?w:""}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("input",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(el),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.zs3),o.Y36(o.sBO),o.Y36(oe.lw,8))},ye.\u0275cmp=o.Xpm({type:ye,selectors:[["kendo-maskedtextbox"]],viewQuery:function(w,X){if(1&w&&o.Gf(U,7),2&w){let tt;o.iGM(tt=o.CRH())&&(X.input=tt.first)}},hostVars:7,hostBindings:function(w,X){1&w&&o.NdJ("paste",function(cn){return X.pasteHandler(cn)})("input",function(cn){return X.inputHandler(cn)}),2&w&&(o.uIk("dir",X.direction),o.ekj("k-input",X.hostClasses)("k-maskedtextbox",X.hostClasses)("k-disabled",X.hostDisabledClass))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",size:"size",rounded:"rounded",fillMode:"fillMode",mask:"mask",value:"value",rules:"rules",prompt:"prompt",promptPlaceholder:"promptPlaceholder",includeLiterals:"includeLiterals",maskOnFocus:"maskOnFocus",maskValidation:"maskValidation",tabindex:"tabindex",tabIndex:"tabIndex"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoMaskedTextBox"],features:[o._Bn([el,{multi:!0,provide:T.JU,useExisting:(0,o.Gpc)(()=>ye)},{multi:!0,provide:T.Cf,useExisting:(0,o.Gpc)(()=>ye)},{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}]),o.TTD],decls:2,vars:14,consts:[["type","text","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(w,X){1&w&&o._UZ(0,"input",0,1),2&w&&(o.Q6J("id",X.focusableId)("tabindex",X.tabIndex)("disabled",X.disabled)("readonly",X.readonly)("kendoEventsOutsideAngular",o.qbA(8,gt,X.handleFocus,X.handleBlur,X.handleClick,X.handleDragDrop,X.handleDragDrop)),o.uIk("title",X.title)("aria-placeholder",X.mask)("aria-invalid",X.isControlInvalid))},dependencies:[q.nV],encapsulation:2}),ye})(),Xl=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.QY,q.OY,q.uv],q.QY,q.OY,q.uv]}),ye})(),kl=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,Xl,Ye.pc,Q.hJ]]}),ye})(),_l=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,Xl]]}),ye})(),fc=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.OY,q.uv]]}),ye})(),nl=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.OY,Ye.pc]]}),ye})(),Sa=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.OY]]}),ye})(),ql=(()=>{class ye{constructor(w){this.templateRef=w}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Rgc,8))},ye.\u0275dir=o.lG2({type:ye,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),ye})(),sc=(()=>{class ye{constructor(w){this.templateRef=w}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Rgc,8))},ye.\u0275dir=o.lG2({type:ye,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),ye})(),Aa=(()=>{class ye extends oe.Z1{}return ye.\u0275fac=function(){let Xe;return function(X){return(Xe||(Xe=o.n5z(ye)))(X||ye)}}(),ye.\u0275dir=o.lG2({type:ye,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[o.qOj]}),ye})(),al=(()=>{class ye extends Aa{constructor(w){super(),this.service=w}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(oe.oQ))},ye.\u0275dir=o.lG2({type:ye,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[o._Bn([{provide:Aa,useExisting:(0,o.Gpc)(()=>ye)}]),o.qOj]}),ye})();const Va="k-focus",vl={checkIcon:ae.eQZ,exclamationCircleIcon:ae.tjX,xIcon:ae.FZE};let ja=(()=>{class ye{constructor(w,X,tt,cn,xi,is){this.localizationService=w,this.ngZone=X,this.changeDetector=tt,this.renderer=cn,this.injector=xi,this.hostElement=is,this.focusableId=`k-${(0,q.M8)()}`,this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new o.vpe,this.inputFocus=new o.vpe,this.inputBlur=new o.vpe,this.onFocus=new o.vpe,this.onBlur=new o.vpe,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),(0,q.g$)(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),(0,q.g$)(this.inputFocus)&&(!this.focusChangedProgrammatically||this.focusChangedProgrammatically&&this.clearButtonClicked)&&this.ngZone.run(()=>{this.inputFocus.emit()}),this.ngZone.run(()=>{this.isFocused=!0}))},this.handleInputBlur=()=>{this.changeDetector.markForCheck(),((0,q.g$)(this.inputBlur)||kr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.handleInput=Zi=>{const ks=Zi.target,Io=(0,q.G6)(navigator.userAgent),dr=Io&&(ye=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(ye))(ks.value)?Zi.data:ks.value,[_r,Kr]=[ks.selectionStart,ks.selectionEnd];this.updateValue(dr),Io&&ks.setSelectionRange(_r,Kr)},this.ngChange=Zi=>{},this.ngTouched=()=>{},(0,we.s)(Xt),this.direction=w.rtl?"rtl":"ltr"}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}set rounded(w){const X=w||"medium";this.handleClasses(X,"rounded"),this._rounded=X}get rounded(){return this._rounded}set fillMode(w){const X=w||"solid";this.handleClasses(X,"fillMode"),this._fillMode=X}get fillMode(){return this._fillMode}set tabIndex(w){this.tabindex=w}get tabIndex(){return this.tabindex}get disabledClass(){return this.disabled}ngOnInit(){this.control=this.injector.get(T.a5,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(({rtl:w})=>{this.direction=w?"rtl":"ltr"})}ngAfterViewInit(){const w=this.hostElement.nativeElement;let X=!1,tt=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(w,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(w,"focusout",xi=>{this.isFocused&&(tt?(((ye,Xe)=>{for(;ye&&!Xe(ye);)ye=ye.parentNode;return ye})(xi.relatedTarget,Zi=>Zi===this.hostElement.nativeElement)||this.handleBlur(),tt=!1):!X&&!this.clearButtonClicked&&this.handleBlur())})),this.subscriptions.add(this.renderer.listen(w,"mouseenter",()=>{X=!0})),this.subscriptions.add(this.renderer.listen(w,"mouseleave",()=>{X=!1})),this.subscriptions.add(this.renderer.listen(w,"keydown",xi=>{tt=xi.keyCode===q.R8.Tab}))}),["size","rounded","fillMode"].forEach(xi=>{this.handleClasses(this[xi],xi)})}ngOnChanges(w){(w.disabled||w.readonly||w.value)&&this.checkClearButton()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}svgIcon(w){return vl[w]}focus(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const w=this.hostElement.nativeElement.querySelector(":focus");w&&w.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}clearTitle(){return this.localizationService.get("clear")}checkClearButton(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}clearValue(w){w&&w.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}writeValue(w){this.value=w,this.checkClearButton()}registerOnChange(w){this.ngChange=w}registerOnTouched(w){this.ngTouched=w}setDisabledState(w){this.changeDetector.markForCheck(),this.disabled=w}showErrorsInitial(){if(!this.control)return!1;const{invalid:w,dirty:X,touched:tt}=this.control;return w&&(X||tt)}showSuccessInitial(){if(!this.control)return!1;const{valid:w,dirty:X,touched:tt}=this.control;return w&&(X||tt)}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}get successIconClasses(){if(!this.successIcon)return"check"}get customSuccessIconClasses(){if(this.successIcon)return this.successIcon}get errorIconClasses(){if(!this.errorIcon)return"exclamation-circle"}get customIconClasses(){if(this.errorIcon)return this.errorIcon}get customClearButtonClasses(){if(this.clearButtonIcon)return this.clearButtonIcon}get clearButtonClass(){if(!this.clearButtonIcon)return"x"}get hasErrors(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}get isSuccessful(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}setSelection(w,X){this.isFocused&&ar(this.input,"setSelectionRange",w,X)}selectAll(){this.value&&this.setSelection(0,this.value.length)}updateValue(w){Pr(this.value,w)||this.ngZone.run(()=>{this.value=w,this.ngChange(w),this.valueChange.emit(w),this.checkClearButton(),this.changeDetector.markForCheck()})}get isFocused(){return this._isFocused}set isFocused(w){if(this._isFocused!==w&&this.hostElement){const X=this.hostElement.nativeElement;w&&!this.disabled?this.renderer.addClass(X,Va):this.renderer.removeClass(X,Va),this._isFocused=w}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("input",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(oe.oQ),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.zs3),o.Y36(o.SBq))},ye.\u0275cmp=o.Xpm({type:ye,selectors:[["kendo-textbox"]],contentQueries:function(w,X,tt){if(1&w&&(o.Suo(tt,ql,5),o.Suo(tt,sc,5)),2&w){let cn;o.iGM(cn=o.CRH())&&(X.suffixTemplate=cn.first),o.iGM(cn=o.CRH())&&(X.prefixTemplate=cn.first)}},viewQuery:function(w,X){if(1&w&&o.Gf(U,7),2&w){let tt;o.iGM(tt=o.CRH())&&(X.input=tt.first)}},hostVars:7,hostBindings:function(w,X){2&w&&(o.uIk("dir",X.direction),o.ekj("k-disabled",X.disabledClass)("k-textbox",X.hostClasses)("k-input",X.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[o._Bn([oe.oQ,{provide:oe.mM,useValue:"kendo.textbox"},{provide:T.JU,useExisting:(0,o.Gpc)(()=>ye),multi:!0},{provide:q.GX,useExisting:(0,o.Gpc)(()=>ye)}]),o.TTD],decls:10,vars:19,consts:function(){let Xe;return Xe=$localize`:kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear`,[["kendoTextBoxLocalizedMessages","","clear",Xe],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],["innerCssClass","k-input-validation-icon",3,"name","customFontClass","svgIcon",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"name","customFontClass","svgIcon"],["innerCssClass","k-input-validation-icon",3,"name","customFontClass","svgIcon"]]},template:function(w,X){1&w&&(o.GkF(0,0),o.TgZ(1,"span",1),o.YNc(2,kt,1,1,null,2),o.qZA(),o._UZ(3,"input",3,4),o.YNc(5,vn,2,6,"span",5),o.YNc(6,jn,1,3,"kendo-icon-wrapper",6),o.YNc(7,St,1,3,"kendo-icon-wrapper",6),o.TgZ(8,"span",7),o.YNc(9,ie,1,1,null,2),o.qZA()),2&w&&(o.xp6(2),o.Q6J("ngIf",X.prefixTemplate),o.xp6(1),o.Q6J("id",X.focusableId)("disabled",X.disabled)("readonly",X.readonly)("value",X.value)("kendoEventsOutsideAngular",o.kEZ(15,je,X.handleInputFocus,X.handleInputBlur,X.handleInput)),o.uIk("tabindex",X.disabled?void 0:X.tabindex)("placeholder",X.placeholder)("title",X.title)("maxlength",X.maxlength)("aria-invalid",X.isControlInvalid),o.xp6(2),o.Q6J("ngIf",X.showClearButton),o.xp6(1),o.Q6J("ngIf",X.hasErrors),o.xp6(1),o.Q6J("ngIf",X.isSuccessful),o.xp6(2),o.Q6J("ngIf",X.suffixTemplate))},dependencies:[Ye.ZS,al,pe.O5,pe.tP,q.nV],encapsulation:2}),ye})(),Gc=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({}),ye})(),Bl=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.OY,Gc,Ye.pc],q.OY]}),ye})(),Jn=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez,q.OY,Gc],q.OY]}),ye})(),ce=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[kl,nl,pe.ez,ct.Zj,q.QY,Q.hJ,Ye.pc]]}),ye})(),nn=(()=>{class ye{constructor(w,X){this.renderer=w,this.hostElement=X,this.kendoClass=!0,this._size="medium",this._rounded="medium"}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}set rounded(w){const X=w||"medium";this.handleClasses(X,"rounded"),this._rounded=X}get rounded(){return this._rounded}ngAfterViewInit(){["size","rounded"].forEach(X=>{this.handleClasses(this[X],X)})}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("checkbox",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Qsj),o.Y36(o.SBq))},ye.\u0275dir=o.lG2({type:ye,selectors:[["input","kendoCheckBox",""]],hostVars:2,hostBindings:function(w,X){2&w&&o.ekj("k-checkbox",X.kendoClass)},inputs:{size:"size",rounded:"rounded"}}),ye})(),hi=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez]]}),ye})(),cs=(()=>{class ye{constructor(w,X){this.renderer=w,this.hostElement=X,this.kendoClass=!0,this._size="medium",(0,we.s)(Xt)}set size(w){const X=w||"medium";this.handleClasses(X,"size"),this._size=X}get size(){return this._size}ngAfterViewInit(){["size"].forEach(X=>{this.handleClasses(this[X],X)})}handleClasses(w,X){const tt=this.hostElement.nativeElement,cn=cr("radio",X,this[X],w);cn.toRemove&&this.renderer.removeClass(tt,cn.toRemove),cn.toAdd&&this.renderer.addClass(tt,cn.toAdd)}}return ye.\u0275fac=function(w){return new(w||ye)(o.Y36(o.Qsj),o.Y36(o.SBq))},ye.\u0275dir=o.lG2({type:ye,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(w,X){2&w&&o.ekj("k-radio",X.kendoClass)},inputs:{size:"size"}}),ye})(),qs=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez]]}),ye})(),Fu=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez]]}),ye})(),Cd=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[Q.hJ,pe.ez,vt.cy,Ye.pc]]}),ye})(),rc=(()=>{class ye{}return ye.\u0275fac=function(w){return new(w||ye)},ye.\u0275mod=o.oAB({type:ye}),ye.\u0275inj=o.cJS({imports:[[pe.ez],Jn,Bl,kl,_l,fc,nl,Sa,ce,hi,qs,Fu,Cd]}),ye})()},87160:(fn,ve,_)=>{"use strict";_.d(ve,{UB:()=>ct,aJ:()=>Ye,a_:()=>Q,o0:()=>ln,p6:()=>ee,uU:()=>Ct});var e=_(94650),o=_(13710),T=_(38811);const A={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310480,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},G="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",F={NoCurrency:`Solution: ${G}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${G}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${G}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${G}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${G}#toc-no-first-day`,NoGMTInfo:`Solution: ${G}#toc-no-gmt-info`,NoLocale:`Solution: ${G}#toc-no-locale`,NoValidCurrency:`Solution: ${G}#toc-no-valid-currency`,NoWeekData:`Solution: ${G}#toc-no-week-data`};function R(Je){return function(...Ft){try{return Je(...Ft)}catch(st){throw st.message=function N(Je){const Ft=Je.message,st=F[Object.keys(F).filter(Ze=>0===Ft.indexOf(Ze))[0]];return st?`${Ft} ${st}`:Ft}(st),st}}}const P=R(T.Jp),y=R(T.F3),j=R(T.LG),Y=R(T.WU),ee=R(T.p6),se=R(T.uf),Se=(R(T.zD),R(T.$U)),te=R(T.sG),oe=R(T.p3),q=R(T.y0),we=R(T.BB),ae=R(T.Ak),Q=Je=>T.a_(Je),Ee=/_/g;let Ye=(()=>{class Je{constructor(){this.changes=new e.vpe,(0,o.s)(A)}notify(){this.changes.emit()}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275prov=e.Yz7({token:Je,factory:function(st){let Ze=null;return Ze=st?new st:function ke(Je){return new ct(Je)}(e.LFG(e.soG)),Ze},providedIn:"root"}),Je})(),ct=(()=>{class Je extends Ye{constructor(st){super(),this.localeId=st}get localeId(){return this.locale}set localeId(st){const Ze=st.replace(Ee,"-");Ze!==this.locale&&(this.locale=Ze,this.notify())}format(st,...Ze){return Y(st,Ze,this.localeId)}toString(st,Ze,$e){return we(st,Ze,$e||this.localeId)}formatDate(st,Ze,$e){return ee(st,Ze,$e||this.localeId)}parseDate(st,Ze,$e){return te(st,Ze,$e||this.localeId)}parseNumber(st,Ze,$e){return oe(st,$e||this.localeId,Ze)}formatNumber(st,Ze,$e){return se(st,Ze,$e||this.localeId)}dateFieldName(st,Ze){return y(st,Ze||this.localeId)}dateFormatNames(st,Ze){return P(Ze||this.localeId,st)}splitDateFormat(st,Ze){return q(st,Ze||this.localeId)}numberSymbols(st){return Se(st||this.localeId)}firstDay(st){return j(st||this.localeId)}weekendRange(st){return ae(st||this.localeId)}}return Je.\u0275fac=function(st){return new(st||Je)(e.LFG(e.soG))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),Ct=(()=>{class Je{constructor(st){this.intlService=st}transform(st,Ze="",$e){return(st=this.normalize(st))&&this.intlService.formatDate(st,Ze,$e)}normalize(st){return st&&"string"==typeof st?st=this.intlService.parseDate(st):st&&(Je=>!isNaN(Je-parseFloat(Je)))(st)&&(st=new Date(parseFloat(st))),st}}return Je.\u0275fac=function(st){return new(st||Je)(e.Y36(Ye,16))},Je.\u0275pipe=e.Yjl({name:"kendoDate",type:Je,pure:!0}),Je})(),ln=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})()},5651:(fn,ve,_)=>{"use strict";_.d(ve,{Z1:()=>N,ez:()=>F,lw:()=>R,mM:()=>P,oQ:()=>y});var e=_(94650),o=_(61135),T=_(35684),A=_(54004),G=_(18505);let F=(()=>{class j{constructor(){this.changes=new o.X({rtl:void 0})}notify(ee){this.changes.next({rtl:ee})}get(ee){}}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac}),j})(),N=(()=>{class j{get override(){return!1}ngOnChanges(ee){this.register(ee),Object.keys(ee).some(se=>!ee[se].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe((0,T.T)(1)).subscribe(()=>this.register(this))}register(ee){Object.keys(ee).forEach(he=>this.service.register(he,this[he],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275dir=e.lG2({type:j,features:[e.TTD]}),j})();const R=new e.OlP("Kendo UI Right-to-Left token"),P=new e.OlP("Localization key prefix");let y=(()=>{class j{constructor(ee,se,he){this.prefix=ee,this.messageService=se,this._rtl=he,this.changes=new o.X({rtl:this._rtl}),this.dictionary={},se&&(this.subscription=se.changes.pipe((0,A.U)(({rtl:Se})=>void 0!==Se?Se:this._rtl),(0,G.b)(Se=>this._rtl=Se)).subscribe(Se=>{this.dictionary={},this.changes.next({rtl:Se})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(ee){const se=this.key(ee);return this.dictionary[se]}register(ee,se,he=!1){const Se=this.key(ee);let te=se;if(!he){if(Object.hasOwnProperty.call(this.dictionary,Se))return;te=this.defaultValue(Se,se)}this.dictionary[Se]=te}notifyChanges(){this.changes.next({rtl:this.rtl})}key(ee){return this.prefix+"."+ee}defaultValue(ee,se){if(!this.messageService)return se;const he=this.messageService.get(ee);return void 0===he?se:he}}return j.\u0275fac=function(ee){return new(ee||j)(e.LFG(P),e.LFG(F,8),e.LFG(R,8))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac}),j})()},11291:(fn,ve,_)=>{"use strict";_.d(ve,{_n:()=>Ue,q8:()=>oe,r3:()=>ln});var e=_(94650),o=_(8416),T=_(5651),A=_(36895),F=(_(24006),_(13710)),R=(_(69751),_(50727));const j=["*"];function Y(Je,Ft){if(1&Je&&(e.TgZ(0,"span",3),e._uU(1),e.qZA()),2&Je){const st=e.oxw();e.xp6(1),e.hij("(",st.textFor("optional"),")")}}let oe=(()=>{class Je{constructor(st,Ze,$e){this.label=st,this.renderer=Ze,this.zone=$e,this.labelClass=!0,this.handleClick=()=>{const Oe=this.getFocusableComponent();Oe&&((Je=>Je.wrapper&&("KENDO-UPLOAD"===Je.wrapper.tagName||"KENDO-FILESELECT"===Je.wrapper.tagName))(Oe)&&Oe.fileSelectInput.nativeElement.click(),Oe.focus&&Oe.focus())}}get labelFor(){if("string"==typeof this.for)return this.for;if(!(0,o.X_)())return null;const st=this.getFocusableComponent()||{};return(Je=>Je instanceof HTMLElement)(st)&&!((Je,Ft)=>Je.hasAttribute("id"))(st)&&this.renderer.setAttribute(st,"id",`k-${(0,o.M8)()}`),st.focusableId||st.id||null}ngAfterViewInit(){this.setAriaLabelledby(),this.zone.runOutsideAngular(()=>this.clickListener=this.renderer.listen(this.label.nativeElement,"click",this.handleClick))}ngOnDestroy(){this.clickListener&&this.clickListener()}setAriaLabelledby(){if(!(0,o.X_)())return;const st=this.getFocusableComponent();if(st&&st.focusableId){const $e=(Je=>{if(!Je)return null;let Ft=Je;for(;Ft.parentElement;)Ft=Ft.parentElement;return Ft})(this.label.nativeElement).querySelector(`#${st.focusableId}`),Oe=this.label.nativeElement,Nt=Oe.id||`k-${(0,o.M8)()}`;if(Oe.getAttribute("id")||this.renderer.setAttribute(Oe,"id",Nt),st.focusableId.startsWith("k-editor")&&st.iframe&&st.contentAreaLoaded.subscribe(()=>{this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.renderer.setAttribute(st.container.element.nativeElement.contentDocument.body.firstElementChild,"aria-label",Oe.textContent)})})}),!$e)return;this.renderer.setAttribute($e,"aria-labelledby",Nt)}}getFocusableComponent(){const st=this.for;return st&&void 0!==st.focus?st:null}}return Je.\u0275fac=function(st){return new(st||Je)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},Je.\u0275dir=e.lG2({type:Je,selectors:[["label","for",""]],hostVars:3,hostBindings:function(st,Ze){2&st&&(e.uIk("for",Ze.labelFor),e.ekj("k-label",Ze.labelClass))},inputs:{for:"for"}}),Je})(),q=(()=>{class Je extends T.Z1{}return Je.\u0275fac=function(){let Ft;return function(Ze){return(Ft||(Ft=e.n5z(Je)))(Ze||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["kendo-label-messages-base"]],inputs:{optional:"optional"},features:[e.qOj]}),Je})(),we=(()=>{class Je extends q{constructor(st){super(),this.service=st}}return Je.\u0275fac=function(st){return new(st||Je)(e.Y36(T.oQ))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","kendoLabelLocalizedMessages",""],["","kendoFloatingLabelLocalizedMessages",""]],features:[e._Bn([{provide:q,useExisting:(0,e.Gpc)(()=>Je)}]),e.qOj]}),Je})(),pe=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})();const Ee={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310675,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Ct=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[A.ez,pe],pe]}),Je})(),Ue=(()=>{class Je{constructor(st,Ze,$e){this.elementRef=st,this.renderer=Ze,this.localization=$e,this.subscriptions=new R.w0,(0,F.s)(Ee),this.direction=$e.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}ngAfterContentInit(){if(this.for)return void(this.control=this.for);const st=(Je=>this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select"))();if(st)return st.hasAttribute("id")||this.renderer.setAttribute(st,"id",`k-${(0,o.M8)()}`),void(this.control=st);this.control=this.kendoInput}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:st})=>{this.direction=st?"rtl":"ltr"}))}ngAfterViewInit(){this.labelDirective.setAriaLabelledby()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(st){return this.localization.get(st)}}return Je.\u0275fac=function(st){return new(st||Je)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(T.oQ))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["kendo-label"]],contentQueries:function(st,Ze,$e){if(1&st&&e.Suo($e,o.GX,7),2&st){let Oe;e.iGM(Oe=e.CRH())&&(Ze.kendoInput=Oe.first)}},viewQuery:function(st,Ze){if(1&st&&e.Gf(oe,7),2&st){let $e;e.iGM($e=e.CRH())&&(Ze.labelDirective=$e.first)}},hostVars:1,hostBindings:function(st,Ze){2&st&&e.uIk("dir",Ze.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[e._Bn([T.oQ,{provide:T.mM,useValue:"kendo.label"}])],ngContentSelectors:j,decls:5,vars:5,consts:function(){let Ft;return Ft=$localize`:kendo.label.optional|The text for the optional segment of a Label component:Optional`,[["kendoLabelLocalizedMessages","","optional",Ft],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(st,Ze){1&st&&(e.F$t(),e.GkF(0,0),e.TgZ(1,"label",1),e._uU(2),e.YNc(3,Y,2,1,"span",2),e.qZA(),e.Hsn(4)),2&st&&(e.xp6(1),e.ekj("k-label-empty",!Ze.text),e.Q6J("for",Ze.control),e.xp6(1),e.hij(" ",Ze.text,""),e.xp6(1),e.Q6J("ngIf",Ze.optional))},dependencies:[we,oe,A.O5],encapsulation:2}),Je})(),ln=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[A.ez,pe],Ct,pe]}),Je})()},82618:(fn,ve,_)=>{"use strict";_.d(ve,{Du:()=>sl,JC:()=>Mi,Pb:()=>Hr,Us:()=>Ko,Xj:()=>lo,Yw:()=>Fi,ZH:()=>or,tA:()=>Js,vd:()=>fo,xu:()=>Xu,z1:()=>Ce,zy:()=>rr});var e=_(94650),o=_(5651),T=_(8416),A=_(13710),G=_(37340),F=_(77579),N=_(61135),R=_(50727),y=(_(39646),_(16010)),j=_(28942),Y=_(36895),q=(_(91005),_(82722),_(54004),_(18505),_(39300),_(63900),_(95698)),we=_(78833),ae=_(73494);_(53454);const pe=["header"],Ee=["contentWrapper"];function ke(le,Rt){if(1&le&&e._UZ(0,"kendo-icon-wrapper",6),2&le){const E=e.oxw();e.Q6J("name",E.iconClasses)("customFontClass",E.customIconClasses)("svgIcon",E.svgIcon)}}function Ye(le,Rt){if(1&le&&e._UZ(0,"img",7),2&le){const E=e.oxw();e.Q6J("src",E.imageUrl,e.LSH)}}function ct(le,Rt){if(1&le&&(e.ynx(0),e.TgZ(1,"span",8),e._uU(2),e.qZA(),e.BQk()),2&le){const E=e.oxw();e.xp6(2),e.Oqu(E.title)}}function ut(le,Rt){}const Ct=function(le,Rt,E,de,zt,En,Bi,Ts,fs,Do,Qo){return{title:le,id:Rt,icon:E,iconClass:de,svgIcon:zt,imageUrl:En,selected:Bi,expanded:Ts,disabled:fs,focused:Do,content:Qo}},Ue=function(le){return{item:le}};function vt(le,Rt){if(1&le&&e.YNc(0,ut,0,0,"ng-template",9),2&le){const E=e.oxw();e.Q6J("ngTemplateOutlet",E.titleTemplate)("ngTemplateOutletContext",e.VKq(14,Ue,e.rFY(2,Ct,[E.title,E.id,E.icon,E.iconClass,E.svgIcon,E.imageUrl,E.selected,E.expanded,E.disabled,E.focused,E.content])))}}function ln(le,Rt){if(1&le&&e._UZ(0,"kendo-icon-wrapper",10),2&le){const E=e.oxw();e.Q6J("name",E.expanded?"arrow-chevron-up":"chevron-down")("svgIcon",E.arrowSVGIcon)("innerCssClass",E.dirInnerCssClasses)}}function Je(le,Rt){if(1&le&&(e.TgZ(0,"div",14),e.Hsn(1),e.qZA()),2&le){const E=e.oxw(2);e.Udp("overflow",E.contentOverflow)("height",E.contentHeight)}}function Ft(le,Rt){}const st=function(le,Rt,E,de,zt,En){return{title:le,id:Rt,icon:E,imageUrl:de,disabled:zt,content:En}},Ze=function(le){return{$implicit:le}};function $e(le,Rt){if(1&le&&(e.TgZ(0,"div",15),e.YNc(1,Ft,0,0,"ng-template",9),e.qZA()),2&le){const E=e.oxw(2);e.Udp("overflow",E.contentOverflow)("height",E.contentHeight),e.xp6(1),e.Q6J("ngTemplateOutlet",E.contentTemplate.first.templateRef)("ngTemplateOutletContext",e.VKq(13,Ze,e.HTZ(6,st,E.title,E.id,E.icon,E.imageUrl,E.disabled,E.content)))}}function Oe(le,Rt){if(1&le&&e._UZ(0,"kendo-panelbar-item",18),2&le){const E=e.oxw().$implicit,de=e.oxw(3);e.Q6J("title",E.title)("id",E.id)("icon",E.icon)("iconClass",E.iconClass)("svgIcon",E.svgIcon)("imageUrl",E.imageUrl)("selected",!!E.selected)("expanded",!!E.expanded)("disabled",!!E.disabled)("template",de.template)("items",E.children)("content",E.content)}}function Nt(le,Rt){if(1&le&&(e.ynx(0),e.YNc(1,Oe,1,12,"kendo-panelbar-item",17),e.BQk()),2&le){const E=Rt.$implicit;e.xp6(1),e.Q6J("ngIf",!E.hidden)}}function xt(le,Rt){if(1&le&&(e.TgZ(0,"div",14),e.YNc(1,Nt,2,1,"ng-container",16),e.qZA()),2&le){const E=e.oxw(2);e.Udp("overflow",E.contentOverflow)("height",E.contentHeight),e.xp6(1),e.Q6J("ngForOf",E.items)}}function Ot(le,Rt){}function Kt(le,Rt){if(1&le&&e._uU(0),2&le){const E=e.oxw(3);e.Oqu(E.content)}}function $t(le,Rt){if(1&le&&(e.TgZ(0,"div",15),e.YNc(1,Ot,0,0,"ng-template",9),e.YNc(2,Kt,1,1,"ng-template",19),e.qZA()),2&le){const E=e.oxw(2);e.Udp("overflow",E.contentOverflow)("height",E.contentHeight),e.xp6(1),e.Q6J("ngTemplateOutlet",E.template)("ngTemplateOutletContext",e.VKq(14,Ze,e.HTZ(7,st,E.title,E.id,E.icon,E.imageUrl,E.disabled,E.content))),e.xp6(1),e.Q6J("ngIf",!E.template)}}function rt(le,Rt){if(1&le&&(e.TgZ(0,"div",null,11),e.YNc(2,Je,2,4,"div",12),e.YNc(3,$e,2,15,"div",13),e.YNc(4,xt,2,5,"div",12),e.YNc(5,$t,3,16,"div",13),e.qZA()),2&le){const E=e.oxw();e.Q6J("@toggle",E.state),e.uIk("role","group")("aria-hidden",!E.disabled&&!E.expanded),e.xp6(2),e.Q6J("ngIf",E.hasChildItems&&!(null!=E.items&&E.items.length)),e.xp6(1),e.Q6J("ngIf",E.hasContent&&!E.content),e.xp6(1),e.Q6J("ngIf",E.hasItems),e.xp6(1),e.Q6J("ngIf",E.content)}}const We=[[["kendo-panelbar-item"]]],yt=["kendo-panelbar-item"];function it(le,Rt){1&le&&e.Hsn(0,0,["*ngIf","contentChildItems && !items"])}function It(le,Rt){if(1&le&&e._UZ(0,"kendo-panelbar-item",4),2&le){const E=e.oxw().$implicit,de=e.oxw(2);e.Q6J("title",E.title)("id",E.id)("icon",E.icon)("iconClass",E.iconClass)("svgIcon",E.svgIcon)("imageUrl",E.imageUrl)("selected",!!E.selected)("expanded",!!E.expanded)("disabled",!!E.disabled)("template",de.templateRef)("items",E.children)("content",E.content)}}function Tt(le,Rt){if(1&le&&(e.ynx(0),e.YNc(1,It,1,12,"kendo-panelbar-item",3),e.BQk()),2&le){const E=Rt.$implicit;e.xp6(1),e.Q6J("ngIf",!E.hidden)}}function wn(le,Rt){if(1&le&&e.YNc(0,Tt,2,1,"ng-container",2),2&le){const E=e.oxw();e.Q6J("ngForOf",E.items)}}const qn=["kendoTabStripScrollableButton",""],ki=["kendoTabStripTab",""];function Si(le,Rt){if(1&le&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&le){const E=e.oxw();e.xp6(1),e.Oqu(E.tab.title)}}function Ni(le,Rt){}function pn(le,Rt){if(1&le&&(e.TgZ(0,"span",2),e.YNc(1,Ni,0,0,"ng-template",3),e.qZA()),2&le){const E=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",null==E.tab.tabTitle?null:E.tab.tabTitle.templateRef)}}function Vn(le,Rt){if(1&le){const E=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(E);const zt=e.oxw();return e.KtG(zt.closeTab(zt.index))}),e.qZA()}if(2&le){const E=e.oxw();e.Q6J("icon",E.closeButtonClasses)("iconClass",E.customCloseButtonClasses)("svgIcon",E.closeSVGIconClass)("title",E.closeButtonTitle),e.uIk("aria-label",E.closeButtonTitle)}}const ot=["tablist"],en=["prevScrollButton"],lt=["nextScrollButton"],In=["tabHeaderContainer"];function rn(le,Rt){1&le&&e.GkF(0)}function Qt(le,Rt){1&le&&e.GkF(0)}function yi(le,Rt){if(1&le&&(e.ynx(0),e.YNc(1,rn,1,0,"ng-container",5),e.YNc(2,Qt,1,0,"ng-container",5),e.BQk()),2&le){e.oxw();const E=e.MAs(4),de=e.MAs(6);e.xp6(1),e.Q6J("ngTemplateOutlet",E),e.xp6(1),e.Q6J("ngTemplateOutlet",de)}}function Li(le,Rt){1&le&&e.GkF(0)}function An(le,Rt){1&le&&e.GkF(0)}function Ht(le,Rt){if(1&le&&(e.ynx(0),e.YNc(1,Li,1,0,"ng-container",5),e.YNc(2,An,1,0,"ng-container",5),e.BQk()),2&le){e.oxw();const E=e.MAs(6),de=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",E),e.xp6(1),e.Q6J("ngTemplateOutlet",de)}}function Pn(le,Rt){if(1&le){const E=e.EpF();e.TgZ(0,"span",11,12),e.NdJ("tabScroll",function(zt){e.CHM(E);const En=e.oxw(2);return e.KtG(En.tabScroll.emit(zt))})("onClick",function(zt){e.CHM(E);const En=e.oxw(2);return e.KtG(En.onScrollButtonClick(zt))}),e.qZA()}if(2&le){const E=e.oxw(2);e.Q6J("scrollable",E.scrollable)("tabPosition",E.tabPosition)("prev",!0)("title",E.localization.get("previousTabButton"))}}function Sn(le,Rt){if(1&le){const E=e.EpF();e.ynx(0),e.TgZ(1,"li",13,14),e.NdJ("tabClose",function(zt){e.CHM(E);const En=e.oxw(2);return e.KtG(En.tabClose.emit(zt))})("click",function(zt){const Bi=e.CHM(E).index,Ts=e.oxw(2);return e.KtG(Ts.onTabClick(zt,Bi))}),e.qZA(),e.BQk()}if(2&le){const E=Rt.$implicit,de=Rt.index,zt=e.oxw(2);e.xp6(1),e.Q6J("ngClass",E.cssClass)("ngStyle",E.cssStyle)("tab",E)("index",de)("tabStripClosable",zt.closable)("tabStripCloseIcon",zt.closeIcon)("customTabstripCloseIcon",zt.closeIconClass)("closeSVGIcon",zt.closeSVGIcon)("id","k-tabstrip-tab-"+de),e.uIk("aria-controls",E.selected?"k-tabstrip-tabpanel-"+de:void 0)}}function Fn(le,Rt){if(1&le){const E=e.EpF();e.TgZ(0,"span",11,15),e.NdJ("tabScroll",function(zt){e.CHM(E);const En=e.oxw(2);return e.KtG(En.tabScroll.emit(zt))})("onClick",function(zt){e.CHM(E);const En=e.oxw(2);return e.KtG(En.onScrollButtonClick(zt))}),e.qZA()}if(2&le){const E=e.oxw(2);e.Q6J("scrollable",E.scrollable)("tabPosition",E.tabPosition)("prev",!1)("title",E.localization.get("nextTabButton"))}}function Cn(le,Rt){if(1&le&&(e.TgZ(0,"div",6),e.YNc(1,Pn,2,4,"span",7),e.TgZ(2,"ul",8,9),e.YNc(4,Sn,3,10,"ng-container",10),e.qZA(),e.YNc(5,Fn,2,4,"span",7),e.qZA()),2&le){const E=e.oxw();e.Q6J("ngClass",E.itemsWrapperClass),e.xp6(1),e.Q6J("ngIf",E.hasScrollButtons),e.xp6(1),e.Udp("justify-content",E.tabsAlignmentStyles)("width",E.tabListWidth)("height",E.tabListHeight),e.uIk("aria-orientation","left"===E.tabPosition||"right"===E.tabPosition?"vertical":"horizontal"),e.xp6(2),e.Q6J("ngForOf",E.tabs),e.xp6(1),e.Q6J("ngIf",E.hasScrollButtons)}}function Un(le,Rt){}function fi(le,Rt){if(1&le&&(e.TgZ(0,"div",18),e.YNc(1,Un,0,0,"ng-template",19),e.qZA()),2&le){const E=e.oxw(),de=E.$implicit,zt=E.index,En=e.oxw(2);e.Q6J("@state",de.selected&&En.animate?"active":"inactive")("ngClass",!En.keepTabContent||de.selected?"k-content k-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+zt),e.uIk("aria-hidden",!de.selected)("aria-expanded",de.selected)("aria-labelledby","k-tabstrip-tab-"+zt)("aria-disabled",de.disabled),e.xp6(1),e.Q6J("ngTemplateOutlet",null==de.tabContent?null:de.tabContent.templateRef)}}function bi(le,Rt){if(1&le&&e.YNc(0,fi,2,9,"div",17),2&le){const E=Rt.$implicit,de=e.oxw(2);e.Q6J("ngIf",E.selected||de.keepTabContent)}}function Zn(le,Rt){if(1&le&&e.YNc(0,bi,1,1,"ng-template",16),2&le){const E=e.oxw();e.Q6J("ngForOf",E.tabs)}}function mn(le,Rt){if(1&le){const E=e.EpF();e.TgZ(0,"kendo-resize-sensor",20),e.NdJ("resize",function(){e.CHM(E);const zt=e.oxw();return e.KtG(zt.onResize())}),e.qZA()}}const z={name:"@progress/kendo-angular-layout",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310648,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};var Ce=(()=>{return(le=Ce||(Ce={}))[le.Single=0]="Single",le[le.Full=1]="Full",le[le.Multiple=2]="Multiple",le[le.Default=2]="Default",Ce;var le})();let on=0,Hn=(()=>{class le{constructor(){this.parentSource=new F.x,this.keepContentSource=new N.X(!1),this.childSource=new F.x,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable(),this.keepContent$=this.keepContentSource.asObservable(),this.pbId=on++}onKeepContent(E){this.keepContentSource.next(E)}onSelect(E){this.childSource.next(E)}onFocus(){this.parentSource.next(!0)}onBlur(){this.parentSource.next(!1)}}return le.\u0275fac=function(E){return new(E||le)},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac}),le})(),Mi=(()=>{class le{constructor(E){this.templateRef=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.Rgc))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoPanelBarContent",""]]}),le})(),Fi=(()=>{class le{constructor(E){this.templateRef=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.Rgc,8))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoPanelBarItemTitle",""]]}),le})(),os=0;const _i=le=>le.map(Rt=>(Rt.id||(Rt.id="default-"+os++),Rt.children&&(Rt.children=_i(Rt.children)),Rt)),Wi=le=>null!=le,Ks=le=>le===T.R8.ArrowLeft||le===T.R8.ArrowRight,So=le=>le===T.R8.ArrowUp||le===T.R8.ArrowDown,da=le=>le===T.R8.PageUp||le===T.R8.PageDown||le===T.R8.Home||le===T.R8.End,Qs=/^(?:a|input|select|option|textarea|button|object)$/i,Pr=le=>{if(le.tagName){const Rt=le.tagName.toLowerCase(),E=le.getAttribute("tabIndex"),de="-1"===E;let zt=null!==E&&!de;return Qs.test(Rt)&&(zt=!le.disabled&&!de),zt}return!1},kr=(le,Rt)=>Boolean((le=>String(le).trim().split(" "))(le.className).find(E=>E===Rt));let cr=0,fo=(()=>{class le{constructor(E,de,zt,En){this.parent=E,this.eventService=de,this.element=zt,this.renderer=En,this.id="default-"+cr++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasItems=!1,this.hasContent=!1,this.state="inactive",this.role="treeitem",this.titleAttribute=null,this.kItemClass=!0,this.arrowUpSVGIcon=y.Z5X,this.arrowDownSVGIcon=y.MWc,this.focused=!1,this.wrapperFocused=!1,this.subscriptions=new R.w0(()=>{}),this._expanded=!1,this.subscriptions.add(de.parent$.subscribe(Bi=>this.onWrapperFocusChange(Bi))),this.subscriptions.add(de.keepContent$.subscribe(Bi=>this.keepContent=Bi)),this.wrapperFocused=!!E&&E.focused,this.level=this.parent?this.parent.level+1:0}set svgIcon(E){if((0,e.X6Q)()&&E&&this.icon&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=E}get svgIcon(){return this._svgIcon}set expanded(E){this.state=E?this.animate?"active":"activeWithoutAnimation":"inactive",this.keepContent||this.toggleExpandedChildAnimations(E),this._expanded=E}get expanded(){return this._expanded}get animate(){return this.eventService.animate}get kStateDefaultClass(){return!this.disabled}get kStateExpandedClass(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)}get itemId(){return"k-panelbar-"+this.eventService.pbId+"-item-"+this.id}get ariaExpanded(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null}get ariaSelected(){return!this.disabled&&this.selected}get ariaDisabled(){return!!this.disabled||null}get headerClass(){return!this.parent||null}get titleTemplate(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0}headerHeight(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}ngOnInit(){this.addLevelClass()}ngAfterContentChecked(){this.hasItems=this.items&&this.items.filter(E=>!E.hidden).length>0,this.hasChildItems=this.contentItems.filter(E=>E!==this).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}ngAfterViewChecked(){this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(E=>E!==this)}ngOnDestroy(){this.subscriptions.unsubscribe()}onItemAction(){this.disabled||this.eventService.onSelect(this)}onItemClick(E){Pr(E.target)||this.onItemAction()}get iconClasses(){if(this.icon)return`${this.icon}`}get customIconClasses(){if(this.iconClass)return`${this.iconClass}`}get dirInnerCssClasses(){return"k-panelbar-toggle "+(this.expanded?"k-panelbar-collapse":"k-panelbar-expand")}get arrowSVGIcon(){return this.expanded?this.arrowUpSVGIcon:this.arrowDownSVGIcon}serialize(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,svgIcon:this.svgIcon,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}subTreeViewItems(){let E=[];return this.viewChildItems.forEach(de=>{E=E.concat(de.subTreeViewItems()),E.push(de)}),E}validateConfiguration(){if((0,e.X6Q)()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}toggleAnimationState(E){this.animate&&(this.state=E&&this.eventService.expandMode!==Ce.Single?"active":"activeWithoutAnimation")}toggleExpandedChildAnimations(E){this.childrenItems&&this.childrenItems.forEach(de=>{de.expanded&&(de.toggleAnimationState(E),de.toggleExpandedChildAnimations(E))})}addLevelClass(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,`k-level-${this.level}`)}onWrapperFocusChange(E){this.wrapperFocused=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(le,13),e.Y36(Hn),e.Y36(e.SBq),e.Y36(e.Qsj))},le.\u0275cmp=e.Xpm({type:le,selectors:[["kendo-panelbar-item"]],contentQueries:function(E,de,zt){if(1&E&&(e.Suo(zt,le,4),e.Suo(zt,Mi,4),e.Suo(zt,Fi,4)),2&E){let En;e.iGM(En=e.CRH())&&(de.contentItems=En),e.iGM(En=e.CRH())&&(de.contentTemplate=En),e.iGM(En=e.CRH())&&(de.titleTemplates=En)}},viewQuery:function(E,de){if(1&E&&(e.Gf(pe,5),e.Gf(Ee,5),e.Gf(le,5)),2&E){let zt;e.iGM(zt=e.CRH())&&(de.header=zt.first),e.iGM(zt=e.CRH())&&(de.contentWrapper=zt.first),e.iGM(zt=e.CRH())&&(de.viewChildItems=zt)}},hostVars:14,hostBindings:function(E,de){2&E&&(e.Ikx("id",de.itemId),e.uIk("role",de.role)("title",de.titleAttribute)("aria-expanded",de.ariaExpanded)("aria-selected",de.ariaSelected)("aria-disabled",de.ariaDisabled),e.ekj("k-panelbar-item",de.kItemClass)("k-state-default",de.kStateDefaultClass)("k-expanded",de.kStateExpandedClass)("k-panelbar-header",de.headerClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",svgIcon:"svgIcon",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:yt,decls:8,vars:14,consts:[[3,"click"],["header",""],["innerCssClass","k-panelbar-item-icon",3,"name","customFontClass","svgIcon",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],[3,"name","svgIcon","innerCssClass",4,"ngIf"],["innerCssClass","k-panelbar-item-icon",3,"name","customFontClass","svgIcon"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"name","svgIcon","innerCssClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(E,de){1&E&&(e.F$t(We),e.TgZ(0,"span",0,1),e.NdJ("click",function(En){return de.onItemClick(En)}),e.YNc(2,ke,1,3,"kendo-icon-wrapper",2),e.YNc(3,Ye,1,1,"img",3),e.YNc(4,ct,3,1,"ng-container",4),e.YNc(5,vt,1,16,null,4),e.YNc(6,ln,1,3,"kendo-icon-wrapper",5),e.qZA(),e.YNc(7,rt,6,7,"div",4)),2&E&&(e.ekj("k-link",!0)("k-selected",!de.disabled&&de.selected)("k-focus",de.focused&&de.wrapperFocused)("k-disabled",de.disabled),e.xp6(2),e.Q6J("ngIf",de.icon||de.iconClass||de.svgIcon),e.xp6(1),e.Q6J("ngIf",de.imageUrl),e.xp6(1),e.Q6J("ngIf",!de.titleTemplate),e.xp6(1),e.Q6J("ngIf",de.titleTemplate),e.xp6(1),e.Q6J("ngIf",de.hasChildItems||de.hasContent),e.xp6(1),e.Q6J("ngIf",de.keepContent||!de.disabled&&de.expanded&&(de.hasChildItems||de.hasContent)))},dependencies:[j.ZS,le,Y.O5,Y.tP,Y.sg],encapsulation:2,data:{animation:[(0,G.X$)("toggle",[(0,G.SB)("inactive",(0,G.oB)({display:"none"})),(0,G.eR)("* => active",[(0,G.oB)({overflow:"hidden",display:"block",height:0}),(0,G.jt)(200,(0,G.oB)({height:G.l3}))]),(0,G.eR)("active => *",[(0,G.oB)({overflow:"hidden",height:G.l3}),(0,G.jt)(200,(0,G.oB)({height:0,display:"none"}))])])]}}),le})(),js=(()=>{class le{constructor(E){this.templateRef=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.Rgc,8))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoPanelBarItemTemplate",""]]}),le})();class fr{constructor(Rt){this.prevented=!1,Object.assign(this,Rt)}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Ws extends fr{}class Lr extends fr{}class ur extends fr{}class Fr{}let Ko=(()=>{class le{constructor(E,de,zt){this.localization=zt,this.expandMode=Ce.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new e.vpe,this.select=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.tabIndex=0,this.role="tree",this.hostClass=!0,this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.updateChildrenHeight=()=>{let En=0;const Bi=this.elementRef.nativeElement.offsetHeight,Ts=this.expandMode===Ce.Full?"auto":"visible";this.childrenItems.forEach(fs=>{En+=fs.headerHeight()}),this.childrenItems.forEach(fs=>{fs.contentHeight=Ce.Full===this.expandMode?Bi-En+"px":"auto",fs.contentOverflow=Ts})},(0,A.s)(z),this.keyBindings=this.computedKeys,this.elementRef=E,this.eventService=de,this.eventService.children$.subscribe(En=>this.onItemAction(En))}get keepItemContent(){return this._keepItemContent}set keepItemContent(E){this._keepItemContent=E,this.eventService.onKeepContent(E)}set items(E){E&&(this._items=_i(E))}get items(){return this._items}get hostHeight(){return this.expandMode===Ce.Full?this.height:"auto"}get overflow(){return this.expandMode===Ce.Full?"hidden":"visible"}get dir(){return this.localization.rtl?"rtl":"ltr"}invertKeys(E,de){return this.localization.rtl?de:E}get computedKeys(){return{[T.R8.Space]:()=>this.selectFocusedItem(),[T.R8.Enter]:()=>this.selectFocusedItem(),[T.R8.ArrowUp]:()=>this.focusPreviousItem(),[this.invertKeys(T.R8.ArrowLeft,T.R8.ArrowRight)]:()=>this.collapseItem(),[T.R8.ArrowDown]:()=>this.focusNextItem(),[this.invertKeys(T.R8.ArrowRight,T.R8.ArrowLeft)]:()=>this.expandItem(),[T.R8.End]:()=>this.focusLastItem(),[T.R8.Home]:()=>this.focusFirstItem()}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.keyBindings=this.computedKeys),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}ngAfterViewChecked(){this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(()=>this.updateChildrenHeight())),this.validateConfiguration()}ngOnChanges(E){(E.height||E.expandMode||E.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),E.animate&&(this.eventService.animate=this.animate),E.expandMode&&(this.eventService.expandMode=this.expandMode)}get templateRef(){return this.template?this.template.templateRef:void 0}onComponentClick(E){const de=this.visibleItems().some(zt=>zt.header.nativeElement.contains(E.target));!Pr(E.target)&&!this.focused&&de&&this.elementRef.nativeElement.focus()}onComponentFocus(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){const E=this.visibleItems();!E.filter(zt=>zt.focused).length&&E.length>0&&(E[0].focused=!0,this.activeDescendant=E[0].itemId)}}onComponentBlur(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}onComponentKeyDown(E){if(E.target===this.elementRef.nativeElement){(E.keyCode===T.R8.Space||E.keyCode===T.R8.ArrowUp||E.keyCode===T.R8.ArrowDown||E.keyCode===T.R8.ArrowLeft||E.keyCode===T.R8.ArrowRight||E.keyCode===T.R8.Home||E.keyCode===T.R8.End||E.keyCode===T.R8.PageUp||E.keyCode===T.R8.PageDown)&&E.preventDefault();const de=this.keyBindings[E.keyCode];de&&de()}}emitEvent(E,de){let zt;switch(E){case"select":zt=new ur;break;case"collapse":zt=new Ws;break;default:zt=new Lr}return zt.item=de.serialize(),this[E].emit(zt),zt}get viewItems(){let E=[];return this.viewChildItems.toArray().forEach(de=>{E.push(de),E=E.concat(de.subTreeViewItems())}),E}validateConfiguration(){if((0,e.X6Q)()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}onItemAction(E){if(!E)return;const de=new Array,zt=[];if(this.allItems.forEach(En=>{let Bi=En===E;const Ts=Bi;Bi=this.selectable?Bi:En.selected,(En.selected!==Bi||En.focused!==Ts)&&(Bi&&this.emitEvent("select",En).isDefaultPrevented()?zt.push(En):(En.selected=Bi,En.focused=Ts,this.activeDescendant=Ts?En.itemId:"",de.push(En)))}),this.expandMode===Ce.Multiple)(E.hasChildItems||E.hasContent)&&!zt.includes(E)&&((E.expanded?this.emitEvent("collapse",E).isDefaultPrevented():this.emitEvent("expand",E).isDefaultPrevented())||(E.expanded=!E.expanded,de.indexOf(E)<0&&de.push(E)));else{const En=E.parent?E.parent.childrenItems:this.childrenItems;let Bi;const Ts=[];(E.hasChildItems||E.hasContent)&&!zt.includes(E)&&(En.forEach(fs=>{const Do=fs===E;if(fs.expanded!==Do){const Qo=fs.expanded?this.emitEvent("collapse",fs).isDefaultPrevented():this.emitEvent("expand",fs).isDefaultPrevented();Qo?Qo&&fs.expanded&&(Bi=fs):(fs.expanded=Do,fs.expanded&&Ts.push(fs),de.indexOf(fs)<0&&de.push(fs))}else fs.expanded===Do&&Do&&(this.emitEvent("collapse",fs).isDefaultPrevented()||(fs.expanded=!fs.expanded,de.indexOf(fs)<0&&de.push(fs)))}),Ts.forEach(fs=>{if(Bi&&fs.id!==Bi.id&&(fs.expanded=!1,(0,e.X6Q)())){const Do=Ce[this.expandMode].toLowerCase();console.warn(`\n                            The ${Do} expandMode allows the expansion of only one item at a time.\n                            See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/`)}}))}if(de.length>0){const En=new Fr;En.items=de.map(Bi=>Bi.serialize()),this.stateChange.emit(En)}}isVisible(E){return this.visibleItems().some(zt=>zt===E)}getVisibleParent(E){const de=this.visibleItems();return E.parent?de.some(zt=>zt===E.parent)?E.parent:this.getVisibleParent(E.parent):E}focusItem(E){const de=this.visibleItems();let Bi,zt=de.findIndex(Ts=>Ts.focused),En=de[zt];if(-1===zt){const Ts=this.allItems.find(fs=>fs.focused);Ts.focused=!1,En=this.getVisibleParent(Ts),zt=de.findIndex(fs=>fs===En)}switch(E){case"lastItem":Bi=de[de.length-1];break;case"firstItem":Bi=de[0];break;case"nextItem":Bi=de[zt<de.length-1?zt+1:0];break;case"previousItem":Bi=de[zt>0?zt-1:de.length-1]}En&&Bi&&En!==Bi&&this.moveFocus(En,Bi)}moveFocus(E,de){E.focused=!1,de.focused=!0,this.activeDescendant=de.itemId;const zt=new Array(E.serialize(),de.serialize()),En=new Fr;En.items=zt,this.stateChange.emit(En)}focusLastItem(){this.focusItem("lastItem")}focusFirstItem(){this.focusItem("firstItem")}focusNextItem(){this.focusItem("nextItem")}focusPreviousItem(){this.focusItem("previousItem")}expandItem(){let E=this.allItems.filter(de=>de.focused)[0];if(this.isVisible(E)||(E.focused=!1,E=this.getVisibleParent(E)),E.hasChildItems||E.hasContent)if(E.expanded){if(E.hasChildItems){const de=E.childrenItems.findIndex(zt=>!zt.disabled);de>-1&&this.moveFocus(E,E.childrenItems[de])}}else this.onItemAction(E)}collapseItem(){const E=this.allItems.filter(de=>de.focused)[0];E.expanded?this.onItemAction(E):E.parent&&this.moveFocus(E,E.parent)}selectFocusedItem(){let E=this.allItems.filter(de=>de.focused)[0];this.isVisible(E)||(E.focused=!1,E=this.getVisibleParent(E)),E&&E.onItemAction()}visibleItems(){return this.flatVisibleItems(this.childrenItems)}flatVisibleItems(E=new Array,de=new Array){return E.forEach(zt=>{de.push(zt),zt.expanded&&zt.hasChildItems&&this.flatVisibleItems(zt.childrenItems,de)}),de}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.SBq),e.Y36(Hn),e.Y36(o.oQ))},le.\u0275cmp=e.Xpm({type:le,selectors:[["kendo-panelbar"]],contentQueries:function(E,de,zt){if(1&E&&(e.Suo(zt,js,5),e.Suo(zt,fo,5),e.Suo(zt,fo,4)),2&E){let En;e.iGM(En=e.CRH())&&(de.template=En.first),e.iGM(En=e.CRH())&&(de.contentItems=En),e.iGM(En=e.CRH())&&(de.contentChildItems=En)}},viewQuery:function(E,de){if(1&E&&e.Gf(fo,5),2&E){let zt;e.iGM(zt=e.CRH())&&(de.viewChildItems=zt)}},hostVars:10,hostBindings:function(E,de){1&E&&e.NdJ("click",function(En){return de.onComponentClick(En)})("focus",function(){return de.onComponentFocus()})("blur",function(){return de.onComponentBlur()})("keydown",function(En){return de.onComponentKeyDown(En)}),2&E&&(e.uIk("tabIndex",de.tabIndex)("role",de.role)("aria-activedescendant",de.activeDescendant)("dir",de.dir),e.Udp("height",de.hostHeight)("overflow",de.overflow),e.ekj("k-panelbar",de.hostClass))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse"},exportAs:["kendoPanelbar"],features:[e._Bn([Hn,o.oQ,{provide:o.mM,useValue:"kendo.panelbar"}]),e.TTD],ngContentSelectors:yt,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","svgIcon","imageUrl","selected","expanded","disabled","template","items","content"]],template:function(E,de){1&E&&(e.F$t(We),e.YNc(0,it,1,0,"ng-content",0),e.YNc(1,wn,1,1,"ng-template",1)),2&E&&(e.Q6J("ngIf",de.contentChildItems&&!de.items),e.xp6(1),e.Q6J("ngIf",null==de.items?null:de.items.length))},dependencies:[fo,Y.O5,Y.sg],encapsulation:2}),le})(),or=(()=>{class le{constructor(E){this.templateRef=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.Rgc))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoTabContent",""]]}),le})(),rr=(()=>{class le{constructor(E){this.templateRef=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.Rgc))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoTabTitle",""]]}),le})(),lo=(()=>{class le{constructor(){this.disabled=!1,this._tabContent=new e.n_E,this.focused=!1}get tabContent(){return this._tabContent.first}get tabTitle(){return this._tabTitleDirective.first}}return le.\u0275fac=function(E){return new(E||le)},le.\u0275cmp=e.Xpm({type:le,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(E,de,zt){if(1&E&&(e.Suo(zt,or,4),e.Suo(zt,rr,4)),2&E){let En;e.iGM(En=e.CRH())&&(de._tabContent=En),e.iGM(En=e.CRH())&&(de._tabTitleDirective=En)}},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(E,de){},encapsulation:2}),le})();class nr{constructor(Rt,E){this.index=Rt,this.tab=E}}class mt extends T.wY{constructor(Rt,E){super(),this.index=Rt,this.title=E}}const Gi=le=>le.enabled&&le.mouseScroll,Ys=le=>{let Rt,E,de=-1,zt=-1;return le.forEach((En,Bi)=>{En.selected?(E=En,zt=Bi):En.focused&&(Rt=En,de=Bi)}),de>=0?{tab:Rt,index:de}:{tab:E,index:zt}},co=(le,Rt)=>{const E=le.filter((de,zt)=>zt===Rt);return E.length>0?E[0]:null},Or=le=>"top"===le||"bottom"===le;let sa=(()=>{class le{constructor(E,de){this.localization=E,this.ngZone=de}onKeyDown(E){if(!(le=>{const Rt=le.getAttribute("id");return!!(Wi(Rt)||Rt.indexOf("k-tabstrip-tab-")>=0)})(E.target))return;const de=E.keyCode;this.shouldHandleKey(de)&&(E.preventDefault(),da(de)||(le=>Ks(le)||So(le))(de)?this.onNavigate(de):de===T.R8.Delete&&this.onDelete())}onTabSelect(E,de){const zt=new mt(de,E.title);if(this.owner.tabSelect.emit(zt),!zt.isDefaultPrevented()){if(E.selected)return void this.focusTabHeader(de);this.selectTab(E,de)}}selectTab(E,de){(le=>{this.owner.tabs.forEach(Rt=>{Rt.selected=!1})})(),this.focusTabHeader(de),E.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}onNavigate(E){const{tab:de,index:zt}=Ys(this.owner.tabs);e.R0b.isInAngularZone()||this.ngZone.run(()=>{if(zt<0)return void this.owner.selectTab(this.firstNavigatableIndex());de.focused=!1;const En=this.computeNextIndex(zt,E);this.activateTab(En)})}onDelete(){const{tab:E,index:de}=Ys(this.owner.tabs);((le,Rt)=>void 0!==le.closable?le.closable:this.owner.closable)(E)&&!E.disabled&&this.ngZone.run(()=>{this.owner.tabClose.emit({tab:E,index:de})})}activateTab(E){const de=co(this.owner.tabs,E);de.disabled?(this.focusTabHeader(E),de.focused=!0):this.onTabSelect(de,E)}focusTabHeader(E){((le,Rt)=>{const E=this.owner.tabHeaderContainers.filter((de,zt)=>zt===Rt);return E.length>0?E[0]:null})(0,E).nativeElement.focus()}shouldHandleKey(E){return!!(da(E)||Or(this.owner.tabPosition)&&Ks(E)||!Or(this.owner.tabPosition)&&So(E)||E===T.R8.Delete)}computeNextIndex(E,de){switch(de){case this.invertKeys(T.R8.ArrowLeft,T.R8.ArrowRight):case this.invertKeys(T.R8.ArrowUp,T.R8.ArrowDown):return this.prevNavigatableIndex(E);case this.invertKeys(T.R8.ArrowRight,T.R8.ArrowLeft):case this.invertKeys(T.R8.ArrowDown,T.R8.ArrowUp):return this.nextNavigatableIndex(E);case T.R8.Home:return this.firstNavigatableIndex();case T.R8.End:return this.lastNavigatableIndex();default:return}}invertKeys(E,de){return this.localization.rtl?de:E}firstNavigatableIndex(){return 0}lastNavigatableIndex(){return this.owner.tabs.length-1}prevNavigatableIndex(E){return E-1<0?this.lastNavigatableIndex():E-1}nextNavigatableIndex(E){return E+1>=this.owner.tabs.length?this.firstNavigatableIndex():E+1}}return le.\u0275fac=function(E){return new(E||le)(e.LFG(o.oQ),e.LFG(e.R0b))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac}),le})();let Xt=(()=>{class le{constructor(E){this.ngZone=E,this.position=0,this.scrollButtonActiveStateChange=new F.x,this.isDisabled=de=>this.owner[`${de}ScrollButton`].host.nativeElement.classList.contains("k-disabled")}get tablistElement(){return this.owner.tablist.nativeElement}get tabstripSize(){const E=this.owner.wrapper.nativeElement,de=parseFloat(getComputedStyle(E).width),zt=parseFloat(getComputedStyle(E).height);return Or(this.owner.tabPosition)?de:zt}get tablistOverflowSize(){if(!(0,T.X_)())return 0;const E=Or(this.owner.tabPosition),de=Math.floor(this.tablistElement[E?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[E?"width":"height"]);return de<0?0:de}get tabsOverflow(){return this.tablistOverflowSize>0}get scrollButtonsSize(){if(!this.owner.hasScrollButtons)return 0;const E=this.owner.prevScrollButton.hostBoundingClientRect,de=Or(this.owner.tabPosition)?E.width:E.height,zt=this.owner.nextScrollButton.hostBoundingClientRect;return de+(Or(this.owner.tabPosition)?zt.width:zt.height)}toggleScrollButtonsState(){if(!this.owner.hasScrollButtons)return;const de=!this.isDisabled("prev"),zt=!this.isDisabled("next"),En=this.position>0&&this.tablistOverflowSize>0,Bi=this.position<this.tablistOverflowSize+this.scrollButtonsSize&&this.tablistOverflowSize>0;En!==de&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",En)),Bi!==zt&&this.ngZone.run(()=>this.toggleButtonActiveState("next",Bi))}scrollToSelectedTab(){if(!this.tabsOverflow)return;const{index:E}=Ys(this.owner.tabs);if(-1===E||(this.position+=this.getScrollOffset(E),Or(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),!this.owner.hasScrollButtons))return;const En=E===this.owner.tabs.length-1;0===E&&!this.isDisabled("prev")&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",!1)),En&&!this.isDisabled("next")&&this.ngZone.run(()=>this.toggleButtonActiveState("next",!1))}getScrollOffset(E){if(!(0,T.X_)())return 0;const de=Or(this.owner.tabPosition);this.tablistElement["scroll"+(de?"Left":"Top")]=this.position;const zt=this.tablistElement.children[E].getBoundingClientRect(),En=this.tablistElement.getBoundingClientRect(),Bi=de?"right":"bottom",Ts=de?"left":"top",fs=zt[Ts],Do=zt[Bi],Qo=En[Ts],B=En[Bi],ce=Do<=B,Fe=fs>=Qo;return ce&&Fe?0:ce?Fe?void 0:fs-Qo:Do-B}onMouseScroll(E){E.preventDefault(),Gi(this.owner.scrollable)&&(this.calculateListPosition(E.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),Or(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}scrollTabs(E){this.calculateListPosition(E,this.owner.scrollable.buttonScrollSpeed),Or(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}calculateListPosition(E,de){const zt=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===E&&this.position>0)this.position=this.position-de<=0?0:this.position-de;else if("next"===E&&this.position<zt){if(this.position+de>zt)return void(this.position=zt);this.position+=de}}restoreScrollPosition(){Or(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}toggleButtonActiveState(E,de){this.scrollButtonActiveStateChange.next({buttonType:E,active:de})}}return le.\u0275fac=function(E){return new(E||le)(e.LFG(e.R0b))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac}),le})();const Qn=le=>(({enabled:le=!0,scrollButtons:Rt="auto",mouseScroll:E=!0,buttonScrollSpeed:de=100,mouseScrollSpeed:zt=10,prevButtonIcon:En,nextButtonIcon:Bi,prevSVGButtonIcon:Ts,nextSVGButtonIcon:fs})=>({enabled:le,scrollButtons:Rt,mouseScroll:E,buttonScrollSpeed:de,mouseScrollSpeed:zt,prevButtonIcon:En,nextButtonIcon:Bi,prevSVGButtonIcon:Ts,nextSVGButtonIcon:fs}))(!1===le?{enabled:!1}:le);class Ci extends T.wY{constructor(Rt){super(),Object.assign(this,Rt)}}let $i=(()=>{class le{constructor(E,de,zt){this.host=E,this.renderer=de,this.ngZone=zt,this.prev=!1,this.tabScroll=new e.vpe,this.onClick=new e.vpe,this.subs=new R.w0,this.clickHandler=En=>{this.emitScrollEvent(En).isDefaultPrevented()||this.onClick.emit(this.prev?"prev":"next")}}get prevClass(){return this.prev}get nextClass(){return!this.prev}get hostBoundingClientRect(){return this.host.nativeElement.getBoundingClientRect()}get iconClass(){return this.scrollButtonIconClass}get customIconClass(){return this.customScrollButtonIconClass}get svgIcon(){return this.scrollButtonSVGIcon}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.host.nativeElement,"click",this.clickHandler))})}ngOnDestroy(){this.subs.unsubscribe()}toggle(E){this.renderer[E?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}get scrollButtonIconClass(){const E=Or(this.tabPosition)?"caret-alt-left":"caret-alt-up",de=Or(this.tabPosition)?"caret-alt-right":"caret-alt-down";if("object"==typeof this.scrollable){const zt=typeof this.scrollable.prevButtonIcon>"u"?E:"",En=typeof this.scrollable.nextButtonIcon>"u"?de:"";if(zt&&this.prev)return zt;if(En&&!this.prev)return En}}get customScrollButtonIconClass(){if("object"==typeof this.scrollable){const E=this.scrollable.prevButtonIcon,de=this.scrollable.nextButtonIcon;if(E&&this.prev)return`k-icon ${E}`;if(de&&!this.prev)return`k-icon ${de}`}}get scrollButtonSVGIcon(){if("object"==typeof this.scrollable){const E=void 0!==this.scrollable.prevSVGButtonIcon?this.scrollable.prevSVGButtonIcon:void 0,de=void 0!==this.scrollable.nextSVGButtonIcon?this.scrollable.nextSVGButtonIcon:void 0;if(E||de)return this.prev?E:de}}emitScrollEvent(E){const de=new Ci({originalEvent:E});return this.tabScroll.emit(de),de}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},le.\u0275cmp=e.Xpm({type:le,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:4,hostBindings:function(E,de){2&E&&e.ekj("k-tabstrip-prev",de.prevClass)("k-tabstrip-next",de.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:qn,decls:1,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","customFontClass","svgIcon"]],template:function(E,de){1&E&&e._UZ(0,"kendo-icon-wrapper",0),2&E&&e.Q6J("name",de.iconClass)("customFontClass",de.customIconClass)("svgIcon",de.svgIcon)},dependencies:[j.ZS],encapsulation:2}),le})(),Us=(()=>{class le{constructor(E){this.localization=E,this.tabClose=new e.vpe,this.hostClasses=!0}get activeClass(){return this.tab.selected}get disabledClass(){return this.tab.disabled}get focusedClass(){return this.tab.focused}get tabIndex(){return this.tab.selected||this.tab.focused?0:-1}get tabClosable(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}get closeSVGIconClass(){if(!this.customCloseButtonClasses)return this.tab.closeSVGIcon?this.tab.closeSVGIcon:this.closeSVGIcon?this.closeSVGIcon:y.FZE}get closeButtonClasses(){if(!this.customTabstripCloseIcon&&this.tabStripCloseIcon&&!this.tab.closeIconClass)return this.tab.closeIcon?this.tab.closeIcon:this.tabStripCloseIcon}get customCloseButtonClasses(){if(this.customTabstripCloseIcon||this.tab.closeIconClass)return this.tab.closeIconClass?this.tab.closeIconClass:this.customTabstripCloseIcon}get closeButtonTitle(){return this.localization.get("closeTitle")}closeTab(E){const de=new nr(E,this.tab);this.tabClose.emit(de)}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(o.oQ))},le.\u0275cmp=e.Xpm({type:le,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(E,de){2&E&&(e.uIk("aria-selected",de.activeClass)("aria-disabled",de.disabledClass)("tabindex",de.tabIndex),e.ekj("k-item",de.hostClasses)("k-state-default",de.hostClasses)("k-active",de.activeClass)("k-disabled",de.disabledClass)("k-focus",de.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon",customTabstripCloseIcon:"customTabstripCloseIcon",closeSVGIcon:"closeSVGIcon"},outputs:{tabClose:"tabClose"},attrs:ki,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["kendoButton","","role","button","fillMode","flat","class","k-remove-tab k-icon-button",3,"icon","iconClass","svgIcon","title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["kendoButton","","role","button","fillMode","flat",1,"k-remove-tab","k-icon-button",3,"icon","iconClass","svgIcon","title","click"]],template:function(E,de){1&E&&(e.YNc(0,Si,2,1,"span",0),e.YNc(1,pn,2,1,"span",0),e.YNc(2,Vn,1,5,"button",1)),2&E&&(e.Q6J("ngIf",!de.tab.tabTitle),e.xp6(1),e.Q6J("ngIf",de.tab.tabTitle),e.xp6(1),e.Q6J("ngIf",de.tabClosable))},dependencies:[we.zx,Y.O5,Y.tP],encapsulation:2}),le})(),Is=(()=>{class le extends o.Z1{}return le.\u0275fac=function(){let Rt;return function(de){return(Rt||(Rt=e.n5z(le)))(de||le)}}(),le.\u0275dir=e.lG2({type:le,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle",previousTabButton:"previousTabButton",nextTabButton:"nextTabButton"},features:[e.qOj]}),le})(),Ns=(()=>{class le extends Is{constructor(E){super(),this.service=E}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(o.oQ))},le.\u0275dir=e.lG2({type:le,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[e._Bn([{provide:Is,useExisting:(0,e.Gpc)(()=>le)}]),e.qOj]}),le})(),Js=(()=>{class le{constructor(E,de,zt,En,Bi,Ts){this.localization=E,this.renderer=de,this.wrapper=zt,this.tabstripService=En,this.scrollService=Bi,this.ngZone=Ts,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="x",this.tabSelect=new e.vpe,this.tabClose=new e.vpe,this.tabScroll=new e.vpe,this.hostClass=!0,this.tabs=new e.n_E,this._scrollableSettings=Qn(!1),this.subscriptions=new R.w0,this.subscriptionsArePresent=!1,(0,A.s)(z),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(fs=>{this.hasScrollButtons&&this.renderer[(fs.active?"remove":"add")+"Class"](this[`${fs.buttonType}ScrollButton`].host.nativeElement,"k-disabled")}))}set height(E){this._height=E,this.renderer.setStyle(this.wrapper.nativeElement,"height",E)}get height(){return this._height}set scrollable(E){this._scrollableSettings=Qn(E),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}get scrollable(){return this._scrollableSettings}set closeSVGIcon(E){if((0,e.X6Q)()&&E&&this.closeIcon&&"x"!==this.closeIcon)throw new Error("Setting both closeIcon and svgIcon options at the same time is not supported.");this._closeSVGIcon=E}get closeSVGIcon(){return this._closeSVGIcon}get tabsAtTop(){return"top"===this.tabPosition}get tabsAtRight(){return"right"===this.tabPosition}get tabsAtBottom(){return"bottom"===this.tabPosition}get tabsAtLeft(){return"left"===this.tabPosition}get dir(){return this.localization.rtl?"rtl":"ltr"}get tabStripScrollable(){return this._scrollableSettings.enabled}ngAfterViewInit(){(0,T.X_)()&&(this.ngZone.runOutsideAngular(()=>{this.toggleScrollButtons(!!this.scrollService.tabsOverflow),setTimeout(()=>{this.scrollToSelectedTab()})}),this.initDomEvents())}ngOnChanges(E){if(!(0,T.X_)())return;const de=E.tabPosition;if(de){const zt="bottom"===de.previousValue||"bottom"===de.currentValue;this.ngZone.onStable.pipe((0,q.q)(1)).subscribe(()=>{zt&&(this.subscriptionsArePresent&&(this.subscriptions.unsubscribe(),this.subscriptions=new R.w0,this.subscriptionsArePresent=!1),this.initDomEvents()),this.scrollService.restoreScrollPosition()})}}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get tabsAlignmentStyles(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}get tabListWidth(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}get tabListHeight(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}get isScrollable(){return this._scrollableSettings.enabled}get hasScrollButtons(){return(le=>le.enabled&&"hidden"!==le.scrollButtons)(this._scrollableSettings)}get mouseScrollEnabled(){return Gi(this._scrollableSettings)}get itemsWrapperClass(){return Or(this.tabPosition)?"k-hstack":"k-vstack"}selectTab(E){const de=co(this.tabs,E);!de||de.disabled||(this.tabstripService.selectTab(de,E),this.scrollToSelectedTab())}onTabClick(E,de){if(Pr(E.target))return;const zt=E.target;if(kr(zt,"k-remove-tab")||kr(zt.parentElement,"k-remove-tab"))return;const Bi=co(this.tabs,de);this.tabstripService.onTabSelect(Bi,de),this.scrollToSelectedTab()}onResize(){this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})}scrollToSelectedTab(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}onScrollButtonClick(E){this.scrollService.scrollTabs(E)}initDomEvents(){if(!this.wrapper||this.subscriptionsArePresent)return;const E=this.tablist.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(E,"keydown",de=>{this.tabstripService.onKeyDown(de)}))}),this.subscriptions.add(this.renderer.listen(E,"focusout",()=>{(le=>{this.tabs.forEach(Rt=>{Rt.focused=!1})})()})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(E),this.subscriptionsArePresent=!0}toggleScrollButtons(E){this.ngZone.onStable.pipe((0,q.q)(1)).subscribe(()=>{const de=this._scrollableSettings.scrollButtons,zt=this.prevScrollButton&&this.nextScrollButton,En=zt&&E,Ts="visible"===de;zt&&!E&&"visible"!==de?(this.prevScrollButton.toggle(!1),this.nextScrollButton.toggle(!1)):(En||Ts)&&(this.prevScrollButton.toggle(!0),this.nextScrollButton.toggle(!0)),zt&&Ts&&this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})})}attachWheelHandler(E){this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(E,"wheel",de=>{const zt=new Ci({originalEvent:de});this.tabScroll.emit(zt),!zt.isDefaultPrevented()&&this.scrollService.tabsOverflow&&this.scrollService.onMouseScroll(de)}))})}}return le.\u0275fac=function(E){return new(E||le)(e.Y36(o.oQ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(sa),e.Y36(Xt),e.Y36(e.R0b))},le.\u0275cmp=e.Xpm({type:le,selectors:[["kendo-tabstrip"]],contentQueries:function(E,de,zt){if(1&E&&e.Suo(zt,lo,4),2&E){let En;e.iGM(En=e.CRH())&&(de.tabs=En)}},viewQuery:function(E,de){if(1&E&&(e.Gf(ot,5),e.Gf(en,5),e.Gf(lt,5),e.Gf(In,5,e.SBq)),2&E){let zt;e.iGM(zt=e.CRH())&&(de.tablist=zt.first),e.iGM(zt=e.CRH())&&(de.prevScrollButton=zt.first),e.iGM(zt=e.CRH())&&(de.nextScrollButton=zt.first),e.iGM(zt=e.CRH())&&(de.tabHeaderContainers=zt)}},hostVars:13,hostBindings:function(E,de){2&E&&(e.uIk("dir",de.dir),e.ekj("k-tabstrip",de.hostClass)("k-tabstrip-top",de.tabsAtTop)("k-tabstrip-right",de.tabsAtRight)("k-tabstrip-bottom",de.tabsAtBottom)("k-tabstrip-left",de.tabsAtLeft)("k-tabstrip-scrollable",de.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[e._Bn([sa,Xt,o.oQ,{provide:o.mM,useValue:"kendo.tabstrip"}]),e.TTD],decls:8,vars:3,consts:function(){let Rt,E,de;return Rt=$localize`:kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close`,E=$localize`:kendo.tabstrip.previousTabButton|The title for the **Previous Tab** button when the Tabstrip is scrollable.:Previous Tab`,de=$localize`:kendo.tabstrip.nextTabButton|The title for the **Next Tab** button when the Tabstrip is scrollable.:Next Tab`,[["kendoTabStripLocalizedMessages","","closeTitle",Rt,"previousTabButton",E,"nextTabButton",de],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["role","button","kendoTabStripScrollableButton","","class","k-icon-button k-button k-button-md k-rounded-md k-button-flat k-button-flat-base",3,"scrollable","tabPosition","prev","title","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["role","button","kendoTabStripScrollableButton","",1,"k-icon-button","k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base",3,"scrollable","tabPosition","prev","title","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","customTabstripCloseIcon","closeSVGIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(E,de){1&E&&(e.GkF(0,0),e.YNc(1,yi,3,2,"ng-container",1),e.YNc(2,Ht,3,2,"ng-container",1),e.YNc(3,Cn,6,11,"ng-template",null,2,e.W1O),e.YNc(5,Zn,1,1,"ng-template",null,3,e.W1O),e.YNc(7,mn,1,0,"kendo-resize-sensor",4)),2&E&&(e.xp6(1),e.Q6J("ngIf",!de.tabsAtBottom),e.xp6(1),e.Q6J("ngIf",de.tabsAtBottom),e.xp6(5),e.Q6J("ngIf",de.isScrollable))},dependencies:[$i,Us,T.NG,Ns,Y.O5,Y.tP,Y.mk,Y.sg,Y.PC],encapsulation:2,data:{animation:[(0,G.X$)("state",[(0,G.SB)("active",(0,G.oB)({opacity:1})),(0,G.eR)("* => active",[(0,G.oB)({opacity:0}),(0,G.jt)("400ms ease-in")])])]}}),le})();const $n={};$n[T.R8.ArrowLeft]="left",$n[T.R8.ArrowRight]="right",$n[T.R8.ArrowUp]="up",$n[T.R8.ArrowDown]="down",$n[T.R8.Home]="home",$n[T.R8.End]="end",$n[T.R8.Enter]="enter",$n[T.R8.Space]="enter";const Ii=Object.assign({},$n);Ii[T.R8.ArrowLeft]="right",Ii[T.R8.ArrowRight]="left";let D=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,j.pc]]}),le})(),tn=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez]]}),le})(),Eo=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,j.pc]]}),le})(),Hr=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,T.OY,j.pc]]}),le})(),oc=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,j.pc]]}),le})(),Zl=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,T.QY,j.pc]]}),le})(),tr=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,ae.q7,j.pc]]}),le})(),sl=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez,T.uv,j.pc,we.hJ]]}),le})(),mc=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez]]}),le})(),cl=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez]]}),le})(),vu=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[Y.ez]]}),le})(),Xu=(()=>{class le{}return le.\u0275fac=function(E){return new(E||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[D,tn,Eo,oc,Hr,Zl,tr,sl,mc,cl,vu]}),le})()},91779:(fn,ve,_)=>{"use strict";_.d(ve,{$9:()=>Pi,GI:()=>ei,RG:()=>As,qv:()=>An,uc:()=>Qt,vI:()=>po});var e=_(94650),o=_(5651),T=_(13710),A=_(8416),G=_(16010),F=_(5643),N=_(36895),R=_(28942);const P=["kendoMenuList",""];function y(un,ai){if(1&un&&e._UZ(0,"li",3),2&un){const Le=e.oxw(),Pt=Le.index,Be=Le.$implicit,Jt=e.oxw();e.ekj("k-first",0===Pt)("k-last",Pt===Jt.items.length-1)("k-disabled",Be.disabled),e.Q6J("item",Be)("level",Jt.level)("size",Jt.size)("vertical",Jt.vertical)("animate",Jt.animate)("rtl",Jt.rtl)("itemTemplate",Jt.itemTemplate)("itemLinkTemplate",Jt.itemLinkTemplate)("openOnClick",Jt.openOnClick)("index",Jt.hierarchyIndex(Pt))("siblingIndex",Pt)("ngClass",Be.cssClass)("ngStyle",Be.cssStyle),e.uIk("data-kendo-menu-index",Jt.hierarchyIndex(Pt))}}function j(un,ai){if(1&un&&(e.TgZ(0,"li",4),e._uU(1," \xa0 "),e.qZA()),2&un){const Le=e.oxw().$implicit;e.Q6J("ngClass",Le.cssClass)("ngStyle",Le.cssStyle)}}function Y(un,ai){if(1&un&&(e.ynx(0),e.YNc(1,y,1,20,"li",1),e.YNc(2,j,2,2,"li",2),e.BQk()),2&un){const Le=ai.$implicit;e.xp6(1),e.Q6J("ngIf",!Le.separator),e.xp6(1),e.Q6J("ngIf",Le.separator)}}const ee=["link"],se=["popupTemplate"],he=["kendoMenuItem",""];function Se(un,ai){}function te(un,ai){if(1&un&&(e.TgZ(0,"span",6,7),e.YNc(2,Se,0,0,"ng-template",8),e.qZA()),2&un){const Le=e.oxw(),Pt=e.MAs(7);e.ekj("k-active",Le.opened),e.xp6(2),e.Q6J("ngTemplateOutlet",Pt)}}function oe(un,ai){}function q(un,ai){if(1&un&&(e.TgZ(0,"a",9,7),e.YNc(2,oe,0,0,"ng-template",8),e.qZA()),2&un){const Le=e.oxw(),Pt=e.MAs(7);e.ekj("k-active",Le.opened),e.uIk("href",Le.item.url,e.LSH),e.xp6(2),e.Q6J("ngTemplateOutlet",Pt)}}function we(un,ai){}const ae=function(un,ai){return{item:un,index:ai}};function Q(un,ai){if(1&un&&e.YNc(0,we,0,0,"ng-template",10),2&un){const Le=e.oxw();e.Q6J("ngTemplateOutlet",Le.linkTemplate)("ngTemplateOutletContext",e.WLB(2,ae,Le.item,Le.index))}}function pe(un,ai){}function Ee(un,ai){if(1&un&&(e.TgZ(0,"div",11),e.YNc(1,pe,0,0,"ng-template",10),e.qZA()),2&un){const Le=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",Le.item.content)("ngTemplateOutletContext",e.WLB(2,ae,Le.item.owner,Le.item.ownerIndex))}}function ke(un,ai){if(1&un&&e._UZ(0,"ul",12),2&un){const Le=e.oxw();e.Q6J("animate",Le.animate)("rtl",Le.rtl)("vertical",Le.vertical)("size",Le.size)("openOnClick",Le.openOnClick)("items",Le.children)("level",Le.level+1)("index",Le.index)("itemTemplate",Le.itemTemplate)("itemLinkTemplate",Le.itemLinkTemplate)("ngClass",Le.menuListClasses),e.uIk("id",Le.childId)}}function Ye(un,ai){if(1&un&&e._UZ(0,"kendo-icon-wrapper",15),2&un){const Le=e.oxw(2);e.Q6J("name",Le.item.icon)("svgIcon",Le.item.svgIcon)}}function ct(un,ai){if(1&un&&(e.ynx(0),e.TgZ(1,"span",16),e._uU(2),e.qZA(),e.BQk()),2&un){const Le=e.oxw(2);e.xp6(2),e.Oqu(Le.item.text)}}function ut(un,ai){}function Ct(un,ai){if(1&un&&e.YNc(0,ut,0,0,"ng-template",10),2&un){const Le=e.oxw(2);e.Q6J("ngTemplateOutlet",Le.template)("ngTemplateOutletContext",e.WLB(2,ae,Le.item,Le.index))}}function Ue(un,ai){if(1&un&&e._UZ(0,"kendo-icon-wrapper",17),2&un){const Le=e.oxw(2);e.Q6J("name",Le.fontIcon(Le.horizontal,Le.rtl))("svgIcon",Le.SVGIcon(Le.horizontal,Le.rtl))}}function vt(un,ai){if(1&un&&(e.YNc(0,Ye,1,2,"kendo-icon-wrapper",13),e.YNc(1,ct,3,1,"ng-container",2),e.YNc(2,Ct,1,5,null,2),e.YNc(3,Ue,1,2,"kendo-icon-wrapper",14)),2&un){const Le=e.oxw();e.Q6J("ngIf",Le.item.icon||Le.item.svgIcon),e.xp6(1),e.Q6J("ngIf",!Le.template),e.xp6(1),e.Q6J("ngIf",Le.template),e.xp6(1),e.Q6J("ngIf",Le.hasContent)}}const Je=["default"];function Ft(un,ai){if(1&un&&e._UZ(0,"kendo-menu",1),2&un){const Le=e.oxw();e.Q6J("items",Le.rootItems)("size",Le.size)("vertical",Le.vertical)("openOnClick",Le.openOnClick)("hoverDelay",Le.hoverDelay)("animate",Le.animate)("menuItemTemplate",null==Le.itemTemplate.first?null:Le.itemTemplate.first.templateRef)("menuItemLinkTemplate",null==Le.itemLinkTemplate.first?null:Le.itemLinkTemplate.first.templateRef)}}const st={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310581,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Ze=/_?\d+$/;let Oe=0;const Nt=(un,ai)=>un.siblingIndex-ai.siblingIndex,xt=(un,ai,Le)=>{let Pt=ai[un+Le];for(;!Pt;)un<0?un=ai.length-1:un>=ai.length?un=0:un+=Le,Pt=ai[un];return Pt};let Ot=(()=>{class un{constructor(){this.items={},this.lists=[],this.idPrefix="k-menu"+Oe++}get hasItems(){return Object.keys(this.items).length>0}childId(Le){return`${this.idPrefix}-child${Le}`}itemIndex(Le,Pt){return(Le?Le+"_":"")+Pt}get(Le){return this.items[Le]}add(Le){this.items[Le.index]=Le}remove(Le){this.items[Le.index]===Le&&delete this.items[Le.index]}addList(Le){this.lists.push(Le)}removeList(Le){const Pt=this.lists.indexOf(Le);Pt>=0&&this.lists.splice(Pt,1)}containsList(Le){return Boolean(this.lists.find(Pt=>Pt.element.nativeElement===Le))}siblings(Le){const Pt=this.parentIndex(Le.index);return this.filter(Be=>this.parentIndex(Be)===Pt)}otherSiblings(Le){const Pt=this.parentIndex(Le.index);return this.filter(Be=>this.parentIndex(Be)===Pt&&Be!==Le.index)}children(Le){return this.filter(Pt=>this.parentIndex(Pt)===Le.index)}parent(Le){return this.items[this.parentIndex(Le.index)]}root(Le){return this.items[this.indices(Le.index)[0]]}indices(Le){return Le.split("_")}filter(Le){const Pt=[],Be=this.items;for(const Jt in Be)Le(Jt,Be[Jt])&&Pt.push(Be[Jt]);return Pt.sort(Nt)}previous(Le){const Pt=this.siblings(Le),Be=Pt.indexOf(Le);return xt(Be,Pt,-1)}next(Le){const Pt=this.siblings(Le),Be=Pt.indexOf(Le);return xt(Be,Pt,1)}hasParent(Le,Pt){return Le.index.startsWith(Pt.index)}areSiblings(Le,Pt){return Le!==Pt&&this.parent(Le)===this.parent(Pt)}forEach(Le){const Pt=this.items;for(const Be in Pt)Pt.hasOwnProperty(Be)&&Le(Pt[Be])}parentIndex(Le){return Le.replace(Ze,"")}}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})();const Kt=(un,ai)=>!("open"===ai&&un.opened||"close"===ai&&!un.opened);class $t extends A.wY{constructor(ai){super(),Object.assign(this,ai)}}let rt=(()=>{class un{constructor(Le,Pt){this.ngZone=Le,this.items=Pt,this.actions=[]}open(Le,Pt){Le.disabled||(Le.hasContent&&!Le.opened?this.actions.push({name:"open",requiresZone:Le.hasContentTemplates(),item:Le,finished:Pt}):Pt&&Pt())}close(Le){this.closeChildren(Le),this.closeItem(Le)}closeItem(Le){Le.opened&&this.actions.push({name:"close",item:Le})}closeToRoot(Le){this.closeChildren(Le);let Pt=Le;do{this.closeItem(Pt),Pt=this.items.parent(Pt)}while(Pt)}closeOthers(Le){this.closeChildren(Le);let Pt=Le;for(;Pt;){const Be=this.items.otherSiblings(Pt);this.closeItems(Be),Pt=this.items.parent(Pt)}}closeAll(){this.items.forEach(Le=>{Le.opened&&0===Le.level&&this.close(Le)})}select(Le,Pt,Be,Jt){this.actions.push({name:"select",item:Le,prevented:Be,finished:Jt,domEvent:Pt})}emit(Le,Pt,Be){const Jt=this.owner,xe=new $t({sender:Jt,item:Pt.item,index:Pt.index,originalEvent:Be,hasContent:Pt.hasContent});return Jt[Le].emit(xe),Jt.contextService&&Jt.contextService.emit(Le,xe),xe.isDefaultPrevented()}get hasPending(){return this.actions.length>0}execute(Le){if(!this.hasPending&&!Le)return;const Pt=Le||this.clear();!e.R0b.isInAngularZone()&&this.requiresZone(Pt)?this.ngZone.run(()=>{this.executeActions(Pt)}):this.executeActions(Pt)}clear(){const Le=this.actions;return this.actions=[],Le}executeActions(Le){for(let Pt=0;Pt<Le.length;Pt++){const{item:Be,name:Jt,prevented:xe,finished:Ke,domEvent:Qe}=Le[Pt];Kt(Be,Jt)&&(this.emit(Jt,Be,Qe)?xe&&xe():(Be[Jt]&&Be[Jt](),Ke&&Ke()))}}requiresZone(Le){const Pt=Le||this.actions,Be=this.owner,Jt=Be.contextService;for(let xe=0;xe<Pt.length;xe++){const Ke=Pt[xe],Qe=Ke.name;if(Ke.requiresZone||Qe&&((0,A.g$)(Be[Qe])||Jt&&Jt.hasObservers(Qe)))return!0}return!1}closeChildren(Le){if(!Le.opened)return;const Pt=this.items.children(Le);this.closeItems(Pt)}closeItems(Le){for(let Pt=0;Pt<Le.length;Pt++)this.close(Le[Pt])}}return un.\u0275fac=function(Le){return new(Le||un)(e.LFG(e.R0b),e.LFG(Ot))},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})();const yt=/\S/,it={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},It=Object.assign({},it,{37:"right",39:"left"}),wn=Promise.resolve(null);let Nn=(()=>{class un{constructor(Le,Pt,Be,Jt){this.items=Le,this.actions=Pt,this.localization=Be,this.ngZone=Jt,this.vertical=!1,this.activeIndex="0"}get focusedItem(){return this.items.get(this.focusedIdx)}get activeItem(){return this.items.get(this.activeIndex)}get handlers(){return this.localization.rtl?It:it}focus(Le){Le.index!==this.focusedIdx&&((!this.activeItem||!this.items.hasParent(Le,this.activeItem))&&this.setActive(Le),this.setFocus(Le))}setFocus(Le){this.focusedIdx=Le.index,Le.focus()}focusLeave(){const Le=this.focusedItem;Le&&(this.actions.closeToRoot(Le),this.actions.execute()),this.focusedIdx=null}updateActive(){!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular(()=>{wn.then(()=>{this.activeIndex="0"})}))}keydown(Le){const Pt=this.focusedItem||this.activeItem,Be=this.handlers[Le.keyCode];Pt&&(Be?("tab"!==Be&&Le.preventDefault(),this[Be](Pt,Le)):function Tt(un){return 1===un.length&&yt.test(un)}(Le.key)&&this.search(Pt,Le.key),this.actions.execute())}focusIndex(Le){if(!Le&&this.activeItem)this.setFocus(this.activeItem);else if("first"===Le)this.focusFirst();else if("last"===Le)this.focusLast();else{const Pt=this.items.get(Le);Pt&&this.focus(Pt)}}focusFirst(){const Le=this.items.siblings(this.items.get("0"));this.focus(Le[0])}focusLast(){const Le=this.items.siblings(this.items.get("0"));this.focus(Le[Le.length-1])}search(Le,Pt){const Be=this.items.siblings(Le),Jt=Be.indexOf(Le),xe=Be.slice(Jt+1).concat(Be.slice(0,Jt));for(let Ke=0;Ke<xe.length;Ke++){const Qe=xe[Ke];if((Qe.item.text||"").toLowerCase().startsWith(Pt.toLowerCase())){this.focus(Qe);break}}}down(Le){0!==Le.level||this.vertical?this.focus(this.items.next(Le)):Le.hasContent&&this.actions.open(Le,this.focusChild(Le,0))}up(Le){0!==Le.level||this.vertical?this.focus(this.items.previous(Le)):Le.hasContent&&this.actions.open(Le,this.focusChild(Le,Le.children.length-1))}left(Le){if(!this.vertical||0!==Le.level||!Le.disabled)if(Le.level>1||this.vertical&&Le.level>0){const Pt=this.items.parent(Le);this.focus(Pt),this.actions.close(Pt)}else this.vertical&&0===Le.level&&!Le.disabled?Le.hasContent&&this.actions.open(Le,this.focusChild(Le,Le.children.length-1)):this.focus(this.items.previous(this.activeItem))}right(Le){this.vertical&&0===Le.level&&Le.disabled||(Le.horizontal&&!Le.disabled?Le.hasContent?this.actions.open(Le,this.focusChild(Le,0)):(!this.vertical||Le.level>0)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))}home(Le){const Pt=this.items.siblings(Le);this.focus(Pt[0])}end(Le){const Pt=this.items.siblings(Le);this.focus(Pt[Pt.length-1])}enter(Le,Pt){const Be=this.actions;Le.disabled||(Le.hasContent?(Be.select(Le,Pt),Be.open(Le,this.focusChild(Le,0))):(Be.select(Le,Pt,null,()=>{Le.navigate()}),this.focus(this.items.root(Le)),Be.closeToRoot(Le)))}esc(Le){if(Le.level>0){const Pt=this.items.parent(Le);this.actions.close(Pt),this.focus(Pt)}}tab(Le){Le.level>0&&this.activeItem.focus()}focusChild(Le,Pt){return()=>{const Be=this.items.children(Le)[Pt];this.setFocus(Be)}}setActive(Le){const Pt=this.focusedItem,Be=this.items.root(Le);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=Be.index,Be.toggleActive(!0),Pt&&(this.actions.closeToRoot(Pt),Pt.level>0&&this.actions.open(Be))}}return un.\u0275fac=function(Le){return new(Le||un)(e.LFG(Ot),e.LFG(rt),e.LFG(o.oQ),e.LFG(e.R0b))},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})(),sn=(()=>{class un{constructor(Le,Pt){this.actions=Le,this.items=Pt,this.delay=100,this._openOnOver=!0,this.scheduled=[]}get openOnOver(){return this._openOnOver}set openOnOver(Le){this.cancelActions(),this._openOnOver=Le}get hovered(){return this.items.get(this.hoveredIdx)}set hovered(Le){this.hoveredIdx=Le?Le.index:null}ngOnDestroy(){this.cancelActions()}over(Le){this.cancelActions(Pt=>"openOnOver"===Pt.name),(!this.hovered||this.hovered!==Le)&&(this.actions.closeOthers(Le),this.hovered=Le,(Le.level>0||this.openOnOver)&&!Le.disabled&&(this.actions.open(Le),this.cancelActions(Pt=>"close"===Pt.name&&(Le===Pt.item||this.items.hasParent(Le,Pt.item))||"open"===Pt.name&&!this.items.hasParent(Le,Pt.item))),this.scheduleActions())}leave(Le){const Pt=this.hovered;Pt&&(this.actions.closeToRoot(Pt),this.cancelActions(Be=>"open"===Be.name),this.scheduleActions()),Le&&this._openOnOver&&this.scheduleDisableOpenOnOver(),this.hovered=null}closeCurrent(){const Le=this.hovered;Le&&(this.actions.closeToRoot(Le),this.hovered=null)}scheduleActions(){if(this.actions.hasPending){const Le={};Le.actions=this.actions.clear(),Le.id=setTimeout(()=>{this.actions.execute(Le.actions),this.removeScheduled(Le)},this.delay),this.scheduled.push(Le)}}scheduleDisableOpenOnOver(){const Le={actions:[{name:"openOnOver"}]};Le.id=setTimeout(()=>{this._openOnOver=!1,this.removeScheduled(Le)},Math.max(this.delay,500)),this.scheduled.push(Le)}removeScheduled(Le){const Pt=this.scheduled;for(let Be=0;Be<Pt.length;Be++)if(Pt[Be]===Le)return void Pt.splice(Be,1)}cancelActions(Le){const Pt=this.scheduled;for(let Be=Pt.length-1;Be>=0;Be--){const Jt=Pt[Be],xe=Jt.actions;if(Le)for(let Ke=xe.length-1;Ke>=0;Ke--)Le(xe[Ke])&&xe.splice(Ke,1);(!Le||0===xe.length)&&(clearTimeout(Jt.id),Pt.splice(Be,1))}}}return un.\u0275fac=function(Le){return new(Le||un)(e.LFG(rt),e.LFG(Ot))},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})();const Mn="kendo-matches-container",pi=/^(?:a|input|select|option|textarea|button|object)$/i,gi=(un,ai)=>{for(;un&&!ai(un);)un=un.parentNode;return un},qn=(un,ai,Le)=>{for(;un&&un!==Le&&!ai(un);)un=un.parentNode;if(un!==Le)return un},ki=un=>{if(un.tagName){const ai=un.tagName.toLowerCase(),Le=un.getAttribute("tabIndex"),Pt="-1"===Le;let Be=null!==Le&&!Pt;return pi.test(ai)&&(Be=!un.disabled&&!Pt),Be}return!1},Si=un=>String(un).trim().split(" "),Ni=(un,ai)=>Si(un.className).indexOf(ai)>=0,Vn=un=>un.getAttribute("data-kendo-menu-index"),lt=(un,ai)=>{if(un===ai.lists[0].element.nativeElement)return!1;const Le=(un=>{let ai=gi(un,(un=>{const ai=Si("k-menu-popup k-menu k-menu-group");return Le=>{const Pt=Si(Le.className);return Boolean(ai.find(Be=>Pt.indexOf(Be)>=0))}})());return ai&&Ni(ai,"k-menu-popup")&&(ai=ai.querySelector(".k-menu-group")),ai})(un);return Le&&ai.containsList(Le)};let rn=(()=>{class un{constructor(){this.keydown=new e.vpe}emit(Le,Pt){this.owner.emitMenuEvent(Le,Pt)}hasObservers(Le){return this.owner&&(0,A.g$)(this.owner[Le])}leaveMenu(Le){return!this.items||!lt(Le.target,this.items)}}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})(),Qt=(()=>{class un{constructor(Le){this.templateRef=Le}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(e.Rgc,8))},un.\u0275dir=e.lG2({type:un,selectors:[["","kendoMenuItemTemplate",""]]}),un})(),yi=(()=>{class un{constructor(Le){this.templateRef=Le}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(e.Rgc,8))},un.\u0275dir=e.lG2({type:un,selectors:[["","kendoMenuItemLinkTemplate",""]]}),un})(),Li=(()=>{class un{constructor(Le){this.templateRef=Le}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(e.Rgc,8))},un.\u0275dir=e.lG2({type:un,selectors:[["","kendoMenuItemContentTemplate",""]]}),un})(),An=(()=>{class un{get template(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef}get linkTemplate(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef}get contentTemplate(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef}get items(){if(this.children.length)return this.children.toArray().filter(Le=>Le!==this)}}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275cmp=e.Xpm({type:un,selectors:[["kendo-menu-item"]],contentQueries:function(Le,Pt,Be){if(1&Le&&(e.Suo(Be,Qt,4),e.Suo(Be,yi,4),e.Suo(Be,Li,4),e.Suo(Be,un,4)),2&Le){let Jt;e.iGM(Jt=e.CRH())&&(Pt.itemTemplate=Jt),e.iGM(Jt=e.CRH())&&(Pt.itemLinkTemplate=Jt),e.iGM(Jt=e.CRH())&&(Pt.itemContentTemplate=Jt),e.iGM(Jt=e.CRH())&&(Pt.children=Jt)}},inputs:{text:"text",url:"url",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",icon:"icon",svgIcon:"svgIcon",data:"data",separator:"separator"},decls:0,vars:0,template:function(Le,Pt){},encapsulation:2}),un})(),Ht=(()=>{class un{constructor(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0,this.size="medium"}get rootItems(){return this.items||(this.children?this.children.toArray():[])}}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275cmp=e.Xpm({type:un,selectors:[["kendo-menu-base"]],contentQueries:function(Le,Pt,Be){if(1&Le&&(e.Suo(Be,Qt,4),e.Suo(Be,yi,4),e.Suo(Be,An,4)),2&Le){let Jt;e.iGM(Jt=e.CRH())&&(Pt.itemTemplate=Jt),e.iGM(Jt=e.CRH())&&(Pt.itemLinkTemplate=Jt),e.iGM(Jt=e.CRH())&&(Pt.children=Jt)}},inputs:{items:"items",vertical:"vertical",openOnClick:"openOnClick",hoverDelay:"hoverDelay",animate:"animate",size:"size"},decls:0,vars:0,template:function(Le,Pt){},encapsulation:2}),un})();const Pn=un=>typeof un<"u",Sn=()=>{if((0,A.X_)())return new e.SBq(document.body)},Fn=un=>({small:"k-menu-group-sm",medium:"k-menu-group-md",large:"k-menu-group-lg"}[un]),Cn=(un,ai)=>un?ai?"caret-alt-left":"caret-alt-right":"caret-alt-down",Un=(un,ai)=>un?ai?G.Me8:G.bI8:G.M7i,fi={vertical:"top",horizontal:"left"},bi={vertical:"top",horizontal:"right"},Zn={vertical:"flip",horizontal:"fit"},mn={vertical:"fit",horizontal:"flip"},ze={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:bi,collision:Zn,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:bi,collision:mn,animate:"left"}},wt={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:fi,collision:Zn,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:fi,collision:mn,animate:"right"}};let ht=(()=>{class un{constructor(Le,Pt,Be,Jt,xe,Ke,Qe){this.itemsService=Le,this.hover=Pt,this.actions=Be,this.navigation=Jt,this.renderer=xe,this.ngZone=Ke,this.element=Qe,this.animate=!0,this.size="medium"}hierarchyIndex(Le){return this.itemsService.itemIndex(this.index,Le)}ngOnInit(){this.itemsService.addList(this),this.initDomEvents()}ngOnDestroy(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()}initDomEvents(){!(0,A.X_)()||!this.element||this.ngZone.runOutsideAngular(()=>{const Le=this.element.nativeElement,Pt=this.level>0?gi(Le,Dn=>Ni(Dn,"k-popup")):Le,Be=this.renderer.listen(Le,"mouseover",Dn=>{if(Dn.target===Le&&0===this.level)this.onLeave();else{const vi=this.nodeItem(Dn.target)||this.itemsService.get(this.index);vi&&(!this.openOnClick||"click"!==this.openOnClick.toggle||0!==vi.level||vi.hasContent)&&this.hover.over(vi)}}),Jt=this.renderer.listen(Pt,"mouseleave",Dn=>{this.leavesMenu(Dn)&&this.onLeave()}),xe=this.renderer.listen(Le,"keydown",Dn=>{Ni(Dn.target,"k-menu-item")&&this.navigation.keydown(Dn)}),Ke=this.renderer.listen(Le,"focusout",Dn=>{this.leavesMenu(Dn)&&this.navigation.focusLeave()}),Qe=this.renderer.listen(document,"touchstart",Dn=>{if(lt(Dn.target,this.itemsService)){const vi=this.nodeItem(Dn.target);this.navigation.focus(vi),vi.opened||this.hover.over(vi)}else if(this.navigation.focusedIdx){const vi=this.itemsService.get(this.navigation.activeIndex);this.onLeave(),vi.blur()}}),Et=this.renderer.listen(Le,"click",this.clickHandler.bind(this));this.domSubscriptions=()=>{Be(),Jt(),xe(),Ke(),Et(),Qe()}})}leavesMenu(Le){return!Le.relatedTarget||!lt(Le.relatedTarget,this.itemsService)}onLeave(){const Le=this.openOnClick;(!Le||"click"!==Le.toggle)&&this.hover.leave(Le&&"leave"===Le.toggle)}nodeItem(Le){const Pt=((un,ai)=>qn(un,Vn,this.element.nativeElement))(Le);if(Pt){const Be=Vn(Pt);return this.itemsService.get(Be)}}clickHandler(Le){if(ki(Le.target)&&!Ni(Le.target,"k-menu-item"))return;const Pt=this.nodeItem(Le.target);if(Pt&&!Pt.isContent&&!Pt.navigating){if(Pt.disabled)return void Le.preventDefault();if(this.actions.select(Pt,Le,()=>{Le.preventDefault()}),this.navigation.focus(Pt),Pt.level>0&&!Pt.hasContent&&this.actions.closeToRoot(Pt),this.openOnClick){const Be=this.hover;Pt.opened?0===Pt.level&&(Be.openOnOver=!1,this.actions.close(Pt)):Pt.hasContent?(Be.openOnOver=!0,this.actions.closeOthers(Pt),this.actions.open(Pt)):(Be.openOnOver=!1,0===Pt.level&&"click"===this.openOnClick.toggle&&this.hover.closeCurrent())}this.actions.execute()}}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(Ot),e.Y36(sn),e.Y36(rt),e.Y36(Nn),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.SBq))},un.\u0275cmp=e.Xpm({type:un,selectors:[["","kendoMenuList",""]],inputs:{items:"items",level:"level",index:"index",animate:"animate",size:"size",vertical:"vertical",rtl:"rtl",openOnClick:"openOnClick",itemTemplate:"itemTemplate",itemLinkTemplate:"itemLinkTemplate"},attrs:P,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoMenuItem","","role","menuitem","class","k-item k-menu-item",3,"item","level","size","vertical","animate","rtl","itemTemplate","itemLinkTemplate","openOnClick","index","siblingIndex","ngClass","ngStyle","k-first","k-last","k-disabled",4,"ngIf"],["class","k-separator k-item","aria-hidden","true",3,"ngClass","ngStyle",4,"ngIf"],["kendoMenuItem","","role","menuitem",1,"k-item","k-menu-item",3,"item","level","size","vertical","animate","rtl","itemTemplate","itemLinkTemplate","openOnClick","index","siblingIndex","ngClass","ngStyle"],["aria-hidden","true",1,"k-separator","k-item",3,"ngClass","ngStyle"]],template:function(Le,Pt){1&Le&&e.YNc(0,Y,3,2,"ng-container",0),2&Le&&e.Q6J("ngForOf",Pt.items)},dependencies:function(){return[U,N.sg,N.O5,N.mk,N.PC]},encapsulation:2}),un})(),U=(()=>{class un{constructor(Le,Pt,Be,Jt,xe,Ke,Qe){this.itemsService=Le,this.navigation=Pt,this.changeDetector=Be,this.renderer=Jt,this.popupService=xe,this.element=Ke,this.contextService=Qe,this.animate=!0,this.size="medium",this.openOnClick=!1,this.fontIcon=Cn,this.SVGIcon=Un,this.opened=!1,this.navigating=!1,this.destroyed=!1}set index(Le){this._index&&this._index!==Le?(this.itemsService.remove(this),this._index=Le,this.itemsService.add(this)):this._index=Le,this.childId=this.itemsService.childId(Le)}get index(){return this._index}get disabled(){return this.item.disabled}get hasPopup(){return!!this.hasContent||null}get expanded(){return this.hasContent?this.opened:null}get label(){return this.item.text?this.item.text:null}get activeId(){return this.index===this.navigation.activeIndex?"0":"-1"}get popupSettings(){const Le=this.rtl?ze:wt;return this.horizontal?Le.horizontal:Le.vertical}get horizontal(){return this.vertical||this.level>0}get hasLink(){return Boolean(this.item.url)}get linkTemplate(){return this.item.linkTemplate||this.itemLinkTemplate}get hasContent(){const Le=this.item.items;return Le&&Le.length||this.item.contentTemplate}get isContent(){return Boolean(this.item.content)}get iconClass(){return`k-i-${this.item.icon}`}get isContextMenu(){return Boolean(this.contextService)}get menuListClasses(){const Le=Fn(this.size);return this.isContextMenu?`k-context-menu k-menu-group ${Le}`:`k-menu-group ${Le}`}get children(){const Le=this.item;return Le.contentTemplate?(this.contentItems||(this.contentItems=[{content:Le.contentTemplate,owner:Le,ownerIndex:this.index}]),this.contentItems):Le.items}get template(){return this.item.template||this.itemTemplate}hasContentTemplates(){const Le=this.item;return this.itemTemplate||Le.contentTemplate||this.itemLinkTemplate||Le.items&&Le.items.find(Pt=>Pt.template||Pt.linkTemplate)}ngOnInit(){this.itemsService.add(this)}ngOnDestroy(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)}focus(){this.element.nativeElement.focus()}blur(){this.element.nativeElement.blur()}toggleActive(Le){this.setAttribute("tabindex",Le?"0":"-1")}open(){if(!this.destroyed&&this.hasContent&&!this.opened){const Le=this.popupSettings,Pt=!!this.animate&&Object.assign({},this.animate,{direction:Le.animate});this.opened=!0,this.popupRef=this.popupService.open({popupAlign:Le.popup,anchorAlign:Le.anchor,collision:Le.collision,anchor:this.element,positionMode:"absolute",content:this.popupTemplate,popupClass:{"k-rtl":this.rtl,"k-menu-popup":!0},animate:Pt}),this.setAttribute("aria-expanded","true"),this.setAttribute("aria-controls",this.childId),this.changeDetector.detectChanges()}}close(){!this.destroyed&&this.opened&&(this.opened=!1,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.changeDetector.detectChanges(),this.setAttribute("aria-expanded","false"),this.renderer.removeAttribute(this.element.nativeElement,"aria-controls"))}navigate(){let Le;this.linkTemplate?Le=this.element.nativeElement.querySelector("a.k-menu-link"):this.hasLink&&(Le=this.link.nativeElement),Le&&(this.navigating=!0,Le.click(),this.navigating=!1)}setAttribute(Le,Pt){this.renderer.setAttribute(this.element.nativeElement,Le,Pt)}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(Ot),e.Y36(Nn),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(F.qL),e.Y36(e.SBq),e.Y36(rn,8))},un.\u0275cmp=e.Xpm({type:un,selectors:[["","kendoMenuItem",""]],viewQuery:function(Le,Pt){if(1&Le&&(e.Gf(ee,5),e.Gf(se,7)),2&Le){let Be;e.iGM(Be=e.CRH())&&(Pt.link=Be.first),e.iGM(Be=e.CRH())&&(Pt.popupTemplate=Be.first)}},hostVars:5,hostBindings:function(Le,Pt){2&Le&&e.uIk("aria-disabled",Pt.disabled)("aria-haspopup",Pt.hasPopup)("aria-expanded",Pt.expanded)("aria-label",Pt.label)("tabindex",Pt.activeId)},inputs:{item:"item",level:"level",index:"index",siblingIndex:"siblingIndex",animate:"animate",size:"size",vertical:"vertical",rtl:"rtl",openOnClick:"openOnClick",itemTemplate:"itemTemplate",itemLinkTemplate:"itemLinkTemplate"},features:[e._Bn([F.qL,{provide:F.sG,useFactory:Sn}])],attrs:he,decls:8,vars:4,consts:[["class","k-link k-menu-link","role","presentation",3,"k-active",4,"ngIf"],["class","k-link k-menu-link","tabindex","-1","role","presentation",3,"k-active",4,"ngIf"],[4,"ngIf"],["class","k-content","role","presentation",4,"ngIf"],["popupTemplate",""],["itemcontent",""],["role","presentation",1,"k-link","k-menu-link"],["link",""],[3,"ngTemplateOutlet"],["tabindex","-1","role","presentation",1,"k-link","k-menu-link"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","presentation",1,"k-content"],["kendoMenuList","","role","menu",3,"animate","rtl","vertical","size","openOnClick","items","level","index","itemTemplate","itemLinkTemplate","ngClass"],["role","presentation",3,"name","svgIcon",4,"ngIf"],["class","k-menu-expand-arrow","aria-hidden","true",3,"name","svgIcon",4,"ngIf"],["role","presentation",3,"name","svgIcon"],[1,"k-menu-link-text"],["aria-hidden","true",1,"k-menu-expand-arrow",3,"name","svgIcon"]],template:function(Le,Pt){1&Le&&(e.YNc(0,te,3,3,"span",0),e.YNc(1,q,3,4,"a",1),e.YNc(2,Q,1,5,null,2),e.YNc(3,Ee,2,5,"div",3),e.YNc(4,ke,1,12,"ng-template",null,4,e.W1O),e.YNc(6,vt,4,4,"ng-template",null,5,e.W1O)),2&Le&&(e.Q6J("ngIf",!Pt.hasLink&&!Pt.item.content&&!Pt.linkTemplate),e.xp6(1),e.Q6J("ngIf",Pt.item.url&&!Pt.linkTemplate),e.xp6(1),e.Q6J("ngIf",Pt.linkTemplate&&!Pt.item.content),e.xp6(1),e.Q6J("ngIf",Pt.item.content))},dependencies:[ht,R.ZS,N.O5,N.tP,N.mk],encapsulation:2}),un})(),gt=(()=>{class un extends Ht{constructor(Le,Pt,Be,Jt,xe,Ke,Qe,Et){super(),this.itemsService=Le,this.hover=Pt,this.actions=Be,this.navigation=Jt,this.localization=xe,this.ngZone=Ke,this.renderer=Qe,this.contextService=Et,this.ariaRole="menubar",this.select=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,(0,T.s)(st),this.actions.owner=this,Et&&(Et.items=this.itemsService,this.contextKeyDownSubscription=Et.keydown.subscribe(this.contextKeyDown.bind(this)))}get ariaOrientation(){if(this.vertical)return"vertical"}get isContextMenu(){return Boolean(this.contextService)}get direction(){return this.rtl}get rtl(){return this.localization.rtl}get menuClasses(){const Le=Fn(this.size);return this.isContextMenu?`k-context-menu k-menu-group ${Le}`:"k-reset k-header k-menu k-menu-"+(this.vertical?"vertical":"horizontal")}toggle(Le,...Pt){for(let Be=0;Be<Pt.length;Be++){const Jt=this.itemsService.get(Pt[Be]);Jt&&!Jt.disabled&&(Le?Jt.open():Jt.close())}}focus(Le){this.navigation.focusIndex(Le)}ngOnChanges(Le){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,Le.openOnClick){const Pt=this.openOnClick=(un=>un&&Object.assign({toggle:"select"},un))(this.openOnClick);this.hover.openOnOver=!Pt,Pt&&"click"===Pt.toggle?this.attachCloseClick():this.unsubscribeClick()}}ngAfterViewChecked(){this.navigation.updateActive()}ngOnDestroy(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())}attachCloseClick(){!this.closeClickSubscription&&(0,A.X_)()&&this.ngZone.runOutsideAngular(()=>{this.closeClickSubscription=this.renderer.listen("document","click",Le=>{lt(Le.target,this.itemsService)||(this.hover.openOnOver=!1,this.actions.closeAll(),this.actions.execute())})})}unsubscribeClick(){this.closeClickSubscription&&this.closeClickSubscription()}contextKeyDown(Le){if(!this.itemsService.hasItems)return;const Pt=Le.keyCode,Be=this.localization.rtl,Jt=Pt===A.R8.ArrowDown||Pt===A.R8.ArrowRight,xe=Pt===A.R8.ArrowUp||Pt===A.R8.ArrowLeft;let Ke;Jt&&!Be||xe&&Be?Ke="first":(Jt&&Be||xe&&!Be)&&(Ke="last"),Ke&&(Le.preventDefault(),this.focus(Ke))}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(Ot),e.Y36(sn),e.Y36(rt),e.Y36(Nn),e.Y36(o.oQ),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(rn,8))},un.\u0275cmp=e.Xpm({type:un,selectors:[["kendo-menu"]],hostVars:2,hostBindings:function(Le,Pt){2&Le&&e.ekj("k-rtl",Pt.direction)},inputs:{menuItemTemplate:"menuItemTemplate",ariaRole:"ariaRole",menuItemLinkTemplate:"menuItemLinkTemplate"},outputs:{select:"select",open:"open",close:"close"},exportAs:["kendoMenu"],features:[e._Bn([Ot,rt,Nn,sn,o.oQ,{provide:o.mM,useValue:"kendo.menu"},{provide:Ht,useExisting:(0,e.Gpc)(()=>un)}]),e.qOj,e.TTD],decls:1,vars:12,consts:[["kendoMenuList","",3,"items","level","size","vertical","rtl","animate","openOnClick","itemTemplate","itemLinkTemplate","ngClass"]],template:function(Le,Pt){1&Le&&e._UZ(0,"ul",0),2&Le&&(e.Q6J("items",Pt.rootItems)("level",0)("size",Pt.size)("vertical",Pt.vertical)("rtl",Pt.rtl)("animate",Pt.animate)("openOnClick",Pt.openOnClick)("itemTemplate",(null==Pt.itemTemplate.first?null:Pt.itemTemplate.first.templateRef)||Pt.menuItemTemplate)("itemLinkTemplate",(null==Pt.itemLinkTemplate.first?null:Pt.itemLinkTemplate.first.templateRef)||Pt.menuItemLinkTemplate)("ngClass",Pt.menuClasses),e.uIk("role",Pt.ariaRole)("aria-orientation",Pt.ariaOrientation))},dependencies:[ht,N.mk],encapsulation:2}),un})();class vn{constructor(ai){this.prevented=!1,Object.assign(this,ai)}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}let Pi=(()=>{class un{}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275mod=e.oAB({type:un}),un.\u0275inj=e.cJS({imports:[[F.Zj,N.ez,R.pc]]}),un})();class ji extends vn{}let gs=(()=>{class un{constructor(Le){this.templateRef=Le}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(e.Rgc,8))},un.\u0275dir=e.lG2({type:un,selectors:[["","kendoContextMenuTemplate",""]]}),un})(),bs=(()=>{class un{constructor(Le){this.contextService=Le}get(Le){if(this.contextService.items)return this.contextService.items.get(Le)}}return un.\u0275fac=function(Le){return new(Le||un)(e.LFG(rn))},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})(),Es=(()=>{class un{constructor(){this.targets=[]}add(Le){this.targets.push(Le)}remove(Le){const Pt=this.targets.indexOf(Le);this.targets.splice(Pt,1)}find(Le){return this.targets.find(Pt=>Pt.element===Le)}}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac}),un})(),ss=(()=>{class un{constructor(Le,Pt){this.targetService=Pt,Le&&(this.element=Le.nativeElement)}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(e.SBq),e.Y36(Es))},un.\u0275dir=e.lG2({type:un,selectors:[["","kendoContextMenuTargetContainer",""]],exportAs:["kendoContextMenuTargetContainer"],features:[e._Bn([Es])]}),un})();const ds="contextmenu",Xi={horizontal:"left",vertical:"bottom"},us={horizontal:"left",vertical:"top"},ps={horizontal:"fit",vertical:"flip"},_s=un=>un.preventDefault();let ei=(()=>{class un extends Ht{constructor(Le,Pt,Be,Jt){super(),this.popupService=Le,this.service=Pt,this.ngZone=Be,this.renderer=Jt,this.showOn=ds,this.alignToAnchor=!1,this.vertical=!0,this.popupOpen=new e.vpe,this.popupClose=new e.vpe,this.select=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.service.owner=this,this.popupKeyDownHandler=this.popupKeyDownHandler.bind(this)}hide(){this.removePopup()}show(Le){if(!Le)return;const Pt=Le;this.removePopup(),Pn(Pt.left)&&Pn(Pt.top)?this.createPopup({offset:Pt}):(this.currentTarget=Pt.nativeElement||Pt,this.createPopup({anchor:this.currentTarget}))}ngOnChanges(Le){(Le.target||Le.showOn)&&this.bindShowHandler()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{const Le=this.renderer.listen("document","mousedown",Be=>{this.popupRef&&!gi(Be.target,Jt=>Jt===this.popupRef.popupElement)&&this.service.leaveMenu(Be)&&this.closePopup(Be)}),Pt=this.renderer.listen("window","blur",Be=>{this.popupRef&&this.closePopup(Be)});this.closeSubscription=()=>{Le(),Pt()}})}ngOnDestroy(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()}emitMenuEvent(Le,Pt){Pt.target=this.currentTarget,Pt.sender=this,this[Le].emit(Pt),"select"===Le&&!Pt.hasContent&&this.closeAndFocus(Pt.originalEvent)}bindShowHandler(){this.unbindShowHandler(),this.ngZone.runOutsideAngular(()=>{const Le=this.targetElement();if(!Le)return;const Pt=this.showOn||ds;this.showSubscription=this.renderer.listen(Le,this.showOn||ds,Be=>{this.showContextMenu(Be,Le)}),Pt===ds&&(this.keydownSubscription=this.renderer.listen(Le,"keydown",Be=>{Be.shiftKey&&Be.keyCode===A.R8.F10&&this.showContextMenu(Be,Le)}))})}showContextMenu(Le,Pt){const Be=this.targetFilter();let Jt=Pt;if(Be){if(Jt=((un,ai,Le)=>{const Pt=Le.getAttribute("id");Pt||Le.setAttribute("id",Mn);const Be=`#${Pt||Mn} ${ai}`,Jt=qn(un,xe=>((un,ai)=>(un.matches||un.msMatchesSelector).call(un,ai))(xe,Be),Le);return Pt||Le.removeAttribute("id"),Jt})(Le.target,Be,Pt),Jt&&Jt!==Le.target&&ki(Le.target))return;Jt&&this.directiveTarget&&(Jt=this.target.targetService.find(Jt))}Jt?this.ngZone.run(()=>{this.closePopup(Le)||(this.currentTarget=Jt,this.openPopup(Le))}):this.closePopup(Le)}unbindShowHandler(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)}targetElement(){if(!(0,A.X_)())return;this.directiveTarget=!1;let Le=this.target;return"string"==typeof Le?Le=document.querySelector(Le):Le&&Le.nativeElement?Le=Le.nativeElement:Le instanceof ss&&(Le=Le.element,this.directiveTarget=!0),Le}targetFilter(){return this.directiveTarget?".k-contextmenu-target":this.filter}closePopup(Le){if(this.popupRef)return this.popupAction("popupClose",Le,()=>{this.removePopup()})}removePopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)}openPopup(Le){this.popupAction("popupOpen",Le,()=>{let Pt,Be;Le.preventDefault(),this.alignToAnchor||"keydown"===Le.type?Pt=this.currentTargetElement:Be={left:Le.pageX,top:Le.pageY},this.createPopup({anchor:Pt,offset:Be})})}createPopup(Le){this.popupRef=this.popupService.open(Object.assign({animate:!Pn(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||ps,popupAlign:this.popupAlign||us,anchorAlign:this.anchorAlign||Xi,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},Le));const Pt=this.popupRef.popupElement;this.renderer.addClass(Pt,"k-context-menu-popup"),this.renderer.setAttribute(Pt,"tabindex","-1"),this.renderer.setStyle(Pt,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(Pt,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(()=>{const Be=this.renderer.listen(Pt,"keydown",this.popupKeyDownHandler),Jt=this.renderer.listen(Pt,"contextmenu",_s);this.popupSubscriptions=()=>{Be(),Jt()}}),Pt.focus()}closeAndFocus(Le){const Pt=this.currentTargetElement;!this.closePopup(Le)&&this.activeTarget&&Pt.focus()}popupKeyDownHandler(Le){const Pt=this.popupRef.popupElement;Le.keyCode!==A.R8.Escape||!Ni(Le.target,"k-menu-item")&&Le.target!==Pt?Le.target===Pt&&this.service.keydown.emit(Le):this.closeAndFocus(Le)}popupAction(Le,Pt,Be){const Jt=this[Le];let xe=!1;return(0,A.g$)(Jt)?this.ngZone.run(()=>{const Ke=new ji({originalEvent:Pt,sender:this,target:this.currentTarget});Jt.emit(Ke),Ke.isDefaultPrevented()||Be(),xe=Ke.isDefaultPrevented()}):Be(),xe}get currentTargetElement(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget}}return un.\u0275fac=function(Le){return new(Le||un)(e.Y36(F.qL),e.Y36(rn),e.Y36(e.R0b),e.Y36(e.Qsj))},un.\u0275cmp=e.Xpm({type:un,selectors:[["kendo-contextmenu"]],contentQueries:function(Le,Pt,Be){if(1&Le&&e.Suo(Be,gs,5),2&Le){let Jt;e.iGM(Jt=e.CRH())&&(Pt.contentTemplate=Jt.first)}},viewQuery:function(Le,Pt){if(1&Le&&e.Gf(Je,5),2&Le){let Be;e.iGM(Be=e.CRH())&&(Pt.defaultContentTemplate=Be.first)}},inputs:{showOn:"showOn",target:"target",filter:"filter",alignToAnchor:"alignToAnchor",vertical:"vertical",popupAnimate:"popupAnimate",popupAlign:"popupAlign",anchorAlign:"anchorAlign",collision:"collision",appendTo:"appendTo",ariaLabel:"ariaLabel"},outputs:{popupOpen:"popupOpen",popupClose:"popupClose",select:"select",open:"open",close:"close"},exportAs:["kendoContextMenu"],features:[e._Bn([rn,o.oQ,{provide:o.mM,useValue:"kendo.contextmenu"},{provide:Ot,useClass:bs},{provide:Ht,useExisting:(0,e.Gpc)(()=>un)},F.qL,{provide:F.sG,useFactory:Sn}]),e.qOj,e.TTD],decls:2,vars:0,consts:[["default",""],["ariaRole","menu",3,"items","size","vertical","openOnClick","hoverDelay","animate","menuItemTemplate","menuItemLinkTemplate"]],template:function(Le,Pt){1&Le&&e.YNc(0,Ft,1,8,"ng-template",null,0,e.W1O)},dependencies:[gt],encapsulation:2}),un})(),po=(()=>{class un{}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275mod=e.oAB({type:un}),un.\u0275inj=e.cJS({imports:[[F.Zj,N.ez,Pi],Pi]}),un})(),As=(()=>{class un{}return un.\u0275fac=function(Le){return new(Le||un)},un.\u0275mod=e.oAB({type:un}),un.\u0275inj=e.cJS({imports:[Pi,po]}),un})()},41749:(fn,ve,_)=>{"use strict";_.d(ve,{AG:()=>os,DL:()=>Bn,Or:()=>Fi,_G:()=>Ce});var e=_(94650),o=_(5651),T=_(13710),A=_(8416),G=_(36895),y=(_(54968),_(56451),_(4707),_(77579),_(50727)),he=(_(39300),_(54004),_(68675),_(13099),_(95698)),Se=_(28942),oe=(_(16010),_(37340));const Nn=function(dn){return{$implicit:dn}};const Ln=["kendoActionSheetItem",""];function Mn(dn,wi){}function pi(dn,wi){if(1&dn&&e.YNc(0,Mn,0,0,"ng-template",2),2&dn){const Gt=e.oxw();e.Q6J("ngTemplateOutlet",Gt.itemTemplate)("ngTemplateOutletContext",e.VKq(2,Nn,Gt.item))}}function Yn(dn,wi){if(1&dn&&(e.TgZ(0,"span",6),e._UZ(1,"kendo-icon-wrapper",7),e.qZA()),2&dn){const Gt=e.oxw(2);e.xp6(1),e.Akn(Gt.manageIconStyles(Gt.item)),e.Tol(Gt.manageIconClasses(Gt.item)),e.Q6J("name",Gt.item.icon)("customFontClass",Gt.item.iconClass)("svgIcon",Gt.item.svgIcon)}}function gi(dn,wi){if(1&dn&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&dn){const Gt=e.oxw(3);e.xp6(1),e.Oqu(Gt.item.title)}}function qn(dn,wi){if(1&dn&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&dn){const Gt=e.oxw(3);e.xp6(1),e.Oqu(Gt.item.description)}}function ki(dn,wi){if(1&dn&&(e.TgZ(0,"span",8),e.YNc(1,gi,2,1,"span",9),e.YNc(2,qn,2,1,"span",10),e.qZA()),2&dn){const Gt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Gt.item.title),e.xp6(1),e.Q6J("ngIf",Gt.item.description)}}function Si(dn,wi){if(1&dn&&(e.TgZ(0,"span",3),e.YNc(1,Yn,2,7,"span",4),e.YNc(2,ki,3,2,"span",5),e.qZA()),2&dn){const Gt=e.oxw();e.xp6(1),e.Q6J("ngIf",Gt.item.icon||Gt.item.iconClass),e.xp6(1),e.Q6J("ngIf",Gt.item.title||Gt.item.description)}}const Ni=["kendoActionSheetList",""];function pn(dn,wi){if(1&dn&&e._UZ(0,"span",1),2&dn){const Gt=wi.$implicit,_i=e.oxw();e.ekj("k-actionsheet-item",!0)("k-disabled",Gt.disabled),e.Q6J("ngClass",Gt.cssClass)("ngStyle",Gt.cssStyle)("itemTemplate",_i.itemTemplate)("item",Gt),e.uIk("aria-disabled",Gt.disabled)("kendo-actionsheet-item-index",_i.setAttrIndex(Gt))}}const Vn=["childContainer"];function ot(dn,wi){}function en(dn,wi){if(1&dn&&e.YNc(0,ot,0,0,"ng-template",8),2&dn){const Gt=e.oxw(2);e.Q6J("ngTemplateOutlet",null==Gt.actionSheetTemplate?null:Gt.actionSheetTemplate.templateRef)}}function lt(dn,wi){}function In(dn,wi){if(1&dn&&e.YNc(0,lt,0,0,"ng-template",8),2&dn){const Gt=e.oxw(4);e.Q6J("ngTemplateOutlet",null==Gt.headerTemplate?null:Gt.headerTemplate.templateRef)}}function rn(dn,wi){if(1&dn&&(e.TgZ(0,"div",18),e._uU(1),e.qZA()),2&dn){const Gt=e.oxw(5);e.xp6(1),e.Oqu(Gt.title)}}function Qt(dn,wi){if(1&dn&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&dn){const Gt=e.oxw(5);e.xp6(1),e.Oqu(Gt.subtitle)}}function yi(dn,wi){if(1&dn&&(e.TgZ(0,"div",14)(1,"div",15),e.YNc(2,rn,2,1,"div",16),e.YNc(3,Qt,2,1,"div",17),e.qZA()()),2&dn){const Gt=e.oxw(4);e.xp6(1),e.Q6J("id",Gt.titleId),e.xp6(1),e.Q6J("ngIf",Gt.title),e.xp6(1),e.Q6J("ngIf",Gt.subtitle)}}function Li(dn,wi){if(1&dn&&(e.TgZ(0,"div",12),e.YNc(1,In,1,1,null,6),e.YNc(2,yi,4,3,"ng-template",null,13,e.W1O),e.qZA()),2&dn){const Gt=e.MAs(3),_i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",_i.headerTemplate)("ngIfElse",Gt)}}function An(dn,wi){}function Ht(dn,wi){if(1&dn&&e.YNc(0,An,0,0,"ng-template",8),2&dn){const Gt=e.oxw(4);e.Q6J("ngTemplateOutlet",null==Gt.contentTemplate?null:Gt.contentTemplate.templateRef)}}function Pn(dn,wi){if(1&dn){const Gt=e.EpF();e.TgZ(0,"div",24),e.NdJ("itemClick",function(Wi){e.CHM(Gt);const Ks=e.oxw(5);return e.KtG(Ks.onItemClick(Wi))}),e.qZA()}if(2&dn){const Gt=e.oxw(5);e.Q6J("groupItems",Gt.topGroupItems)("allItems",Gt.items)("itemTemplate",null==Gt.itemTemplate?null:Gt.itemTemplate.templateRef)}}function Sn(dn,wi){1&dn&&e._UZ(0,"hr",25)}function Fn(dn,wi){if(1&dn){const Gt=e.EpF();e.TgZ(0,"div",24),e.NdJ("itemClick",function(Wi){e.CHM(Gt);const Ks=e.oxw(5);return e.KtG(Ks.onItemClick(Wi))}),e.qZA()}if(2&dn){const Gt=e.oxw(5);e.Q6J("groupItems",Gt.bottomGroupItems)("allItems",Gt.items)("itemTemplate",null==Gt.itemTemplate?null:Gt.itemTemplate.templateRef)}}function Cn(dn,wi){if(1&dn&&(e.YNc(0,Pn,1,3,"div",22),e.YNc(1,Sn,1,0,"hr",23),e.YNc(2,Fn,1,3,"div",22)),2&dn){const Gt=e.oxw(4);e.Q6J("ngIf",Gt.topGroupItems),e.xp6(1),e.Q6J("ngIf",Gt.shouldRenderSeparator),e.xp6(1),e.Q6J("ngIf",Gt.bottomGroupItems)}}function Un(dn,wi){if(1&dn&&(e.TgZ(0,"div",20),e.YNc(1,Ht,1,1,null,6),e.YNc(2,Cn,3,3,"ng-template",null,21,e.W1O),e.qZA()),2&dn){const Gt=e.MAs(3),_i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",_i.contentTemplate)("ngIfElse",Gt)}}function fi(dn,wi){}function bi(dn,wi){if(1&dn&&(e.TgZ(0,"div",26),e.YNc(1,fi,0,0,"ng-template",8),e.qZA()),2&dn){const Gt=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",null==Gt.footerTemplate?null:Gt.footerTemplate.templateRef)}}function Zn(dn,wi){if(1&dn&&(e.YNc(0,Li,4,2,"div",9),e.YNc(1,Un,4,2,"div",10),e.YNc(2,bi,2,1,"div",11)),2&dn){const Gt=e.oxw(2);e.Q6J("ngIf",Gt.title||Gt.subtitle||Gt.headerTemplate),e.xp6(1),e.Q6J("ngIf",Gt.items||Gt.contentTemplate),e.xp6(1),e.Q6J("ngIf",Gt.footerTemplate)}}function mn(dn,wi){if(1&dn){const Gt=e.EpF();e.ynx(0),e.TgZ(1,"div",1),e.NdJ("click",function(){e.CHM(Gt);const Wi=e.oxw();return e.KtG(Wi.onOverlayClick())}),e.qZA(),e.TgZ(2,"div",2)(3,"div",3,4)(5,"div",5),e.YNc(6,en,1,1,null,6),e.YNc(7,Zn,3,3,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()}if(2&dn){const Gt=e.MAs(8),_i=e.oxw();e.xp6(3),e.Akn("bottom: 0px; width: 100%;"),e.xp6(2),e.Q6J("ngClass",_i.cssClass),e.uIk("aria-labelledby",_i.titleId),e.xp6(1),e.Q6J("ngIf",_i.actionSheetTemplate)("ngIfElse",Gt)}}const ze={name:"@progress/kendo-angular-navigation",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310574,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},U=dn=>null!=dn,Lt=dn=>{const wi=kt(dn);return[wi.length>0?wi[0]:dn,wi.length>0?wi[wi.length-1]:dn]},kt=dn=>dn.querySelectorAll(A.y);let vn=0;const jn=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,De="kendo-actionsheet-item-index",ie=(dn,wi,Gt)=>{const _i=Ut(dn,wi,Gt);if(_i)return je(_i,wi)},je=(dn,wi)=>+dn.getAttribute(wi),Ut=(dn,wi,Gt)=>(0,A.T2)(dn,_i=>((dn,wi)=>U(dn.getAttribute(wi)))(_i,wi),Gt);let ri=(()=>{class dn{}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275mod=e.oAB({type:dn}),dn.\u0275inj=e.cJS({imports:[[G.ez]]}),dn})();const _s=dn=>wi=>wi.find(Gt=>(dn=>dn.item.context.collapsed)(Gt)===dn).item.context.collapsed=!dn;_s(!1),_s(!0);let Le=(()=>{class dn{}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275mod=e.oAB({type:dn}),dn.\u0275inj=e.cJS({imports:[[G.ez,A.uv,Se.pc]]}),dn})();let qi=(()=>{class dn{}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275mod=e.oAB({type:dn}),dn.\u0275inj=e.cJS({imports:[[G.ez,Se.pc]]}),dn})(),Mo=(()=>{class dn{constructor(Gt){this.templateRef=Gt}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Rgc,8))},dn.\u0275dir=e.lG2({type:dn,selectors:[["","kendoActionSheetHeaderTemplate",""]]}),dn})(),bo=(()=>{class dn{constructor(Gt){this.templateRef=Gt}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Rgc,8))},dn.\u0275dir=e.lG2({type:dn,selectors:[["","kendoActionSheetItemTemplate",""]]}),dn})(),Ps=(()=>{class dn{constructor(Gt){this.templateRef=Gt}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Rgc,8))},dn.\u0275dir=e.lG2({type:dn,selectors:[["","kendoActionSheetContentTemplate",""]]}),dn})(),Wt=(()=>{class dn{constructor(Gt){this.templateRef=Gt}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Rgc,8))},dn.\u0275dir=e.lG2({type:dn,selectors:[["","kendoActionSheetFooterTemplate",""]]}),dn})(),Bn=(()=>{class dn{constructor(Gt){this.templateRef=Gt}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Rgc,8))},dn.\u0275dir=e.lG2({type:dn,selectors:[["","kendoActionSheetTemplate",""]]}),dn})(),Pe=(()=>{class dn{constructor(){this.pointerClass=!0}manageIconClasses(Gt){const _i=["k-actionsheet-item-icon"],Wi=U(Gt.iconColor)&&jn.test(Gt.iconColor);return U(Gt.iconColor)&&""!==Gt.iconColor&&!Wi&&_i.push(`k-text-${Gt.iconColor}`),_i.join(" ")}manageIconStyles(Gt){const _i=U(Gt.iconColor)&&jn.test(Gt.iconColor),Wi=U(Gt.iconSize)&&""!==Gt.iconSize,Ks={};return _i&&(Ks.color=Gt.iconColor),Wi&&(Ks.fontSize=Gt.iconSize),Ks}}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275cmp=e.Xpm({type:dn,selectors:[["","kendoActionSheetItem",""]],hostVars:2,hostBindings:function(Gt,_i){2&Gt&&e.ekj("k-cursor-pointer",_i.pointerClass)},inputs:{itemTemplate:"itemTemplate",item:"item"},attrs:Ln,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-actionsheet-action"],["class","k-icon-wrap",4,"ngIf"],["class","k-actionsheet-item-text",4,"ngIf"],[1,"k-icon-wrap"],[3,"name","customFontClass","svgIcon"],[1,"k-actionsheet-item-text"],["class","k-actionsheet-item-title",4,"ngIf"],["class","k-actionsheet-item-description",4,"ngIf"],[1,"k-actionsheet-item-title"],[1,"k-actionsheet-item-description"]],template:function(Gt,_i){if(1&Gt&&(e.YNc(0,pi,1,4,null,0),e.YNc(1,Si,3,2,"ng-template",null,1,e.W1O)),2&Gt){const Wi=e.MAs(2);e.Q6J("ngIf",_i.itemTemplate)("ngIfElse",Wi)}},dependencies:[Se.ZS,G.O5,G.tP],encapsulation:2}),dn})(),gn=(()=>{class dn{constructor(Gt,_i,Wi){this.renderer=Gt,this.ngZone=_i,this.element=Wi,this.groupItems=[],this.allItems=[],this.itemClick=new e.vpe,this.subscriptions=new y.w0}ngAfterViewInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions.unsubscribe()}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(this.element.nativeElement,"click",this.clickHandler.bind(this)))})}clickHandler(Gt){const _i=ie(Gt.target,De,this.element.nativeElement),Wi=this.allItems[_i];if(Wi){if(Wi.disabled)return void Gt.preventDefault();this.ngZone.run(()=>{this.itemClick.emit({item:Wi,originalEvent:Gt})})}}setAttrIndex(Gt){return this.allItems.indexOf(Gt)}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.SBq))},dn.\u0275cmp=e.Xpm({type:dn,selectors:[["","kendoActionSheetList",""]],inputs:{groupItems:"groupItems",allItems:"allItems",itemTemplate:"itemTemplate"},outputs:{itemClick:"itemClick"},attrs:Ni,decls:1,vars:1,consts:[["kendoActionSheetItem","","tabindex","0","role","button",3,"k-actionsheet-item","k-disabled","ngClass","ngStyle","itemTemplate","item",4,"ngFor","ngForOf"],["kendoActionSheetItem","","tabindex","0","role","button",3,"ngClass","ngStyle","itemTemplate","item"]],template:function(Gt,_i){1&Gt&&e.YNc(0,pn,1,10,"span",0),2&Gt&&e.Q6J("ngForOf",_i.groupItems)},dependencies:[Pe,G.sg,G.mk,G.PC],encapsulation:2}),dn})();let Ce=(()=>{class dn{constructor(Gt,_i,Wi,Ks,So,wo){this.element=Gt,this.ngZone=_i,this.renderer=Wi,this.localizationService=Ks,this.builder=So,this.cdr=wo,this.animation=!0,this.expanded=!1,this.expandedChange=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.itemClick=new e.vpe,this.overlayClick=new e.vpe,this.titleId=null,this.rtl=!1,this.domSubs=new y.w0,this.animationEnd=new e.vpe,(0,T.s)(ze),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:da})=>{this.rtl=da,this.direction=this.rtl?"rtl":"ltr"}),this.titleId="k-actionsheet-title"+ ++vn}get hostClass(){return this.expanded}ngAfterViewInit(){this.initDomEvents(),this.setCssVariables()}ngOnChanges(Gt){Gt.expanded&&this.expanded&&this.setExpanded(!0)}ngOnDestroy(){this.domSubs.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.player&&this.player.destroy()}toggle(Gt){const _i=this.expanded,Wi=(0,A.EN)(Gt)?Gt:!_i;Wi!==_i&&(!0===Wi?this.setExpanded(!0):!1===Wi&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe((0,he.q)(1)).subscribe(()=>{this.onAnimationEnd(Wi)}),this.playAnimation(Wi)):this[Wi?"expand":"collapse"].emit())}get topGroupItems(){return this.items?.filter(Gt=>!Gt.group||"top"===Gt.group)}get bottomGroupItems(){return this.items?.filter(Gt=>"bottom"===Gt.group)}onItemClick(Gt){this.itemClick.emit(Gt)}onOverlayClick(){this.overlayClick.emit()}get shouldRenderSeparator(){return this.topGroupItems?.length>0&&this.bottomGroupItems?.length>0}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.element.nativeElement,"keydown",Gt=>{this.onKeyDown(Gt)}))})}setCssVariables(){this.element&&this.renderer.setAttribute(this.element.nativeElement,"style","--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none")}onKeyDown(Gt){const _i=Gt.target;Gt.keyCode===A.R8.Tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(_i,Gt)}),Gt.keyCode===A.R8.Escape&&this.ngZone.run(()=>{this.overlayClick.emit()}),Gt.keyCode===A.R8.Enter&&this.ngZone.run(()=>{this.triggerItemClick(_i,Gt)})}handleInitialFocus(){const[Gt]=Lt(this.element.nativeElement);Gt&&Gt.focus()}keepFocusWithinComponent(Gt,_i){const Wi=this.element.nativeElement,[Ks,So]=Lt(Wi),da=_i.shiftKey&&Gt===Ks;!_i.shiftKey&&Gt===So&&(_i.preventDefault(),Ks.focus()),da&&(_i.preventDefault(),So.focus())}triggerItemClick(Gt,_i){const Wi=ie(Gt,De,this.element.nativeElement),Ks=(0,A.EN)(Wi)?this.items[Wi]:null;!Ks||Ks.disabled||this.itemClick.emit({item:Ks,originalEvent:_i})}setExpanded(Gt){this.expanded=Gt,this.expandedChange.emit(Gt),this.expanded&&(this.cdr.detectChanges(),this.handleInitialFocus())}onAnimationEnd(Gt){Gt?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}playAnimation(Gt){const _i="boolean"!=typeof this.animation&&this.animation.duration?this.animation.duration:300,Wi=getComputedStyle(this.childContainer.nativeElement).height,Ks=Gt?function ti(dn,wi){return[(0,oe.oB)({overflow:"hidden",display:"block",height:0}),(0,oe.jt)(`${dn}ms ease-in`,(0,oe.oB)({height:`${wi}`}))]}(_i,Wi):function Ui(dn,wi){return[(0,oe.oB)({overflow:"hidden",height:`${wi}`}),(0,oe.jt)(`${dn}ms ease-in`,(0,oe.oB)({overflow:"hidden",height:0}))]}(_i,Wi),So=this.builder.build(Ks);this.player=So.create(this.childContainer.nativeElement),this.player.onDone(()=>{this.player&&(this.animationEnd.emit(),this.player.destroy(),this.player=null)}),this.player.play()}}return dn.\u0275fac=function(Gt){return new(Gt||dn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(o.oQ),e.Y36(oe._j),e.Y36(e.sBO))},dn.\u0275cmp=e.Xpm({type:dn,selectors:[["kendo-actionsheet"]],contentQueries:function(Gt,_i,Wi){if(1&Gt&&(e.Suo(Wi,Bn,5),e.Suo(Wi,Mo,5),e.Suo(Wi,Ps,5),e.Suo(Wi,bo,5),e.Suo(Wi,Wt,5)),2&Gt){let Ks;e.iGM(Ks=e.CRH())&&(_i.actionSheetTemplate=Ks.first),e.iGM(Ks=e.CRH())&&(_i.headerTemplate=Ks.first),e.iGM(Ks=e.CRH())&&(_i.contentTemplate=Ks.first),e.iGM(Ks=e.CRH())&&(_i.itemTemplate=Ks.first),e.iGM(Ks=e.CRH())&&(_i.footerTemplate=Ks.first)}},viewQuery:function(Gt,_i){if(1&Gt&&e.Gf(Vn,5),2&Gt){let Wi;e.iGM(Wi=e.CRH())&&(_i.childContainer=Wi.first)}},hostVars:3,hostBindings:function(Gt,_i){2&Gt&&(e.uIk("dir",_i.direction),e.ekj("k-actionsheet-container",_i.hostClass))},inputs:{title:"title",subtitle:"subtitle",items:"items",cssClass:"cssClass",animation:"animation",expanded:"expanded"},outputs:{expandedChange:"expandedChange",expand:"expand",collapse:"collapse",itemClick:"itemClick",overlayClick:"overlayClick"},exportAs:["kendoActionSheet"],features:[e._Bn([o.oQ,{provide:o.mM,useValue:"kendo.actionsheet.component"}]),e.TTD],decls:1,vars:1,consts:[[4,"ngIf"],[1,"k-overlay",3,"click"],[1,"k-animation-container"],[1,"k-child-animation-container"],["childContainer",""],["role","dialog","aria-modal","true",1,"k-actionsheet","k-actionsheet-bottom",3,"ngClass"],[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet"],["class","k-actionsheet-titlebar",4,"ngIf"],["class","k-actionsheet-content",4,"ngIf"],["class","k-actionsheet-footer",4,"ngIf"],[1,"k-actionsheet-titlebar"],["defaultHeaderTemplate",""],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title",3,"id"],["class","k-text-center",4,"ngIf"],["class","k-actionsheet-subtitle k-text-center",4,"ngIf"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-content"],["defaultContentTemplate",""],["kendoActionSheetList","","class","k-list-ul","role","group",3,"groupItems","allItems","itemTemplate","itemClick",4,"ngIf"],["class","k-hr",4,"ngIf"],["kendoActionSheetList","","role","group",1,"k-list-ul",3,"groupItems","allItems","itemTemplate","itemClick"],[1,"k-hr"],[1,"k-actionsheet-footer"]],template:function(Gt,_i){1&Gt&&e.YNc(0,mn,9,6,"ng-container",0),2&Gt&&e.Q6J("ngIf",_i.expanded)},dependencies:[gn,G.O5,G.mk,G.tP],encapsulation:2}),dn})(),Fi=(()=>{class dn{}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275mod=e.oAB({type:dn}),dn.\u0275inj=e.cJS({imports:[[G.ez,Se.pc]]}),dn})(),os=(()=>{class dn{}return dn.\u0275fac=function(Gt){return new(Gt||dn)},dn.\u0275mod=e.oAB({type:dn}),dn.\u0275inj=e.cJS({imports:[ri,Le,qi,Fi]}),dn})()},65910:(fn,ve,_)=>{"use strict";_.d(ve,{PQ:()=>ct,gq:()=>Ye});var e=_(94650),o=_(37340),T=_(95698),A=_(13710),G=_(5651),F=_(16010),N=_(8416),R=_(28942),P=_(36895);const y=["container"];function j(ut,Ct){if(1&ut&&e._UZ(0,"kendo-icon-wrapper",8),2&ut){const Ue=e.oxw();e.Q6J("name",Ue.typeIconClass())("svgIcon",Ue.typeSVGIcon())}}function Y(ut,Ct){}function ee(ut,Ct){if(1&ut&&e._uU(0),2&ut){const Ue=e.oxw();e.hij(" ",Ue.templateString," ")}}function se(ut,Ct){if(1&ut){const Ue=e.EpF();e.TgZ(0,"span",9)(1,"span",10),e.NdJ("click",function(){e.CHM(Ue);const ln=e.oxw();return e.KtG(ln.onCloseClick())}),e._UZ(2,"kendo-icon-wrapper",11),e.qZA()()}if(2&ut){const Ue=e.oxw();e.xp6(1),e.uIk("title",Ue.closeButtonTitle),e.xp6(1),e.Q6J("svgIcon",Ue.xIcon)}}const he=["group"],te={name:"@progress/kendo-angular-notification",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310566,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Q=(()=>{class ut extends G.Z1{constructor(Ue){super(),this.service=Ue}}return ut.\u0275fac=function(Ue){return new(Ue||ut)(e.Y36(G.oQ))},ut.\u0275dir=e.lG2({type:ut,selectors:[["","kendoNotificationLocalizedMessages",""]],inputs:{closeTitle:"closeTitle"},features:[e._Bn([{provide:G.Z1,useExisting:(0,e.Gpc)(()=>ut)}]),e.qOj]}),ut})(),pe=(()=>{class ut{constructor(Ue,vt,ln,Je,Ft){this.cdr=Ue,this.element=vt,this.renderer=ln,this.builder=Je,this.localizationService=Ft,this.xIcon=F.FZE,this.contentId=`k-${(0,N.M8)()}`,this.close=new e.vpe,this.width=null,this.height=null,this.notificationLabel="Notification",this.defaultHideAfter=5e3,this.animationEnd=new e.vpe,this.rtl=!1,(0,A.s)(te),this.dynamicRTLSubscription=Ft.changes.subscribe(({rtl:st})=>{this.rtl=st,this.direction=this.rtl?"rtl":"ltr"})}get containerClass(){return!0}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}notificationClasses(){return`${this.type?this.typeClass():""}\n            ${this.closable?"k-notification-closable":""}`}ngOnInit(){clearTimeout(this.hideTimeout)}ngOnDestroy(){clearTimeout(this.hideTimeout),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngAfterViewInit(){!this.closable&&!this.animation&&this.setHideTimeout(),!this.closable&&this.animation&&this.animationEnd.pipe((0,T.q)(1)).subscribe(()=>this.setHideTimeout()),this.animation&&this.animate(this.animation)}typeClass(){return{none:"",success:"k-notification-success",warning:"k-notification-warning",error:"k-notification-error",info:"k-notification-info"}[this.type.style]}typeIconClass(){return{none:"",success:"check-outline",warning:"exclamation-circle",error:"x-outline",info:"info-circle"}[this.type.style]}typeSVGIcon(){return{none:null,success:F.DMe,warning:F.tjX,error:F.gU7,info:F.i4I}[this.type.style]}onCloseClick(){clearTimeout(this.hideTimeout),this.hide()}hide(Ue){const vt=getComputedStyle(this.element.nativeElement).height;if(this.animation&&vt)return this.animate(this.animation,!0),void this.animationEnd.subscribe(()=>{this.emitClose(Ue)});this.emitClose(Ue)}setHideTimeout(){this.hideTimeout=window.setTimeout(()=>this.onCloseClick(),this.hideAfter||this.defaultHideAfter)}emitClose(Ue){Ue&&Ue.destroy(),this.close.emit()}play(Ue,vt){const ln=this.builder.build(Ue),Je=this.element.nativeElement;this.renderer.addClass(Je,"k-notification-container-animating");let Ft=ln.create(vt);Ft.onDone(()=>{this.renderer.removeClass(Je,"k-notification-container-animating"),this.animationEnd.emit(),Ft&&(Ft.destroy(),Ft=null)}),Ft.play()}animate(Ue,vt){const ln=this.element.nativeElement,Je=Ue.duration,st="slide"===Ue.type?this.slideAnimation(ln.offsetHeight,Je,vt):this.fadeAnimation(Je,vt);this.play(st,ln)}slideAnimation(Ue,vt,ln){return ln?function q(ut,Ct){return[(0,o.oB)({height:`${ut}px`}),(0,o.jt)(`${Ct}ms ease-in`,(0,o.oB)({overflow:"hidden",height:0}))]}(Ue,vt):function oe(ut,Ct){return[(0,o.oB)({overflow:"hidden",height:0}),(0,o.jt)(`${Ct}ms ease-in`,(0,o.oB)({height:`${ut}px`}))]}(Ue,vt)}fadeAnimation(Ue,vt){return vt?function ae(ut){return[(0,o.oB)({opacity:1}),(0,o.jt)(`${ut}ms ease-in`,(0,o.oB)({opacity:0}))]}(Ue):function we(ut){return[(0,o.oB)({opacity:0}),(0,o.jt)(`${ut}ms ease-in`,(0,o.oB)({opacity:1}))]}(Ue)}}return ut.\u0275fac=function(Ue){return new(Ue||ut)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(o._j),e.Y36(G.oQ))},ut.\u0275cmp=e.Xpm({type:ut,selectors:[["kendo-notification"]],viewQuery:function(Ue,vt){if(1&Ue&&e.Gf(y,7,e.s_b),2&Ue){let ln;e.iGM(ln=e.CRH())&&(vt.container=ln.first)}},hostVars:3,hostBindings:function(Ue,vt){2&Ue&&(e.uIk("dir",vt.direction),e.ekj("k-notification-container",vt.containerClass))},inputs:{templateRef:"templateRef",templateString:"templateString",width:"width",height:"height",notificationLabel:"notificationLabel",cssClass:"cssClass",hideAfter:"hideAfter",closable:"closable",type:"type",animation:"animation"},features:[e._Bn([G.oQ,{provide:G.mM,useValue:"kendo.notification"}])],decls:9,vars:16,consts:function(){let Ct;return Ct=$localize`:kendo.notification.closeTitle|The title of the close button:Close`,[["kendoNotificationLocalizedMessages","","closeTitle",Ct],["role","alert","aria-live","polite",3,"ngClass"],["innerCssClass","k-notification-status",3,"name","svgIcon",4,"ngIf"],[1,"k-notification-content",3,"id"],[3,"ngIf","ngTemplateOutlet"],[3,"ngIf"],["container",""],["class","k-notification-actions","aria-hidden","true",4,"ngIf"],["innerCssClass","k-notification-status",3,"name","svgIcon"],["aria-hidden","true",1,"k-notification-actions"],[1,"k-notification-action","k-notification-close-action",3,"click"],["name","x",3,"svgIcon"]]},template:function(Ue,vt){1&Ue&&(e.GkF(0,0),e.TgZ(1,"div",1),e.YNc(2,j,1,2,"kendo-icon-wrapper",2),e.TgZ(3,"div",3),e.YNc(4,Y,0,0,"ng-template",4),e.YNc(5,ee,1,1,"ng-template",5),e.GkF(6,null,6),e.qZA(),e.YNc(8,se,3,2,"span",7),e.qZA()),2&Ue&&(e.xp6(1),e.Gre("k-notification ",vt.notificationClasses(),""),e.Udp("height",vt.height,"px")("width",vt.width,"px"),e.Q6J("ngClass",vt.cssClass),e.uIk("aria-describedby",vt.contentId)("aria-label",vt.notificationLabel),e.xp6(1),e.Q6J("ngIf",vt.type&&vt.type.icon&&"none"!==vt.type.style),e.xp6(1),e.Q6J("id",vt.contentId),e.xp6(1),e.Q6J("ngIf",vt.templateRef)("ngTemplateOutlet",vt.templateRef),e.xp6(1),e.Q6J("ngIf",vt.templateString),e.xp6(3),e.Q6J("ngIf",vt.closable))},dependencies:[R.ZS,Q,P.mk,P.O5,P.tP],encapsulation:2}),ut})(),Ee=(()=>{class ut{constructor(Ue,vt,ln){this.element=Ue,this.renderer=vt,this.resolver=ln,this.id="",this.notifications=[]}ngOnDestroy(){this.notifications.forEach(Ue=>{Ue.closeClickSubscription&&Ue.closeClickSubscription.unsubscribe()}),this.notifications=[]}addNotification(Ue){this.position=Ue.position,this.id=`${this.position.horizontal} ${this.position.vertical}`;const vt=this.resolver.resolveComponentFactory(pe),ln=this.container.createComponent(vt);this.applySettings(ln,Ue);let Je=null;if("function"==typeof Ue.content){const Ft=this.resolver.resolveComponentFactory(Ue.content);Je=ln.instance.container.createComponent(Ft)}return ln.changeDetectorRef.detectChanges(),this.notifications.push(ln.instance),Ue.appendTo&&this.applyAbsolutePosition(Ue.appendTo),this.applyPosition(),this.applyContainerWrap(),{afterHide:ln.instance.close,hide:()=>ln.instance.hide(Je),notification:ln,content:Je||null}}hide(Ue){const vt=Ue.instance,ln=this.notifications.indexOf(vt);this.notifications.splice(ln,1),vt.closeClickSubscription&&vt.closeClickSubscription.unsubscribe(),vt.templateRef=null,vt.templateString=null,Ue.destroy()}applyContainerWrap(){this.renderer.setStyle(this.group.nativeElement,"flex-wrap","right"===this.position.horizontal?"wrap-reverse":"wrap")}applySettings(Ue,vt){const ln=Ue.instance,Je=vt.content,Ft=vt.animation||null;ln.closeClickSubscription=ln.close.subscribe(()=>this.hide(Ue)),"string"==typeof Je&&(ln.templateString=Je),Je instanceof e.Rgc&&(ln.templateRef=Je),ln.animation=Ft;const st=vt.type;st&&void 0===st.style&&(st.style="none"),st&&void 0===st.icon&&(st.icon=!0),ln.type=st,ln.closeTitle=vt.closeTitle,vt.cssClass&&(ln.cssClass=vt.cssClass),ln.closable=vt.closable,ln.hideAfter=vt.hideAfter,ln.width=vt.width,ln.height=vt.height}applyAbsolutePosition(Ue){const vt=Ue.element.nativeElement,ln=this.element.nativeElement.children[0];"static"===window.getComputedStyle(vt).position&&this.renderer.setStyle(vt,"position","relative"),this.renderer.setStyle(ln,"position","absolute")}applyPosition(){const Ue=this.element.nativeElement.children[0],vt=Ue.getBoundingClientRect().width/2,ln=this.setContainerPosition(this.position,vt);Object.keys(ln).forEach(Je=>{Ue.style[Je]=ln[Je]})}setContainerPosition(Ue,vt){const ln={horizontal:{left:{left:0,alignItems:"flex-start"},right:{right:0,alignItems:"flex-start"},center:{left:"50%",marginLeft:-vt+"px",alignItems:"center"}},vertical:{top:{top:0},bottom:{bottom:0}}};return Object.assign({},ln.horizontal[Ue.horizontal],ln.vertical[Ue.vertical])}}return ut.\u0275fac=function(Ue){return new(Ue||ut)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e._Vd))},ut.\u0275cmp=e.Xpm({type:ut,selectors:[["kendo-notification-container"]],viewQuery:function(Ue,vt){if(1&Ue&&(e.Gf(y,7,e.s_b),e.Gf(he,7)),2&Ue){let ln;e.iGM(ln=e.CRH())&&(vt.container=ln.first),e.iGM(ln=e.CRH())&&(vt.group=ln.first)}},inputs:{id:"id"},decls:4,vars:0,consts:[[1,"k-notification-group"],["group",""],["container",""]],template:function(Ue,vt){1&Ue&&(e.TgZ(0,"div",0,1),e.GkF(2,null,2),e.qZA())},encapsulation:2}),ut})();const ke=new e.OlP("Notification Container");let Ye=(()=>{class ut{constructor(Ue,vt,ln){this.resolver=Ue,this.injector=vt,this.container=ln,this.notificationContainers=[],this.position={horizontal:"right",vertical:"top"}}show(Ue){if(!Ue)throw new Error("NotificationSettings settings are required");const vt=this.findGroupContainer(Ue),ln=Ue.position||this.position,Je=`${ln.horizontal} ${ln.vertical}`;let Ft,st,Ze=this.notificationContainers.find($e=>vt.nativeElement.contains($e.element.nativeElement)&&$e.id===Je);if(!Ze){Ft=this.resolver.resolveComponentFactory(Ee).create(this.injector),Ze=Ft.instance,this.appRef.attachView(Ft.hostView);const $e=Ft.location.nativeElement,Oe=this.findGroupContainer(Ue);if(!Oe)throw new Error("\n                    View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via\n                    the appendTo option. See http://www.telerik.com/kendo-angular-ui/components/notification/api/NOTIFICATION_CONTAINER/\n                    for more details.\n                ");Oe.nativeElement.appendChild($e),this.notificationContainers.push(Ze)}return Ue.position=ln,st=Ze.addNotification(Ue),st}get appRef(){return this.applicationRef||(this.applicationRef=this.injector.get(e.z2F)),this.applicationRef}findGroupContainer(Ue){let vt;if(Ue.appendTo)vt=Ue.appendTo.element;else if(this.container)vt=this.container;else{const ln=this.appRef.components&&this.appRef.components[0];vt=ln?ln.location:null}return vt}}return ut.\u0275fac=function(Ue){return new(Ue||ut)(e.LFG(e._Vd),e.LFG(e.zs3),e.LFG(ke,8))},ut.\u0275prov=e.Yz7({token:ut,factory:ut.\u0275fac}),ut})(),ct=(()=>{class ut{}return ut.\u0275fac=function(Ue){return new(Ue||ut)},ut.\u0275mod=e.oAB({type:ut}),ut.\u0275inj=e.cJS({providers:[Ye],imports:[[P.ez,R.pc]]}),ut})()},5643:(fn,ve,_)=>{"use strict";_.d(ve,{Zj:()=>Ln,qL:()=>sn,sG:()=>an});var e=_(94650),o=_(66069),T=_(8416),A=_(54968),G=_(56451),F=_(88996),N=_(23601),R=_(37340),P=_(13710),y=_(36895);const j=["container"];function Y(Mn,pi){}const ee=["*"],se=(Mn,pi)=>Mn||{height:0,left:pi.left,top:pi.top,width:0},oe=()=>typeof window<"u",we=/auto|scroll/,pe=Mn=>(Mn=>`${Mn.style.overflow}${Mn.style.overflowX}${Mn.style.overflowY}`)(Mn)||(Mn=>{const pi=window.getComputedStyle(Mn);return`${pi.overflow}${pi.overflowX}${pi.overflowY}`})(Mn),ke=1e3/60,ct=function Ye(Mn){let pi,Yn=!1;return(...gi)=>(Yn||(pi=Mn(...gi),Yn=!0),pi)}(()=>{if(!(0,T.X_)()&&null!==document.body)return!1;const pi=document.createElement("div");pi.style.transform="matrix(10, 0, 0, 10, 0, 0)";const Yn=document.createElement("div");Yn.style.position="fixed",Yn.style.top="10px",Yn.textContent="child",pi.appendChild(Yn),document.body.appendChild(pi);const gi=10!==pi.children[0].getBoundingClientRect().top;return document.body.removeChild(pi),gi}),Ct=(Mn,pi)=>Mn&&1!==pi?{height:Mn.height/pi,left:Mn.left/pi,top:Mn.top/pi,width:Mn.width/pi}:Mn,Ue=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];let vt=(()=>{class Mn{addOffset(Yn,gi){return{left:Yn.left+gi.left,top:Yn.top+gi.top}}addScroll(Yn,gi){return(0,o.qg)(Yn,gi)}align(Yn){return(0,o.AJ)(Yn)}boundingOffset(Yn){return(0,o.w5)(Yn)}getFontStyles(Yn){const gi=this.getWindow();if(!gi||!Yn)return[];const qn=gi.getComputedStyle(Yn);return Ue.map(ki=>({key:ki,value:qn[ki]}))}getWindow(){return oe()?window:null}hasOffsetParent(Yn){return!(!Yn||!(0,T.X_)()||!this.nativeElement(Yn).offsetParent)}offset(Yn){return Yn&&(0,T.X_)()?(0,o.cv)(Yn):null}offsetAtPoint(Yn,gi){if(!Yn||!(0,T.X_)())return null;const qn=this.nativeElement(Yn),{left:ki,top:Si,transition:Ni}=qn.style;qn.style.transition="none",qn.style.left=`${gi.left}px`,qn.style.top=`${gi.top}px`;const pn=(0,o.cv)(qn);return qn.style.left=ki,qn.style.top=Si,this._dummy=qn.offsetHeight,qn.style.transition=Ni,pn}nativeElement(Yn){return Yn&&(0,T.X_)()?Yn.nativeElement||Yn:null}position(Yn,gi,qn=1){return Yn&&gi?(0,o.Wl)(Yn,this.nativeElement(gi),qn):null}removeScroll(Yn,gi){return(0,o.aF)(Yn,gi)}restrictToView(Yn){return(0,o.Lz)(Yn)}scrollPosition(Yn){return(0,o.on)(this.nativeElement(Yn))}scrollableParents(Yn){return(Mn=>{const pi=[];if(!(0,T.X_)()||!oe())return pi;let Yn=Mn.parentElement;for(;Yn;)(we.test(pe(Yn))||Yn.hasAttribute("data-scrollable"))&&pi.push(Yn),Yn=Yn.parentElement;return pi.push(window),pi})(Yn)}stackingElementOffset(Yn){const gi=this.getRelativeContextElement(Yn);return gi?(0,o.cv)(gi):null}stackingElementScroll(Yn){const gi=this.getRelativeContextElement(Yn);return gi?{x:gi.scrollLeft,y:gi.scrollTop}:{x:0,y:0}}getRelativeContextElement(Yn){if(!Yn||!ct())return null;let gi=this.nativeElement(Yn).parentElement;for(;gi;){if("none"!==window.getComputedStyle(gi).transform)return gi;gi=gi.parentElement}return null}useRelativePosition(Yn){return!!this.getRelativeContextElement(Yn)}windowViewPort(Yn){return(0,o.qS)(this.nativeElement(Yn))}zIndex(Yn,gi){return((Mn,pi)=>{if(!Mn||!(0,T.X_)()||!oe())return null;const Yn=(0,o.VM)(Mn,pi);if(!Yn)return null;const gi=[Mn].concat((0,o.wV)(Mn,Yn)).reduce((qn,ki)=>{const Si=ki.style.zIndex||window.getComputedStyle(ki).zIndex,Ni=parseInt(Si,10);return Ni>qn?Ni:qn},0);return gi?gi+1:null})(Yn,this.nativeElement(gi))}zoomLevel(){return(0,T.X_)()&&oe()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})();const ln=new e.OlP("Popup Document Scale");let Je=(()=>{class Mn{constructor(Yn,gi=1){this._dom=Yn,this.scale=gi}alignElement(Yn){const{anchor:gi,element:qn,anchorAlign:ki,elementAlign:Si,margin:Ni,offset:pn,positionMode:Vn}=Yn,ot=this.scale||1,lt="fixed"!==Vn&&this._dom.hasOffsetParent(qn)?this.relativeRect(gi,qn,pn,ot):this.absoluteRect(gi,qn,pn,ot),In=Ct(this._dom.offset(qn.nativeElement),ot);return this._dom.align({anchorAlign:ki,anchorRect:lt,elementAlign:Si,elementRect:In,margin:Ni})}absoluteRect(Yn,gi,qn,ki){const Si=this.elementScrollPosition(Yn,gi),Ni=se(this._dom.offset(Yn),qn),pn=2*ki,Vn=this._dom.stackingElementScroll(gi);1!==ki&&Vn&&(Vn.x/=pn,Vn.y/=pn);const ot=this._dom.stackingElementOffset(gi);return 1!==ki&&ot&&(ot.left/=pn,ot.top/=pn),this._dom.removeScroll(this._dom.addScroll(((Mn,pi)=>pi?{height:Mn.height,left:Mn.left-pi.left,top:Mn.top-pi.top,width:Mn.width}:Mn)(Ct(Ni,ki),ot),Vn),Si)}elementScrollPosition(Yn,gi){return Yn?{x:0,y:0}:this._dom.scrollPosition(gi)}relativeRect(Yn,gi,qn,ki){const Si=se(this._dom.position(Yn,gi,ki),qn);return Ct(Si,ki)}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(vt),e.LFG(ln,8))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})(),Ft=(()=>{class Mn{constructor(Yn,gi=1){this._dom=Yn,this.scale=gi}positionElement(Yn){const{anchor:gi,currentLocation:qn,element:ki,anchorAlign:Si,elementAlign:Ni,collisions:pn,margin:Vn}=Yn,ot=this._dom,en=this.scale||1,lt=ot.offsetAtPoint(ki,qn),In=Ct(lt,en),rn=Ct(ot.offset(gi),en),Qt=se(rn,qn),yi=Yn.viewPort||ot.windowViewPort(ki);yi.width=yi.width/en,yi.height=yi.height/en;const Li=ot.restrictToView({anchorAlign:Si,anchorRect:Qt,collisions:pn,elementAlign:Ni,elementRect:In,margin:Vn,viewPort:yi}),An=ot.addOffset(qn,Li.offset);return{flip:Li.flip,flipped:Li.flipped,offset:An}}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(vt),e.LFG(ln,8))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})(),st=(()=>{class Mn{constructor(Yn,gi){this._dom=Yn,this._zone=gi}subscribe(Yn){(0,T.X_)()&&this._zone.runOutsideAngular(()=>{this.subscription=(0,A.R)(this._dom.getWindow(),"resize").pipe((0,N.e)(ke)).subscribe(()=>Yn())})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(vt),e.LFG(e.R0b))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})(),$e=(()=>{class Mn{constructor(Yn,gi){this._dom=Yn,this._zone=gi}forElement(Yn){return this.unsubscribe(),this.element=Yn,this}subscribe(Yn){if(!Yn||!(0,T.X_)()||!this.element)return;const gi=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const qn=gi.map(Si=>(0,A.R)(Si,"scroll").pipe((0,N.e)(ke)));this.subscription=(0,G.T)(...qn).subscribe(Si=>{const Ni=Si.target;(gi.filter(en=>en===Ni).length>0||Ni===document||Ni===window)&&Yn(this.isVisible(this.element,Ni))})})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isVisible(Yn,gi){const qn=this._dom.boundingOffset(Yn),ki=this._dom.boundingOffset(this._dom.nativeElement(gi));return!(1<ki.top-qn.bottom||1<qn.top-ki.bottom||1<qn.left-ki.right||1<ki.left-qn.right)}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(vt),e.LFG(e.R0b))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})();const Oe="left",Nt="right",xt="down",rt={expand:Mn=>{const pi="up"===Mn||Mn===xt?"scaleY":"scaleX";let qn;return qn=Mn===xt?"top":Mn===Oe?Nt:Mn===Nt?Oe:"bottom",{start:{transform:`${pi}(0)`,transformOrigin:qn},end:{transform:`${pi}(1)`}}},slide:Mn=>{const pi=Mn===Oe||Mn===Nt?"translateX":"translateY";return{start:{transform:`${pi}(${Mn===Nt||Mn===xt?-100:100}%)`},end:{transform:`${pi}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})};let We=(()=>{class Mn{constructor(Yn){this.animationBuilder=Yn,this.start=new e.vpe,this.end=new e.vpe}play(Yn,gi,qn){if(!this.flip||this.flip.horizontal!==qn.horizontal||this.flip.vertical!==qn.vertical){this.flip=qn;const ki=gi.type||"slide",Si=rt[ki];if(Si){const pn=Si(this.getDirection(qn,gi));this.playStates(Yn,pn,gi)}else if((0,e.X6Q)())throw new Error(`Unsupported animation type: "${ki}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(Yn,gi,qn){this.stopPlayer();const ki=qn.duration||100,Si=this.animationBuilder.build([(0,R.oB)(gi.start),(0,R.jt)(`${ki}ms ease-in`,(0,R.oB)(gi.end))]),Ni=this.player=Si.create(Yn);Ni.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),Ni.play()}getDirection(Yn,gi){let qn=gi.direction||xt;return Yn.horizontal&&(qn===Oe?qn=Nt:qn===Nt&&(qn=Oe)),Yn.vertical&&(qn===xt?qn="up":"up"===qn&&(qn=xt)),qn}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(R._j))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})();const yt={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310468,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},it={left:-1e4,top:0};let wn=(()=>{class Mn{constructor(Yn,gi,qn,ki,Si,Ni,pn,Vn,ot){this.container=Yn,this._alignService=gi,this.domService=qn,this._positionService=ki,this._resizeService=Si,this._scrollableService=Ni,this.animationService=pn,this._renderer=Vn,this._zone=ot,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=it,this.anchorViewportLeave=new e.vpe,this.close=new e.vpe,this.open=new e.vpe,this.positionChange=new e.vpe,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,(0,P.s)(yt),this._renderer.addClass(Yn.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.domService.nativeElement(this.anchor)||this.container.nativeElement).subscribe(this.onScroll.bind(this)),this.currentOffset=it,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()}ngOnChanges(Yn){Yn.copyAnchorStyles&&this.copyFontStyles(),Yn.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()})}ngAfterViewChecked(){this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(()=>{this.unsubscribeReposition(),this.repositionSubscription=(0,F.D)(this.resolvedPromise).subscribe(this.reposition)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()}onResize(){this.reposition()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(Yn){this.setContainerStyle("left",`${Yn.left}px`),this.setContainerStyle("top",`${Yn.top}px`),this._currentOffset=Yn}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.domService.nativeElement(this.anchor),this.container)))}reposition(){if(!(0,T.X_)())return;const{flip:Yn,offset:gi}=this.position();(!this.currentOffset||((Mn,pi)=>{const{left:Yn,top:gi}=Mn,{left:qn,top:ki}=pi;return Math.abs(Yn-qn)>=1||Math.abs(gi-ki)>=1})(this.currentOffset,gi))&&(this.currentOffset=gi,(0,T.g$)(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:gi,flip:Yn}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,Yn),this.resizeSensor.acceptSize()}position(){const Yn=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:Yn,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(Yn){const gi=(0,T.g$)(this.anchorViewportLeave);Yn||!gi?this.reposition():gi&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(Yn=>this.setContainerStyle(Yn.key,Yn.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(Yn,gi){this._renderer.setStyle(this.container.nativeElement,Yn,gi)}unsubscribeReposition(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.Y36(e.SBq),e.Y36(Je),e.Y36(vt),e.Y36(Ft),e.Y36(st),e.Y36($e),e.Y36(We),e.Y36(e.Qsj),e.Y36(e.R0b))},Mn.\u0275cmp=e.Xpm({type:Mn,selectors:[["kendo-popup"]],viewQuery:function(Yn,gi){if(1&Yn&&(e.Gf(j,7),e.Gf(T.NG,7)),2&Yn){let qn;e.iGM(qn=e.CRH())&&(gi.contentContainer=qn.first),e.iGM(qn=e.CRH())&&(gi.resizeSensor=qn.first)}},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[e._Bn([Je,We,vt,Ft,st,$e]),e.TTD],ngContentSelectors:ee,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(Yn,gi){1&Yn&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.YNc(3,Y,0,0,"ng-template",2),e.TgZ(4,"kendo-resize-sensor",3),e.NdJ("resize",function(){return gi.onResize()}),e.qZA()()),2&Yn&&(e.Q6J("ngClass",gi.popupClass),e.xp6(3),e.Q6J("ngTemplateOutlet",gi.content)("ngIf",gi.content),e.xp6(1),e.Q6J("rateLimit",100))},dependencies:[T.NG,y.mk,y.tP,y.O5],encapsulation:2}),Mn})();const an=new e.OlP("Popup Container");let sn=(()=>{class Mn{constructor(Yn,gi,qn,ki){this.applicationRef=Yn,this.componentFactoryResolver=gi,this.injector=qn,this.container=ki}get rootViewContainer(){const Yn=this.applicationRef.components||[];if(Yn[0])return Yn[0];throw new Error("\n            View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n            See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n        ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(Yn={}){const{component:gi,nodes:qn}=this.contentFrom(Yn.content),ki=this.appendPopup(qn,Yn.appendTo),Si=ki.instance;this.projectComponentInputs(ki,Yn),ki.changeDetectorRef.detectChanges(),gi&&gi.changeDetectorRef.detectChanges();const Ni=this.getComponentRootNode(ki);return{close:()=>{gi&&gi.destroy(),ki.destroy(),(Mn=>{Mn&&Mn.parentNode&&Mn.parentNode.removeChild(Mn)})(Ni)},content:gi,popup:ki,popupAnchorViewportLeave:Si.anchorViewportLeave,popupClose:Si.close,popupElement:Ni,popupOpen:Si.open,popupPositionChange:Si.positionChange}}appendPopup(Yn,gi){const qn=this.createComponent(wn,Yn,gi);return gi||this.rootViewContainerNode.appendChild(this.getComponentRootNode(qn)),qn}getComponentRootNode(Yn){return Yn.location.nativeElement}getComponentFactory(Yn){return this.componentFactoryResolver.resolveComponentFactory(Yn)}createComponent(Yn,gi,qn){const ki=this.getComponentFactory(Yn);if(qn)return qn.createComponent(ki,void 0,this.injector,gi);{const Si=ki.create(this.injector,gi);return this.applicationRef.attachView(Si.hostView),Si}}projectComponentInputs(Yn,gi){return Object.getOwnPropertyNames(gi).filter(qn=>"content"!==qn||gi.content instanceof e.Rgc).map(qn=>{Yn.instance[qn]=gi[qn]}),Yn}contentFrom(Yn){if(!Yn||Yn instanceof e.Rgc)return{component:null,nodes:[[]]};const gi=this.createComponent(Yn);return{component:gi,nodes:[gi?[gi.location.nativeElement]:[]]}}}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3),e.LFG(an,8))},Mn.\u0275prov=e.Yz7({token:Mn,factory:Mn.\u0275fac}),Mn})(),Ln=(()=>{class Mn{}return Mn.\u0275fac=function(Yn){return new(Yn||Mn)},Mn.\u0275mod=e.oAB({type:Mn}),Mn.\u0275inj=e.cJS({providers:[sn],imports:[[y.ez,T.uv]]}),Mn})()},73494:(fn,ve,_)=>{"use strict";_.d(ve,{RI:()=>Oe,q7:()=>yt});var e=_(5651),o=_(94650),T=_(13710),A=_(8416),G=_(36895);_(50727),_(95698);const R=["progressStatus"],P=["progressStatusWrap"];function y(it,It){if(1&it&&(o.TgZ(0,"span",7),o._uU(1),o.qZA()),2&it){const Tt=o.oxw();o.xp6(1),o.Oqu(Tt.formattedLabelValue)}}function j(it,It){if(1&it&&(o.TgZ(0,"span",7),o._uU(1),o.qZA()),2&it){const Tt=o.oxw();o.xp6(1),o.Oqu(Tt.formattedLabelValue)}}const q={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310543,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},ke=(it,It,Tt)=>Math.max(Math.min(Tt,It),it),ut=(it,It,Tt)=>Math.max((Tt-it)/(It-it),1e-4),Ct=(it,It,Tt)=>it[It]&&void 0!==it[It].currentValue?it[It].currentValue:Tt;let st=(()=>{class it{constructor(Tt,wn,Nn){this.elem=Tt,this.renderer=wn,this.localization=Nn,this.hostClasses=!0,this.roleAttribute="progressbar",this.max=100,this.min=0,this.value=0,this.orientation="horizontal",this.disabled=!1,this.reverse=!1,this.indeterminate=!1,this.displayValue=0,this.previousValue=0,(0,T.s)(q),this.localizationChangeSubscription=Nn.changes.subscribe(({rtl:an})=>{this.direction=an?"rtl":"ltr"})}get isHorizontal(){return"horizontal"===this.orientation}get isVertical(){return"vertical"===this.orientation}get disabledClass(){return this.disabled}get reverseClass(){return this.reverse}get indeterminateClass(){return this.indeterminate}get dirAttribute(){return this.direction}get ariaMinAttribute(){return String(this.min)}get ariaMaxAttribute(){return String(this.max)}get ariaValueAttribute(){return this.indeterminate?void 0:String(this.displayValue)}get isCompleted(){return this.value===this.max}get statusWidth(){return"horizontal"===this.orientation?100*this._progressRatio:100}get statusHeight(){return"vertical"===this.orientation?100*this._progressRatio:100}get statusWrapperWidth(){return"horizontal"===this.orientation?100/this._progressRatio:100}get statusWrapperHeight(){return"vertical"===this.orientation?100/this._progressRatio:100}get _progressRatio(){return ut(this.min,this.max,this.displayValue)}ngAfterViewInit(){const Tt=this.elem.nativeElement,wn=this.localization.get("progressBarLabel");this.renderer.setAttribute(Tt,"aria-label",wn)}ngOnChanges(Tt){const wn=Ct(Tt,"min",this.min),Nn=Ct(Tt,"max",this.max),an=Ct(Tt,"value",this.value);if(Tt.min||Tt.max||Tt.value){if((Tt.min||Tt.max)&&((it,It)=>{if(o.X6Q&&it>It)throw new Error("The max value should be greater than the min.")})(wn,Nn),Tt.value){(null==an||Number.isNaN(an))&&(this.value=wn);const sn=this.displayValue;this.displayValue=ke(this.min,this.max,an),this.previousValue=sn}this.min=wn,this.max=Nn,this.displayValue=ke(this.min,this.max,an)}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}return it.\u0275fac=function(Tt){return new(Tt||it)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(e.oQ))},it.\u0275cmp=o.Xpm({type:it,selectors:[["ng-component"]],hostVars:17,hostBindings:function(Tt,wn){2&Tt&&(o.uIk("dir",wn.dirAttribute)("role",wn.roleAttribute)("aria-valuemin",wn.ariaMinAttribute)("aria-valuemax",wn.ariaMaxAttribute)("aria-valuenow",wn.ariaValueAttribute),o.ekj("k-progressbar",wn.hostClasses)("k-progressbar-horizontal",wn.isHorizontal)("k-progressbar-vertical",wn.isVertical)("k-disabled",wn.disabledClass)("k-progressbar-reverse",wn.reverseClass)("k-progressbar-indeterminate",wn.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[o.TTD],decls:0,vars:0,template:function(Tt,wn){},encapsulation:2}),it})(),Ze=(()=>{class it extends e.Z1{}return it.\u0275fac=function(){let It;return function(wn){return(It||(It=o.n5z(it)))(wn||it)}}(),it.\u0275dir=o.lG2({type:it,inputs:{progressBarLabel:"progressBarLabel"},features:[o.qOj]}),it})(),$e=(()=>{class it extends Ze{constructor(Tt){super(),this.service=Tt}}return it.\u0275fac=function(Tt){return new(Tt||it)(o.Y36(e.oQ))},it.\u0275dir=o.lG2({type:it,selectors:[["","kendoProgressBarLocalizedMessages",""]],features:[o._Bn([{provide:Ze,useExisting:(0,o.Gpc)(()=>it)}]),o.qOj]}),it})(),Oe=(()=>{class it extends st{constructor(Tt,wn,Nn,an){super(wn,Nn,Tt),this.localization=Tt,this.elem=wn,this.renderer=Nn,this.zone=an,this.label=!0,this.animation=!1,this.animationEnd=new o.vpe}get showLabel(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}get labelPosition(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}get isPositionStart(){return"start"===this.labelPosition}get isPositionCenter(){return"center"===this.labelPosition}get isPositionEnd(){return"end"===this.labelPosition}get formattedLabelValue(){return((it,It,Tt,wn)=>{const Nn=(it=>{const It=it.toString().split(".");return 1===It.length?`${It[0]}`:`${It[0]}.${It[1].substr(0,3)}`})(it);if("boolean"!=typeof wn){if("string"!=typeof wn.format)return"function"==typeof wn.format?wn.format(it):Nn;switch(wn.format){case"value":default:return Nn;case"percent":return`${Math.floor(((it,It,Tt)=>{const wn=Math.abs((Tt-It)/100);return Math.abs((it-It)/wn)})(it,It,Tt))}%`}}return Nn})(this.displayValue,this.min,this.max,this.label)}ngOnChanges(Tt){super.ngOnChanges(Tt),this.isAnimationInProgress&&(it=>{const It=Boolean(it.animation);return It&&!(It&&it.animation.currentValue)})(Tt)&&(this.cancelCurrentAnimation=!0),((it,It,Tt,wn)=>this.animation&&typeof requestAnimationFrame<"u"&&it.value&&this.previousValue!==this.displayValue)(Tt)&&!Tt.value.firstChange&&this.startAnimation(this.previousValue)}ngOnDestroy(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}startAnimation(Tt){this.isAnimationInProgress=!0;const wn=this.progressStatusElement.nativeElement,Nn=this.progressStatusWrapperElement.nativeElement,an=this.getAnimationOptions(Tt);this.zone.runOutsideAngular(()=>{this.animationFrame&&cancelAnimationFrame(this.animationFrame);const sn=()=>{const _n=(new Date).getTime()-an.startTime,Ln=Math.min(_n/an.duration,1),Mn=an.startSize+an.deltaSize*Ln;if(this.renderValueChange(wn,Nn,an.property,Mn,100/Mn*100),Ln<1){if(this.cancelCurrentAnimation)return void this.resetProgress(wn,Nn,an.property);this.animationFrame=requestAnimationFrame(sn)}else this.stopAnimation(Tt)};sn()})}get animationDuration(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}stopAnimation(Tt){(0,A.g$)(this.animationEnd)&&this.zone.run(()=>{this.animationEnd.emit({from:Tt,to:this.displayValue})}),this.zone.run(()=>{this.isAnimationInProgress=!1})}getAnimationOptions(Tt){const wn="horizontal"===this.orientation,Nn=ut(this.min,this.max,Tt),an=wn?100*Nn:100,sn=wn?100:100*Nn,_n=wn?"width":"height",Ln=(new Date).getTime(),pi=wn?this.statusWidth-an:this.statusHeight-sn;return{property:_n,startTime:Ln,startSize:wn?an:sn,deltaSize:pi,duration:this.animationDuration*Math.abs(pi/100)}}renderValueChange(Tt,wn,Nn,an,sn){this.renderer.setStyle(Tt,Nn,an+"%"),this.renderer.setStyle(wn,Nn,sn+"%")}resetProgress(Tt,wn,Nn){const an=ut(this.min,this.max,this.value);this.renderValueChange(Tt,wn,Nn,100*an,100/an),this.zone.run(()=>{this.cancelCurrentAnimation=!1,this.isAnimationInProgress=!1})}}return it.\u0275fac=function(Tt){return new(Tt||it)(o.Y36(e.oQ),o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.R0b))},it.\u0275cmp=o.Xpm({type:it,selectors:[["kendo-progressbar"]],viewQuery:function(Tt,wn){if(1&Tt&&(o.Gf(R,5),o.Gf(P,5)),2&Tt){let Nn;o.iGM(Nn=o.CRH())&&(wn.progressStatusElement=Nn.first),o.iGM(Nn=o.CRH())&&(wn.progressStatusWrapperElement=Nn.first)}},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[o._Bn([e.oQ,{provide:e.mM,useValue:"kendo.progressbar"}]),o.qOj,o.TTD],decls:8,vars:28,consts:function(){let It;return It=$localize`:kendo.progressbar.progressBarLabel|The aria-label attribute for the ProgressBar component.:Progressbar`,[["kendoProgressBarLocalizedMessages","","progressBarLabel",It],[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-selected","k-progressbar-value",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]]},template:function(Tt,wn){1&Tt&&(o.GkF(0,0),o.TgZ(1,"span",1),o.YNc(2,y,2,1,"span",2),o.qZA(),o.TgZ(3,"div",3,4)(5,"span",5,6),o.YNc(7,j,2,1,"span",2),o.qZA()()),2&Tt&&(o.xp6(1),o.ekj("k-progress-start",wn.isPositionStart)("k-progress-center",wn.isPositionCenter)("k-progress-end",wn.isPositionEnd),o.Q6J("ngStyle",wn.emptyCssStyle)("ngClass",wn.emptyCssClass),o.xp6(1),o.Q6J("ngIf",wn.showLabel),o.xp6(1),o.Udp("width",wn.statusWidth,"%")("height",wn.statusHeight,"%"),o.ekj("k-complete",wn.isCompleted),o.Q6J("ngStyle",wn.progressCssStyle)("ngClass",wn.progressCssClass),o.xp6(2),o.Udp("width",wn.statusWrapperWidth,"%")("height",wn.statusWrapperHeight,"%"),o.ekj("k-progress-start",wn.isPositionStart)("k-progress-center",wn.isPositionCenter)("k-progress-end",wn.isPositionEnd),o.xp6(2),o.Q6J("ngIf",wn.showLabel))},dependencies:[$e,G.PC,G.mk,G.O5],encapsulation:2}),it})();const We=[G.ez,A.uv];let yt=(()=>{class it{}return it.\u0275fac=function(Tt){return new(Tt||it)},it.\u0275mod=o.oAB({type:it}),it.\u0275inj=o.cJS({imports:[We]}),it})()},70370:(fn,ve,_)=>{"use strict";_.d(ve,{W$:()=>Je,j5:()=>$e});var e=_(94650),o=_(37340),T=_(8416),A=_(13710),G=_(5651),F=_(16010),N=_(50727),R=_(28942),P=_(36895);function y(Oe,Nt){if(1&Oe){const xt=e.EpF();e.TgZ(0,"span",2),e.NdJ("click",function(){const $t=e.CHM(xt).index,rt=e.oxw();return e.KtG(rt.indexChange($t))}),e.qZA()}if(2&Oe){const xt=Nt.index,Ot=e.oxw();e.Q6J("ngClass",Ot.itemClass(xt)),e.uIk("aria-label",Ot.pagerButtonLabel(xt+1))}}const j=["itemWrapper"],Y=["prevButton"],ee=["nextButton"];function se(Oe,Nt){}const he=function(Oe){return{item:Oe}};function Se(Oe,Nt){if(1&Oe&&(e.TgZ(0,"li",7),e.YNc(1,se,0,0,"ng-template",8),e.qZA()),2&Oe){const xt=Nt.$implicit,Ot=Nt.index,Kt=e.oxw();e.Q6J("ngStyle",Kt.inlineListItemStyles(Ot)),e.uIk("aria-hidden",1!==Ot),e.xp6(1),e.Q6J("ngTemplateOutlet",Kt.itemTemplateRef)("ngTemplateOutletContext",e.VKq(4,he,xt))}}function te(Oe,Nt){if(1&Oe){const xt=e.EpF();e.TgZ(0,"span",13,14),e.NdJ("click",function(){e.CHM(xt);const Kt=e.oxw(2);return e.KtG(Kt.leftArrowClick())}),e._UZ(2,"kendo-icon-wrapper",15),e.qZA()}if(2&Oe){const xt=e.oxw(2);e.uIk("aria-controls",xt.scrollviewId),e.xp6(2),e.Q6J("svgIcon",xt.chevronLeftIcon)}}function oe(Oe,Nt){if(1&Oe){const xt=e.EpF();e.TgZ(0,"span",16,17),e.NdJ("click",function(){e.CHM(xt);const Kt=e.oxw(2);return e.KtG(Kt.rightArrowClick())}),e._UZ(2,"kendo-icon-wrapper",18),e.qZA()}if(2&Oe){const xt=e.oxw(2);e.uIk("aria-controls",xt.scrollviewId),e.xp6(2),e.Q6J("svgIcon",xt.chevronRightIcon)}}function q(Oe,Nt){if(1&Oe){const xt=e.EpF();e.TgZ(0,"kendo-scrollview-pager",19),e.NdJ("pagerIndexChange",function(Kt){e.CHM(xt);const $t=e.oxw(2);return e.KtG($t.pageChange(Kt))}),e.qZA()}if(2&Oe){const xt=e.oxw(2);e.Q6J("data",xt.data)("activeIndex",xt.activeIndex)}}const we=function(Oe){return{height:Oe}};function ae(Oe,Nt){if(1&Oe&&(e.TgZ(0,"div",9),e.YNc(1,te,3,2,"span",10),e.YNc(2,oe,3,2,"span",11),e.YNc(3,q,1,2,"kendo-scrollview-pager",12),e.qZA()),2&Oe){const xt=e.oxw();e.Q6J("ngStyle",e.VKq(4,we,xt.height)),e.xp6(1),e.Q6J("ngIf",xt.arrows&&xt.displayLeftArrow()),e.xp6(1),e.Q6J("ngIf",xt.arrows&&xt.displayRightArrow()),e.xp6(1),e.Q6J("ngIf",xt.pageable)}}var Q=(()=>{return(Oe=Q||(Q={}))[Oe.Next=1]="Next",Oe[Oe.Prev=-1]="Prev",Q;var Oe})();const pe={name:"@progress/kendo-angular-scrollview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310580,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Ee=function ke(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const Oe=Object.getOwnPropertyNames(Map.prototype),Nt=Map.prototype;for(let xt=0;xt<Oe.length;++xt){const Ot=Oe[xt];if("entries"!==Ot&&"size"!==Ot&&Nt[Ot]===Nt.entries)return Ot}}(),Ye={};class ct{constructor(Nt,xt,Ot,Kt,$t){this.rtl=!1,this.source=Nt||[],this.index=xt||0,this.endless=Ot,this.pageIndex=Kt,this.rtl=$t}get data(){const Nt=this.total;let xt;return xt=this.endless?[this.source[(this.index-1+Nt)%Nt],this.source[this.index%Nt],this.source[(this.index+1+Nt)%Nt]]:[Ye,...this.source,Ye].slice(this.index,this.index+3),null!==this.pageIndex&&(xt[this.pageIndex>this.index?2:0]=this.source[this.pageIndex]),this.rtl?xt.reverse():xt}get total(){return this.source.length}canMoveNext(){return this.endless||this.index<this.total-1}canMovePrev(){return this.endless||this.index>0}[Ee](){return this.data[Ee]()}}class ut{constructor(Nt){this.accessor=Nt}get length(){return this.accessor().data.length}get total(){return this.accessor().total}item(Nt){return this.accessor().data[Nt]}canMoveNext(){return this.accessor().canMoveNext()}canMovePrev(){return this.accessor().canMovePrev()}[Symbol.iterator](){return this.accessor()[Symbol.iterator]()}}let Ct=(()=>{class Oe{constructor(xt){this.localization=xt,this.pagerIndexChange=new e.vpe}itemClass(xt){return{"k-primary":xt===this.activeIndex}}indexChange(xt){this.pagerIndexChange.emit(xt)}pagerButtonLabel(xt){const Ot=this.localization.get("pagerButtonLabel")||"";return this.replaceMessagePlaceholder(Ot,"itemIndex",xt.toString())}replaceMessagePlaceholder(xt,Ot,Kt){return xt.replace(new RegExp(`{\\s*${Ot}\\s*}`,"g"),Kt)}}return Oe.\u0275fac=function(xt){return new(xt||Oe)(e.Y36(G.oQ))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["kendo-scrollview-pager"]],inputs:{activeIndex:"activeIndex",data:"data"},outputs:{pagerIndexChange:"pagerIndexChange"},decls:2,vars:1,consts:[[1,"k-scrollview-pageable","k-scrollview-nav"],["role","button","class","k-button",3,"ngClass","click",4,"ngFor","ngForOf"],["role","button",1,"k-button",3,"ngClass","click"]],template:function(xt,Ot){1&xt&&(e.TgZ(0,"div",0),e.YNc(1,y,1,2,"span",1),e.qZA()),2&xt&&(e.xp6(1),e.Q6J("ngForOf",Ot.data))},dependencies:[P.sg,P.mk],encapsulation:2}),Oe})(),Ue=(()=>{class Oe extends G.Z1{}return Oe.\u0275fac=function(){let Nt;return function(Ot){return(Nt||(Nt=e.n5z(Oe)))(Ot||Oe)}}(),Oe.\u0275dir=e.lG2({type:Oe,selectors:[["kendo-scrollview-messages-base"]],inputs:{pagerButtonLabel:"pagerButtonLabel"},features:[e.qOj]}),Oe})(),vt=(()=>{class Oe extends Ue{constructor(xt){super(),this.service=xt}}return Oe.\u0275fac=function(xt){return new(xt||Oe)(e.Y36(G.oQ))},Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","kendoScrollViewLocalizedMessages",""]],features:[e._Bn([{provide:Ue,useExisting:(0,e.Gpc)(()=>Oe)}]),e.qOj]}),Oe})(),ln=0,Je=(()=>{class Oe{constructor(xt,Ot,Kt,$t){this.element=xt,this.localization=Ot,this.ngZone=Kt,this.renderer=$t,this.chevronLeftIcon=F.fL_,this.chevronRightIcon=F.oXh,this.data=[],this.endless=!1,this.pagerOverlay="none",this.animate=!0,this.pageable=!1,this.arrows=!1,this.itemChanged=new e.vpe,this.activeIndexChange=new e.vpe,this.scrollViewClass=!0,this.scrollViewRole="application",this.scrollViewRoleDescription="carousel",this.tabIndex=0,this.ariaLive="assertive",this.touchAction="pan-y pinch-zoom",this.animationState=null,this.view=new ut(()=>new ct(this.data,this.activeIndex,this.endless,this.pageIndex,this.isRTL)),this.isDataSourceEmpty=!1,this.subs=new N.w0,this._activeIndex=0,this.index=0,this.pageIndex=null,this.transforms=["translateX(-100%)","translateX(0%)","translateX(100%)"],(0,A.s)(pe)}set activeIndex(xt){this.index=this._activeIndex=xt}get activeIndex(){return this._activeIndex}get scrollViewLightOverlayClass(){return"light"===this.pagerOverlay}get scrollViewDarkOverlayClass(){return"dark"===this.pagerOverlay}get hostWidth(){return this.width}get hostHeight(){return this.height}get dir(){return this.direction}get direction(){return this.localization.rtl?"rtl":"ltr"}ngOnInit(){this.subs.add(this.renderer.listen(this.element.nativeElement,"keydown",xt=>this.keyDown(xt))),this.arrows&&(this.scrollviewId="k-scrollview-wrap-"+ ++ln)}ngOnDestroy(){this.subs.unsubscribe()}ngOnChanges(xt){this.data&&0===this.data.length&&(this.activeIndex=Math.max(Math.min(this.activeIndex,this.view.total-1),0))}prev(){this.navigate(Q.Prev)}next(){this.navigate(Q.Next)}transitionEndHandler(xt){this.animationState=null,("left"===xt.toState||"right"===xt.toState)&&(null!==this.pageIndex&&(this.activeIndex=this.pageIndex,this.pageIndex=null),this.activeIndex=this.index,this.activeIndexChange.emit(this.activeIndex),this.itemChanged.emit({index:this.activeIndex,item:this.view.item(1)}))}handlePress(xt){this.initialTouchCoordinate=xt.pageX}handleDrag(xt){const Ot=xt.pageX-this.initialTouchCoordinate;!this.animationState&&!this.isDragForbidden(Ot)&&this.draggedInsideBounds(Ot)&&this.renderer.setStyle(this.itemWrapper.nativeElement,"transform",`translateX(${Ot}px)`)}handleRelease(xt){const Ot=xt.pageX-this.initialTouchCoordinate;this.isDragForbidden(Ot)||this.ngZone.run(()=>{this.draggedEnoughToNavigate(Ot)?(this.changeIndex(this.isRTL?Ot<0?Q.Prev:Q.Next:Ot>0?Q.Prev:Q.Next),this.animate||(this.renderer.removeStyle(this.itemWrapper.nativeElement,"transform"),this.activeIndexChange.emit(this.activeIndex),this.itemChanged.emit({index:this.activeIndex,item:this.view.item(1)}))):this.animate&&Ot?this.animationState="center":this.renderer.removeStyle(this.itemWrapper.nativeElement,"transform")})}pageChange(xt){!this.animationState&&this.activeIndex!==xt&&(this.animate?(this.pageIndex=xt,this.animationState=this.isRTL?this.pageIndex>this.index?"right":"left":this.pageIndex>this.index?"left":"right"):this.activeIndex=xt)}inlineListItemStyles(xt){return{height:this.height,transform:this.transforms[xt],width:"100%"}}displayLeftArrow(){let xt;return xt=this.isRTL?this.activeIndex+1<this.view.total:this.activeIndex>0,(this.endless||xt)&&this.view.total>0}leftArrowClick(){this.isRTL?this.next():this.prev()}displayRightArrow(){let xt;return xt=this.isRTL?this.activeIndex>0:this.activeIndex+1<this.view.total,(this.endless||xt)&&this.view.total>0}rightArrowClick(){this.isRTL?this.prev():this.next()}draggedInsideBounds(xt){return Math.abs(xt)<=this.element.nativeElement.offsetWidth}draggedEnoughToNavigate(xt){return Math.abs(xt)>this.element.nativeElement.offsetWidth/2}isDragForbidden(xt){let Ot;return Ot=this.isRTL?xt<0&&0!==xt:xt>0&&0!==xt,!this.endless&&(0===this.activeIndex&&Ot||this.activeIndex===this.view.total-1&&!Ot)}keyDown(xt){const Ot=xt.keyCode;if(Ot===T.R8.ArrowLeft){if(this.isRTL)return void this.next();this.prev()}else if(Ot===T.R8.ArrowRight){if(this.isRTL)return void this.prev();this.next()}if(this.arrows&&Ot===T.R8.Space||Ot===T.R8.Enter){const Kt=this.prevButton?.nativeElement,$t=this.nextButton?.nativeElement,rt=document.activeElement,yt=rt===$t;if(rt===Kt){if(this.isRTL)return void this.next();this.prev()}else if(yt){if(this.isRTL)return void this.prev();this.next()}}}navigate(xt){this.isDataSourceEmpty||this.animationState||(this.changeIndex(xt),this.animate||(this.activeIndexChange.emit(this.activeIndex),this.itemChanged.emit({index:this.activeIndex,item:this.view.item(1)})))}changeIndex(xt){xt===Q.Next&&this.view.canMoveNext()?(this.index=(this.index+1)%this.view.total,this.animate?this.animationState=this.isRTL?"right":"left":this.activeIndex=this.index):xt===Q.Prev&&this.view.canMovePrev()&&(this.index=0===this.index?this.view.total-1:this.index-1,this.animate?this.animationState=this.isRTL?"left":"right":this.activeIndex=this.index)}get isRTL(){return"rtl"===this.direction}}return Oe.\u0275fac=function(xt){return new(xt||Oe)(e.Y36(e.SBq),e.Y36(G.oQ),e.Y36(e.R0b),e.Y36(e.Qsj))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["kendo-scrollview"]],contentQueries:function(xt,Ot,Kt){if(1&xt&&e.Suo(Kt,e.Rgc,5),2&xt){let $t;e.iGM($t=e.CRH())&&(Ot.itemTemplateRef=$t.first)}},viewQuery:function(xt,Ot){if(1&xt&&(e.Gf(j,5),e.Gf(Y,5),e.Gf(ee,5)),2&xt){let Kt;e.iGM(Kt=e.CRH())&&(Ot.itemWrapper=Kt.first),e.iGM(Kt=e.CRH())&&(Ot.prevButton=Kt.first),e.iGM(Kt=e.CRH())&&(Ot.nextButton=Kt.first)}},hostVars:17,hostBindings:function(xt,Ot){2&xt&&(e.uIk("role",Ot.scrollViewRole)("aria-roledescription",Ot.scrollViewRoleDescription)("tabindex",Ot.tabIndex)("aria-live",Ot.ariaLive)("dir",Ot.dir),e.Udp("width",Ot.hostWidth)("height",Ot.hostHeight)("touch-action",Ot.touchAction),e.ekj("k-scrollview",Ot.scrollViewClass)("k-scrollview-light",Ot.scrollViewLightOverlayClass)("k-scrollview-dark",Ot.scrollViewDarkOverlayClass))},inputs:{data:"data",activeIndex:"activeIndex",width:"width",height:"height",endless:"endless",pagerOverlay:"pagerOverlay",animate:"animate",pageable:"pageable",arrows:"arrows"},outputs:{itemChanged:"itemChanged",activeIndexChange:"activeIndexChange"},exportAs:["kendoScrollView"],features:[e._Bn([G.oQ,{provide:G.mM,useValue:"kendo.scrollview"}]),e.TTD],decls:8,vars:5,consts:function(){let Nt;return Nt=$localize`:kendo.scrollview.pagerButtonLabel|The label for the buttons inside the ScrollView Pager:${"\ufffd0\ufffd"}:INTERPOLATION:`,[["kendoScrollViewLocalizedMessages","",6,"pagerButtonLabel"],["pagerButtonLabel",Nt],["role","list","kendoDraggable","",1,"k-scrollview-wrap",3,"id","kendoDrag","kendoPress","kendoRelease"],["itemWrapper",""],["role","listitem","aria-roledescription","slide",3,"ngStyle",4,"ngFor","ngForOf"],["class","k-scrollview-elements",3,"ngStyle",4,"ngIf"],["aria-live","polite",1,"k-sr-only"],["role","listitem","aria-roledescription","slide",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-scrollview-elements",3,"ngStyle"],["class","k-scrollview-prev","role","button","aria-label","previous",3,"click",4,"ngIf"],["class","k-scrollview-next","role","button","aria-label","next",3,"click",4,"ngIf"],["class","k-scrollview-nav-wrap",3,"data","activeIndex","pagerIndexChange",4,"ngIf"],["role","button","aria-label","previous",1,"k-scrollview-prev",3,"click"],["prevButton",""],["name","chevron-left",3,"svgIcon"],["role","button","aria-label","next",1,"k-scrollview-next",3,"click"],["nextButton",""],["name","chevron-right",3,"svgIcon"],[1,"k-scrollview-nav-wrap",3,"data","activeIndex","pagerIndexChange"]]},template:function(xt,Ot){1&xt&&(e.ynx(0,0),e.DtL(1,1),e.ynx(2),e.TgZ(3,"ul",2,3),e.NdJ("@animateTo.done",function($t){return Ot.transitionEndHandler($t)})("kendoDrag",function($t){return Ot.handleDrag($t)})("kendoPress",function($t){return Ot.handlePress($t)})("kendoRelease",function($t){return Ot.handleRelease($t)}),e.YNc(5,Se,2,6,"li",4),e.qZA(),e.YNc(6,ae,4,6,"div",5),e._UZ(7,"div",6),e.BQk()()),2&xt&&(e.pQV("Item {itemIndex}"),e.QtT(1),e.xp6(3),e.Q6J("id",Ot.scrollviewId)("@animateTo",Ot.animationState),e.xp6(2),e.Q6J("ngForOf",Ot.view),e.xp6(1),e.Q6J("ngIf",!Ot.isDataSourceEmpty&&(Ot.pageable||Ot.arrows)))},dependencies:[R.ZS,Ct,vt,T.pD,P.sg,P.PC,P.tP,P.O5],encapsulation:2,data:{animation:[(0,o.X$)("animateTo",[(0,o.SB)("center, left, right",(0,o.oB)({transform:"translateX(0)"})),(0,o.eR)("* => right",[(0,o.jt)("300ms ease-out",(0,o.oB)({transform:"translateX(100%)"}))]),(0,o.eR)("* => left",[(0,o.jt)("300ms ease-out",(0,o.oB)({transform:"translateX(-100%)"}))]),(0,o.eR)("* => center",[(0,o.jt)("300ms ease-out")])])]}}),Oe})(),$e=(()=>{class Oe{}return Oe.\u0275fac=function(xt){return new(xt||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({imports:[[P.ez,T.QY,R.pc]]}),Oe})()},66720:(fn,ve,_)=>{"use strict";_.d(ve,{BE:()=>ki,Ts:()=>pi,u3:()=>Ni});var e=_(94650),o=_(77579),T=_(56451),A=_(8416),G=_(39300),F=_(18505),N=_(95698),R=_(63900),P=_(5651),y=_(13710),j=_(53454),Y=_(36895);const ee=["noDataRef"],se=["hint"],he=["itemWrapper"];function Se(pn,Vn){if(1&pn&&e.GkF(0,6),2&pn){const ot=e.oxw(),en=ot.index,lt=ot.$implicit,In=e.oxw();e.Q6J("ngTemplateOutlet",In.itemTemplate(en))("ngTemplateOutletContext",lt)}}function te(pn,Vn){if(1&pn&&(e.ynx(0),e._uU(1),e.BQk()),2&pn){const ot=e.oxw().$implicit;e.xp6(1),e.Oqu(ot.item)}}function oe(pn,Vn){if(1&pn){const ot=e.EpF();e.TgZ(0,"div",3,4),e.NdJ("focus",function(){const In=e.CHM(ot).index,rn=e.oxw();return e.KtG(rn.focusHandler(In))})("blur",function(){e.CHM(ot);const lt=e.oxw();return e.KtG(lt.blurHandler())})("keydown",function(lt){e.CHM(ot);const In=e.oxw();return e.KtG(In.keydownHandler(lt))}),e.YNc(2,Se,1,2,"ng-container",5),e.YNc(3,te,2,1,"ng-container",1),e.qZA()}if(2&pn){const ot=Vn.$implicit,en=Vn.index,lt=e.oxw();e.Q6J("index",en)("hidden",ot.hidden)("disabled",!lt.itemEnabled(en))("ngClass",lt.currentItemClass(en))("ngStyle",lt.currentItemStyle(en)),e.uIk("aria-grabbed",en===lt.dragIndex)("aria-disabled",!lt.itemEnabled(en))("aria-keyshortcuts",lt.navigable?lt.ariaKeyShortcuts:"")("aria-dropeffect",lt.ariaDropEffect(en))("data-sortable-item",!0)("data-sortable-index",en)("data-sortable-id",lt.id),e.xp6(2),e.Q6J("ngIf",lt.itemTemplateRef),e.xp6(1),e.Q6J("ngIf",!lt.itemTemplateRef)}}function q(pn,Vn){if(1&pn&&(e.ynx(0,null,7),e.TgZ(2,"div",8),e._uU(3),e.qZA(),e.BQk()),2&pn){const ot=e.oxw();e.xp6(2),e.Q6J("index",0)("disabled",!0)("ngStyle",ot.currentItemStyle(-1))("ngClass",ot.currentItemClass(-1)),e.uIk("data-sortable-id",ot.id)("data-sortable-index",0),e.xp6(1),e.Oqu(ot.emptyText)}}const we=function(pn){return{item:pn}};function ae(pn,Vn){if(1&pn&&e.GkF(0,6),2&pn){const ot=e.oxw(2);e.Q6J("ngTemplateOutlet",ot.itemTemplateRef)("ngTemplateOutletContext",e.VKq(2,we,ot._localData[ot.dragIndex].item))}}function Q(pn,Vn){if(1&pn&&(e.ynx(0),e._uU(1),e.BQk()),2&pn){const ot=e.oxw(2);e.xp6(1),e.Oqu(ot._localData[ot.dragIndex].item)}}function pe(pn,Vn){if(1&pn&&(e.TgZ(0,"div",9),e.YNc(1,ae,1,4,"ng-container",5),e.YNc(2,Q,2,1,"ng-container",1),e.qZA()),2&pn){const ot=e.oxw();e.Q6J("ngStyle",ot.hintStyle())("ngClass",ot.currentItemClass(ot.dragIndex)),e.xp6(1),e.Q6J("ngIf",ot.itemTemplateRef),e.xp6(1),e.Q6J("ngIf",!ot.itemTemplateRef)}}const Ee={},ke={},Ye=/^(?:a|input|select|option|textarea|button|object)$/i,ut=pn=>(ke[pn]||(ke[pn]=Vn=>!!Vn.hasAttribute&&Vn.hasAttribute(pn)),ke[pn]),Ct=(pn,Vn)=>{for(;pn&&!Vn(pn);)pn=pn.parentNode;return pn},Ue=(pn,Vn)=>{if(!(0,A.X_)())return;const ot=document.elementFromPoint(pn,Vn);if(!ot)return;const en=ot.hasAttribute("kendoDraggable"),lt=null!==Ct(ot,ut("kendoDraggable")),In=Ct(ot,ut("kendoDraggable"));return{element:ot,index:In?parseInt(In.getAttribute("data-sortable-index"),10):-1,isDraggable:en,isDraggableChild:lt,parentDraggable:In,rect:ot.getBoundingClientRect()}},vt=(pn,Vn)=>{let ot;if(pn.changedTouches){const en=pn.changedTouches[0];ot=Ue(en.clientX,en.clientY)}else ot=Ue(pn.clientX,pn.clientY);return Vn.draggables.toArray()[ot?ot.index:-1]},ln=pn=>Array.from(pn.querySelectorAll(A.y)).filter(Vn=>null!==Vn.offsetParent),Ze=pn=>String(pn).trim().split(" "),Oe=(Ee[pn="kendo-sortable"]||(Ee[pn]=Vn=>String(Vn.nodeName).toLowerCase()===pn.toLowerCase()),Ee[pn]),Ot=(()=>{if(!(0,A.X_)())return!1;const Vn=document.createElement("div");Vn.style.transform="matrix(10, 0, 0, 10, 0, 0)";const ot=document.createElement("div");ot.style.position="fixed",ot.style.top="10px;",Vn.appendChild(ot),document.body.appendChild(Vn);const en=10!==Vn.children[0].getBoundingClientRect().top;return document.body.removeChild(Vn),en})(),$t={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310557,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},rt=pn=>{const Vn=pn.originalEvent.target;return Vn.hasAttribute("data-sortable-item")||!((pn=>{if(pn.tagName){const Vn=pn.tagName.toLowerCase(),ot=pn.getAttribute("tabIndex"),en="-1"===ot;let lt=null!==ot&&!en;return Ye.test(Vn)&&(lt=!pn.disabled&&!en),lt}return!1})(Vn)||(pn=>{const Vn=Ct(pn,ot=>((pn,Vn)=>{const ot=Ze("k-widget");return Boolean(Ze(pn.className).find(en=>ot.indexOf(en)>=0))})(ot)||Oe(ot));return Vn&&!Oe(Vn)})(Vn))};var pn;let We=(()=>{class pn{constructor(ot){this.ngZone=ot,this.activeDraggable=null,this.originDraggable=null,this.targetSortable=null,this.lastDraggable=null,this.onPressSubject=new o.x,this.onDragSubject=new o.x,this.onReleaseSubject=new o.x,this.source=null,this._target=null,this.sortableCounter=0,this.sortableRegister={},(0,A.X_)()&&(this.subscriptions=this.onPressSubject.pipe((0,G.h)(rt),(0,F.b)(en=>{this.targetSortable=this.getSortableComponentFromTouch(en)}),(0,G.h)(en=>Boolean(this.targetSortable)),(0,F.b)(en=>{this.onReleaseSubject.pipe((0,N.q)(1)).subscribe(lt=>this.release(lt)),this.pressArgs=en,en.isTouch&&en.originalEvent.preventDefault()}),(0,R.w)(en=>this.onDragSubject.pipe((0,G.h)(lt=>Boolean(this.targetSortable)),(0,F.b)(lt=>this.drag(lt))))).subscribe())}set target(ot){this._target=ot}get target(){return this._target}onPress(ot){this.onPressSubject.next(ot)}onDrag(ot){this.onDragSubject.next(ot)}onRelease(ot){this.onReleaseSubject.next(ot)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}registerComponent(ot){const en=this.sortableCounter.toString();return this.sortableRegister[en]=ot,this.sortableCounter++,en}unregisterComponent(ot){this.sortableRegister[ot]=null}setSource(ot){this.source=ot}getSource(){return this.source}getSortableComponentFromTouch(ot){if(!(0,A.X_)())return{component:void 0,index:void 0};let en=document.elementFromPoint(ot.clientX,ot.clientY);for(;en;){const lt=en.getAttribute("data-sortable-id"),In=en.getAttribute("data-sortable-index");if(lt){const rn=this.sortableRegister[lt];if(rn)return{component:rn,index:parseInt(In,10)}}en=en.parentElement}}start(){const ot=this.pressArgs;if(ot){this.pressArgs=null;const en=vt(ot,this.targetSortable.component);if(this.targetSortable.component.startDrag({target:en,originalEvent:ot}))return this.targetSortable=null,!0}}release(ot){this.source&&this.ngZone.run(()=>{if(this.targetSortable){const en=vt(ot,this.targetSortable.component);this.source.endDrag({target:en,originalEvent:ot})}this.source.positionHintFromEvent(null),this.source.markForCheck()}),this.targetSortable=null,this.pressArgs=null}drag(ot){this.ngZone.run(()=>{if(this.start())return;this.source.positionHintFromEvent(ot);const en=this.getSortableComponentFromTouch(ot);if((!en||en&&en.component!==this.target)&&(this.target?this.target.leave({target:void 0,originalEvent:ot}):this.source!==this.target&&this.source.leave({target:void 0,originalEvent:ot})),en&&en.component){const lt=vt(ot,en.component);en.component.drag({target:lt,originalEvent:ot})}this.source.markForCheck()})}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.LFG(e.R0b))},pn.\u0275prov=e.Yz7({token:pn,factory:pn.\u0275fac}),pn})(),yt=(()=>{class pn{}return pn.\u0275fac=function(ot){return new(ot||pn)},pn.\u0275prov=e.Yz7({token:pn,factory:pn.\u0275fac}),pn})(),it=(()=>{class pn{constructor(ot,en,lt){this.parent=ot,this.el=en,this.renderer=lt}set hidden(ot){this._hidden=ot,this.updateDisplayStyle()}get hidden(){return this._hidden}get _focused(){return!this.disabled&&this.index===this.parent.activeIndex}get _disabled(){return this.disabled}get display(){return this.hidden?"none":this._display}set display(ot){this._display=ot,this.updateDisplayStyle()}ngOnInit(){const ot=this.el.nativeElement;this.display=ot.style.display,ot&&(this.renderer.setStyle(ot,"user-select","none"),this.renderer.setStyle(ot,"-ms-user-select","none"),this.renderer.setStyle(ot,"-moz-user-select","none"),this.renderer.setStyle(ot,"-webkit-user-select","none"))}updateDisplayStyle(){this.renderer.setStyle(this.el.nativeElement,"display",this.display)}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.Y36(yt),e.Y36(e.SBq),e.Y36(e.Qsj))},pn.\u0275dir=e.lG2({type:pn,selectors:[["","kendoDraggable",""]],hostVars:3,hostBindings:function(ot,en){2&ot&&(e.uIk("aria-disabled",en._disabled),e.ekj("k-focus",en._focused))},inputs:{index:"index",disabled:"disabled",hidden:"hidden"}}),pn})(),It=(()=>{class pn{constructor(ot){this.templateRef=ot}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.Y36(e.Rgc))},pn.\u0275dir=e.lG2({type:pn,selectors:[["","kendoSortableItemTemplate",""]]}),pn})(),Tt=(()=>{class pn{constructor(ot){this.templateRef=ot}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.Y36(e.Rgc))},pn.\u0275dir=e.lG2({type:pn,selectors:[["","kendoSortablePlaceholderTemplate",""]]}),pn})();class wn{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Nn extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}class an extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}class sn extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}class _n extends sn{constructor(Vn){super(Vn),Object.assign(this,Vn)}}class Ln extends _n{constructor(Vn){super(Vn),Object.assign(this,Vn)}}let pi=(()=>{class pn{constructor(ot,en,lt,In,rn,Qt){this.ngZone=ot,this.renderer=en,this.changeDetector=lt,this.localization=In,this.tabIndex=null,this.navigable=!1,this.animation=!1,this.disabledIndexes=[],this.zone=void 0,this.acceptZones=void 0,this.itemStyle={},this.emptyItemStyle=void 0,this.activeItemStyle=void 0,this.disabledItemStyle=void 0,this.itemClass="",this.activeItemClass=null,this.emptyItemClass=null,this.disabledItemClass=null,this.emptyText="Empty",this.defaultTemplateRef=null,this.itemTemplateDirectiveRef=null,this.placeholderTemplateDirectiveRef=null,this.itemWrappers=new e.n_E,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.dragOver=new e.vpe,this.dragLeave=new e.vpe,this.dataMove=new e.vpe,this.dataAdd=new e.vpe,this.dataRemove=new e.vpe,this.navigate=new e.vpe,this.activeIndex=-1,this.hostRole="list",this.animating=!1,this.dragIndex=-1,this.dragOverIndex=-1,this.onDragStartSubject=new o.x,this.onDragOverSubject=new o.x,this.onDragLeaveSubject=new o.x,this.onDragEndSubject=new o.x,this.hintLocation=null,this._localData=[],this.ariaKeyShortcuts="Control+ArrowLeft Control+ArrowRight Meta+ArrowLeft Meta+ArrowRight",this.focusableItems=[],this.animationDuration=300,this.afterKeyPress=!1,this.sortableService=null,this._hideActiveItem=!1,this.prevActiveIndex=0,(0,y.s)($t),this.wrapper=rn.nativeElement,this.direction=In.rtl?"rtl":"ltr",this.sortableService=Qt,this.subscribeEvents()}set data(ot){this._data=ot,this.cacheData()}get data(){return this._data}set navigatable(ot){this.navigable=ot}get touchAction(){return"none"}get dir(){return this.direction}setItemData(ot,en){this._localData[en].item=ot.item,this._localData[en].index=ot.index,this._localData[en].hidden=ot.hidden}itemTemplate(ot){let en=this.itemTemplateRef;return ot===this.dragOverIndex?en=this.placeholderTemplateRef:ot===this.dragIndex&&(en=this.itemTemplateRef),en}ngOnInit(){this.data||(this.data=[]),this.id=this.sortableService.registerComponent(this),this.dragIndex=-1;const ot="display";this.activeItemStyle&&!this.activeItemStyle[ot]&&(this.activeItemStyle[ot]=""),this.itemStyle[ot]||(this.itemStyle[ot]=""),this.wrapper&&(this.draggable=new j._({press:en=>this.sortableService.onPress(en),drag:en=>this.sortableService.onDrag(en),release:en=>this.sortableService.onRelease(en)}),this.ngZone.runOutsideAngular(()=>{this.draggable.bindTo(this.wrapper)}))}ngAfterViewInit(){this.navigable&&(this.setInitialItemTabindex(),this.setFocusableChildren()),this.childrenTabindexSubscription=this.itemWrappers.changes.subscribe(()=>{this.navigable&&(this.setInitialItemTabindex(),this.setFocusableChildren())})}ngOnChanges(ot){this.data&&(0,A.ln)("disabledIndexes",ot,!1)&&this.cacheData()}ngOnDestroy(){this.unsubscribeEvents(),this.sortableService.unregisterComponent(this.id),this.draggable&&this.draggable.destroy()}ngAfterContentInit(){this.itemTemplateRef=this.itemTemplateDirectiveRef.first||this.defaultTemplateRef.first,this.placeholderTemplateRef=this.placeholderTemplateDirectiveRef.first||this.defaultTemplateRef.first}ngAfterViewChecked(){if(this.navigable){if(this.afterKeyPress){const ot=this.itemWrappers.toArray();if(ot&&ot.length>0&&this.activeIndex>-1){const en=ot[this.activeIndex].nativeElement;this.renderer.setAttribute(ot[this.prevActiveIndex].nativeElement,"tabindex","-1"),this.renderer.setAttribute(en,"tabindex","0"),en.focus()}}this.afterKeyPress=!1}}setFocusableChildren(){this.itemWrappers.toArray().forEach(ot=>{const lt=ln(ot.nativeElement);lt.length>0&&(this.focusableItems.push(lt),lt.forEach(In=>{this.renderer.setAttribute(In,"tabindex","-1")}))})}updateCacheIndices(){this._localData.forEach((ot,en)=>{ot.index=en})}cacheData(){this._localData=[],this._data.forEach((ot,en)=>{this._localData.push({item:ot,active:!1,disabled:!this.itemEnabled(en),index:en,hidden:!1})})}startDrag(ot){const en=new an(ot);this.onDragStartSubject.next(en);const lt=en.isDefaultPrevented();return lt||(this.offsetParent=(pn=>{if(!pn||!Ot)return null;let Vn=pn.parentElement;for(;Vn;){if("none"!==window.getComputedStyle(Vn).transform)return Vn;Vn=Vn.parentElement}})(this.wrapper)),lt}setInitialItemTabindex(){this.itemWrappers.toArray().forEach((ot,en)=>{if(this.itemEnabled(en)){const In=`${this.navigable?this.tabIndex||(0===en?0:-1):this.tabIndex}`;ot.nativeElement.getAttribute("tabindex")||this.renderer.setAttribute(ot.nativeElement,"tabindex",In)}})}drag(ot){const en=new an(ot);return this.onDragOverSubject.next(en),en.isDefaultPrevented()}leave(ot){const en=new an(ot);return this.onDragLeaveSubject.next(en),en.isDefaultPrevented()}endDrag(ot){const en=new an(ot);return this.onDragEndSubject.next(en),en.isDefaultPrevented()}hintVisible(){return this.dragIndex>=0&&this.hintLocation&&this===this.sortableService.getSource()}currentItemStyle(ot){if(-1===ot)return this.emptyItemStyle?this.emptyItemStyle:this.itemStyle;if(!this.itemEnabled(ot)&&this.disabledItemStyle)return this.disabledItemStyle;if(ot===this.dragIndex||-1===this.dragIndex&&ot===this.activeIndex){if(this.hideActiveItem)return{display:"none"};if(this.activeItemStyle)return this.activeItemStyle}return this.itemStyle}currentItemClass(ot){return-1===ot?this.emptyItemClass?this.emptyItemClass:this.itemClass:!this.itemEnabled(ot)&&this.disabledItemClass?this.disabledItemClass:(ot===this.dragIndex||-1===this.dragIndex&&ot===this.activeIndex)&&this.activeItemClass?this.activeItemClass:this.itemClass}hintStyle(){const ot={left:this.hintLocation.x+10+"px",position:"fixed",top:this.hintLocation.y+10+"px"},en={};return Object.assign(en,this.currentItemStyle(this.dragIndex),ot),en}itemEnabled(ot){return-1===this.disabledIndexes.indexOf(ot)}acceptDragFrom(ot){return void 0===this.acceptZones?this.zone===ot.zone:void 0!==ot.zone&&-1!==this.acceptZones.indexOf(ot.zone)}ariaDropEffect(ot){return this.itemEnabled(ot)?"move":"none"}focusHandler(ot){this.navigable&&(this.activeIndex=ot)}blurHandler(){this.navigable&&!this.afterKeyPress&&(this.prevActiveIndex=this.activeIndex,this.activeIndex=-1)}onArrowHandler(ot,en){const In=en===A.R8.ArrowUp||en===("rtl"===this.direction?A.R8.ArrowRight:A.R8.ArrowLeft)?-1:1,rn=this.data.length-1;let Qt=this.activeIndex+In;for(;!this.itemEnabled(Qt)&&Qt<=rn;)Qt+=In;if(Qt=Math.min(Math.max(Qt,0),rn),this.prevActiveIndex=this.activeIndex,!this.itemEnabled(Qt))return;const Li=new Nn({index:Qt,oldIndex:this.activeIndex,ctrlKey:ot.ctrlKey||ot.metaKey});this.navigate.emit(Li),Li.isDefaultPrevented()||(this.activeIndex=Qt),this.dragIndex=-1,this.dragOverIndex=-1,ot.stopPropagation(),ot.preventDefault(),this.afterKeyPress=!0}onEnterHandler(ot){const en=this.focusableItems[this.activeIndex];en.forEach(lt=>{this.renderer.setAttribute(lt,"tabindex","0")}),this.renderer.setAttribute(ot,"tabindex","-1"),en[0].focus()}onEscapeHandler(){const ot=this.focusableItems[this.prevActiveIndex],en=this.itemWrappers.toArray()[this.prevActiveIndex].nativeElement;ot.forEach(lt=>{this.renderer.setAttribute(lt,"tabindex","-1")}),this.renderer.setAttribute(en,"tabindex","0"),en.focus()}keydownHandler(ot){const en=-1===this.activeIndex?this.prevActiveIndex:this.activeIndex,lt=this.itemWrappers.toArray()[en].nativeElement,In=document.activeElement===lt,Qt=ot.keyCode;this.navigable&&-1!==this.activeIndex&&(Qt>=A.R8.ArrowLeft&&Qt<=A.R8.ArrowDown&&this.onArrowHandler(ot,Qt),Qt===A.R8.Enter&&In&&this.focusableItems.length>0&&this.onEnterHandler(lt)),Qt===A.R8.Tab&&!In&&((pn,Vn)=>{const[ot,en]=(pn=>{const Vn=ln(pn);return[Vn.length>0?Vn[0]:pn,Vn.length>0?Vn[Vn.length-1]:pn]})(Vn),In=pn.shiftKey&&pn.target===ot;!pn.shiftKey&&pn.target===en&&(pn.preventDefault(),ot.focus(),Vn.blur()),In&&(pn.preventDefault(),en.focus())})(ot,lt),Qt===A.R8.Escape&&this.focusableItems.length>0&&-1===this.activeIndex&&this.onEscapeHandler()}removeDataItem(ot){this.dragIndex=-1,this.dragOverIndex=-1,this._localData.splice(ot,1),this.data.splice(ot,1),this.updateCacheIndices()}hideItem(ot,en=!0){this._localData[ot].hidden=en}set hideActiveItem(ot){this.activeIndex=-1,this._hideActiveItem=ot}get hideActiveItem(){return this._hideActiveItem}clearActiveItem(){this.navigable?this.fixFocus():this.activeIndex=-1,this.dragIndex=-1}getActiveItem(){if(this.data&&this.dragIndex>=0&&this.dragIndex<this.data.length)return this.data[this.dragIndex]}addDataItem(ot,en){const lt=this.sortableService.originDraggable;if(lt&&lt.parent===this){const In=this.animation;this.hideItem(lt.index,!1),this.animation=!1,this.moveItem(lt.index,en),this.animation=In}else this.data.splice(en,0,ot),this._localData.splice(en,0,{item:ot,active:!1,disabled:!this.itemEnabled(en),index:en,hidden:!1}),this.updateCacheIndices();this.dragIndex=en,this.dragOverIndex=en,this.ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{this.sortableService.target=this,this.sortableService.setSource(this),this.sortableService.activeDraggable=this.draggables.toArray()[en],this.sortableService.lastDraggable=null})}moveItem(ot,en){if(en===ot)return;let lt=ot;const In=en>lt?1:-1,rn=lt,Qt=[];let Li,yi=lt;for(;lt!==en;)lt+=In,(this.itemEnabled(lt)||lt===en)&&(this.animation&&Qt.push({next:lt,prev:yi}),Li=this._localData[yi].index,this._localData[yi].index=this._localData[lt].index,this._localData[lt].index=Li,Li=this._localData[yi],this._localData[yi]=this._localData[lt],this._localData[lt]=Li,Li=this.data[yi],this.data[yi]=this.data[lt],this.data[lt]=Li,yi=lt);this.dragIndex=lt,this.dragOverIndex=lt,this.activeIndex=lt,this.focusableItems.length>0&&this.swapFocusableChildren(ot,en),this.animation&&setTimeout(()=>{Qt.push({next:rn,prev:lt}),this.animating=!0,this.animate(Qt)}),this.ngZone.onStable.pipe((0,N.q)(1)).subscribe(()=>{this.sortableService.activeDraggable=this.draggables.toArray()[lt],this.sortableService.lastDraggable=null})}animate(ot){const en=this.itemWrappers.toArray(),lt=[],In=[];clearTimeout(this._animating);for(let rn=0;rn<ot.length;rn++)lt.push(en[ot[rn].prev].nativeElement.getBoundingClientRect()),In.push(en[ot[rn].next].nativeElement.getBoundingClientRect());for(let rn=0;rn<ot.length;rn++){const yi=In[rn],Li=lt[rn],An=en[ot[rn].prev].nativeElement;this.applyAnimationStyle(An,"transition","none"),this.applyAnimationStyle(An,"transform","translate3d("+(yi.left-Li.left).toString()+"px,"+(yi.top-Li.top).toString()+"px,0)"),this.reflow(An)}for(let rn=0;rn<ot.length;rn++){const yi=en[ot[rn].prev].nativeElement;this.applyAnimationStyle(yi,"transition","all "+this.animationDuration+"ms"),this.applyAnimationStyle(yi,"transform","translate3d(0,0,0)"),clearTimeout(yi.animated),yi.animated=setTimeout(()=>{this.applyAnimationStyle(yi,"transition",""),this.applyAnimationStyle(yi,"transform",""),yi.animated=!1},this.animationDuration)}this._animating=setTimeout(()=>{this.animating=!1},this.animationDuration)}positionHintFromEvent(ot){const en=this.parentOffset();this.hintLocation=ot?{x:ot.clientX-en.left,y:ot.clientY-en.top}:null}parentOffset(){const ot=this.offsetParent;if(ot){const en=ot.getBoundingClientRect();return{left:en.left-ot.scrollLeft,top:en.top-ot.scrollTop}}return{left:0,top:0}}markForCheck(){this.changeDetector.markForCheck()}reflow(ot){return ot.offsetWidth}swapFocusableChildren(ot,en){[this.focusableItems[ot],this.focusableItems[en]]=[this.focusableItems[en],this.focusableItems[ot]]}applyAnimationStyle(ot,en,lt){const In=ot&&ot.style;In&&(en in In||(en="-webkit-"+en),In[en]=lt)}subscribeEvents(){this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:ot})=>this.direction=ot?"rtl":"ltr"),this.dragStartSubscription=this.onDragStartSubject.subscribe(ot=>{this.sortableService.originDraggable=ot.target,this.sortableService.originIndex=ot.target.index,this.sortableService.activeDraggable=ot.target,this.sortableService.lastDraggable=ot.target,this.sortableService.target=this,this.sortableService.setSource(this);const en=new sn({index:ot.target.index});this.dragStart.emit(en),en.isDefaultPrevented()?ot.preventDefault():ot.target.disabled||(this.sortableService.target&&(this.sortableService.target.dragOverIndex=-1,this.sortableService.target.dragIndex=-1),this.dragOverIndex=ot.target.index,this.dragIndex=ot.target.index)}),this.dragOverSubscription=this.onDragOverSubject.pipe((0,G.h)(ot=>ot.target&&0===ot.target.el.nativeElement.style.transition.length),(0,G.h)(()=>this.sortableService.originDraggable&&!this.sortableService.originDraggable.disabled),(0,G.h)(()=>this.sortableService&&this.acceptDragFrom(this.sortableService.getSource())),(0,G.h)(ot=>ot.target!==this.sortableService.lastDraggable)).subscribe(ot=>{this.sortableService.lastDraggable=ot.target;const en=this.sortableService.originDraggable;let lt=ot.target.index;en.hidden&&en.parent===this&&en.index<ot.target.index&&(lt=ot.target.index-1),this.sortableService.target=this;const rn=new _n({index:lt,oldIndex:this.sortableService.activeDraggable?this.sortableService.activeDraggable.index:0});this.dragOver.emit(rn),!rn.isDefaultPrevented()&&ot.target&&ot.target.index>=0&&(this.dragOverIndex=ot.target.index,this.placeHolderItemData(ot.target))}),this.dragEndSubscription=this.onDragEndSubject.subscribe(ot=>{const en=this.sortableService.getSource();if(!en)return;const lt=this.sortableService.target,In=ot.target?ot.target.index:-1,rn=this.sortableService.originDraggable?this.sortableService.originIndex:-1;this.hintLocation=null;const Qt=new Ln({index:In,oldIndex:rn});this.dragEnd.emit(Qt),Qt.isDefaultPrevented()||(en.dragIndex=-1,en.dragOverIndex=-1,en.activeIndex=-1,lt&&lt!==en&&(lt.dragIndex=-1,lt.dragOverIndex=-1),setTimeout(()=>{this.sortableService.activeDraggable=null,this.sortableService.lastDraggable=null,this.sortableService.originDraggable=null,this.sortableService.target=null,this.sortableService.setSource(null)}))}),this.dragLeaveSubscription=this.onDragLeaveSubject.pipe((0,G.h)(ot=>!!(0,A.X_)()&&this.wrapper!==document.elementFromPoint(ot.originalEvent.pageX,ot.originalEvent.pageY)),(0,G.h)(ot=>!this.animating),(0,G.h)(ot=>this.sortableService.target&&this.sortableService.target.dragOverIndex>-1)).subscribe(()=>{this.dragLeave.emit({index:this.sortableService.originDraggable.index}),this.sortableService.lastDraggable=null,this.dragOverIndex=-1,this.sortableService.target=null})}unsubscribeEvents(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.childrenTabindexSubscription&&this.childrenTabindexSubscription.unsubscribe(),this.dragStartSubscription.unsubscribe(),this.dragOverSubscription.unsubscribe(),this.dragEndSubscription.unsubscribe(),this.dragLeaveSubscription.unsubscribe()}placeHolderItemData(ot){if(ot.disabled)return;const en=this.sortableService.target,lt=this.sortableService.getSource(),In=Object.assign({},this._localData[ot.index]);this.setItemData(lt._localData[lt.dragIndex],ot.index);const Qt=lt.onDragEndSubject.pipe((0,N.q)(1)).subscribe(()=>{this.setItemData(In,ot.index)}),yi=en.onDragLeaveSubject.pipe((0,N.q)(1)).subscribe(()=>{this.setItemData(In,ot.index)}),Li=(0,T.T)(this.onDragOverSubject.pipe((0,G.h)(()=>ot.index!==this.dragOverIndex)),this.onDragLeaveSubject).subscribe(()=>{this.setItemData(In,ot.index),Qt.unsubscribe(),Li.unsubscribe(),yi.unsubscribe()})}fixFocus(){if(this.itemWrappers){const ot=this.itemWrappers.toArray();this.dragIndex>-1&&ot&&ot.length>0&&(ot[this.dragIndex].nativeElement.focus(),this.activeIndex=this.dragIndex)}}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(P.oQ),e.Y36(e.SBq),e.Y36(We))},pn.\u0275cmp=e.Xpm({type:pn,selectors:[["kendo-sortable"]],contentQueries:function(ot,en,lt){if(1&ot&&(e.Suo(lt,e.Rgc,4),e.Suo(lt,It,4,e.Rgc),e.Suo(lt,Tt,4,e.Rgc)),2&ot){let In;e.iGM(In=e.CRH())&&(en.defaultTemplateRef=In),e.iGM(In=e.CRH())&&(en.itemTemplateDirectiveRef=In),e.iGM(In=e.CRH())&&(en.placeholderTemplateDirectiveRef=In)}},viewQuery:function(ot,en){if(1&ot&&(e.Gf(ee,5),e.Gf(se,5),e.Gf(he,5),e.Gf(it,5)),2&ot){let lt;e.iGM(lt=e.CRH())&&(en.noDataContainer=lt.first),e.iGM(lt=e.CRH())&&(en.hint=lt.first),e.iGM(lt=e.CRH())&&(en.itemWrappers=lt),e.iGM(lt=e.CRH())&&(en.draggables=lt)}},hostVars:4,hostBindings:function(ot,en){2&ot&&(e.uIk("dir",en.dir)("role",en.hostRole),e.Udp("touch-action",en.touchAction))},inputs:{tabIndex:"tabIndex",data:"data",navigable:"navigable",navigatable:"navigatable",animation:"animation",disabledIndexes:"disabledIndexes",zone:"zone",acceptZones:"acceptZones",itemStyle:"itemStyle",emptyItemStyle:"emptyItemStyle",activeItemStyle:"activeItemStyle",disabledItemStyle:"disabledItemStyle",itemClass:"itemClass",activeItemClass:"activeItemClass",emptyItemClass:"emptyItemClass",disabledItemClass:"disabledItemClass",emptyText:"emptyText",activeIndex:"activeIndex"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",dragOver:"dragOver",dragLeave:"dragLeave",dataMove:"dataMove",dataAdd:"dataAdd",dataRemove:"dataRemove",navigate:"navigate"},exportAs:["kendoSortable"],features:[e._Bn([P.oQ,{provide:P.mM,useValue:"kendo.sortable"},{provide:yt,useExisting:(0,e.Gpc)(()=>pn)}]),e.TTD],decls:3,vars:3,consts:[["kendoDraggable","","role","listitem",3,"index","hidden","disabled","ngClass","ngStyle","focus","blur","keydown",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngStyle","ngClass",4,"ngIf"],["kendoDraggable","","role","listitem",3,"index","hidden","disabled","ngClass","ngStyle","focus","blur","keydown"],["itemWrapper",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["noDataRef",""],["kendoDraggable","",3,"index","disabled","ngStyle","ngClass"],[3,"ngStyle","ngClass"]],template:function(ot,en){1&ot&&(e.YNc(0,oe,4,14,"div",0),e.YNc(1,q,4,7,"ng-container",1),e.YNc(2,pe,3,4,"div",2)),2&ot&&(e.Q6J("ngForOf",en._localData),e.xp6(1),e.Q6J("ngIf",!en._data.length||1===en._localData.length&&en._localData[0].hidden),e.xp6(1),e.Q6J("ngIf",en.hintVisible()))},dependencies:[Y.sg,it,Y.mk,Y.PC,Y.O5,Y.tP],encapsulation:2}),pn})();class Yn extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}class gi extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}class qn extends wn{constructor(Vn){super(),Object.assign(this,Vn)}}let ki=(()=>{class pn{constructor(ot,en){this.sortable=ot,this.sortableService=en,this.sortableService=en}set data(ot){this.sortable.data=ot}nextEnabledIndex(ot,en){for(let lt=ot;lt<=en.data.length;lt++)if(en.itemEnabled(lt))return lt}addItem(ot,en){let lt=ot.index;const In=this.sortableService.getSource().data[ot.oldIndex],rn=new Yn({index:lt,dataItem:In});return en.dataAdd.emit(rn),rn.isDefaultPrevented()||(lt===en.itemWrappers.length-1&&!en.noDataContainer&&lt++,en.addDataItem(In,lt)),!rn.isDefaultPrevented()}removeItem(ot,en){const lt=this.sortableService.originDraggable,In=new gi({index:ot.oldIndex,dataItem:en.data[ot.oldIndex]});return en.dataRemove.emit(In),In.isDefaultPrevented()||(lt&&lt.parent===en?en.hideItem(ot.oldIndex,!0):en.removeDataItem(ot.oldIndex)),!In.isDefaultPrevented()}moveItem(ot,en){if(ot.index===ot.oldIndex)return!1;const lt=new qn({dataItem:en.data[ot.oldIndex],index:ot.index,oldIndex:ot.oldIndex});return en.dataMove.emit(lt),lt.isDefaultPrevented()||en.moveItem(ot.oldIndex,ot.index),!lt.isDefaultPrevented()}removeOriginDraggable(){this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe(),this.removeHiddenSubscription=this.sortableService.onReleaseSubject.pipe((0,N.q)(1),(0,G.h)(ot=>null!==this.sortableService.originDraggable&&this.sortableService.originDraggable.hidden)).subscribe(ot=>{const en=this.sortableService.originDraggable,lt=this.sortableService.getSource();en.parent!==this.sortableService.target&&((ot.target&&(ot.target.isDraggable||ot.target.isDraggableChild)||en.parent!==lt)&&en.parent!==this.sortableService.target&&en.parent.removeDataItem(en.index),this.sortableService.originDraggable=null)})}onDragOver(ot){const en=this.sortableService.getSource(),lt=this.sortableService.target,In=lt.draggables.toArray();ot.isDefaultPrevented()||(ot.preventDefault(),lt===en?(In[ot.index]!==this.lastTarget&&this.moveItem(ot,lt),this.lastTarget=void 0):(lt.itemEnabled(ot.index)||(ot.index=this.nextEnabledIndex(ot.index,lt)),this.addItem(ot,lt)&&this.removeItem(ot,en)&&(this.lastTarget=lt.draggables.toArray()[ot.index],this.removeOriginDraggable(),lt.activeIndex=ot.index,en.activeIndex=-1)))}onNavigate(ot){if(ot.ctrlKey){const en=new qn({dataItem:this.sortable.data[ot.oldIndex],index:ot.index,oldIndex:ot.oldIndex});this.sortable.dataMove.emit(en),en.isDefaultPrevented()||this.sortable.moveItem(ot.oldIndex,ot.index)}else this.sortable.activeIndex=ot.index}ngOnInit(){this.dragOverSubscription=this.sortable.dragOver.subscribe(this.onDragOver.bind(this)),this.navigateSubscription=this.sortable.navigate.subscribe(this.onNavigate.bind(this))}ngOnDestroy(){this.dragOverSubscription.unsubscribe(),this.navigateSubscription.unsubscribe(),this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe()}}return pn.\u0275fac=function(ot){return new(ot||pn)(e.Y36(pi),e.Y36(We))},pn.\u0275dir=e.lG2({type:pn,selectors:[["","kendoSortableBinding",""]],inputs:{data:["kendoSortableBinding","data"]}}),pn})(),Ni=(()=>{class pn{}return pn.\u0275fac=function(ot){return new(ot||pn)},pn.\u0275mod=e.oAB({type:pn}),pn.\u0275inj=e.cJS({providers:[We],imports:[[Y.ez]]}),pn})()},41236:(fn,ve,_)=>{"use strict";_.d(ve,{FR:()=>mn,UU:()=>Zn,i9:()=>pn,z8:()=>fi});var e=_(94650),o=_(39300),T=_(95698),G=(_(23601),_(50727)),F=_(54968),y=(_(61135),_(77579),_(39841),_(5643)),j=_(13710),Y=_(5651),ee=_(8416),se=_(16010),he=_(28942),Se=_(36895);function te(ze,wt){}const oe=function(ze,wt){return{$implicit:ze,anchor:wt}};function q(ze,wt){if(1&ze&&(e.TgZ(0,"div",7),e.YNc(1,te,0,0,"ng-template",3),e.qZA()),2&ze){const ht=e.oxw();e.xp6(1),e.Q6J("ngIf",ht.titleTemplate)("ngTemplateOutlet",ht.titleTemplate)("ngTemplateOutletContext",e.WLB(3,oe,ht.anchor,ht.anchor))}}function we(ze,wt){}function ae(ze,wt){if(1&ze&&e._uU(0),2&ze){const ht=e.oxw();e.hij(" ",ht.templateString," ")}}function Q(ze,wt){if(1&ze){const ht=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(gt){e.CHM(ht);const Lt=e.oxw();return e.KtG(Lt.onCloseClick(gt))}),e.TgZ(1,"a",9),e._UZ(2,"kendo-icon-wrapper",10),e.qZA()()}if(2&ze){const ht=e.oxw();e.uIk("aria-hidden",!0),e.xp6(1),e.uIk("title",ht.closeButtonTitle),e.xp6(1),e.Q6J("svgIcon",ht.xIcon)}}function pe(ze,wt){if(1&ze&&e._UZ(0,"div",11),2&ze){const ht=e.oxw();e.Q6J("ngClass",ht.calloutPositionClass())}}const We={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310581,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},yt=new e.OlP("kendo-ui-tooltip-settings");let it=(()=>{class ze{constructor(){}}return ze.\u0275fac=function(ht){return new(ht||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),It=0,Tt=0,wn=0;function sn(ze,wt){return ze||("top"===wt||"bottom"===wt?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})}function _n(ze){return 9===ze.nodeType}function Ln(ze,wt){if(ze.closest)return ze.closest(wt);const ht=Element.prototype.matches?(gt,Lt)=>gt.matches(Lt):(gt,Lt)=>gt.msMatchesSelector(Lt);let U=ze;for(;U&&!_n(U);){if(ht(U,wt))return U;U=U.parentNode}}function Mn(ze,wt){return!(!ze||_n(ze))&&(ze.contains?ze.contains(wt):ze.compareDocumentPosition?!!(ze.compareDocumentPosition(wt)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)}function Yn(ze,wt,ht){const U=ze.getBoundingClientRect();return U[wt]+U[ht]/2}function gi(ze,wt){return-1!==ze.indexOf(wt)}let Si=(()=>{class ze extends Y.Z1{constructor(ht){super(),this.service=ht}}return ze.\u0275fac=function(ht){return new(ht||ze)(e.Y36(Y.oQ))},ze.\u0275dir=e.lG2({type:ze,selectors:[["","kendoTooltipLocalizedMessages",""]],inputs:{closeTitle:"closeTitle"},features:[e._Bn([{provide:Y.Z1,useExisting:(0,e.Gpc)(()=>ze)}]),e.qOj]}),ze})(),Ni=(()=>{class ze{constructor(ht,U){this.content=ht,this.localizationService=U,this.xIcon=se.FZE,this.close=new e.vpe,this.hostRole="tooltip",this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=(gt,Lt,kt)=>{const vn={},jn="top"===gt||"bottom"===gt;return kt?("top"===gt?vn.bottom="unset":"bottom"===gt?vn.top="unset":"left"===gt?vn.right="unset":"right"===gt&&(vn.left="unset"),vn[gt]=-Lt+"px",vn.transform=jn?"rotateX(180deg)":"rotateY(180deg)",vn):(vn.transform=jn?"rotateX(0deg)":"rotateY(0deg)",vn)},this.direction=U.rtl?"rtl":"ltr"}get cssClasses(){return"k-tooltip"}get hostId(){return this.tooltipId}get className(){return this.closable}get cssPosition(){return"relative"}ngOnInit(){this.tooltipId=((ze,wt)=>{switch(wt){case"popoverTitle":return`${ze}-${++Tt}`;case"popoverBody":return`${ze}-${++wn}`;default:return`${ze}-${++It}`}})("tooltip"),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:ht})=>this.direction=ht?"rtl":"ltr")}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}calloutPositionClass(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]}onCloseClick(ht){ht.preventDefault(),this.close.emit()}updateCalloutPosition(ht,U){if(!this.callout)return;const gt=this.content.nativeElement.querySelector(".k-callout"),Lt="top"===ht||"bottom"===ht,kt=Lt?"width":"height",vn=Lt?"left":"top",jn=Lt?"marginLeft":"marginTop",St=gt.getBoundingClientRect()[kt],De=Yn(this.anchor.nativeElement,vn,kt),ie=Yn(this.content.nativeElement,vn,kt),je=Math.abs(ie-De);(je>1||0===je||0===Math.round(je))&&(gt.style[jn]=-(ie-De+St/2)+"px");const pt=this.calloutStyles(ht,St,U);Object.keys(pt).forEach(Ut=>{gt.style[Ut]=pt[Ut]})}}return ze.\u0275fac=function(ht){return new(ht||ze)(e.Y36(e.SBq),e.Y36(Y.oQ))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["kendo-tooltip"]],hostVars:13,hostBindings:function(ht,U){2&ht&&(e.uIk("dir",U.direction)("role",U.hostRole)("id",U.hostId),e.Tol(U.cssClasses),e.Udp("position",U.cssPosition)("width",U.tooltipWidth,"px")("height",U.tooltipHeight,"px"),e.ekj("k-tooltip-closable",U.className))},inputs:{tooltipWidth:"tooltipWidth",tooltipHeight:"tooltipHeight",titleTemplate:"titleTemplate",anchor:"anchor",closable:"closable",templateRef:"templateRef",templateString:"templateString"},outputs:{close:"close"},features:[e._Bn([Y.oQ,{provide:Y.mM,useValue:"kendo.tooltip"}])],decls:7,vars:10,consts:function(){let wt;return wt=$localize`:kendo.tooltip.closeTitle|The title of the close button:Close`,[["kendoTooltipLocalizedMessages","","closeTitle",wt],[1,"k-tooltip-content"],["class","k-tooltip-title",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngIf"],["class","k-tooltip-button",3,"click",4,"ngIf"],["class","k-callout",3,"ngClass",4,"ngIf"],[1,"k-tooltip-title"],[1,"k-tooltip-button",3,"click"],["href","#",1,"k-icon"],["name","x",3,"svgIcon"],[1,"k-callout",3,"ngClass"]]},template:function(ht,U){1&ht&&(e.GkF(0,0),e.TgZ(1,"div",1),e.YNc(2,q,2,6,"div",2),e.YNc(3,we,0,0,"ng-template",3),e.YNc(4,ae,1,1,"ng-template",4),e.qZA(),e.YNc(5,Q,3,3,"div",5),e.YNc(6,pe,1,1,"div",6)),2&ht&&(e.xp6(2),e.Q6J("ngIf",U.titleTemplate),e.xp6(1),e.Q6J("ngIf",U.templateRef)("ngTemplateOutlet",U.templateRef)("ngTemplateOutletContext",e.WLB(7,oe,U.anchor,U.anchor)),e.xp6(1),e.Q6J("ngIf",U.templateString),e.xp6(1),e.Q6J("ngIf",U.closable),e.xp6(1),e.Q6J("ngIf",U.callout))},dependencies:[he.ZS,Si,Se.O5,Se.tP,Se.mk],encapsulation:2}),ze})(),pn=(()=>{class ze{constructor(ht,U,gt,Lt,kt,vn){this.tooltipWrapper=ht,this.ngZone=U,this.renderer=gt,this.popupService=Lt,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.keyboardNavigationSubscription=new G.w0,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],(0,j.s)(We),Object.assign(this,kt,vn),this.ngZone.runOutsideAngular(()=>{const jn=this.tooltipWrapper.nativeElement;this.anchorTitleSubscription=(0,F.R)(jn,"mouseover").pipe((0,o.h)(()=>""!==this.filter)).subscribe(St=>{const De=Ln(St.target,this.filter);De&&this.hideElementTitle({nativeElement:De})}),this.mouseOverSubscription=(0,F.R)(jn,"mouseover").pipe((0,o.h)(()=>""!==this.filter)).subscribe(St=>this.onMouseOver(St)),this.mouseOutSubscription=(0,F.R)(jn,"mouseout").subscribe(St=>this.onMouseOut(St))})}set tooltipTemplate(ht){this.template=ht}get tooltipTemplate(){return this.template}show(ht){if(!this.popupRef)if(ht instanceof Element&&(ht={nativeElement:ht}),this.anchor=ht,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=setTimeout(()=>this.showContent(this.anchor),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)}hide(){clearTimeout(this.showTimeout);const ht=this.anchor&&this.anchor.nativeElement;ht&&ht.getAttribute("data-title")&&(!ht.getAttribute("title")&&ht.hasAttribute("title")&&ht.setAttribute("title",ht.getAttribute("data-title")),ht.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()}toggle(ht,U){const gt=this.anchor&&this.anchor.nativeElement;ht instanceof Element&&(ht={nativeElement:ht}),gt!==ht.nativeElement&&this.hide(),gt===ht.nativeElement&&"click"===this.showOn&&this.hide(),typeof U>"u"&&(U=!this.popupRef),U?this.show(ht):this.hide()}ngOnInit(){void 0===this.showOn&&(this.showOn="hover"),this.keyboardNavigationSubscription.add(this.renderer.listen(this.tooltipWrapper.nativeElement,"keydown",ht=>this.onKeyDown(ht))),this.verifyProperties()}ngOnChanges(ht){ht.showOn&&(0,ee.X_)()&&this.subscribeClick()}ngAfterViewChecked(){this.popupRef&&this.anchor&&!((ze,wt)=>{for(;ze&&ze!==wt;)ze=ze.parentNode;return ze})(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())}ngOnDestroy(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.keyboardNavigationSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()}showContent(ht){!ht.nativeElement.getAttribute("data-title")&&!this.template||(this.ngZone.run(()=>{this.openPopup(ht),this.bindContent(this.popupRef.content,ht)}),this.popupRef.popupAnchorViewportLeave.pipe((0,T.q)(1)).subscribe(()=>this.hide()))}bindContent(ht,U){const gt=ht.instance;this.closeClickSubscription=gt.close.subscribe(()=>{this.hide()}),this.template?gt.templateRef=this.template:gt.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(gt.titleTemplate=this.titleTemplate),gt.closeTitle=this.closeTitle,gt.anchor=U,gt.callout=this.callout,gt.closable=this.closable,gt.position=this.position,gt.tooltipWidth=this.tooltipWidth,gt.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()}hideElementTitle(ht){const U=ht.nativeElement;U.getAttribute("title")&&(U.setAttribute("data-title",U.getAttribute("title")),U.setAttribute("title",""))}openPopup(ht){const U=function an(ze,wt){let ht={},U={},gt={};switch(ze){case"top":ht={horizontal:"center",vertical:"top"},U={horizontal:"center",vertical:"bottom"},gt={horizontal:0,vertical:wt};break;case"bottom":ht={horizontal:"center",vertical:"bottom"},U={horizontal:"center",vertical:"top"},gt={horizontal:0,vertical:wt};break;case"right":ht={horizontal:"right",vertical:"center"},U={horizontal:"left",vertical:"center"},gt={horizontal:wt,vertical:0};break;case"left":ht={horizontal:"left",vertical:"center"},U={horizontal:"right",vertical:"center"},gt={horizontal:wt,vertical:0}}return{anchorAlign:ht,popupAlign:U,popupMargin:gt}}(this.position,this.offset),Lt=U.popupAlign,kt=U.popupMargin;this.popupRef=this.popupService.open({anchor:ht,anchorAlign:U.anchorAlign,animate:!1,content:Ni,collision:sn(this.collision,this.position),margin:kt,popupAlign:Lt,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);const vn=this.popupRef.content.instance;ht&&this.renderer.setAttribute(ht.nativeElement,"aria-labelledby",vn.tooltipId),vn.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(({flip:jn})=>{vn.updateCalloutPosition(this.position,!0===jn.horizontal||!0===jn.vertical)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(()=>{this.popupMouseOutSubscription=(0,F.R)(this.popupRef.popupElement,"mouseout").subscribe(St=>this.onMouseOut(St))})}closePopup(){this.popupRef&&(this.anchor&&this.renderer.removeAttribute(this.anchor.nativeElement,"aria-labelledby"),this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()}subscribeClick(){this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=(0,F.R)(document,"click").pipe((0,o.h)(()=>""!==this.filter)).subscribe(ht=>this.onMouseClick(ht,this.tooltipWrapper.nativeElement)))}onMouseClick(ht,U){const gt=ht.target,Lt=Ln(gt,this.filter),kt=this.popupRef&&this.popupRef.popupElement;kt&&(kt.contains(gt)||this.closable)||(U.contains(gt)&&Lt?this.toggle(Lt,!0):kt&&this.hide())}onKeyDown(ht){const U=ht.keyCode,gt=ht.target;if(this.popupRef){const Lt=this.popupRef.content.location.nativeElement.getAttribute("id"),kt=gt.getAttribute("aria-labelledby");U===ee.R8.Escape&&this.canCloseTooltip(gt,Lt,kt)&&this.closePopup()}}canCloseTooltip(ht,U,gt){const Lt=U===gt,kt=Ln(ht,this.filter),vn=ht===document.activeElement;return this.tooltipWrapper.nativeElement.contains(ht)&&kt&&vn&&Lt}onMouseOver(ht){const U=Ln(ht.target,this.filter);"hover"===this.showOn&&U&&this.toggle(U,!0)}onMouseOut(ht){if("hover"!==this.showOn||this.closable)return;const U=this.popupRef&&this.popupRef.popupElement,gt=ht.relatedTarget;gt&&this.anchor&&Mn(this.anchor.nativeElement,gt)||gt&&Mn(U,gt)||this.hide()}verifyProperties(){if((0,e.X6Q)()){if(!gi(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!gi(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}}}return ze.\u0275fac=function(ht){return new(ht||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(y.qL),e.Y36(it,8),e.Y36(yt,8))},ze.\u0275dir=e.lG2({type:ze,selectors:[["","kendoTooltip",""]],inputs:{filter:"filter",position:"position",titleTemplate:"titleTemplate",showOn:"showOn",showAfter:"showAfter",callout:"callout",closable:"closable",offset:"offset",tooltipWidth:"tooltipWidth",tooltipHeight:"tooltipHeight",tooltipClass:"tooltipClass",collision:"collision",closeTitle:"closeTitle",tooltipTemplate:"tooltipTemplate"},exportAs:["kendoTooltip"],features:[e.TTD]}),ze})();const Un=[y.Zj,he.pc];let fi=(()=>{class ze{}return ze.\u0275fac=function(ht){return new(ht||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[Se.ez,...Un]]}),ze})(),Zn=(()=>{class ze{}return ze.\u0275fac=function(ht){return new(ht||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[Se.ez,y.Zj]]}),ze})(),mn=(()=>{class ze{}return ze.\u0275fac=function(ht){return new(ht||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[fi,Zn]}),ze})()},30107:(fn,ve,_)=>{"use strict";_.d(ve,{At:()=>Es,Tv:()=>ss,xf:()=>un,zt:()=>Pt});var e=_(80529),o=_(94650),T=_(8416),A=_(16010),G=_(24006),F=_(5651),N=_(54968),R=_(56451),P=_(39300),y=_(13710),j=_(78833),Y=_(37340),ee=_(73494),se=_(28942),he=_(36895);function Se(Be,Jt){if(1&Be&&(o.TgZ(0,"span",4),o._uU(1),o.qZA()),2&Be){const xe=o.oxw();o.xp6(1),o.hij("",xe.progress,"%")}}const te=function(Be){return{"k-focus":Be}};function oe(Be,Jt){if(1&Be){const xe=o.EpF();o.TgZ(0,"button",5),o.NdJ("focus",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onFocus("retry"))})("blur",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onBlur("retry"))})("click",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onRetryClick())}),o._UZ(1,"kendo-icon-wrapper",6),o.qZA()}if(2&Be){const xe=o.oxw();o.Q6J("ngClass",o.VKq(6,te,xe.retryFocused)),o.uIk("tabIndex",-1)("aria-hidden",!0),o.xp6(1),o.Q6J("svgIcon",xe.retrySVGIcon),o.uIk("aria-label",xe.retryButtonTitle)("title",xe.retryButtonTitle)}}function q(Be,Jt){if(1&Be){const xe=o.EpF();o.TgZ(0,"button",5),o.NdJ("focus",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onFocus("pauseResume"))})("blur",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onBlur("pauseResume"))})("click",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onPauseResumeClick())}),o._UZ(1,"kendo-icon-wrapper",7),o.qZA()}if(2&Be){const xe=o.oxw();o.Q6J("ngClass",o.VKq(7,te,xe.pauseResumeFocused)),o.uIk("tabIndex",-1)("aria-hidden",!0),o.xp6(1),o.Q6J("name",xe.isPaused?"play-sm":"pause-sm")("svgIcon",xe.isPaused?xe.playSVGIcon:xe.pauseSVGIcon),o.uIk("aria-label",xe.pauseResumeButtonTitle)("title",xe.pauseResumeButtonTitle)}}function we(Be,Jt){if(1&Be){const xe=o.EpF();o.TgZ(0,"button",5),o.NdJ("focus",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onFocus("action"))})("blur",function(){o.CHM(xe);const Qe=o.oxw();return o.KtG(Qe.onBlur("action"))})("click",function(Qe){o.CHM(xe);const Et=o.oxw();return o.KtG(Et.onRemoveCancelClick(Qe))}),o._UZ(1,"kendo-icon-wrapper",8),o.qZA()}if(2&Be){const xe=o.oxw();o.Q6J("ngClass",o.VKq(8,te,xe.actionFocused)),o.uIk("tabIndex",-1)("aria-hidden",!0),o.xp6(1),o.Q6J("name",xe.isUploading?"cancel":"x")("svgIcon",xe.isUploading?xe.cancelSVGIcon:xe.deleteSVGIcon)("innerCssClass",xe.isUploading?"":"k-delete"),o.uIk("aria-label",xe.actionButtonTitle)("title",xe.actionButtonTitle)}}const ae=function(Be,Jt,xe){return{"k-file-validation-message":Be,"k-file-size":Jt,"k-file-summary":xe}};function Q(Be,Jt){if(1&Be&&(o.ynx(0),o.TgZ(1,"span",7),o._uU(2),o.qZA(),o.TgZ(3,"span",8),o._uU(4),o.qZA(),o.BQk()),2&Be){const xe=o.oxw();o.xp6(1),o.Q6J("title",xe.file.name),o.xp6(1),o.Oqu(xe.file.name),o.xp6(1),o.Q6J("ngClass",o.kEZ(5,ae,xe.file.validationErrors,!xe.file.validationErrors&&xe.isNotYetUploaded,xe.isUploadSuccessful||xe.isUploadFailed)),o.uIk("aria-live","polite"),o.xp6(1),o.Oqu(xe.fileStatusText)}}const pe=function(Be){return[Be]},Ee=function(Be,Jt,xe){return{templateRef:Be,state:Jt,$implicit:xe}};function ke(Be,Jt){if(1&Be&&o.GkF(0,9),2&Be){const xe=o.oxw();o.Q6J("ngTemplateOutlet",xe.fileInfoTemplate.templateRef)("ngTemplateOutletContext",o.kEZ(4,Ee,xe.fileInfoTemplate.templateRef,xe.file.state,o.VKq(2,pe,xe.file)))}}const Ye=function(){return{visible:!1}},ct=function(Be,Jt){return{"k-file-validation-message":Be,"k-file-size":Jt}};function ut(Be,Jt){if(1&Be&&(o.TgZ(0,"span",9)(1,"span",10),o._uU(2),o.qZA(),o.TgZ(3,"span",11),o._uU(4),o.qZA()()),2&Be){const xe=Jt.$implicit,Ke=o.oxw(2);o.xp6(1),o.Q6J("title",xe.name),o.xp6(1),o.hij(" ",xe.name," "),o.xp6(1),o.Q6J("ngClass",o.WLB(5,ct,xe.validationErrors,!xe.validationErrors)),o.uIk("aria-live","polite"),o.xp6(1),o.Oqu(Ke.fileStatusText(xe))}}function Ct(Be,Jt){if(1&Be&&(o.ynx(0),o.YNc(1,ut,5,8,"span",7),o.TgZ(2,"span",8),o._uU(3),o.qZA(),o.BQk()),2&Be){const xe=o.oxw();o.xp6(1),o.Q6J("ngForOf",xe.files),o.xp6(2),o.Oqu(xe.batchStatusText)}}function Ue(Be,Jt){if(1&Be&&o.GkF(0,12),2&Be){const xe=o.oxw();o.Q6J("ngTemplateOutlet",xe.fileInfoTemplate.templateRef)("ngTemplateOutletContext",o.kEZ(2,Ee,xe.fileInfoTemplate.templateRef,xe.files[0].state,xe.files))}}const vt=["kendo-upload-file-list",""];function ln(Be,Jt){if(1&Be&&o._UZ(0,"kendo-upload-file-list-single-item",5),2&Be){const xe=o.oxw().$implicit,Ke=o.oxw();o.Q6J("disabled",Ke.disabled)("file",xe[0])("fileInfoTemplate",Ke.fileInfoTemplate)}}function Je(Be,Jt){if(1&Be&&o._UZ(0,"kendo-upload-file-list-multiple-items",6),2&Be){const xe=o.oxw().$implicit,Ke=o.oxw();o.Q6J("disabled",Ke.disabled)("files",xe)("fileInfoTemplate",Ke.fileInfoTemplate)}}function Ft(Be,Jt){if(1&Be&&o.GkF(0,7),2&Be){const xe=o.oxw().$implicit,Ke=o.oxw();o.Q6J("ngTemplateOutlet",Ke.fileTemplate.templateRef)("ngTemplateOutletContext",o.kEZ(2,Ee,Ke.fileTemplate.templateRef,xe[0].state,xe))}}function st(Be,Jt){if(1&Be&&(o.TgZ(0,"li",1),o.YNc(1,ln,1,3,"kendo-upload-file-list-single-item",2),o.YNc(2,Je,1,3,"kendo-upload-file-list-multiple-items",3),o.YNc(3,Ft,1,6,"ng-container",4),o.qZA()),2&Be){const xe=Jt.$implicit,Ke=Jt.index,Qe=o.oxw();o.Q6J("files",xe)("index",Ke),o.xp6(1),o.Q6J("ngIf",1===xe.length&&!Qe.fileTemplate),o.xp6(1),o.Q6J("ngIf",xe.length>1&&!Qe.fileTemplate),o.xp6(1),o.Q6J("ngIf",Qe.fileTemplate)}}const Ze=["fileSelectInput"],$e=["fileSelectButton"];function Oe(Be,Jt){if(1&Be&&o._UZ(0,"ul",9),2&Be){const xe=o.oxw();o.Q6J("disabled",xe.disabled)("fileList",xe.fileList.files)("fileTemplate",xe.fileTemplate)("fileInfoTemplate",xe.fileInfoTemplate)}}const Nt=["clearButton"],xt=["uploadButton"];function Ot(Be,Jt){if(1&Be&&o._UZ(0,"kendo-upload-status-total",11),2&Be){const xe=o.oxw();o.Q6J("fileList",xe.fileList)}}function Kt(Be,Jt){if(1&Be&&o._UZ(0,"ul",12),2&Be){const xe=o.oxw();o.Q6J("disabled",xe.disabled)("fileList",xe.fileList.files)("fileTemplate",xe.fileTemplate)("fileInfoTemplate",xe.fileInfoTemplate)}}function $t(Be,Jt){if(1&Be&&o._UZ(0,"kendo-upload-action-buttons",13),2&Be){const xe=o.oxw();o.Q6J("disabled",xe.disabled)("actionsLayout",xe.actionsLayout)}}var We=(()=>{return(Be=We||(We={}))[Be.Failed=0]="Failed",Be[Be.Initial=1]="Initial",Be[Be.Selected=2]="Selected",Be[Be.Uploaded=3]="Uploaded",Be[Be.Uploading=4]="Uploading",Be[Be.Paused=5]="Paused",We;var Be})();class yt{constructor(){this._files={}}add(Jt){const xe=Jt.uid;this.has(xe)?Jt.validationErrors&&Jt.validationErrors.length>0?this._files[xe].unshift(Jt):this._files[xe].push(Jt):this._files[xe]=[Jt]}remove(Jt){this.has(Jt)&&(this._files[Jt]=null,delete this._files[Jt])}clear(){const Jt=this._files;for(const xe in Jt)if(Jt.hasOwnProperty(xe)){for(const Ke of Jt[xe])Ke.httpSubscription&&Ke.httpSubscription.unsubscribe();Jt[xe]=null,delete Jt[xe]}}has(Jt){return Jt in this._files}get(Jt){return this._files[Jt]}setFilesState(Jt,xe){for(const Ke of Jt)this.setFilesStateByUid(Ke.uid,xe)}setFilesStateByUid(Jt,xe){this.get(Jt).forEach(Ke=>{Ke.state=xe})}get count(){return Object.getOwnPropertyNames(this._files).length}get files(){const Jt=this._files,xe=[];for(const Ke in Jt)Jt.hasOwnProperty(Ke)&&xe.push(Jt[Ke]);return xe}get filesFlat(){const Jt=this._files,xe=[];for(const Ke in Jt)Jt.hasOwnProperty(Ke)&&Jt[Ke].forEach(Et=>{xe.push(Et)});return xe}get filesToUpload(){const Jt=this._files,xe=[];for(const Ke in Jt)if(Jt.hasOwnProperty(Ke)){const Qe=Jt[Ke];let Et=!0;for(const Dn of Qe)(Dn.state!==We.Selected||Dn.validationErrors&&Dn.validationErrors.length>0)&&(Et=!1);Et&&xe.push(Qe)}return xe}get firstFileToUpload(){const Jt=this._files;for(const xe in Jt)if(Jt.hasOwnProperty(xe)){const Ke=Jt[xe];let Qe=!0;for(const Et of Ke)(Et.state!==We.Selected||Et.validationErrors&&Et.validationErrors.length>0)&&(Qe=!1);if(Qe)return Ke}return null}getFilesWithState(Jt){return this.filesFlat.filter(xe=>xe.state===Jt)}hasFileWithState(Jt){const xe=this._files;for(const Ke in xe)if(xe.hasOwnProperty(Ke)){const Qe=xe[Ke];for(const Et of Qe)if(Jt.indexOf(Et.state)>=0)return!0}return!1}}class it{constructor(Jt){this.files=Jt}}class It{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Tt extends It{constructor(){super()}}class wn{constructor(Jt,xe,Ke){this.files=Jt,this.operation=xe,this.response=Ke}}class Nn{constructor(Jt){this.file=Jt}}class an extends It{constructor(Jt,xe){super(),this.files=Jt,this.headers=xe}}class sn{constructor(Jt){this.file=Jt}}class _n extends It{constructor(Jt){super(),this.files=Jt}}class Ln extends It{constructor(Jt,xe,Ke){super(),this.files=Jt,this.operation=xe,this.response=Ke}}class Mn extends It{constructor(Jt,xe){super(),this.files=Jt,this.headers=xe}}class pi{constructor(Jt,xe){this.files=Jt,this.percentComplete=xe}}const Yn={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],discImage:[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},gi={audio:A.pTO,video:A.qoH,image:A.GzL,txt:A.YFK,presentation:A.ltC,data:A.tEH,programming:A.tQD,pdf:A.n3D,config:A.Qpz,zip:A.UeD,discImage:A.OUW},ki=Be=>{const Jt=Be.lastIndexOf("\\");return-1!==Jt?Be.substr(Jt+1):Be},Si=Be=>{const xe=Be.match(/\.([^\.]+)$/);return xe?xe[0]:""},Ni=Be=>!!(Be instanceof Object&&Be.hasOwnProperty("name")),Vn=Be=>(Be.extension=Be.extension||Si(Be.name),Be.name=Be.name,Be.size=Be.size||0,Be.hasOwnProperty("state")||(Be.state=We.Initial),Be.hasOwnProperty("uid")||(Be.uid=(0,T.M8)()),Be),en=Be=>{const Jt=Be.name,xe=Be.size;return{extension:Si(Jt),name:Jt,rawFile:Be,size:xe,state:We.Selected}},lt=Be=>{const Jt=new Array;let xe;for(xe=0;xe<Be.length;xe++)Jt.push(en(Be[xe]));return Jt},In=Be=>!!(Be.validationErrors&&Be.validationErrors.length>0),rn=Be=>{for(const Jt of Be)if(In(Jt))return!0;return!1},yi=(Be,Jt)=>{const xe=(0,T.M8)();return Be.map(Ke=>(Ke.uid=Jt?(0,T.M8)():xe,Ke))},Ht=/^(?:a|input|select|textarea|button|object)$/i,Pn="k-icon k-select k-input k-multiselect-wrap",Sn="k-upload-button k-clear-selected k-upload-selected k-upload-action",Cn=Be=>String(Be).trim().split(" "),Un=(Be,Jt)=>{const xe=Cn(Jt);return Boolean(Cn(Be.className).find(Ke=>xe.indexOf(Ke)>=0))},fi=(Be,Jt=!0)=>{if(Be.tagName){const xe=Be.tagName.toLowerCase(),Ke=Be.getAttribute("tabIndex"),Qe=null!==Ke&&!isNaN(Ke)&&Ke>-1;let Et=!1;return Et=Ht.test(xe)?!Be.disabled:Qe,Et&&(!Jt||(Be=>{const Jt=Be.getBoundingClientRect();return!(!Jt.width||!Jt.height)&&"hidden"!==window.getComputedStyle(Be).visibility})(Be))}return!1},Zn=Be=>null!=Be;class mn{constructor(){this._files={}}add(Jt,xe){const Ke={index:0,position:0,retries:0,totalChunks:xe};return this._files[Jt]=Ke,Ke}remove(Jt){this.has(Jt)&&(this._files[Jt]=null,delete this._files[Jt])}has(Jt){return Jt in this._files}get(Jt){return this._files[Jt]}}let ze=(()=>{class Be{constructor(xe){this.http=xe,this.cancelEvent=new o.vpe,this.clearEvent=new o.vpe,this.completeEvent=new o.vpe,this.errorEvent=new o.vpe,this.pauseEvent=new o.vpe,this.removeEvent=new o.vpe,this.resumeEvent=new o.vpe,this.selectEvent=new o.vpe,this.successEvent=new o.vpe,this.uploadEvent=new o.vpe,this.uploadProgressEvent=new o.vpe,this.changeEvent=new o.vpe,this.async={autoUpload:!0,batch:!1,chunk:!1,concurrent:!0,removeField:"fileNames",removeHeaders:new e.WM,removeMethod:"POST",removeUrl:"",responseType:"json",saveField:"files",saveHeaders:new e.WM,saveMethod:"POST",saveUrl:"",withCredentials:!0},this.chunk={autoRetryAfter:100,size:1048576,maxAutoRetries:1,resumable:!0},this.component="Upload",this.chunkMap=new mn,this.fileList=new yt}get files(){return this.fileList}setChunkSettings(xe){!1!==xe&&(this.async.chunk=!0,"object"==typeof xe&&(this.chunk=Object.assign({},this.chunk,xe)))}onChange(){const xe=this.fileList.filesFlat.filter(Ke=>Ke.state===We.Initial||Ke.state===We.Uploaded);this.changeEvent.emit(xe.length>0?xe:null)}addFiles(xe){const Ke=new _n(xe);if(this.selectEvent.emit(Ke),!Ke.isDefaultPrevented()){for(const Qe of xe)this.fileList.add(Qe);this.async.autoUpload&&this.uploadFiles()}if("FileSelect"===this.component){const Qe=this.fileList.filesFlat;this.changeEvent.emit(Qe.length>0?Qe:null)}}addInitialFiles(xe){this.fileList.clear(),xe.forEach(Ke=>{const Qe=Vn(Ke);this.fileList.add(Qe)})}addInitialFileSelectFiles(xe){this.fileList.clear(),xe.forEach(Ke=>{Ke instanceof File?this.fileList.add((Be=>{const Jt=en(Be);return Jt.uid=(0,T.M8)(),Jt.state=We.Selected,Jt})(Ke)):this.fileList.add(Vn(Ke))})}resumeFile(xe){const Ke=this.fileList.get(xe);this.resumeEvent.emit(new sn(Ke[0])),this.fileList.setFilesStateByUid(xe,We.Uploading),this._uploadFiles([Ke])}pauseFile(xe){const Ke=this.fileList.get(xe)[0];this.pauseEvent.emit(new Nn(Ke)),this.fileList.setFilesStateByUid(xe,We.Paused)}removeFiles(xe){const Ke=this.fileList.get(xe),Qe=new an(Ke,this.cloneRequestHeaders(this.async.removeHeaders));if(this.removeEvent.emit(Qe),!Qe.isDefaultPrevented())if("Upload"!==this.component||Ke[0].state!==We.Uploaded&&Ke[0].state!==We.Initial){if(this.fileList.remove(xe),"FileSelect"===this.component){const Et=this.fileList.filesFlat;this.changeEvent.emit(Et.length>0?Et:null)}}else this.performRemove(Ke,Qe)}cancelFiles(xe){const Ke=this.fileList.get(xe),Qe=new it(Ke);this.cancelEvent.emit(Qe);for(const Et of Ke)Et.httpSubscription&&Et.httpSubscription.unsubscribe();this.fileList.remove(xe),this.checkAllComplete()}clearFiles(){const xe=new Tt;if(this.clearEvent.emit(xe),!xe.isDefaultPrevented()){const Ke=this.fileList.hasFileWithState([We.Initial,We.Uploaded]);this.fileList.clear(),Ke&&this.onChange()}}uploadFiles(){let xe=[];this.async.concurrent&&(xe=this.fileList.filesToUpload),!this.async.concurrent&&!this.fileList.hasFileWithState([We.Uploading])&&(xe=this.fileList.firstFileToUpload?[this.fileList.firstFileToUpload]:[]),xe&&xe.length>0&&this._uploadFiles(xe)}retryFiles(xe){const Ke=[this.fileList.get(xe)];Ke&&this._uploadFiles(Ke)}_uploadFiles(xe){for(const Ke of xe){if(Ke[0].state===We.Paused)return;const Qe=new Mn(Ke,this.cloneRequestHeaders(this.async.saveHeaders));if(this.uploadEvent.emit(Qe),Qe.isDefaultPrevented())this.fileList.remove(Ke[0].uid);else{this.fileList.setFilesState(Ke,We.Uploading);const Et=this.performUpload(Ke,Qe);Ke.forEach(Dn=>{Dn.httpSubscription=Et})}}}performRemove(xe,Ke){const Qe=this.async,Et=xe.map(qi=>qi.name),Dn=this.populateRemoveFormData(Et,Ke.data),vi=this.populateRequestOptions(Ke.headers,!1),ni=new e.aW(Qe.removeMethod,Qe.removeUrl,Dn,vi);this.http.request(ni).subscribe(qi=>{this.onSuccess(qi,xe,"remove")},qi=>{this.onError(qi,xe,"remove")})}performUpload(xe,Ke){const Qe=this.async,Et=this.populateUploadFormData(xe,Ke.data),Dn=this.populateRequestOptions(Ke.headers),vi=new e.aW(Qe.saveMethod,Qe.saveUrl,Et,Dn);return this.http.request(vi).subscribe(qi=>{qi.type!==e.dt.UploadProgress||this.async.chunk?qi instanceof e.Zn&&(this.onSuccess(qi,xe,"upload"),this.checkAllComplete()):this.onProgress(qi,xe)},qi=>{this.onError(qi,xe,"upload"),this.checkAllComplete()})}onSuccess(xe,Ke,Qe){if("upload"===Qe&&this.async.chunk){if(this.onChunkProgress(Ke),!this.isChunkUploadComplete(Ke[0].uid))return this.updateChunkInfo(Ke[0].uid),void this._uploadFiles([Ke]);this.removeChunkInfo(Ke[0].uid)}const Et=new Ln(Ke,Qe,xe);this.successEvent.emit(Et),"upload"===Qe?this.fileList.setFilesState(Ke,Et.isDefaultPrevented()?We.Failed:We.Uploaded):Et.isDefaultPrevented()||this.fileList.remove(Ke[0].uid),Et.isDefaultPrevented()||this.onChange()}onError(xe,Ke,Qe){if("upload"===Qe&&this.async.chunk){const Dn=this.chunk.maxAutoRetries,vi=this.chunkMap.get(Ke[0].uid);if(vi.retries<Dn)return vi.retries+=1,void setTimeout(()=>{this.retryFiles(Ke[0].uid)},this.chunk.autoRetryAfter)}const Et=new wn(Ke,Qe,xe);this.errorEvent.emit(Et),"upload"===Qe&&this.fileList.setFilesState(Ke,We.Failed)}onProgress(xe,Ke){const Qe=Math.round(100*xe.loaded/xe.total),Et=new pi(Ke,Qe<100?Qe:100);this.uploadProgressEvent.emit(Et)}onChunkProgress(xe){const Ke=this.chunkMap.get(xe[0].uid);let Qe=0;Ke&&(Qe=Ke.index===Ke.totalChunks-1?100:Math.round((Ke.index+1)/Ke.totalChunks*100));const Et=new pi(xe,Qe<100?Qe:100);this.uploadProgressEvent.emit(Et)}checkAllComplete(){!this.fileList.hasFileWithState([We.Uploading,We.Paused])&&this.areAllSelectedFilesHandled()?this.completeEvent.emit():this.shouldUploadNextFile()&&this.uploadFiles()}shouldUploadNextFile(){return!this.async.concurrent&&this.fileList.hasFileWithState([We.Selected])&&!this.fileList.hasFileWithState([We.Uploading])}areAllSelectedFilesHandled(){return 0===this.fileList.getFilesWithState(We.Selected).filter(Ke=>!Ke.validationErrors).length}cloneRequestHeaders(xe){const Ke={};return xe&&xe.keys().forEach(Qe=>{Ke[Qe]=xe.get(Qe)}),new e.WM(Ke)}populateRequestOptions(xe,Ke=!0){return{headers:xe,reportProgress:Ke,responseType:this.async.responseType,withCredentials:this.async.withCredentials}}populateUploadFormData(xe,Ke){const Qe=this.async.saveField,Et=new FormData;if(this.populateClientFormData(Et,Ke),this.async.chunk)Et.append(Qe,this.getNextChunk(xe[0])),Et.append("metadata",this.getChunkMetadata(xe[0]));else for(const Dn of xe)Et.append(Qe,Dn.rawFile);return Et}populateRemoveFormData(xe,Ke){const Qe=new FormData;this.populateClientFormData(Qe,Ke);for(const Et of xe)Qe.append(this.async.removeField,Et);return Qe}populateClientFormData(xe,Ke){for(const Qe in Ke)Ke.hasOwnProperty(Qe)&&xe.append(Qe,Ke[Qe])}getNextChunk(xe){const Ke=this.getChunkInfo(xe);return xe.rawFile.slice(Ke.position,Ke.position+this.chunk.size)}getChunkInfo(xe){let Ke=this.chunkMap.get(xe.uid);if(!Ke){const Qe=Math.ceil(xe.size/this.chunk.size);Ke=this.chunkMap.add(xe.uid,Qe)}return Ke}updateChunkInfo(xe){const Ke=this.chunkMap.get(xe);Ke.index<Ke.totalChunks-1&&(Ke.index+=1,Ke.position+=this.chunk.size,Ke.retries=0)}removeChunkInfo(xe){this.chunkMap.remove(xe)}getChunkMetadata(xe){const Ke=this.chunkMap.get(xe.uid);return JSON.stringify({chunkIndex:Ke.index,contentType:xe.rawFile.type,fileName:xe.name,fileSize:xe.size,fileUid:xe.uid,totalChunks:Ke.totalChunks})}isChunkUploadComplete(xe){const Ke=this.chunkMap.get(xe);return!!Ke&&Ke.index+1===Ke.totalChunks}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.LFG(e.eN))},Be.\u0275prov=o.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),wt=(()=>{class Be{constructor(xe,Ke){this.uploadService=xe,this.zone=Ke,this.onActionButtonAction=new o.vpe,this.onActionButtonFocus=new o.vpe,this.onFileAction=new o.vpe,this.onFileFocus=new o.vpe,this.onTab=new o.vpe,this.onWrapperFocus=new o.vpe,this.onSelectButtonFocus=new o.vpe,this.actionButtonsVisible=!1,this.focused=!1,this._focusedIndex=-1}action(xe){return this.keyBindings[xe.keyCode]}process(xe){const Ke=this.action(xe);Ke&&Ke(xe)}computeKeys(xe){this.keyBindings={[T.R8.Space]:()=>this.handleSpace(),[T.R8.Enter]:Ke=>this.handleEnter(Ke),[T.R8.Escape]:()=>this.handleEscape(),[T.R8.Delete]:()=>this.handleDelete(),[T.R8.Tab]:Ke=>this.handleTab(Ke.shiftKey),[T.R8.ArrowUp]:Ke=>this.handleUp(Ke),[T.R8.ArrowDown]:Ke=>this.handleDown(Ke),[this.invertKeys(xe,T.R8.ArrowLeft,T.R8.ArrowRight)]:()=>this.handleLeft(),[this.invertKeys(xe,T.R8.ArrowRight,T.R8.ArrowLeft)]:()=>this.handleRight()}}invertKeys(xe,Ke,Qe){return"rtl"===xe?Qe:Ke}focusSelectButton(){this.focused=!0,this._focusedIndex=-1,this.onSelectButtonFocus.emit()}handleEnter(xe){this.lastIndex>=0&&this.zone.run(()=>{this.focusedIndex<=this.lastFileIndex?this.onFileAction.emit(T.R8.Enter):this.actionButtonsVisible&&this.focusedIndex<=this.lastIndex&&(xe.preventDefault(),this.onActionButtonAction.emit(this.focusedIndex<this.lastIndex?"clear":"upload"))})}handleSpace(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.zone.run(()=>this.onFileAction.emit(T.R8.Space))}handleDelete(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.zone.run(()=>{this.onFileAction.emit(T.R8.Delete)})}handleEscape(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.onFileAction.emit(T.R8.Escape)}handleLeft(){this.actionButtonsVisible&&this.focusedIndex===this.lastIndex&&(this.focusedIndex-=1,this.zone.run(()=>{this.onActionButtonFocus.emit("clear")}))}handleRight(){this.actionButtonsVisible&&this.focusedIndex===this.lastIndex-1&&(this.focusedIndex+=1,this.zone.run(()=>{this.onActionButtonFocus.emit("upload")}))}handleTab(xe){return-1===this.focusedIndex?(this.focusedIndex=this.lastFileIndex+1,void this.zone.run(()=>this.onActionButtonFocus.emit("clear"))):this.focusedIndex===this.lastFileIndex+1?(this.focusedIndex+=1,void this.zone.run(()=>this.onActionButtonFocus.emit("upload"))):void(this.focusedIndex===this.lastIndex&&xe?this.focusedIndex-=1:this.focusedIndex===this.lastFileIndex+1&&xe&&(this.focusedIndex=-1,this.zone.run(()=>this.onSelectButtonFocus.emit())))}handleDown(xe){this.lastIndex>=0&&this.focusedIndex<this.lastIndex&&(xe.preventDefault(),this.zone.run(()=>{if(this.focusedIndex<this.lastFileIndex)return this.focusedIndex+=1,void this.onFileFocus.emit(this.focusedIndex);this.actionButtonsVisible&&this.focusedIndex===this.lastFileIndex&&(this.focusedIndex+=1,this.onActionButtonFocus.emit("clear"))}))}handleUp(xe){this.lastIndex>=0&&this.focusedIndex>-1&&(xe.preventDefault(),this.zone.run(()=>{this.focusedIndex-=1,-1!==this.focusedIndex?this.focusedIndex<=this.lastFileIndex?this.onFileFocus.emit(this.focusedIndex):this.actionButtonsVisible&&this.focusedIndex<=this.lastIndex&&(this.focusedIndex=this.lastFileIndex,this.onFileFocus.emit(this.focusedIndex)):this.onSelectButtonFocus.emit()}))}get focusedIndex(){return this._focusedIndex}set focusedIndex(xe){this.focused||this.onWrapperFocus.emit(),this._focusedIndex=xe,this.focused=!0,this._focusedIndex>=0&&this._focusedIndex<=this.lastFileIndex&&this.onFileFocus.emit(xe)}get lastFileIndex(){return this.actionButtonsVisible?this.lastIndex-2:this.lastIndex}get lastIndex(){const xe=this.uploadService.files.count;return this.actionButtonsVisible?xe+1:xe-1}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.LFG(ze),o.LFG(o.R0b))},Be.\u0275prov=o.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const ht={};let U=(()=>{class Be{addComponent(xe,Ke){this.has(Ke)?ht[Ke].push(xe):ht[Ke]=[xe]}getComponents(xe){return ht[xe]}has(xe){return xe in ht}}return Be.\u0275fac=function(xe){return new(xe||Be)},Be.\u0275prov=o.Yz7({token:Be,factory:Be.\u0275fac}),Be})();const gt={name:"@progress/kendo-angular-upload",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1684310634,version:"12.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Lt=(()=>{class Be{constructor(xe){this.templateRef=xe}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(o.Rgc))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoUploadFileTemplate",""],["","kendoFileSelectFileTemplate",""]]}),Be})(),kt=(()=>{class Be{constructor(xe){this.templateRef=xe}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(o.Rgc))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoUploadFileInfoTemplate",""],["","kendoFileSelectFileInfoTemplate",""]]}),Be})(),vn=(()=>{class Be{constructor(xe,Ke,Qe){this.navigationService=Ke,this.uploadService=Qe,this.fileClass=!0,this.focused=!1,this.element=xe}focus(){this.element.nativeElement.focus()}get uidAttribute(){return this.files[0].uid}get tabIndex(){return"-1"}get kFileError(){return this.files[0].state===We.Failed}get kFileInvalid(){return rn(this.files)}get kFileProgress(){return this.files[0].state===We.Uploading||this.files[0].state===We.Paused}get kFileSuccess(){return"Upload"===this.uploadService.component&&(this.files[0].state===We.Uploaded||this.files[0].state===We.Initial)}get kStateFocused(){return this.focused}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onClick(xe){!fi(xe.target)&&!Un(xe.target,Pn)&&(this.navigationService.focusedIndex=this.index)}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(o.SBq),o.Y36(wt),o.Y36(ze))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoUploadFileListItem",""]],hostVars:14,hostBindings:function(xe,Ke){1&xe&&o.NdJ("focus",function(){return Ke.onFocus()})("blur",function(){return Ke.onBlur()})("click",function(Et){return Ke.onClick(Et)}),2&xe&&(o.uIk("data-uid",Ke.uidAttribute)("tabIndex",Ke.tabIndex),o.ekj("k-file",Ke.fileClass)("k-file-error",Ke.kFileError)("k-file-invalid",Ke.kFileInvalid)("k-file-progress",Ke.kFileProgress)("k-file-success",Ke.kFileSuccess)("k-focus",Ke.kStateFocused))},inputs:{files:"files",index:"index"}}),Be})(),jn=(()=>{class Be{constructor(xe){this.uploadService=xe,this.progressComplete=0}subscribeUploadProgress(xe){this.uploadProgressSubscription=this.uploadService.uploadProgressEvent.subscribe(xe)}fileHasValidationErrors(xe){return In(xe)}filesHaveValidationErrors(xe){return rn(xe)}ngOnDestroy(){this.uploadProgressSubscription.unsubscribe()}getFileValidationMessage(xe){let Ke;return xe.validationErrors&&xe.validationErrors.length>0&&(Ke=this.localization.get(xe.validationErrors[0])),Ke}getTotalFilesSizeMessage(xe){return(Be=>{let xe,Jt=0;if("number"!=typeof Be[0].size)return"";for(xe=0;xe<Be.length;xe++)Be[xe].size&&(Jt+=Be[xe].size);return Jt/=1024,Jt<1024?Jt.toFixed(2)+" KB":(Jt/1024).toFixed(2)+" MB"})(xe)}textFor(xe){return this.localization.get(xe)}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["ng-component"]],decls:0,vars:0,template:function(xe,Ke){},encapsulation:2}),Be})(),St=(()=>{class Be{constructor(xe,Ke,Qe){this.uploadService=xe,this.localization=Ke,this.navigation=Qe,this.actionFocused=!1,this.retryFocused=!1,this.pauseResumeFocused=!1,this.retrySVGIcon=A.jQe,this.playSVGIcon=A.Qsz,this.pauseSVGIcon=A.CIP,this.cancelSVGIcon=A.p5j,this.deleteSVGIcon=A.FZE}onFocus(xe){"action"===xe&&(this.actionFocused=!0),"retry"===xe&&(this.retryFocused=!0),"pauseResume"===xe&&(this.pauseResumeFocused=!0)}onBlur(xe){"retry"===xe&&(this.retryFocused=!1),"action"===xe&&(this.actionFocused=!1),"pauseResume"===xe&&(this.pauseResumeFocused=!1)}onRetryClick(){this.disabled||this.uploadService.retryFiles(this.file.uid)}onRemoveCancelClick(xe){if(this.disabled)return;xe.stopImmediatePropagation();const Ke=this.file.uid;this.file.state===We.Uploading?this.uploadService.cancelFiles(Ke):this.uploadService.removeFiles(Ke),this.navigation.focusSelectButton()}onPauseResumeClick(){if(this.disabled)return;const xe=this.file.uid;this.file.state===We.Paused?this.uploadService.resumeFile(xe):this.uploadService.pauseFile(xe)}get actionButtonTitle(){return this.localization.get(this.file.state===We.Uploading?"cancel":"remove")}get retryButtonTitle(){return this.localization.get("retry")}get pauseResumeButtonTitle(){return this.localization.get(this.file.state===We.Uploading?"pause":"resume")}get isUploading(){return this.file.state===We.Uploading}get isFailed(){return this.file.state===We.Failed}get isPaused(){return this.file.state===We.Paused}get isResumable(){const xe=this.uploadService;return xe.async.chunk&&xe.chunk.resumable&&(this.file.state===We.Paused||this.file.state===We.Uploading)}get isActionButtonVisible(){return!((this.file.state===We.Uploaded||this.file.state===We.Initial)&&!this.uploadService.async.removeUrl&&"Upload"===this.uploadService.component)}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(F.oQ),o.Y36(wt))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-file-list-item-action-button"]],inputs:{file:"file",disabled:"disabled",progress:"progress"},decls:5,vars:4,consts:[[1,"k-upload-actions"],["class","k-upload-pct",4,"ngIf"],["type","button","class","k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-upload-action",3,"ngClass","focus","blur","click",4,"ngIf"],["class","k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-upload-action","type","button",3,"ngClass","focus","blur","click",4,"ngIf"],[1,"k-upload-pct"],["type","button",1,"k-button","k-icon-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-upload-action",3,"ngClass","focus","blur","click"],["name","refresh-sm","innerCssClass","k-retry",3,"svgIcon"],[3,"name","svgIcon"],[3,"name","svgIcon","innerCssClass"]],template:function(xe,Ke){1&xe&&(o.TgZ(0,"span",0),o.YNc(1,Se,2,1,"span",1),o.YNc(2,oe,2,8,"button",2),o.YNc(3,q,2,9,"button",2),o.YNc(4,we,2,10,"button",3),o.qZA()),2&xe&&(o.xp6(1),o.Q6J("ngIf",Ke.isUploading||Ke.isPaused),o.xp6(1),o.Q6J("ngIf",Ke.isFailed),o.xp6(1),o.Q6J("ngIf",Ke.isResumable),o.xp6(1),o.Q6J("ngIf",Ke.isActionButtonVisible))},dependencies:[se.ZS,he.O5,he.mk],encapsulation:2}),Be})(),De=(()=>{class Be extends jn{constructor(xe,Ke){super(Ke),this.localization=xe,this.subscribeUploadProgress(Qe=>{Qe.files[0].uid===this.file.uid&&(this.progressComplete=Qe.percentComplete)})}get fileStatusText(){const xe=this.file.validationErrors;return this.file.state===We.Uploaded?`${this.textFor("fileStatusUploaded")}`:this.file.state===We.Failed?`${this.textFor("fileStatusFailed")}`:Zn(xe)?this.getFileValidationMessage(this.file):this.getTotalFilesSizeMessage([this.file])}get showProgress(){return this.file.state===We.Uploading||this.file.state===We.Paused?"active":"inactive"}get fileGroupClass(){return(Be=>{const Jt="file";for(const xe in Yn)if(Yn[xe].indexOf(Be)>=0)return"discImage"===xe?`${Jt}-disc-image`:`${Jt}-${xe}`;return Jt})(this.file.extension?this.file.extension:"")}get fileSVGGroupIcon(){const xe=A.RbE;if(this.file.extension)for(const Ke in Yn)if(Yn[Ke].indexOf(this.file.extension)>=0)return gi[Ke];return xe}get isUploadSuccessful(){return this.file.state===We.Uploaded}get isUploadFailed(){return this.file.state===We.Failed}get isNotYetUploaded(){return!this.isUploadFailed&&!this.isUploadSuccessful}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(F.oQ),o.Y36(ze))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-file-list-single-item"]],inputs:{disabled:"disabled",file:"file",fileInfoTemplate:"fileInfoTemplate"},features:[o.qOj],decls:7,vars:11,consts:[[3,"value","label"],[1,"k-file-icon-wrapper"],["innerCssClass","k-file-icon",3,"name","svgIcon"],[1,"k-file-info"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"file","disabled","progress"],[1,"k-file-name",3,"title"],[3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(xe,Ke){1&xe&&(o._UZ(0,"kendo-progressbar",0),o.TgZ(1,"span",1),o._UZ(2,"kendo-icon-wrapper",2),o.qZA(),o.TgZ(3,"span",3),o.YNc(4,Q,5,9,"ng-container",4),o.YNc(5,ke,1,8,"ng-container",5),o.qZA(),o._UZ(6,"kendo-upload-file-list-item-action-button",6)),2&xe&&(o.Q6J("@progressState",Ke.showProgress)("value",Ke.progressComplete)("label",o.DdM(10,Ye)),o.xp6(2),o.Q6J("name",Ke.fileGroupClass)("svgIcon",Ke.fileSVGGroupIcon),o.xp6(2),o.Q6J("ngIf",!Ke.fileInfoTemplate),o.xp6(1),o.Q6J("ngIf",Ke.fileInfoTemplate),o.xp6(1),o.Q6J("file",Ke.file)("disabled",Ke.disabled)("progress",Ke.progressComplete))},dependencies:[ee.RI,se.ZS,St,he.O5,he.mk,he.tP],encapsulation:2,data:{animation:[(0,Y.X$)("progressState",[(0,Y.SB)("active",(0,Y.oB)({opacity:1})),(0,Y.SB)("inactive",(0,Y.oB)({opacity:0})),(0,Y.eR)("void => active",(0,Y.oB)({opacity:0})),(0,Y.eR)("inactive => active",(0,Y.oB)({opacity:1})),(0,Y.eR)("active => inactive",(0,Y.jt)("1s 2s ease-out"))])]}}),Be})(),ie=(()=>{class Be extends jn{constructor(xe,Ke){super(Ke),this.localization=xe,this.copySVGIcon=A.UIf,this.subscribeUploadProgress(Qe=>{Qe.files[0].uid===this.files[0].uid&&(this.progressComplete=Qe.percentComplete)})}get showProgress(){return this.files[0].state===We.Uploading||this.files[0].state===We.Paused?"active":"inactive"}ngOnInit(){this.filesHaveErrors=super.filesHaveValidationErrors(this.files)}fileStatusText(xe){return Zn(xe.validationErrors)?this.getFileValidationMessage(xe):this.getTotalFilesSizeMessage([xe])}get batchStatusText(){const xe=this.files[0].state,Ke=this.files.length;return xe===We.Uploaded?`${Ke} ${this.textFor("filesBatchStatusUploaded")}`:xe===We.Failed?`${Ke} ${this.textFor("filesBatchStatusFailed")}`:`${Ke} ${this.textFor("filesBatchStatus")}`}get isUploadSuccessful(){return this.files[0].state===We.Uploaded}get isUploadFailed(){return this.files[0].state===We.Failed}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(F.oQ),o.Y36(ze))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-file-list-multiple-items"]],inputs:{disabled:"disabled",files:"files",fileInfoTemplate:"fileInfoTemplate"},features:[o.qOj],decls:7,vars:10,consts:[[3,"value","label"],[1,"k-file-icon-wrapper"],["name","copy","innerCssClass","k-file-icon",3,"svgIcon"],[1,"k-multiple-files-wrapper"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"file","disabled","progress"],["class","k-file-info",4,"ngFor","ngForOf"],[1,"k-file-summary"],[1,"k-file-info"],[1,"k-file-name",3,"title"],[3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(xe,Ke){1&xe&&(o._UZ(0,"kendo-progressbar",0),o.TgZ(1,"span",1),o._UZ(2,"kendo-icon-wrapper",2),o.qZA(),o.TgZ(3,"span",3),o.YNc(4,Ct,4,2,"ng-container",4),o.YNc(5,Ue,1,6,"ng-container",5),o.qZA(),o._UZ(6,"kendo-upload-file-list-item-action-button",6)),2&xe&&(o.Q6J("@progressState",Ke.showProgress)("value",Ke.progressComplete)("label",o.DdM(9,Ye)),o.xp6(2),o.Q6J("svgIcon",Ke.copySVGIcon),o.xp6(2),o.Q6J("ngIf",!Ke.fileInfoTemplate),o.xp6(1),o.Q6J("ngIf",Ke.fileInfoTemplate),o.xp6(1),o.Q6J("file",Ke.files[0])("disabled",Ke.disabled)("progress",Ke.progressComplete))},dependencies:[ee.RI,se.ZS,St,he.O5,he.sg,he.mk,he.tP],encapsulation:2,data:{animation:[(0,Y.X$)("progressState",[(0,Y.SB)("active",(0,Y.oB)({opacity:1})),(0,Y.SB)("inactive",(0,Y.oB)({opacity:0})),(0,Y.eR)("void => active",(0,Y.oB)({opacity:0})),(0,Y.eR)("inactive => active",(0,Y.oB)({opacity:1})),(0,Y.eR)("active => inactive",(0,Y.jt)("1s 2s ease-out"))])]}}),Be})(),je=(()=>{class Be{constructor(xe,Ke){this.uploadService=xe,this.navigation=Ke,this.onItemFocus(),this.onItemAction()}onItemFocus(){this.focusSubscription=this.navigation.onFileFocus.subscribe(xe=>{this.fileListItems.toArray()[xe].focus()})}onItemAction(){this.actionSubscription=this.navigation.onFileAction.subscribe(xe=>{this.itemActionHandler(xe)})}itemActionHandler(xe){const Ke=this.navigation.focusedIndex,Qe=this.fileListItems.toArray()[Ke],Et=Qe.uidAttribute,Dn=this.uploadService.files.get(Et);if(xe===T.R8.Escape&&Dn[0].state===We.Uploading)return this.uploadService.cancelFiles(Et),void this.navigation.focusSelectButton();xe!==T.R8.Enter||Dn[0].state!==We.Failed?(xe===T.R8.Delete&&(Dn[0].state===We.Uploading?this.uploadService.cancelFiles(Et):this.hasDelete(Qe)&&this.uploadService.removeFiles(Et),this.navigation.focusSelectButton()),xe===T.R8.Space&&Dn[0].state!==We.Uploaded&&this.uploadService.async.chunk&&(Dn[0].state===We.Paused?this.uploadService.resumeFile(Et):this.uploadService.pauseFile(Et))):this.uploadService.retryFiles(Et)}hasDelete(xe){return xe.element.nativeElement.getElementsByClassName("k-delete").length>0}ngOnDestroy(){this.focusSubscription.unsubscribe(),this.actionSubscription.unsubscribe()}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(wt))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["","kendo-upload-file-list",""]],viewQuery:function(xe,Ke){if(1&xe&&o.Gf(vn,5),2&xe){let Qe;o.iGM(Qe=o.CRH())&&(Ke.fileListItems=Qe)}},inputs:{disabled:"disabled",fileList:"fileList",fileTemplate:"fileTemplate",fileInfoTemplate:"fileInfoTemplate"},attrs:vt,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["kendoUploadFileListItem","",3,"files","index"],["class","k-file-single",3,"disabled","file","fileInfoTemplate",4,"ngIf"],["class","k-file-multiple",3,"disabled","files","fileInfoTemplate",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"k-file-single",3,"disabled","file","fileInfoTemplate"],[1,"k-file-multiple",3,"disabled","files","fileInfoTemplate"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(xe,Ke){1&xe&&o.YNc(0,st,4,5,"ng-template",0),2&xe&&o.Q6J("ngForOf",Ke.fileList)},dependencies:[De,ie,he.sg,vn,he.O5,he.tP],encapsulation:2}),Be})(),pt=(()=>{class Be extends F.Z1{}return Be.\u0275fac=function(){let Jt;return function(Ke){return(Jt||(Jt=o.n5z(Be)))(Ke||Be)}}(),Be.\u0275dir=o.lG2({type:Be,inputs:{cancel:"cancel",clearSelectedFiles:"clearSelectedFiles",dropFilesHere:"dropFilesHere",externalDropFilesHere:"externalDropFilesHere",filesBatchStatus:"filesBatchStatus",filesBatchStatusFailed:"filesBatchStatusFailed",filesBatchStatusUploaded:"filesBatchStatusUploaded",fileStatusFailed:"fileStatusFailed",fileStatusUploaded:"fileStatusUploaded",headerStatusPaused:"headerStatusPaused",headerStatusUploaded:"headerStatusUploaded",headerStatusUploading:"headerStatusUploading",invalidFileExtension:"invalidFileExtension",invalidMaxFileSize:"invalidMaxFileSize",invalidMinFileSize:"invalidMinFileSize",pause:"pause",remove:"remove",resume:"resume",retry:"retry",select:"select",uploadSelectedFiles:"uploadSelectedFiles"},features:[o.qOj]}),Be})(),Ut=(()=>{class Be extends pt{constructor(xe){super(),this.service=xe}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(F.oQ))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoUploadLocalizedMessages",""],["","kendoFileSelectLocalizedMessages",""],["","kendoUploadDropZoneLocalizedMessages",""]],features:[o._Bn([{provide:pt,useExisting:(0,o.Gpc)(()=>Be)}]),o.qOj]}),Be})();const xn="invalidMaxFileSize",hn="invalidMinFileSize",Gn="invalidFileExtension",ri=(Be,Jt)=>{Jt.length>0&&Jt.indexOf(Be.extension.toLowerCase())<0&&(Be.validationErrors=Be.validationErrors||[],Be.validationErrors.indexOf(Gn)<0&&Be.validationErrors.push(Gn))},mi=(Be,Jt,xe)=>{0!==Jt&&Be.size<Jt&&(Be.validationErrors=Be.validationErrors||[],Be.validationErrors.indexOf(hn)<0&&Be.validationErrors.push(hn)),0!==xe&&Be.size>xe&&(Be.validationErrors=Be.validationErrors||[],Be.validationErrors.indexOf(xn)<0&&Be.validationErrors.push(xn))},Pi=(Be,Jt)=>{const xe=(Be=>Be.map(xe=>("."===xe.substring(0,1)?xe:"."+xe).toLowerCase()))(Jt.allowedExtensions),Ke=Jt.maxFileSize,Qe=Jt.minFileSize;let Et;for(Et=0;Et<Be.length;Et++)ri(Be[Et],xe),mi(Be[Et],Qe,Ke)};let Di=(()=>{class Be{constructor(xe,Ke,Qe){this.element=xe,this.renderer=Ke,this.hideIntervalElement=null,this.hoverClass=Qe}onElementDragEnterListener(){return this.addClass(this.hoverClass),this.lastDragElement=new Date,this.hideIntervalElement||(this.hideIntervalElement=setInterval(()=>{this.calculateTimeDiff(this.lastDragElement)<100||(this.removeClass(this.hoverClass),clearInterval(this.hideIntervalElement),this.hideIntervalElement=null)},100)),!1}onElementDragOverListener(){return this.lastDragElement=new Date,!1}calculateTimeDiff(xe){return(new Date).getTime()-xe.getTime()}addClass(xe){this.renderer.addClass(this.element.nativeElement,xe)}removeClass(xe){this.renderer.removeClass(this.element.nativeElement,xe)}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36("hoverClass"))},Be.\u0275dir=o.lG2({type:Be,hostBindings:function(xe,Ke){1&xe&&o.NdJ("dragenter",function(){return Ke.onElementDragEnterListener()})("dragover",function(){return Ke.onElementDragOverListener()})}}),Be})(),Yi=(()=>{class Be extends Di{constructor(xe,Ke,Qe,Et){super(xe,Ke,"k-hover"),this.ngZone=Qe,this.uploadService=Et,this.initialClassName=!0,this.hideIntervalDocument=null,this.activeClass="k-dropzone-active",this.ngZone.runOutsideAngular(()=>{this.unsubscribeDocumentDragEnter=this.renderer.listen("document","dragenter",()=>this.onDocumentDragEnter()),this.unsubscribeDocumentDragOver=this.renderer.listen("document","dragover",()=>this.onDocumentDragOver())})}ngOnDestroy(){this.ngZone.runOutsideAngular(()=>{this.unsubscribeDocumentDragEnter&&this.unsubscribeDocumentDragEnter(),this.unsubscribeDocumentDragOver&&this.unsubscribeDocumentDragOver()})}onDocumentDragEnter(){return this.addClass(this.activeClass),this.lastDragDocument=new Date,this.hideIntervalDocument||(this.hideIntervalDocument=setInterval(()=>{this.calculateTimeDiff(this.lastDragDocument)<100||(this.removeClass(this.activeClass),clearInterval(this.hideIntervalDocument),this.hideIntervalDocument=null)},100)),!1}onDocumentDragOver(){return this.lastDragDocument=new Date,!1}onDropListener(xe){const Ke=xe.dataTransfer.files;if(Ke.length>0&&!this.disabled){let Qe=lt(Ke);Qe=yi(Qe,!this.uploadService.async.batch),this.multiple||(Qe.splice(1,Qe.length-1),this.uploadService.clearFiles()),Pi(Qe,this.restrictions),this.uploadService.addFiles(Qe)}return!1}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.R0b),o.Y36(ze))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoUploadInternalDropZone",""],["","kendoFileSelectInternalDropZone",""]],hostVars:4,hostBindings:function(xe,Ke){1&xe&&o.NdJ("drop",function(Et){return Ke.onDropListener(Et)}),2&xe&&o.ekj("k-dropzone",Ke.initialClassName)("k-upload-dropzone",Ke.initialClassName)},inputs:{disabled:"disabled",multiple:"multiple",restrictions:"restrictions"},features:[o.qOj]}),Be})(),ji=(()=>{class Be{constructor(xe,Ke,Qe){this.uploadService=xe,this.navigation=Ke,this.type="file",this.autocomplete="off",this.tabIndex=-1,this.element=Qe}get nameAttribute(){return this.uploadService.async.saveField}get multipleAttribute(){return this.multiple?"multiple":null}get dirAttribute(){return this.dir}get disabledAttribute(){return this.disabled?"true":null}onInputChange(xe){const Ke=navigator.userAgent;let Dn=(Be=>Be.files?lt(Be.files):Be.value.split("|").map((xe,Ke)=>{const Qe=xe.trim();return{extension:Si(Qe),name:ki(Qe),rawFile:null,size:1e3*(Ke+1),state:We.Selected}}))(xe.target);Dn=yi(Dn,!this.uploadService.async.batch),Pi(Dn,this.restrictions),this.multiple||this.uploadService.clearFiles(),this.uploadService.addFiles(Dn);const vi=this.element.nativeElement;(Ke.match(/(webkit)[ \/]([\w.]+)/i)||Ke.match(/(windows)[ \/]([\w.]+)/i))&&(vi.type="",vi.type="file"),setTimeout(()=>{this.navigation.focusedIndex=-1})}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(wt),o.Y36(o.SBq))},Be.\u0275dir=o.lG2({type:Be,selectors:[["","kendoFileSelect",""]],hostVars:7,hostBindings:function(xe,Ke){1&xe&&o.NdJ("change",function(Et){return Ke.onInputChange(Et)}),2&xe&&o.uIk("type",Ke.type)("autocomplete",Ke.autocomplete)("tabindex",Ke.tabIndex)("name",Ke.nameAttribute)("multiple",Ke.multipleAttribute)("dir",Ke.dirAttribute)("disabled",Ke.disabledAttribute)},inputs:{dir:"dir",disabled:"disabled",multiple:"multiple",restrictions:"restrictions"}}),Be})();const gs={multi:!0,provide:G.JU,useExisting:(0,o.Gpc)(()=>Es)};let bs=0,Es=(()=>{class Be{constructor(xe,Ke,Qe,Et,Dn,vi,ni,qi){this.uploadService=xe,this.localization=Ke,this.navigation=Qe,this.dropZoneService=Et,this.ngZone=Dn,this.renderer=vi,this.cdr=ni,this.disabled=!1,this.multiple=!0,this.showFileList=!0,this.tabindex=0,this.focusableId=`k-${(0,T.M8)()}`,this.onBlur=new o.vpe,this.onFocus=new o.vpe,this.select=new o.vpe,this.remove=new o.vpe,this.valueChange=new o.vpe,this.hostDefaultClasses=!0,this._restrictions={allowedExtensions:[],maxFileSize:0,minFileSize:0},this.onTouchedCallback=ys=>{},this.onChangeCallback=ys=>{},(0,y.s)(gt),this.wrapper=qi.nativeElement,this.direction=Ke.rtl?"rtl":"ltr",this.navigation.computeKeys(this.direction),this.fileList=this.uploadService.files,this.localizationChangeSubscription=Ke.changes.subscribe(({rtl:ys})=>{this.direction=ys?"rtl":"ltr",this.navigation.computeKeys(this.direction)}),this.subscribeBlur(),this.subscribeFocus(),this.attachEventHandlers(),this.setDefaultSettings()}set name(xe){this.uploadService.async.saveField=xe}get name(){return this.uploadService.async.saveField}set restrictions(xe){const Ke=Object.assign({},this._restrictions,xe);this._restrictions=Ke}get restrictions(){return this._restrictions}get hostDisabledClass(){return this.disabled}get dir(){return this.direction}get hostRole(){return"application"}ngOnInit(){const{buttonId:xe,inputId:Ke}=this.getIds();this.focusableId=xe,this.inputElementId=Ke,this.zoneId&&this.dropZoneService.addComponent(this,this.zoneId),this.subs.add(this.renderer.listen(this.fileSelectInput.nativeElement,"mouseenter",()=>{this.renderer.addClass(this.fileSelectButton.nativeElement,"k-hover")})),this.subs.add(this.renderer.listen(this.fileSelectInput.nativeElement,"mouseleave",()=>{this.renderer.removeClass(this.fileSelectButton.nativeElement,"k-hover")})),this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.wrapper,"keydown",Qe=>this.handleKeydown(Qe)))})}textFor(xe){return this.localization.get(xe)}focus(){setTimeout(()=>{this.fileSelectButton.nativeElement.focus(),this.navigation.focused=!0,this.onFocus.emit()})}ngOnDestroy(){this.fileList.clear(),this.blurSubscription&&this.blurSubscription.unsubscribe(),this.wrapperFocusSubscription&&this.wrapperFocusSubscription.unsubscribe(),this.selectButtonFocusSubscription&&this.selectButtonFocusSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.subs&&this.subs.unsubscribe()}writeValue(xe){let Ke=!0;xe instanceof Array&&(xe.forEach(Qe=>{(Be=>!!(Be instanceof File||Ni(Be)))(Qe)||(Ke=!1)}),Ke&&this.uploadService.addInitialFileSelectFiles(xe)),null===xe&&this.fileList.clear(),this.cdr.markForCheck()}registerOnChange(xe){this.onChangeCallback=xe}registerOnTouched(xe){this.onTouchedCallback=xe}setDisabledState(xe){this.disabled=xe}removeFileByUid(xe){this.uploadService.removeFiles(xe)}clearFiles(){this.uploadService.clearFiles()}isEmpty(){return!1}addFiles(xe){this.uploadService.addFiles(xe)}get selectButtonTabIndex(){return this.disabled?void 0:this.tabindex}getIds(){const xe=++bs;return{buttonId:`k-fileselect-button-${xe}`,inputId:`k-fileselect-input-${xe}`}}onFileSelectButtonFocus(xe){this.renderer.addClass(this.fileSelectButton.nativeElement,"k-focus"),this.navigation.focused||(this.navigation.focusedIndex=-1)}onFileSelectButtonBlur(xe){this.renderer.removeClass(this.fileSelectButton.nativeElement,"k-focus")}subscribeBlur(){(0,T.X_)()&&this.ngZone.runOutsideAngular(()=>{this.documentClick=(0,N.R)(document,"click").pipe((0,P.h)(xe=>!(this.wrapper!==xe.target&&this.wrapper.contains(xe.target)))),this.blurSubscription=(0,R.T)(this.documentClick,this.navigation.onTab).subscribe(()=>{this.navigation.focused&&this.ngZone.run(()=>{this.navigation.focused=!1,this.onTouchedCallback(),this.onBlur.emit()})})})}subscribeFocus(){this.wrapperFocusSubscription=this.navigation.onWrapperFocus.subscribe(()=>{this.onFocus.emit()}),this.selectButtonFocusSubscription=this.navigation.onSelectButtonFocus.subscribe(()=>{this.fileSelectButton.nativeElement.focus()})}handleKeydown(xe){if(!this.disabled){if((xe.keyCode===T.R8.Enter||xe.keyCode===T.R8.Space)&&xe.target===this.fileSelectButton.nativeElement)return xe.preventDefault(),void this.fileSelectInput.nativeElement.click();(Un(xe.target,Sn)||!fi(xe.target)&&!Un(xe.target,Pn))&&this.navigation.process(xe)}}attachEventHandlers(){this.subs=this.uploadService.changeEvent.subscribe(xe=>{let Ke=[];null!==xe&&xe.forEach(Qe=>{Qe.state===We.Initial&&Ke.push(Qe),Qe.state===We.Selected&&Qe.rawFile&&!Qe.validationErrors&&Ke.push(Qe.rawFile)}),0===Ke.length&&(Ke=null),this.onChangeCallback(Ke),this.valueChange.emit(Ke)}),this.subs.add(this.uploadService.removeEvent.subscribe(xe=>{this.remove.emit(xe)})),this.subs.add(this.uploadService.selectEvent.subscribe(xe=>{this.select.emit(xe)}))}setDefaultSettings(){this.uploadService.async.autoUpload=!1,this.uploadService.component="FileSelect"}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(F.oQ),o.Y36(wt),o.Y36(U),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(o.SBq))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-fileselect"]],contentQueries:function(xe,Ke,Qe){if(1&xe&&(o.Suo(Qe,Lt,5),o.Suo(Qe,kt,5)),2&xe){let Et;o.iGM(Et=o.CRH())&&(Ke.fileTemplate=Et.first),o.iGM(Et=o.CRH())&&(Ke.fileInfoTemplate=Et.first)}},viewQuery:function(xe,Ke){if(1&xe&&(o.Gf(Ze,7),o.Gf($e,7,o.SBq)),2&xe){let Qe;o.iGM(Qe=o.CRH())&&(Ke.fileSelectInput=Qe.first),o.iGM(Qe=o.CRH())&&(Ke.fileSelectButton=Qe.first)}},hostVars:6,hostBindings:function(xe,Ke){2&xe&&(o.uIk("dir",Ke.dir)("role",Ke.hostRole),o.ekj("k-upload",Ke.hostDefaultClasses)("k-disabled",Ke.hostDisabledClass))},inputs:{accept:"accept",disabled:"disabled",multiple:"multiple",name:"name",showFileList:"showFileList",tabindex:"tabindex",restrictions:"restrictions",zoneId:"zoneId",focusableId:"focusableId"},outputs:{onBlur:"blur",onFocus:"focus",select:"select",remove:"remove",valueChange:"valueChange"},exportAs:["kendoFileSelect"],features:[o._Bn([F.oQ,wt,ze,U,gs,{provide:F.mM,useValue:"kendo.fileselect"},{provide:T.GX,useExisting:(0,o.Gpc)(()=>Be)}])],decls:11,vars:17,consts:function(){let Jt,xe,Ke,Qe,Et,Dn;return Jt=$localize`:kendo.fileselect.dropFilesHere|The drop zone hint:Drop files here to select`,xe=$localize`:kendo.fileselect.invalidFileExtension|The text for the invalid allowed extensions restriction message:File type not allowed.`,Ke=$localize`:kendo.fileselect.invalidMaxFileSize|The text for the invalid max file size restriction message:File size too large.`,Qe=$localize`:kendo.fileselect.invalidMinFileSize|The text for the invalid min file size restriction message:File size too small.`,Et=$localize`:kendo.fileselect.remove|The text for the Remove button:Remove`,Dn=$localize`:kendo.fileselect.select|The text for the Select button:Select files...`,[["kendoFileSelectLocalizedMessages","","dropFilesHere",Jt,"invalidFileExtension",xe,"invalidMaxFileSize",Ke,"invalidMinFileSize",Qe,"remove",Et,"select",Dn],["kendoFileSelectInternalDropZone","",3,"restrictions","multiple","disabled"],[1,"k-upload-button-wrap"],["kendoButton","","type","button","role","button",1,"k-upload-button",3,"id","click"],["fileSelectButton",""],["kendoFileSelect","",1,"k-hidden",3,"id","dir","restrictions","multiple","disabled"],["fileSelectInput",""],[1,"k-dropzone-hint"],["kendo-upload-file-list","","class","k-upload-files k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate",4,"ngIf"],["kendo-upload-file-list","",1,"k-upload-files","k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate"]]},template:function(xe,Ke){if(1&xe){const Qe=o.EpF();o.GkF(0,0),o.TgZ(1,"div",1)(2,"div",2)(3,"button",3,4),o.NdJ("click",function(){o.CHM(Qe);const Dn=o.MAs(7);return o.KtG(Dn.click())}),o._uU(5),o.qZA(),o._UZ(6,"input",5,6),o.qZA(),o.TgZ(8,"div",7),o._uU(9),o.qZA()(),o.YNc(10,Oe,1,4,"ul",8)}2&xe&&(o.xp6(1),o.Q6J("restrictions",Ke.restrictions)("multiple",Ke.multiple)("disabled",Ke.disabled),o.xp6(2),o.Q6J("id",Ke.focusableId),o.uIk("aria-label",Ke.textFor("select"))("tabindex",Ke.tabindex)("aria-controls",Ke.inputElementId),o.xp6(2),o.hij(" ",Ke.textFor("select")," "),o.xp6(1),o.Q6J("id",Ke.inputElementId)("dir",Ke.direction)("restrictions",Ke.restrictions)("multiple",Ke.multiple)("disabled",Ke.disabled),o.uIk("accept",Ke.accept?Ke.accept:null)("aria-hidden",!0),o.xp6(3),o.Oqu(Ke.textFor("dropFilesHere")),o.xp6(1),o.Q6J("ngIf",Ke.showFileList&&Ke.fileList.count>0))},dependencies:[j.zx,je,Ut,Yi,ji,he.O5],encapsulation:2}),Be})(),ss=(()=>{class Be extends pt{constructor(xe){super(),this.service=xe}get override(){return!0}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(F.oQ))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-messages"],["kendo-fileselect-messages"],["kendo-uploaddropzone-messages"]],features:[o._Bn([{provide:pt,useExisting:(0,o.Gpc)(()=>Be)}]),o.qOj],decls:0,vars:0,template:function(xe,Ke){},encapsulation:2}),Be})(),zi=(()=>{class Be{constructor(xe){this.localization=xe,this.checkmarkIcon=A.eQZ,this.exceptionSVGIcon=A.tjX,this.uploadSVGIcon=A.P8c,this.pauseSVGIcon=A.CIP}get iconClass(){return this.isUploading||this.isFailed?!this.isUploading&&this.isFailed?"exception":this.isUploading?"upload":this.isPaused?"pause-sm":void 0:"checkmark"}get SVGIconClass(){return this.isUploading||this.isFailed?!this.isUploading&&this.isFailed?this.exceptionSVGIcon:this.isUploading?this.uploadSVGIcon:this.isPaused?this.pauseSVGIcon:void 0:this.checkmarkIcon}ngDoCheck(){this.isPaused=this.fileList.hasFileWithState([We.Paused]),this.isFailed=this.fileList.hasFileWithState([We.Failed]),this.isUploading=this.fileList.hasFileWithState([We.Uploading]),this.statusText=this.localization.get(this.isPaused&&!this.isUploading?"headerStatusPaused":this.isUploading?"headerStatusUploading":"headerStatusUploaded")}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(F.oQ))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-status-total"]],inputs:{fileList:"fileList"},decls:2,vars:3,consts:[[3,"name","svgIcon"]],template:function(xe,Ke){1&xe&&(o._UZ(0,"kendo-icon-wrapper",0),o._uU(1)),2&xe&&(o.Q6J("name",Ke.iconClass)("svgIcon",Ke.SVGIconClass),o.xp6(1),o.hij(" ",Ke.statusText," "))},dependencies:[se.ZS],encapsulation:2}),Be})(),as=(()=>{class Be{constructor(xe,Ke,Qe){this.uploadService=xe,this.localization=Ke,this.navigation=Qe,this.hostDefaultClass=!0,this.onAction(),this.onFocus()}get actionButtonsEndClassName(){return"end"===this.actionsLayout}get actionButtonsStretchedClassName(){return"stretched"===this.actionsLayout}get actionButtonsStartClassName(){return"start"===this.actionsLayout}get actionButtonsCenterClassName(){return"center"===this.actionsLayout}onAction(){this.actionSubscription=this.navigation.onActionButtonAction.subscribe(xe=>{"clear"===xe?this.clearFiles():this.performUpload()})}onFocus(){this.focusSubscription=this.navigation.onActionButtonFocus.subscribe(xe=>{this.focusButton(xe)})}focusButton(xe){("clear"===xe?this.clearButton:this.uploadButton).nativeElement.focus()}ngOnDestroy(){this.actionSubscription.unsubscribe(),this.focusSubscription.unsubscribe()}onUploadButtonClick(xe){xe.stopImmediatePropagation(),this.performUpload()}performUpload(){this.disabled||(this.uploadService.uploadFiles(),this.navigation.focusSelectButton())}onClearButtonClick(xe){xe.stopImmediatePropagation(),this.clearFiles()}clearFiles(){this.disabled||(this.uploadService.clearFiles(),this.navigation.focusSelectButton())}textFor(xe){return this.localization.get(xe)}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(F.oQ),o.Y36(wt))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload-action-buttons"]],viewQuery:function(xe,Ke){if(1&xe&&(o.Gf(Nt,7),o.Gf(xt,7)),2&xe){let Qe;o.iGM(Qe=o.CRH())&&(Ke.clearButton=Qe.first),o.iGM(Qe=o.CRH())&&(Ke.uploadButton=Qe.first)}},hostVars:10,hostBindings:function(xe,Ke){2&xe&&o.ekj("k-actions",Ke.hostDefaultClass)("k-actions-end",Ke.actionButtonsEndClassName)("k-actions-stretched",Ke.actionButtonsStretchedClassName)("k-actions-start",Ke.actionButtonsStartClassName)("k-actions-center",Ke.actionButtonsCenterClassName)},inputs:{disabled:"disabled",actionsLayout:"actionsLayout"},decls:6,vars:2,consts:[["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-solid","k-button-solid-base","k-clear-selected",3,"click"],["clearButton",""],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-solid","k-button-solid-primary","k-upload-selected",3,"click"],["uploadButton",""]],template:function(xe,Ke){1&xe&&(o.TgZ(0,"button",0,1),o.NdJ("click",function(Et){return Ke.onClearButtonClick(Et)}),o._uU(2),o.qZA(),o.TgZ(3,"button",2,3),o.NdJ("click",function(Et){return Ke.onUploadButtonClick(Et)}),o._uU(5),o.qZA()),2&xe&&(o.xp6(2),o.hij(" ",Ke.textFor("clearSelectedFiles")," "),o.xp6(3),o.hij(" ",Ke.textFor("uploadSelectedFiles")," "))},encapsulation:2}),Be})();const ds={multi:!0,provide:G.JU,useExisting:(0,o.Gpc)(()=>us)};let Xi=0,us=(()=>{class Be{constructor(xe,Ke,Qe,Et,Dn,vi,ni,qi){this.uploadService=xe,this.localization=Ke,this.navigation=Qe,this.dropZoneService=Et,this.zone=Dn,this.renderer=vi,this.cdr=ni,this.chunkable=!1,this.multiple=!0,this.disabled=!1,this.showFileList=!0,this.tabindex=0,this.focusableId=`k-${(0,T.M8)()}`,this.actionsLayout="end",this.onBlur=new o.vpe,this.cancel=new o.vpe,this.clear=new o.vpe,this.complete=new o.vpe,this.error=new o.vpe,this.onFocus=new o.vpe,this.pause=new o.vpe,this.remove=new o.vpe,this.resume=new o.vpe,this.select=new o.vpe,this.success=new o.vpe,this.upload=new o.vpe,this.uploadProgress=new o.vpe,this.valueChange=new o.vpe,this.hostDefaultClasses=!0,this._restrictions={allowedExtensions:[],maxFileSize:0,minFileSize:0},this.onTouchedCallback=ys=>{},this.onChangeCallback=ys=>{},(0,y.s)(gt),this.fileList=this.uploadService.files,this.localizationChangeSubscription=Ke.changes.subscribe(({rtl:ys})=>{this.direction=ys?"rtl":"ltr",this.navigation.computeKeys(this.direction)}),this.direction=Ke.rtl?"rtl":"ltr",this.navigation.computeKeys(this.direction),this.wrapper=qi.nativeElement,this.subscribeBlur(),this.subscribeFocus(),this.attachEventHandlers()}set autoUpload(xe){this.uploadService.async.autoUpload=xe}get autoUpload(){return this.uploadService.async.autoUpload}set batch(xe){this.uploadService.async.batch=xe}get batch(){return this.uploadService.async.batch}set withCredentials(xe){this.uploadService.async.withCredentials=xe}get withCredentials(){return this.uploadService.async.withCredentials}set saveField(xe){this.uploadService.async.saveField=xe}get saveField(){return this.uploadService.async.saveField}set saveHeaders(xe){this.uploadService.async.saveHeaders=xe}get saveHeaders(){return this.uploadService.async.saveHeaders}set saveMethod(xe){this.uploadService.async.saveMethod=xe}get saveMethod(){return this.uploadService.async.saveMethod}set saveUrl(xe){this.uploadService.async.saveUrl=xe}get saveUrl(){return this.uploadService.async.saveUrl}set responseType(xe){this.uploadService.async.responseType=xe}get responseType(){return this.uploadService.async.responseType}set removeField(xe){this.uploadService.async.removeField=xe}get removeField(){return this.uploadService.async.removeField}set removeHeaders(xe){this.uploadService.async.removeHeaders=xe}get removeHeaders(){return this.uploadService.async.removeHeaders}set removeMethod(xe){this.uploadService.async.removeMethod=xe}get removeMethod(){return this.uploadService.async.removeMethod}set removeUrl(xe){this.uploadService.async.removeUrl=xe}get removeUrl(){return this.uploadService.async.removeUrl}set concurrent(xe){this.uploadService.async.concurrent=xe}get concurrent(){return this.uploadService.async.concurrent}set tabIndex(xe){this.tabindex=xe}get tabIndex(){return this.tabindex}set restrictions(xe){const Ke=Object.assign({},this._restrictions,xe);this._restrictions=Ke}get restrictions(){return this._restrictions}get hostRole(){return"application"}get hostDisabledClass(){return this.disabled}get dir(){return this.direction}ngOnInit(){this.verifySettings();const{buttonId:xe}=this.getIds();this.focusableId=xe,this.uploadService.setChunkSettings(this.chunkable),this.zoneId&&this.dropZoneService.addComponent(this,this.zoneId),this.zone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.wrapper,"keydown",Ke=>this.handleKeydown(Ke)))})}ngOnChanges(xe){if((0,T.ln)("chunkable",xe)){const Ke=xe.chunkable.currentValue;"boolean"==typeof Ke&&(this.uploadService.async.chunk=Ke),"object"==typeof Ke&&null!==Ke&&(this.uploadService.async.chunk=!0,this.uploadService.chunk=Object.assign({},this.uploadService.chunk,Ke))}}ngOnDestroy(){this.fileList.clear(),this.blurSubscription&&this.blurSubscription.unsubscribe(),this.wrapperFocusSubscription&&this.wrapperFocusSubscription.unsubscribe(),this.selectButtonFocusSubscription&&this.selectButtonFocusSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.subs&&this.subs.unsubscribe()}writeValue(xe){let Ke=!0;xe instanceof Array&&(xe.forEach(Qe=>{Ni(Qe)||(Ke=!1)}),Ke&&this.uploadService.addInitialFiles(xe)),null===xe&&this.fileList.clear(),this.cdr.markForCheck()}registerOnChange(xe){this.onChangeCallback=xe}registerOnTouched(xe){this.onTouchedCallback=xe}setDisabledState(xe){this.disabled=xe}get showActionButtons(){let xe=!1;if(!this.autoUpload){const Ke=this.fileList.filesToUpload.length>0,Qe=this.fileList.hasFileWithState([We.Uploading]);this.concurrent&&Ke&&(xe=!0),!this.concurrent&&Ke&&!Qe&&(xe=!0)}return this.navigation.actionButtonsVisible=xe,xe}get showTotalStatus(){return!!this.fileList.hasFileWithState([We.Uploaded,We.Uploading,We.Failed,We.Paused])}textFor(xe){return this.localization.get(xe)}getIds(){const xe=++Xi;return{buttonId:`k-upload-button-${xe}`,inputId:`k-upload-input-${xe}`}}focus(){setTimeout(()=>{this.fileSelectButton.nativeElement.focus(),this.navigation.focused=!0,this.onFocus.emit()})}focusComponent(){this.focus()}blur(){this.navigation.focused&&(this.navigation.focused=!1,document.activeElement.blur(),this.onBlur.emit())}blurComponent(){this.blur()}pauseFileByUid(xe){this.uploadService.pauseFile(xe)}resumeFileByUid(xe){this.uploadService.resumeFile(xe)}removeFilesByUid(xe){this.uploadService.removeFiles(xe)}retryUploadByUid(xe){this.uploadService.retryFiles(xe)}cancelUploadByUid(xe){this.uploadService.cancelFiles(xe)}uploadFiles(){this.fileList.filesToUpload.length&&this.uploadService.uploadFiles()}clearFiles(){this.uploadService.clearFiles()}addFiles(xe){this.uploadService.addFiles(xe)}isEmpty(){return!1}verifySettings(){if((0,o.X6Q)()&&this.batch&&!1!==this.chunkable)throw new Error("The file chunking functionality requires the batch setting to be disabled.")}subscribeBlur(){(0,T.X_)()&&this.zone.runOutsideAngular(()=>{this.documentClick=(0,N.R)(document,"click").pipe((0,P.h)(xe=>!(this.wrapper!==xe.target&&this.wrapper.contains(xe.target)))),this.blurSubscription=(0,R.T)(this.documentClick,this.navigation.onTab).subscribe(()=>{this.navigation.focused&&this.zone.run(()=>{this.navigation.focused=!1,this.onTouchedCallback(),this.onBlur.emit()})})})}handleKeydown(xe){if(!this.disabled){if((xe.keyCode===T.R8.Enter||xe.keyCode===T.R8.Space)&&xe.target===this.fileSelectButton.nativeElement)return xe.preventDefault(),void this.fileSelectInput.nativeElement.click();(Un(xe.target,Sn)||!fi(xe.target)&&!Un(xe.target,Pn))&&this.navigation.process(xe)}}subscribeFocus(){this.wrapperFocusSubscription=this.navigation.onWrapperFocus.subscribe(()=>{this.onFocus.emit()}),this.selectButtonFocusSubscription=this.navigation.onSelectButtonFocus.subscribe(()=>{this.fileSelectButton.nativeElement.focus()})}attachEventHandlers(){this.subs=this.uploadService.cancelEvent.subscribe(xe=>{this.cancel.emit(xe)}),this.subs.add(this.uploadService.changeEvent.subscribe(xe=>{this.onChangeCallback(xe),this.valueChange.emit(xe)})),this.subs.add(this.uploadService.clearEvent.subscribe(xe=>{this.clear.emit(xe)})),this.subs.add(this.uploadService.completeEvent.subscribe(()=>{this.complete.emit()})),this.subs.add(this.uploadService.errorEvent.subscribe(xe=>{this.error.emit(xe)})),this.subs.add(this.uploadService.pauseEvent.subscribe(xe=>{this.pause.emit(xe)})),this.subs.add(this.uploadService.removeEvent.subscribe(xe=>{this.remove.emit(xe)})),this.subs.add(this.uploadService.resumeEvent.subscribe(xe=>{this.resume.emit(xe)})),this.subs.add(this.uploadService.selectEvent.subscribe(xe=>{this.select.emit(xe)})),this.subs.add(this.uploadService.successEvent.subscribe(xe=>{this.success.emit(xe)})),this.subs.add(this.uploadService.uploadEvent.subscribe(xe=>{this.upload.emit(xe)})),this.subs.add(this.uploadService.uploadProgressEvent.subscribe(xe=>{this.uploadProgress.emit(xe)}))}}return Be.\u0275fac=function(xe){return new(xe||Be)(o.Y36(ze),o.Y36(F.oQ),o.Y36(wt),o.Y36(U),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(o.SBq))},Be.\u0275cmp=o.Xpm({type:Be,selectors:[["kendo-upload"]],contentQueries:function(xe,Ke,Qe){if(1&xe&&(o.Suo(Qe,Lt,5),o.Suo(Qe,kt,5)),2&xe){let Et;o.iGM(Et=o.CRH())&&(Ke.fileTemplate=Et.first),o.iGM(Et=o.CRH())&&(Ke.fileInfoTemplate=Et.first)}},viewQuery:function(xe,Ke){if(1&xe&&(o.Gf(Ze,7),o.Gf($e,7,o.SBq)),2&xe){let Qe;o.iGM(Qe=o.CRH())&&(Ke.fileSelectInput=Qe.first),o.iGM(Qe=o.CRH())&&(Ke.fileSelectButton=Qe.first)}},hostVars:6,hostBindings:function(xe,Ke){2&xe&&(o.uIk("role",Ke.hostRole)("dir",Ke.dir),o.ekj("k-upload",Ke.hostDefaultClasses)("k-disabled",Ke.hostDisabledClass))},inputs:{autoUpload:"autoUpload",batch:"batch",withCredentials:"withCredentials",saveField:"saveField",saveHeaders:"saveHeaders",saveMethod:"saveMethod",saveUrl:"saveUrl",responseType:"responseType",removeField:"removeField",removeHeaders:"removeHeaders",removeMethod:"removeMethod",removeUrl:"removeUrl",chunkable:"chunkable",concurrent:"concurrent",multiple:"multiple",disabled:"disabled",showFileList:"showFileList",tabindex:"tabindex",zoneId:"zoneId",tabIndex:"tabIndex",accept:"accept",restrictions:"restrictions",focusableId:"focusableId",actionsLayout:"actionsLayout"},outputs:{onBlur:"blur",cancel:"cancel",clear:"clear",complete:"complete",error:"error",onFocus:"focus",pause:"pause",remove:"remove",resume:"resume",select:"select",success:"success",upload:"upload",uploadProgress:"uploadProgress",valueChange:"valueChange"},exportAs:["kendoUpload"],features:[o._Bn([F.oQ,wt,ze,U,ds,{provide:F.mM,useValue:"kendo.upload"},{provide:T.GX,useExisting:(0,o.Gpc)(()=>Be)}]),o.TTD],decls:13,vars:17,consts:function(){let Jt,xe,Ke,Qe,Et,Dn,vi,ni,qi,ys,Mo,bo,Ps,Wt,Bn,ti,Ui,Pe,gn,z;return Jt=$localize`:kendo.upload.cancel|The text for the Cancel button:Cancel`,xe=$localize`:kendo.upload.clearSelectedFiles|The text for the Clear button:Clear`,Ke=$localize`:kendo.upload.dropFilesHere|The drop zone hint:Drop files here to upload`,Qe=$localize`:kendo.upload.filesBatchStatus|The status message for a batch of files:files`,Et=$localize`:kendo.upload.filesBatchStatusFailed|The status message for a batch of files after failed upload:files failed to upload.`,Dn=$localize`:kendo.upload.filesBatchStatusUploaded|The status message for a batch of files after successful upload:files successfully uploaded.`,vi=$localize`:kendo.upload.fileStatusFailed|The file status message after failed upload:File failed to upload.`,ni=$localize`:kendo.upload.fileStatusUploaded|The file status message after successful upload:File successfully uploaded.`,qi=$localize`:kendo.upload.headerStatusPaused|The header status message when the file upload is paused:Paused`,ys=$localize`:kendo.upload.headerStatusUploaded|The header status message after file upload completion:Done`,Mo=$localize`:kendo.upload.headerStatusUploading|The header status message during file upload:Uploading...`,bo=$localize`:kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message:File type not allowed.`,Ps=$localize`:kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message:File size too large.`,Wt=$localize`:kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message:File size too small.`,Bn=$localize`:kendo.upload.pause|The text for the Pause button:Pause`,ti=$localize`:kendo.upload.remove|The text for the Remove button:Remove`,Ui=$localize`:kendo.upload.resume|The text for the Resume button:Resume`,Pe=$localize`:kendo.upload.retry|The text for the Retry button:Retry`,gn=$localize`:kendo.upload.select|The text for the Select button:Select files...`,z=$localize`:kendo.upload.uploadSelectedFiles|The text for the Upload files button:Upload`,[["kendoUploadLocalizedMessages","","cancel",Jt,"clearSelectedFiles",xe,"dropFilesHere",Ke,"filesBatchStatus",Qe,"filesBatchStatusFailed",Et,"filesBatchStatusUploaded",Dn,"fileStatusFailed",vi,"fileStatusUploaded",ni,"headerStatusPaused",qi,"headerStatusUploaded",ys,"headerStatusUploading",Mo,"invalidFileExtension",bo,"invalidMaxFileSize",Ps,"invalidMinFileSize",Wt,"pause",Bn,"remove",ti,"resume",Ui,"retry",Pe,"select",gn,"uploadSelectedFiles",z],["kendoUploadInternalDropZone","",3,"restrictions","multiple","disabled"],[1,"k-upload-button-wrap"],["kendoButton","","type","button","role","button",1,"k-upload-button",3,"id","click"],["fileSelectButton",""],["kendoFileSelect","",1,"k-hidden",3,"dir","restrictions","multiple","disabled"],["fileSelectInput",""],["class","k-upload-status",3,"fileList",4,"ngIf"],[1,"k-dropzone-hint"],["kendo-upload-file-list","","class","k-upload-files k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate",4,"ngIf"],[3,"disabled","actionsLayout",4,"ngIf"],[1,"k-upload-status",3,"fileList"],["kendo-upload-file-list","",1,"k-upload-files","k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate"],[3,"disabled","actionsLayout"]]},template:function(xe,Ke){if(1&xe){const Qe=o.EpF();o.GkF(0,0),o.TgZ(1,"div",1)(2,"div",2)(3,"button",3,4),o.NdJ("click",function(){o.CHM(Qe);const Dn=o.MAs(7);return o.KtG(Dn.click())}),o._uU(5),o.qZA(),o._UZ(6,"input",5,6),o.qZA(),o.YNc(8,Ot,1,1,"kendo-upload-status-total",7),o.TgZ(9,"div",8),o._uU(10),o.qZA()(),o.YNc(11,Kt,1,4,"ul",9),o.YNc(12,$t,1,2,"kendo-upload-action-buttons",10)}2&xe&&(o.xp6(1),o.Q6J("restrictions",Ke.restrictions)("multiple",Ke.multiple)("disabled",Ke.disabled),o.xp6(2),o.Q6J("id",Ke.focusableId),o.uIk("aria-label",Ke.textFor("select"))("tabindex",Ke.tabindex),o.xp6(2),o.hij(" ",Ke.textFor("select")," "),o.xp6(1),o.Q6J("dir",Ke.direction)("restrictions",Ke.restrictions)("multiple",Ke.multiple)("disabled",Ke.disabled),o.uIk("accept",Ke.accept?Ke.accept:null)("aria-hidden",!0),o.xp6(2),o.Q6J("ngIf",Ke.showTotalStatus),o.xp6(2),o.Oqu(Ke.textFor("dropFilesHere")),o.xp6(1),o.Q6J("ngIf",Ke.showFileList&&Ke.fileList.count>0),o.xp6(1),o.Q6J("ngIf",Ke.showActionButtons))},dependencies:[j.zx,zi,je,as,Ut,Yi,ji,he.O5],encapsulation:2}),Be})(),po=(()=>{class Be{}return Be.\u0275fac=function(xe){return new(xe||Be)},Be.\u0275mod=o.oAB({type:Be}),Be.\u0275inj=o.cJS({imports:[[he.ez,j.Fq,ee.q7,se.pc],he.ez,j.Fq]}),Be})(),un=(()=>{class Be{}return Be.\u0275fac=function(xe){return new(xe||Be)},Be.\u0275mod=o.oAB({type:Be}),Be.\u0275inj=o.cJS({imports:[[po,se.pc]]}),Be})(),Le=(()=>{class Be{}return Be.\u0275fac=function(xe){return new(xe||Be)},Be.\u0275mod=o.oAB({type:Be}),Be.\u0275inj=o.cJS({imports:[[po,se.pc]]}),Be})(),Pt=(()=>{class Be{}return Be.\u0275fac=function(xe){return new(xe||Be)},Be.\u0275mod=o.oAB({type:Be}),Be.\u0275inj=o.cJS({imports:[un,Le]}),Be})()},39102:(fn,ve,_)=>{"use strict";_.d(ve,{PG:()=>vt,f8:()=>Ct});var e=_(94650),o=_(36895),T=_(24006),A=_(54968),G=_(49770),F=_(77579),N=_(82722),R=_(95698),P=_(69718),y=_(34782);function j(Je,Ft){}const Y=()=>{const Je=typeof window<"u"?window:void 0;return Je&&Je.tinymce?Je.tinymce:null};let ee=(()=>{class Je{constructor(){this.onBeforePaste=new e.vpe,this.onBlur=new e.vpe,this.onClick=new e.vpe,this.onContextMenu=new e.vpe,this.onCopy=new e.vpe,this.onCut=new e.vpe,this.onDblclick=new e.vpe,this.onDrag=new e.vpe,this.onDragDrop=new e.vpe,this.onDragEnd=new e.vpe,this.onDragGesture=new e.vpe,this.onDragOver=new e.vpe,this.onDrop=new e.vpe,this.onFocus=new e.vpe,this.onFocusIn=new e.vpe,this.onFocusOut=new e.vpe,this.onKeyDown=new e.vpe,this.onKeyPress=new e.vpe,this.onKeyUp=new e.vpe,this.onMouseDown=new e.vpe,this.onMouseEnter=new e.vpe,this.onMouseLeave=new e.vpe,this.onMouseMove=new e.vpe,this.onMouseOut=new e.vpe,this.onMouseOver=new e.vpe,this.onMouseUp=new e.vpe,this.onPaste=new e.vpe,this.onSelectionChange=new e.vpe,this.onActivate=new e.vpe,this.onAddUndo=new e.vpe,this.onBeforeAddUndo=new e.vpe,this.onBeforeExecCommand=new e.vpe,this.onBeforeGetContent=new e.vpe,this.onBeforeRenderUI=new e.vpe,this.onBeforeSetContent=new e.vpe,this.onChange=new e.vpe,this.onClearUndos=new e.vpe,this.onDeactivate=new e.vpe,this.onDirty=new e.vpe,this.onExecCommand=new e.vpe,this.onGetContent=new e.vpe,this.onHide=new e.vpe,this.onInit=new e.vpe,this.onInitNgModel=new e.vpe,this.onLoadContent=new e.vpe,this.onNodeChange=new e.vpe,this.onPostProcess=new e.vpe,this.onPostRender=new e.vpe,this.onPreInit=new e.vpe,this.onPreProcess=new e.vpe,this.onProgressState=new e.vpe,this.onRedo=new e.vpe,this.onRemove=new e.vpe,this.onReset=new e.vpe,this.onResizeEditor=new e.vpe,this.onSaveContent=new e.vpe,this.onSetAttrib=new e.vpe,this.onObjectResizeStart=new e.vpe,this.onObjectResized=new e.vpe,this.onObjectSelected=new e.vpe,this.onSetContent=new e.vpe,this.onShow=new e.vpe,this.onSubmit=new e.vpe,this.onUndo=new e.vpe,this.onVisualAid=new e.vpe}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275dir=e.lG2({type:Je,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),Je})();const se=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],he=(Je,Ft,st)=>(0,A.R)(Je,Ft).pipe((0,N.R)(st)),oe=(Je,Ft)=>"string"==typeof Je?Je.split(",").map(st=>st.trim()):Array.isArray(Je)?Je:Ft;let q=0;const ae=Je=>typeof Je<"u"&&"textarea"===Je.tagName.toLowerCase(),Q=Je=>typeof Je>"u"||""===Je?[]:Array.isArray(Je)?Je:Je.split(" "),pe=(Je,Ft)=>Q(Je).concat(Q(Ft)),Ee=()=>{},ke=Je=>null==Je,ut=(()=>{let Je={script$:null};return{load:(Ze,$e)=>Je.script$||(Je.script$=(0,G.P)(()=>{const Oe=Ze.createElement("script");return Oe.referrerPolicy="origin",Oe.type="application/javascript",Oe.src=$e,Ze.head.appendChild(Oe),(0,A.R)(Oe,"load").pipe((0,R.q)(1),(0,P.h)(void 0))}).pipe((0,y.d)({bufferSize:1,refCount:!0}))),reinitialize:()=>{Je={script$:null}}}})(),Ct=new e.OlP("TINYMCE_SCRIPT_SRC"),Ue={provide:T.JU,useExisting:(0,e.Gpc)(()=>vt),multi:!0};let vt=(()=>{class Je extends ee{constructor(st,Ze,$e,Oe){super(),this.platformId=$e,this.tinymceScriptSrc=Oe,this.cloudChannel="6",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=Ee,this.destroy$=new F.x,this.initialise=()=>{const Nt={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,plugins:pe(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:xt=>{this._editor=xt,he(xt,"init",this.destroy$).subscribe(()=>{this.initEditor(xt)}),((Je,Ft,st)=>{(Je=>{const Ft=oe(Je.ignoreEvents,[]);return oe(Je.allowedEvents,se).filter(Ze=>se.includes(Ze)&&!Ft.includes(Ze))})(Je).forEach($e=>{const Oe=Je[$e];he(Ft,$e.substring(2),st).subscribe(Nt=>{Oe.observers.length>0&&Je.ngZone.run(()=>Oe.emit({event:Nt,editor:Ft}))})})})(this,xt,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(xt)}};ae(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{Y().init(Nt)})},this._elementRef=st,this.ngZone=Ze}set disabled(st){this._disabled=st,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(st?"readonly":"design"):this._editor.setMode(st?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(st){this._editor&&this._editor.initialized?this._editor.setContent(ke(st)?"":st):this.initialValue=null===st?void 0:st}registerOnChange(st){this.onChangeCallback=st}registerOnTouched(st){this.onTouchedCallback=st}setDisabledState(st){this.disabled=st}ngAfterViewInit(){(0,o.NF)(this.platformId)&&(this.id=this.id||(Je=>{const st=(new Date).getTime(),Ze=Math.floor(1e9*Math.random());return q++,"tiny-angular_"+Ze+q+String(st)})(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==Y()?this.initialise():this._element&&this._element.ownerDocument&&ut.load(this._element.ownerDocument,this.getScriptSrc()).pipe((0,N.R)(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==Y()&&Y().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,ae(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}getScriptSrc(){return ke(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(st){he(st,"blur",this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.onTouchedCallback())}),he(st,this.modelEvents,this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.emitOnChange(st))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{st.setContent(this.initialValue),st.getContent()!==this.initialValue&&this.emitOnChange(st),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(st)})}emitOnChange(st){this.onChangeCallback&&this.onChangeCallback(st.getContent({format:this.outputFormat}))}}return Je.\u0275fac=function(st){return new(st||Je)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Lbi),e.Y36(Ct,8))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},standalone:!0,features:[e._Bn([Ue]),e.qOj,e.jDz],decls:1,vars:0,template:function(st,Ze){1&st&&e.YNc(0,j,0,0,"ng-template")},dependencies:[o.ez,T.u5],styles:["[_nghost-%COMP%]{display:block}"]}),Je})()},70895:(fn,ve,_)=>{"use strict";_.d(ve,{zr:()=>Cn,bd:()=>Ze,Ct:()=>yi,Hy:()=>Kt});var e=_(15861),o=_(94650),T=_(36895),A=_(80529),G=_(77579),F=_(39646),N=_(88996),R=_(69751),P=_(38421),y=_(75797),j=_(25403);var se=_(62843),he=_(39841),Se=_(56451),te=_(39300),oe=_(18505),q=_(78372),we=_(91005),ae=_(63900),Q=_(54004),pe=_(50590),Ee=_(70262),ke=_(34986),Ye=_(51165),ct=_(54482),ut=_(83888),Ct=_(39672);const Ue=(0,ut.d)(Zn=>function(ze=null){Zn(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ze});function ln(Zn){throw new Ue(Zn)}var Je=_(95698),Ft=_(95577);class st{validateSignature(mn){return Promise.resolve(null)}validateAtHash(mn){return Promise.resolve(!0)}}class Ze{}class Oe{}let Nt=(()=>{class Zn extends Oe{now(){return Date.now()}new(){return new Date}}return Zn.\u0275fac=function(){let mn;return function(wt){return(mn||(mn=o.n5z(Zn)))(wt||Zn)}}(),Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})();class Ot{}class Kt{}let $t=(()=>{class Zn{constructor(){this.data=new Map}getItem(ze){return this.data.get(ze)}removeItem(ze){this.data.delete(ze)}setItem(ze,wt){this.data.set(ze,wt)}}return Zn.\u0275fac=function(ze){return new(ze||Zn)},Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})();class We{constructor(mn){this.type=mn}}class yt extends We{constructor(mn,ze=null){super(mn),this.info=ze}}class it extends We{constructor(mn,ze=null){super(mn),this.info=ze}}class It extends We{constructor(mn,ze,wt=null){super(mn),this.reason=ze,this.params=wt}}function Tt(Zn){const mn=Zn.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(mn).split("").map(function(ze){return"%"+("00"+ze.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function wn(Zn){return btoa(Zn).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class Nn{constructor(mn){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=ze=>{location.href=ze},mn&&Object.assign(this,mn)}}class an{encodeKey(mn){return encodeURIComponent(mn)}encodeValue(mn){return encodeURIComponent(mn)}decodeKey(mn){return decodeURIComponent(mn)}decodeValue(mn){return decodeURIComponent(mn)}}class sn{}let Ln=(()=>{class Zn{getHashFragmentParams(ze){let wt=ze||window.location.hash;if(wt=decodeURIComponent(wt),0!==wt.indexOf("#"))return{};const ht=wt.indexOf("?");return wt=wt.substr(ht>-1?ht+1:1),this.parseQueryString(wt)}parseQueryString(ze){const wt={};let ht,U,gt,Lt,kt,vn,jn;if(null===ze)return wt;ht=ze.split("&");for(let St=0;St<ht.length;St++)U=ht[St],gt=U.indexOf("="),-1===gt?(Lt=U,kt=null):(Lt=U.substr(0,gt),kt=U.substr(gt+1)),vn=decodeURIComponent(Lt),jn=decodeURIComponent(kt),"/"===vn.substr(0,1)&&(vn=vn.substr(1)),wt[vn]=jn;return wt}}return Zn.\u0275fac=function(ze){return new(ze||Zn)},Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})();const Yn=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function gi(Zn,mn,ze,wt,ht){let U,gt,Lt,kt,vn,jn,St,De,ie,je,pt,Ut,xn;for(;ht>=64;){for(U=mn[0],gt=mn[1],Lt=mn[2],kt=mn[3],vn=mn[4],jn=mn[5],St=mn[6],De=mn[7],je=0;je<16;je++)pt=wt+4*je,Zn[je]=(255&ze[pt])<<24|(255&ze[pt+1])<<16|(255&ze[pt+2])<<8|255&ze[pt+3];for(je=16;je<64;je++)ie=Zn[je-2],Ut=(ie>>>17|ie<<15)^(ie>>>19|ie<<13)^ie>>>10,ie=Zn[je-15],xn=(ie>>>7|ie<<25)^(ie>>>18|ie<<14)^ie>>>3,Zn[je]=(Ut+Zn[je-7]|0)+(xn+Zn[je-16]|0);for(je=0;je<64;je++)Ut=(((vn>>>6|vn<<26)^(vn>>>11|vn<<21)^(vn>>>25|vn<<7))+(vn&jn^~vn&St)|0)+(De+(Yn[je]+Zn[je]|0)|0)|0,xn=((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+(U&gt^U&Lt^gt&Lt)|0,De=St,St=jn,jn=vn,vn=kt+Ut|0,kt=Lt,Lt=gt,gt=U,U=Ut+xn|0;mn[0]+=U,mn[1]+=gt,mn[2]+=Lt,mn[3]+=kt,mn[4]+=vn,mn[5]+=jn,mn[6]+=St,mn[7]+=De,wt+=64,ht-=64}return wt}class qn{constructor(){this.digestLength=32,this.blockSize=64,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let mn=0;mn<this.buffer.length;mn++)this.buffer[mn]=0;for(let mn=0;mn<this.temp.length;mn++)this.temp[mn]=0;this.reset()}update(mn,ze=mn.length){if(this.finished)throw new Error("SHA256: can't update because hash was finished.");let wt=0;if(this.bytesHashed+=ze,this.bufferLength>0){for(;this.bufferLength<64&&ze>0;)this.buffer[this.bufferLength++]=mn[wt++],ze--;64===this.bufferLength&&(gi(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ze>=64&&(wt=gi(this.temp,this.state,mn,wt,ze),ze%=64);ze>0;)this.buffer[this.bufferLength++]=mn[wt++],ze--;return this}finish(mn){if(!this.finished){const ze=this.bytesHashed,wt=this.bufferLength,ht=ze/536870912|0,U=ze<<3,gt=ze%64<56?64:128;this.buffer[wt]=128;for(let Lt=wt+1;Lt<gt-8;Lt++)this.buffer[Lt]=0;this.buffer[gt-8]=ht>>>24&255,this.buffer[gt-7]=ht>>>16&255,this.buffer[gt-6]=ht>>>8&255,this.buffer[gt-5]=ht>>>0&255,this.buffer[gt-4]=U>>>24&255,this.buffer[gt-3]=U>>>16&255,this.buffer[gt-2]=U>>>8&255,this.buffer[gt-1]=U>>>0&255,gi(this.temp,this.state,this.buffer,0,gt),this.finished=!0}for(let ze=0;ze<8;ze++)mn[4*ze+0]=this.state[ze]>>>24&255,mn[4*ze+1]=this.state[ze]>>>16&255,mn[4*ze+2]=this.state[ze]>>>8&255,mn[4*ze+3]=this.state[ze]>>>0&255;return this}digest(){const mn=new Uint8Array(this.digestLength);return this.finish(mn),mn}_saveState(mn){for(let ze=0;ze<this.state.length;ze++)mn[ze]=this.state[ze]}_restoreState(mn,ze){for(let wt=0;wt<this.state.length;wt++)this.state[wt]=mn[wt];this.bytesHashed=ze,this.finished=!1,this.bufferLength=0}}new Uint8Array(32);class lt{}let Qt=(()=>{class Zn{calcHash(ze,wt){return(0,e.Z)(function*(){return function rn(Zn){var mn,ze=[];for(mn=0;mn<Zn.length;mn++)ze.push(String.fromCharCode(Zn[mn]));return ze.join("")}(function Si(Zn){const mn=(new qn).update(Zn),ze=mn.digest();return mn.clean(),ze}(function In(Zn){if("string"!=typeof Zn)throw new TypeError("expected string");var mn,ze=Zn,wt=new Uint8Array(ze.length);for(mn=0;mn<ze.length;mn++)wt[mn]=ze.charCodeAt(mn);return wt}(ze)))})()}toHashString2(ze){let wt="";for(let ht of ze)wt+=String.fromCharCode(ht);return wt}toHashString(ze){const wt=new Uint8Array(ze);let ht="";for(let U of wt)ht+=String.fromCharCode(U);return ht}}return Zn.\u0275fac=function(ze){return new(ze||Zn)},Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})(),yi=(()=>{class Zn extends Nn{constructor(ze,wt,ht,U,gt,Lt,kt,vn,jn,St){super(),this.ngZone=ze,this.http=wt,this.config=gt,this.urlHelper=Lt,this.logger=kt,this.crypto=vn,this.dateTimeService=St,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new G.x,this.discoveryDocumentLoadedSubject=new G.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=jn,gt||(gt={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),U&&(this.tokenValidationHandler=U),gt&&this.configure(gt);try{ht?this.setStorage(ht):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(De){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",De)}if(this.checkLocalStorageAccessable()){const De=window?.navigator?.userAgent;(De?.includes("MSIE ")||De?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const ze="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(ze,ze),localStorage.removeItem(ze),0))}catch{return!1}}configure(ze){Object.assign(this,new Nn,ze),this.config=Object.assign({},new Nn,ze),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,te.h)(ze=>"token_received"===ze.type)).subscribe(ze=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(ze={},wt,ht=!0){let U=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,oe.b)(gt=>{"token_received"===gt.type?U=!0:"logout"===gt.type&&(U=!1)}),(0,te.h)(gt=>"token_expires"===gt.type&&(null==wt||"any"===wt||gt.info===wt)),(0,q.b)(1e3)).subscribe(gt=>{U&&this.refreshInternal(ze,ht).catch(Lt=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(ze,wt){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(ze,wt):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(ze=null){return this.loadDiscoveryDocument().then(wt=>this.tryLogin(ze))}loadDiscoveryDocumentAndLogin(ze=null){return this.loadDiscoveryDocumentAndTryLogin(ze=ze||{}).then(wt=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof ze.state?ze.state:""),!1))}debug(...ze){this.showDebugInformation&&this.logger.debug.apply(this.logger,ze)}validateUrlFromDiscoveryDocument(ze){const wt=[],ht=this.validateUrlForHttps(ze),U=this.validateUrlAgainstIssuer(ze);return ht||wt.push("https for all urls required. Also for urls received by discovery."),U||wt.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),wt}validateUrlForHttps(ze){if(!ze)return!0;const wt=ze.toLowerCase();return!(!1!==this.requireHttps&&(!wt.match(/^http:\/\/localhost($|[:\/])/)&&!wt.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||wt.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(ze,wt){if(!ze)throw new Error(`'${wt}' should not be null`);if(!this.validateUrlForHttps(ze))throw new Error(`'${wt}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(ze){return!this.strictDiscoveryDocumentValidation||!ze||ze.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,te.h)(ze=>"token_received"===ze.type)).subscribe(ze=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const ze=this.getAccessTokenExpiration(),wt=this.getAccessTokenStoredAt(),ht=this.calcTimeout(wt,ze);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,F.of)(new it("token_expires","access_token")).pipe((0,we.g)(ht)).subscribe(U=>{this.ngZone.run(()=>{this.eventsSubject.next(U)})})})}setupIdTokenTimer(){const ze=this.getIdTokenExpiration(),wt=this.getIdTokenStoredAt(),ht=this.calcTimeout(wt,ze);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,F.of)(new it("token_expires","id_token")).pipe((0,we.g)(ht)).subscribe(U=>{this.ngZone.run(()=>{this.eventsSubject.next(U)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(ze,wt){const ht=this.dateTimeService.now(),gt=Math.max(0,(wt-ze)*this.timeoutFactor-(ht-ze)),Lt=2147483647;return gt>Lt?Lt:gt}setStorage(ze){this._storage=ze,this.configChanged()}loadDiscoveryDocument(ze=null){return new Promise((wt,ht)=>{ze||((ze=this.issuer||"").endsWith("/")||(ze+="/"),ze+=".well-known/openid-configuration"),this.validateUrlForHttps(ze)?this.http.get(ze).subscribe(U=>{if(!this.validateDiscoveryDocument(U))return this.eventsSubject.next(new It("discovery_document_validation_error",null)),void ht("discovery_document_validation_error");this.loginUrl=U.authorization_endpoint,this.logoutUrl=U.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=U.grant_types_supported,this.issuer=U.issuer,this.tokenEndpoint=U.token_endpoint,this.userinfoEndpoint=U.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=U.jwks_uri,this.sessionCheckIFrameUrl=U.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(U),this.revocationEndpoint=U.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(gt=>{const kt=new yt("discovery_document_loaded",{discoveryDocument:U,jwks:gt});this.eventsSubject.next(kt),wt(kt)}).catch(gt=>{this.eventsSubject.next(new It("discovery_document_load_error",gt)),ht(gt)})},U=>{this.logger.error("error loading discovery document",U),this.eventsSubject.next(new It("discovery_document_load_error",U)),ht(U)}):ht("issuer  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((ze,wt)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(ht=>{this.jwks=ht,ze(ht)},ht=>{this.logger.error("error loading jwks",ht),this.eventsSubject.next(new It("jwks_load_error",ht)),wt(ht)}):ze(null)})}validateDiscoveryDocument(ze){let wt;return this.skipIssuerCheck||ze.issuer===this.issuer?(wt=this.validateUrlFromDiscoveryDocument(ze.authorization_endpoint),wt.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",wt),!1):(wt=this.validateUrlFromDiscoveryDocument(ze.end_session_endpoint),wt.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",wt),!1):(wt=this.validateUrlFromDiscoveryDocument(ze.token_endpoint),wt.length>0&&this.logger.error("error validating token_endpoint in discovery document",wt),wt=this.validateUrlFromDiscoveryDocument(ze.revocation_endpoint),wt.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",wt),wt=this.validateUrlFromDiscoveryDocument(ze.userinfo_endpoint),wt.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",wt),!1):(wt=this.validateUrlFromDiscoveryDocument(ze.jwks_uri),wt.length>0?(this.logger.error("error validating jwks_uri in discovery document",wt),!1):(this.sessionChecksEnabled&&!ze.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+ze.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(ze,wt,ht=new A.WM){return this.fetchTokenUsingPasswordFlow(ze,wt,ht).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((ze,wt)=>{const ht=(new A.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:ht,observe:"response",responseType:"text"}).subscribe(U=>{if(this.debug("userinfo received",JSON.stringify(U)),U.headers.get("content-type").startsWith("application/json")){let gt=JSON.parse(U.body);const Lt=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!Lt.sub||gt.sub!==Lt.sub))return void wt("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");gt=Object.assign({},Lt,gt),this._storage.setItem("id_token_claims_obj",JSON.stringify(gt)),this.eventsSubject.next(new yt("user_profile_loaded")),ze({info:gt})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new yt("user_profile_loaded")),ze(JSON.parse(U.body))},U=>{this.logger.error("error loading user info",U),this.eventsSubject.next(new It("user_profile_load_error",U)),wt(U)})})}fetchTokenUsingPasswordFlow(ze,wt,ht=new A.WM){return this.fetchTokenUsingGrant("password",{username:ze,password:wt},ht)}fetchTokenUsingGrant(ze,wt,ht=new A.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let U=new A.LE({encoder:new an}).set("grant_type",ze).set("scope",this.scope);if(this.useHttpBasicAuth){const gt=btoa(`${this.clientId}:${this.dummyClientSecret}`);ht=ht.set("Authorization","Basic "+gt)}if(this.useHttpBasicAuth||(U=U.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(U=U.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const gt of Object.getOwnPropertyNames(this.customQueryParams))U=U.set(gt,this.customQueryParams[gt]);for(const gt of Object.keys(wt))U=U.set(gt,wt[gt]);return ht=ht.set("Content-Type","application/x-www-form-urlencoded"),new Promise((gt,Lt)=>{this.http.post(this.tokenEndpoint,U,{headers:ht}).subscribe(kt=>{this.debug("tokenResponse",kt),this.storeAccessTokenResponse(kt.access_token,kt.refresh_token,kt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,kt.scope,this.extractRecognizedCustomParameters(kt)),this.oidc&&kt.id_token&&this.processIdToken(kt.id_token,kt.access_token).then(vn=>{this.storeIdToken(vn),gt(kt)}),this.eventsSubject.next(new yt("token_received")),gt(kt)},kt=>{this.logger.error("Error performing ${grantType} flow",kt),this.eventsSubject.next(new It("token_error",kt)),Lt(kt)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((ze,wt)=>{let ht=new A.LE({encoder:new an}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),U=(new A.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const gt=btoa(`${this.clientId}:${this.dummyClientSecret}`);U=U.set("Authorization","Basic "+gt)}if(this.useHttpBasicAuth||(ht=ht.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(ht=ht.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const gt of Object.getOwnPropertyNames(this.customQueryParams))ht=ht.set(gt,this.customQueryParams[gt]);this.http.post(this.tokenEndpoint,ht,{headers:U}).pipe((0,ae.w)(gt=>this.oidc&&gt.id_token?(0,N.D)(this.processIdToken(gt.id_token,gt.access_token,!0)).pipe((0,oe.b)(Lt=>this.storeIdToken(Lt)),(0,Q.U)(Lt=>gt)):(0,F.of)(gt))).subscribe(gt=>{this.debug("refresh tokenResponse",gt),this.storeAccessTokenResponse(gt.access_token,gt.refresh_token,gt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,gt.scope,this.extractRecognizedCustomParameters(gt)),this.eventsSubject.next(new yt("token_received")),this.eventsSubject.next(new yt("token_refreshed")),ze(gt)},gt=>{this.logger.error("Error refreshing token",gt),this.eventsSubject.next(new It("token_refresh_error",gt)),wt(gt)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=ze=>{const wt=this.processMessageEventMessage(ze);this.checkOrigin&&ze.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:wt,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(ht=>this.debug("tryLogin during silent refresh failed",ht))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(ze={},wt=!0){const ht=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(ze.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const U=this.document.getElementById(this.silentRefreshIFrameName);U&&this.document.body.removeChild(U),this.silentRefreshSubject=ht.sub;const gt=this.document.createElement("iframe");return gt.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,wt,ze).then(St=>{gt.setAttribute("src",St),this.silentRefreshShowIFrame||(gt.style.display="none"),this.document.body.appendChild(gt)}),function Y(...Zn){return 1===(Zn=(0,y.k)(Zn)).length?(0,P.Xf)(Zn[0]):new R.y(function ee(Zn){return mn=>{let ze=[];for(let wt=0;ze&&!mn.closed&&wt<Zn.length;wt++)ze.push((0,P.Xf)(Zn[wt]).subscribe((0,j.x)(mn,ht=>{if(ze){for(let U=0;U<ze.length;U++)U!==wt&&ze[U].unsubscribe();ze=null}mn.next(ht)})))}}(Zn))}([this.events.pipe((0,te.h)(St=>St instanceof It),(0,pe.P)()),this.events.pipe((0,te.h)(St=>"token_received"===St.type),(0,pe.P)()),(0,F.of)(new It("silent_refresh_timeout",null)).pipe((0,we.g)(this.silentRefreshTimeout))]).pipe((0,Q.U)(St=>{if(St instanceof It)throw"silent_refresh_timeout"===St.type||(St=new It("silent_refresh_error",St)),this.eventsSubject.next(St),St;return"token_received"===St.type&&(St=new yt("silently_refreshed"),this.eventsSubject.next(St)),St})).toPromise()}initImplicitFlowInPopup(ze){return this.initLoginFlowInPopup(ze)}initLoginFlowInPopup(ze){return ze=ze||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(wt=>new Promise((ht,U)=>{let kt,Lt=null;ze.windowRef?ze.windowRef&&!ze.windowRef.closed&&(Lt=ze.windowRef,Lt.location.href=wt):Lt=window.open(wt,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(ze));const vn=je=>{this.tryLogin({customHashFragment:je,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{St(),ht(!0)},pt=>{St(),U(pt)})};Lt?kt=window.setInterval(()=>{(!Lt||Lt.closed)&&(St(),U(new It("popup_closed",{})))},500):U(new It("popup_blocked",{}));const St=()=>{window.clearInterval(kt),window.removeEventListener("storage",ie),window.removeEventListener("message",De),null!==Lt&&Lt.close(),Lt=null},De=je=>{const pt=this.processMessageEventMessage(je);pt&&null!==pt?(window.removeEventListener("storage",ie),vn(pt)):console.log("false event firing")},ie=je=>{"auth_hash"===je.key&&(window.removeEventListener("message",De),vn(je.newValue))};window.addEventListener("message",De),window.addEventListener("storage",ie)}))}calculatePopupFeatures(ze){const wt=ze.height||470,ht=ze.width||500,U=window.screenLeft+(window.outerWidth-ht)/2;return`location=no,toolbar=no,width=${ht},height=${wt},top=${window.screenTop+(window.outerHeight-wt)/2},left=${U}`}processMessageEventMessage(ze){let wt="#";if(this.silentRefreshMessagePrefix&&(wt+=this.silentRefreshMessagePrefix),!ze||!ze.data||"string"!=typeof ze.data)return;const ht=ze.data;return ht.startsWith(wt)?"#"+ht.substr(wt.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=ze=>{const wt=ze.origin.toLowerCase(),ht=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),ht.startsWith(wt)){switch(ze.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",ze)}else this.debug("sessionCheckEventListener","wrong origin",wt,"expected",ht,"event",ze)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new it("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new it("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(ze=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new it("session_terminated")),this.logOut(!0)):this.refreshToken().then(ze=>{this.debug("token refresh after session change worked")}).catch(ze=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new it("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,te.h)(ze=>"silently_refreshed"===ze.type||"silent_refresh_timeout"===ze.type||"silent_refresh_error"===ze.type),(0,pe.P)()).subscribe(ze=>{"silently_refreshed"!==ze.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new it("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new it("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const ze=this.document.getElementById(this.sessionCheckIFrameName);ze&&this.document.body.removeChild(ze);const wt=this.document.createElement("iframe");wt.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),wt.setAttribute("src",this.sessionCheckIFrameUrl),wt.style.display="none",this.document.body.appendChild(wt),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const ze=this.document.getElementById(this.sessionCheckIFrameName);ze||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const wt=this.getSessionState();wt||this.stopSessionCheckTimer(),ze.contentWindow.postMessage(this.clientId+" "+wt,this.issuer)}createLoginUrl(ze="",wt="",ht="",U=!1,gt={}){var Lt=this;return(0,e.Z)(function*(){const kt=Lt;let vn;vn=ht||Lt.redirectUri;const jn=yield Lt.createAndSaveNonce();if(ze=ze?jn+Lt.config.nonceStateSeparator+encodeURIComponent(ze):jn,!Lt.requestAccessToken&&!Lt.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");Lt.responseType=Lt.config.responseType?Lt.config.responseType:Lt.oidc&&Lt.requestAccessToken?"id_token token":Lt.oidc&&!Lt.requestAccessToken?"id_token":"token";const St=kt.loginUrl.indexOf("?")>-1?"&":"?";let De=kt.scope;Lt.oidc&&!De.match(/(^|\s)openid($|\s)/)&&(De="openid "+De);let ie=kt.loginUrl+St+"response_type="+encodeURIComponent(kt.responseType)+"&client_id="+encodeURIComponent(kt.clientId)+"&state="+encodeURIComponent(ze)+"&redirect_uri="+encodeURIComponent(vn)+"&scope="+encodeURIComponent(De);if(Lt.responseType.includes("code")&&!Lt.disablePKCE){const[je,pt]=yield Lt.createChallangeVerifierPairForPKCE();Lt.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",pt):Lt._storage.setItem("PKCE_verifier",pt),ie+="&code_challenge="+je,ie+="&code_challenge_method=S256"}wt&&(ie+="&login_hint="+encodeURIComponent(wt)),kt.resource&&(ie+="&resource="+encodeURIComponent(kt.resource)),kt.oidc&&(ie+="&nonce="+encodeURIComponent(jn)),U&&(ie+="&prompt=none");for(const je of Object.keys(gt))ie+="&"+encodeURIComponent(je)+"="+encodeURIComponent(gt[je]);if(Lt.customQueryParams)for(const je of Object.getOwnPropertyNames(Lt.customQueryParams))ie+="&"+je+"="+encodeURIComponent(Lt.customQueryParams[je]);return ie})()}initImplicitFlowInternal(ze="",wt=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let ht={},U=null;"string"==typeof wt?U=wt:"object"==typeof wt&&(ht=wt),this.createLoginUrl(ze,U,null,!1,ht).then(this.config.openUri).catch(gt=>{console.error("Error in initImplicitFlow",gt),this.inImplicitFlow=!1})}initImplicitFlow(ze="",wt=""){""!==this.loginUrl?this.initImplicitFlowInternal(ze,wt):this.events.pipe((0,te.h)(ht=>"discovery_document_loaded"===ht.type)).subscribe(ht=>this.initImplicitFlowInternal(ze,wt))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(ze){const wt=this;if(ze.onTokenReceived){const ht={idClaims:wt.getIdentityClaims(),idToken:wt.getIdToken(),accessToken:wt.getAccessToken(),state:wt.state};ze.onTokenReceived(ht)}}storeAccessTokenResponse(ze,wt,ht,U,gt){if(this._storage.setItem("access_token",ze),U&&!Array.isArray(U)?this._storage.setItem("granted_scopes",JSON.stringify(U.split(" "))):U&&Array.isArray(U)&&this._storage.setItem("granted_scopes",JSON.stringify(U)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),ht){const Lt=1e3*ht,vn=this.dateTimeService.new().getTime()+Lt;this._storage.setItem("expires_at",""+vn)}wt&&this._storage.setItem("refresh_token",wt),gt&&gt.forEach((Lt,kt)=>{this._storage.setItem(kt,Lt)})}tryLogin(ze=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(ze).then(wt=>!0):this.tryLoginImplicitFlow(ze)}parseQueryString(ze){return ze&&0!==ze.length?("?"===ze.charAt(0)&&(ze=ze.substr(1)),this.urlHelper.parseQueryString(ze)):{}}tryLoginCodeFlow(ze=null){var wt=this;return(0,e.Z)(function*(){const ht=(ze=ze||{}).customHashFragment?ze.customHashFragment.substring(1):window.location.search,U=wt.getCodePartsFromUrl(ht),gt=U.code,Lt=U.state,kt=U.session_state;if(!ze.preventClearHashAfterLogin){const St=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,St)}let[vn,jn]=wt.parseState(Lt);if(wt.state=jn,U.error){wt.debug("error trying to login"),wt.handleLoginError(ze,U);const St=new It("code_error",{},U);return wt.eventsSubject.next(St),Promise.reject(St)}if(!ze.disableNonceCheck){if(!vn)return wt.saveRequestedRoute(),Promise.resolve();if(!ze.disableOAuth2StateCheck&&!wt.validateNonce(vn)){const De=new It("invalid_nonce_in_state",null);return wt.eventsSubject.next(De),Promise.reject(De)}}return wt.storeSessionState(kt),gt&&(yield wt.getTokenFromCode(gt,ze),wt.restoreRequestedRoute()),Promise.resolve()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const ze=this._storage.getItem("requested_route");ze&&history.replaceState(null,"",window.location.origin+ze)}getCodePartsFromUrl(ze){return ze&&0!==ze.length?("?"===ze.charAt(0)&&(ze=ze.substr(1)),this.urlHelper.parseQueryString(ze)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(ze,wt){let ht=new A.LE({encoder:new an}).set("grant_type","authorization_code").set("code",ze).set("redirect_uri",wt.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let U;U=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),U?ht=ht.set("code_verifier",U):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(ht,wt)}fetchAndProcessToken(ze,wt){wt=wt||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let ht=(new A.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const U=btoa(`${this.clientId}:${this.dummyClientSecret}`);ht=ht.set("Authorization","Basic "+U)}return this.useHttpBasicAuth||(ze=ze.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(ze=ze.set("client_secret",this.dummyClientSecret)),new Promise((U,gt)=>{if(this.customQueryParams)for(let Lt of Object.getOwnPropertyNames(this.customQueryParams))ze=ze.set(Lt,this.customQueryParams[Lt]);this.http.post(this.tokenEndpoint,ze,{headers:ht}).subscribe(Lt=>{this.debug("refresh tokenResponse",Lt),this.storeAccessTokenResponse(Lt.access_token,Lt.refresh_token,Lt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Lt.scope,this.extractRecognizedCustomParameters(Lt)),this.oidc&&Lt.id_token?this.processIdToken(Lt.id_token,Lt.access_token,wt.disableNonceCheck).then(kt=>{this.storeIdToken(kt),this.eventsSubject.next(new yt("token_received")),this.eventsSubject.next(new yt("token_refreshed")),U(Lt)}).catch(kt=>{this.eventsSubject.next(new It("token_validation_error",kt)),console.error("Error validating tokens"),console.error(kt),gt(kt)}):(this.eventsSubject.next(new yt("token_received")),this.eventsSubject.next(new yt("token_refreshed")),U(Lt))},Lt=>{console.error("Error getting token",Lt),this.eventsSubject.next(new It("token_refresh_error",Lt)),gt(Lt)})})}tryLoginImplicitFlow(ze=null){let wt;wt=(ze=ze||{}).customHashFragment?this.urlHelper.getHashFragmentParams(ze.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",wt);const ht=wt.state;let[U,gt]=this.parseState(ht);if(this.state=gt,wt.error){this.debug("error trying to login"),this.handleLoginError(ze,wt);const St=new It("token_error",{},wt);return this.eventsSubject.next(St),Promise.reject(St)}const Lt=wt.access_token,kt=wt.id_token,vn=wt.session_state,jn=wt.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!Lt||this.requestAccessToken&&!ze.disableOAuth2StateCheck&&!ht||this.oidc&&!kt)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!vn&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!ze.disableNonceCheck&&!this.validateNonce(U)){const De=new It("invalid_nonce_in_state",null);return this.eventsSubject.next(De),Promise.reject(De)}return this.requestAccessToken&&this.storeAccessTokenResponse(Lt,null,wt.expires_in||this.fallbackAccessTokenExpirationTimeInSec,jn),this.oidc?this.processIdToken(kt,Lt,ze.disableNonceCheck).then(St=>ze.validationHandler?ze.validationHandler({accessToken:Lt,idClaims:St.idTokenClaims,idToken:St.idToken,state:ht}).then(De=>St):St).then(St=>(this.storeIdToken(St),this.storeSessionState(vn),this.clearHashAfterLogin&&!ze.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new yt("token_received")),this.callOnTokenReceivedIfExists(ze),this.inImplicitFlow=!1,!0)).catch(St=>(this.eventsSubject.next(new It("token_validation_error",St)),this.logger.error("Error validating tokens"),this.logger.error(St),Promise.reject(St))):(this.eventsSubject.next(new yt("token_received")),this.clearHashAfterLogin&&!ze.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(ze),Promise.resolve(!0))}parseState(ze){let wt=ze,ht="";if(ze){const U=ze.indexOf(this.config.nonceStateSeparator);U>-1&&(wt=ze.substr(0,U),ht=ze.substr(U+this.config.nonceStateSeparator.length))}return[wt,ht]}validateNonce(ze){let wt;return wt=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),wt===ze||(console.error("Validating access_token failed, wrong state/nonce.",wt,ze),!1)}storeIdToken(ze){this._storage.setItem("id_token",ze.idToken),this._storage.setItem("id_token_claims_obj",ze.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+ze.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(ze){this._storage.setItem("session_state",ze)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(ze,wt){ze.onLoginError&&ze.onLoginError(wt),this.clearHashAfterLogin&&!ze.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(ze=6e5){return this.clockSkewInSec||0===this.clockSkewInSec?1e3*this.clockSkewInSec:ze}processIdToken(ze,wt,ht=!1){const U=ze.split("."),Lt=Tt(this.padBase64(U[0])),kt=JSON.parse(Lt),jn=Tt(this.padBase64(U[1])),St=JSON.parse(jn);let De;if(De=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(St.aud)){if(St.aud.every(hn=>hn!==this.clientId)){const hn="Wrong audience: "+St.aud.join(",");return this.logger.warn(hn),Promise.reject(hn)}}else if(St.aud!==this.clientId){const hn="Wrong audience: "+St.aud;return this.logger.warn(hn),Promise.reject(hn)}if(!St.sub){const hn="No sub claim in id_token";return this.logger.warn(hn),Promise.reject(hn)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==St.sub){const hn=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${St.sub}`;return this.logger.warn(hn),Promise.reject(hn)}if(!St.iat){const hn="No iat claim in id_token";return this.logger.warn(hn),Promise.reject(hn)}if(!this.skipIssuerCheck&&St.iss!==this.issuer){const hn="Wrong issuer: "+St.iss;return this.logger.warn(hn),Promise.reject(hn)}if(!ht&&St.nonce!==De){const hn="Wrong nonce: "+St.nonce;return this.logger.warn(hn),Promise.reject(hn)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!St.at_hash){const hn="An at_hash is needed!";return this.logger.warn(hn),Promise.reject(hn)}const ie=this.dateTimeService.now(),je=1e3*St.iat,pt=1e3*St.exp,Ut=this.getClockSkewInMsec();if(je-Ut>=ie||pt+Ut-this.decreaseExpirationBySec<=ie){const hn="Token has expired";return console.error(hn),console.error({now:ie,issuedAtMSec:je,expiresAtMSec:pt}),Promise.reject(hn)}const xn={accessToken:wt,idToken:ze,jwks:this.jwks,idTokenClaims:St,idTokenHeader:kt,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(xn).then(hn=>({idToken:ze,idTokenClaims:St,idTokenClaimsJson:jn,idTokenHeader:kt,idTokenHeaderJson:Lt,idTokenExpiresAt:pt})):this.checkAtHash(xn).then(hn=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!hn){const Gn="Wrong at_hash";return this.logger.warn(Gn),Promise.reject(Gn)}return this.checkSignature(xn).then(Gn=>{const mi={idToken:ze,idTokenClaims:St,idTokenClaimsJson:jn,idTokenHeader:kt,idTokenHeaderJson:Lt,idTokenExpiresAt:pt};return this.disableAtHashCheck?mi:this.checkAtHash(xn).then(ui=>{if(this.requestAccessToken&&!ui){const Pi="Wrong at_hash";return this.logger.warn(Pi),Promise.reject(Pi)}return mi})})})}getIdentityClaims(){const ze=this._storage.getItem("id_token_claims_obj");return ze?JSON.parse(ze):null}getGrantedScopes(){const ze=this._storage.getItem("granted_scopes");return ze?JSON.parse(ze):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(ze){for(;ze.length%4!=0;)ze+="=";return ze}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const ze=this._storage.getItem("expires_at"),wt=this.dateTimeService.new();return!(ze&&parseInt(ze,10)-this.decreaseExpirationBySec<wt.getTime()-this.getClockSkewInMsec())}return!1}hasValidIdToken(){if(this.getIdToken()){const ze=this._storage.getItem("id_token_expires_at"),wt=this.dateTimeService.new();return!(ze&&parseInt(ze,10)-this.decreaseExpirationBySec<wt.getTime()-this.getClockSkewInMsec())}return!1}getCustomTokenResponseProperty(ze){return this._storage&&this.config.customTokenParameters&&this.config.customTokenParameters.indexOf(ze)>=0&&null!==this._storage.getItem(ze)?JSON.parse(this._storage.getItem(ze)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(ze={},wt=""){let ht=!1;"boolean"==typeof ze&&(ht=ze,ze={});const U=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(Lt=>this._storage.removeItem(Lt)),this.silentRefreshSubject=null,this.eventsSubject.next(new it("logout")),!this.logoutUrl||ht)return;let gt;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)gt=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(U)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let Lt=new A.LE({encoder:new an});U&&(Lt=Lt.set("id_token_hint",U));const kt=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";kt&&(Lt=Lt.set("post_logout_redirect_uri",kt),wt&&(Lt=Lt.set("state",wt)));for(let vn in ze)Lt=Lt.set(vn,ze[vn]);gt=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+Lt.toString()}this.config.openUri(gt)}createAndSaveNonce(){const ze=this;return this.createNonce().then(function(wt){return ze.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",wt):ze._storage.setItem("nonce",wt),wt})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const ze=this.document.getElementById(this.silentRefreshIFrameName);ze&&ze.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const wt=this.document.getElementById(this.sessionCheckIFrameName);wt&&wt.remove()}createNonce(){return new Promise(ze=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let ht=45,U="";const gt=typeof self>"u"?null:self.crypto||self.msCrypto;if(gt){let Lt=new Uint8Array(ht);gt.getRandomValues(Lt),Lt.map||(Lt.map=Array.prototype.map),Lt=Lt.map(kt=>wt.charCodeAt(kt%wt.length)),U=String.fromCharCode.apply(null,Lt)}else for(;0<ht--;)U+=wt[Math.random()*wt.length|0];ze(wn(U))})}checkAtHash(ze){var wt=this;return(0,e.Z)(function*(){return wt.tokenValidationHandler?wt.tokenValidationHandler.validateAtHash(ze):(wt.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})()}checkSignature(ze){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(ze):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(ze="",wt={}){return"code"===this.responseType?this.initCodeFlow(ze,wt):this.initImplicitFlow(ze,wt)}initCodeFlow(ze="",wt={}){""!==this.loginUrl?this.initCodeFlowInternal(ze,wt):this.events.pipe((0,te.h)(ht=>"discovery_document_loaded"===ht.type)).subscribe(ht=>this.initCodeFlowInternal(ze,wt))}initCodeFlowInternal(ze="",wt={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let ht={},U=null;"string"==typeof wt?U=wt:"object"==typeof wt&&(ht=wt),this.createLoginUrl(ze,U,null,!1,ht).then(this.config.openUri).catch(gt=>{console.error("Error in initAuthorizationCodeFlow"),console.error(gt)})}createChallangeVerifierPairForPKCE(){var ze=this;return(0,e.Z)(function*(){if(!ze.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const wt=yield ze.createNonce();return[wn(yield ze.crypto.calcHash(wt,"sha-256")),wt]})()}extractRecognizedCustomParameters(ze){let wt=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(ht=>{ze[ht]&&wt.set(ht,JSON.stringify(ze[ht]))}),wt}revokeTokenAndLogout(ze={},wt=!1){let ht=this.revocationEndpoint,U=this.getAccessToken(),gt=this.getRefreshToken();if(!U)return Promise.resolve();let Lt=new A.LE({encoder:new an}),kt=(new A.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const vn=btoa(`${this.clientId}:${this.dummyClientSecret}`);kt=kt.set("Authorization","Basic "+vn)}if(this.useHttpBasicAuth||(Lt=Lt.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(Lt=Lt.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const vn of Object.getOwnPropertyNames(this.customQueryParams))Lt=Lt.set(vn,this.customQueryParams[vn]);return new Promise((vn,jn)=>{let St,De;if(U){let ie=Lt.set("token",U).set("token_type_hint","access_token");St=this.http.post(ht,ie,{headers:kt})}else St=(0,F.of)(null);if(gt){let ie=Lt.set("token",gt).set("token_type_hint","refresh_token");De=this.http.post(ht,ie,{headers:kt})}else De=(0,F.of)(null);wt&&(St=St.pipe((0,Ee.K)(ie=>0===ie.status?(0,F.of)(null):(0,se._)(ie))),De=De.pipe((0,Ee.K)(ie=>0===ie.status?(0,F.of)(null):(0,se._)(ie)))),(0,he.a)([St,De]).subscribe(ie=>{this.logOut(ze),vn(ie),this.logger.info("Token successfully revoked")},ie=>{this.logger.error("Error revoking token",ie),this.eventsSubject.next(new It("token_revoke_error",ie)),jn(ie)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Zn.\u0275fac=function(ze){return new(ze||Zn)(o.LFG(o.R0b),o.LFG(A.eN),o.LFG(Kt,8),o.LFG(sn,8),o.LFG(Nn,8),o.LFG(Ln),o.LFG(Ot),o.LFG(lt,8),o.LFG(T.K0),o.LFG(Oe))},Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})();class Li{}class An{handleError(mn){return(0,se._)(mn)}}let Ht=(()=>{class Zn{constructor(ze,wt,ht){this.oAuthService=ze,this.errorHandler=wt,this.moduleConfig=ht}checkUrl(ze){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(ze):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(wt=>ze.toLowerCase().startsWith(wt.toLowerCase()))}intercept(ze,wt){const ht=ze.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(ht)?this.moduleConfig.resourceServer.sendAccessToken?(0,Se.T)((0,F.of)(this.oAuthService.getAccessToken()).pipe((0,te.h)(gt=>!!gt)),this.oAuthService.events.pipe((0,te.h)(gt=>"token_received"===gt.type),function vt(Zn,mn){const{first:ze,each:wt,with:ht=ln,scheduler:U=mn??ke.z,meta:gt=null}=(0,Ye.q)(Zn)?{first:Zn}:"number"==typeof Zn?{each:Zn}:Zn;if(null==ze&&null==wt)throw new TypeError("No timeout provided.");return(0,ct.e)((Lt,kt)=>{let vn,jn,St=null,De=0;const ie=je=>{jn=(0,Ct.f)(kt,U,()=>{try{vn.unsubscribe(),(0,P.Xf)(ht({meta:gt,lastValue:St,seen:De})).subscribe(kt)}catch(pt){kt.error(pt)}},je)};vn=Lt.subscribe((0,j.x)(kt,je=>{jn?.unsubscribe(),De++,kt.next(St=je),wt>0&&ie(wt)},void 0,void 0,()=>{jn?.closed||jn?.unsubscribe(),St=null})),!De&&ie(null!=ze?"number"==typeof ze?ze:+ze-U.now():wt)})}(this.oAuthService.waitForTokenInMsec||0),(0,Ee.K)(gt=>(0,F.of)(null)),(0,Q.U)(gt=>this.oAuthService.getAccessToken()))).pipe((0,Je.q)(1),(0,Ft.z)(gt=>{if(gt){const kt=ze.headers.set("Authorization","Bearer "+gt);ze=ze.clone({headers:kt})}return wt.handle(ze).pipe((0,Ee.K)(Lt=>this.errorHandler.handleError(Lt)))})):wt.handle(ze).pipe((0,Ee.K)(gt=>this.errorHandler.handleError(gt))):wt.handle(ze)}}return Zn.\u0275fac=function(ze){return new(ze||Zn)(o.LFG(yi),o.LFG(Li),o.LFG(Ze,8))},Zn.\u0275prov=o.Yz7({token:Zn,factory:Zn.\u0275fac}),Zn})();function Pn(){return console}function Sn(){return typeof sessionStorage<"u"?sessionStorage:new $t}function Fn(Zn=null,mn=st){return(0,o.MR2)([yi,Ln,{provide:Ot,useFactory:Pn},{provide:Kt,useFactory:Sn},{provide:sn,useClass:mn},{provide:lt,useClass:Qt},{provide:Li,useClass:An},{provide:Ze,useValue:Zn},{provide:A.TP,useClass:Ht,multi:!0},{provide:Oe,useClass:Nt}])}let Cn=(()=>{class Zn{static forRoot(ze=null,wt=st){return{ngModule:Zn,providers:[Fn(ze,wt)]}}}return Zn.\u0275fac=function(ze){return new(ze||Zn)},Zn.\u0275mod=o.oAB({type:Zn}),Zn.\u0275inj=o.cJS({imports:[T.ez]}),Zn})();new o.OlP("AUTH_CONFIG")},71441:(fn,ve,_)=>{"use strict";function o(B){return B<0?Math.ceil(B)||0:Math.floor(B)}function T(B){return"string"==typeof B}function A(B){return B instanceof Date||"[object Date]"===Object.prototype.toString.call(B)}function F(B){return B&&B.getTime&&!isNaN(B.getTime())}function N(B){return B instanceof Function||"[object Function]"===Object.prototype.toString.call(B)}function R(B){return"number"==typeof B||"[object Number]"===Object.prototype.toString.call(B)}function P(B){return B instanceof Array||"[object Array]"===Object.prototype.toString.call(B)}function y(B,ce){return Object.prototype.hasOwnProperty.call(B,ce)}function j(B){return null!=B&&"[object Object]"===Object.prototype.toString.call(B)}function ee(B){return void 0===B}function se(B){const ce=+B;let Fe=0;return 0!==ce&&isFinite(ce)&&(Fe=o(ce)),Fe}_.d(ve,{AZ:()=>an,Ax:()=>ha,D$:()=>yt,DB:()=>Tl,Dz:()=>ji,FT:()=>_n,J_:()=>A,Ji:()=>Ur,KC:()=>Ln,Kd:()=>vo,RR:()=>ir,Rp:()=>F,Rw:()=>ie,Wf:()=>ms,ZG:()=>qa,gl:()=>Yi,is:()=>fs,jw:()=>We,kJ:()=>P,nr:()=>Tt,p6:()=>Us,rg:()=>De,sG:()=>wl,wf:()=>$t,xj:()=>sn});const he={},Se={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function te(B,ce){const Fe=B.toLowerCase();let Dt=B;Fe in Se&&(Dt=Se[Fe]),he[Fe]=he[`${Fe}s`]=he[ce]=Dt}function oe(B){return T(B)?he[B]||he[B.toLowerCase()]:void 0}const we=0,ae=1,Q=2,pe=3,Ee=4,ke=5,Ye=6,ct=7,ut=8;function Ct(B,ce,Fe){const Dt=`${Math.abs(B)}`;return(B>=0?Fe?"+":"":"-")+Math.pow(10,Math.max(0,ce-Dt.length)).toString().substr(1)+Dt}const Ue={},vt={},ln=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Je(B,ce,Fe,Dt){B&&(vt[B]=Dt),ce&&(vt[ce[0]]=function(){return Ct(Dt.apply(null,arguments),ce[1],ce[2])}),Fe&&(vt[Fe]=function(nn,hi){return hi.locale.ordinal(Dt.apply(null,arguments),B)})}function st(B){return B.match(/\[[\s\S]/)?B.replace(/^\[|\]$/g,""):B.replace(/\\/g,"")}function Ze(B,ce,Fe){const Dt=new Date(Date.UTC.apply(null,arguments));return B<100&&B>=0&&isFinite(Dt.getUTCFullYear())&&Dt.setUTCFullYear(B),Dt}function $e(B,ce=0,Fe=1,Dt=0,nn=0,hi=0,kn=0){const cs=new Date(B,ce,Fe,Dt,nn,hi,kn);return B<100&&B>=0&&isFinite(cs.getFullYear())&&cs.setFullYear(B),cs}function Oe(B,ce=!1){return ce?B.getUTCHours():B.getHours()}function Nt(B,ce=!1){return ce?B.getUTCMinutes():B.getMinutes()}function xt(B,ce=!1){return ce?B.getUTCSeconds():B.getSeconds()}function Ot(B,ce=!1){return ce?B.getUTCMilliseconds():B.getMilliseconds()}function $t(B,ce=!1){return ce?B.getUTCDay():B.getDay()}function rt(B,ce=!1){return ce?B.getUTCDate():B.getDate()}function We(B,ce=!1){return ce?B.getUTCMonth():B.getMonth()}function yt(B,ce=!1){return ce?B.getUTCFullYear():B.getFullYear()}function Tt(B){return $e(B.getFullYear(),B.getMonth(),1,B.getHours(),B.getMinutes(),B.getSeconds())}function an(B,ce){return B.getDay()===Number(ce)}function sn(B,ce){return!(!B||!ce)&&_n(B,ce)&&We(B)===We(ce)}function _n(B,ce){return!(!B||!ce)&&yt(B)===yt(ce)}function Ln(B,ce){return!(!B||!ce)&&_n(B,ce)&&sn(B,ce)&&rt(B)===rt(ce)}const Mn=/\d/,pi=/\d\d/,Yn=/\d{3}/,gi=/\d{4}/,qn=/[+-]?\d{6}/,ki=/\d\d?/,Si=/\d\d\d\d?/,Ni=/\d\d\d\d\d\d?/,pn=/\d{1,3}/,Vn=/\d{1,4}/,ot=/[+-]?\d{1,6}/,en=/\d+/,lt=/[+-]?\d+/,rn=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[+-]?\d+(\.\d{1,3})?/,yi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Li={};function An(B,ce,Fe){Li[B]=N(ce)?ce:function(Dt,nn){return Dt&&Fe?Fe:ce}}function Ht(B,ce){return y(Li,B)?Li[B](!1,ce):new RegExp(function Pn(B){return Sn(B.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(ce,Fe,Dt,nn,hi)=>Fe||Dt||nn||hi))}(B))}function Sn(B){return B.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const Fn={};function Cn(B,ce){const Fe=T(B)?[B]:B;let Dt=ce;if(R(ce)&&(Dt=function(nn,hi,kn){return hi[ce]=se(nn),kn}),P(Fe)&&N(Dt)){let nn;for(nn=0;nn<Fe.length;nn++)Fn[Fe[nn]]=Dt}}function Un(B,ce){Cn(B,function(Fe,Dt,nn,hi){return nn._w=nn._w||{},ce(Fe,nn._w,nn,hi)})}function fi(B,ce,Fe){return null!=ce&&y(Fn,B)&&Fn[B](ce,Fe._a,Fe,B),Fe}const bi={};function Zn(B,ce){bi[B]=ce}function wt(B){return null==B._pf&&(B._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),B._pf}function ht(B,ce){return ce.locale.getFullYear?ce.locale.getFullYear(B,ce.isUTC).toString():yt(B,ce.isUTC).toString()}function gt(B){return se(B)+(se(B)>68?1900:2e3)}function Lt(B){return kt(B)?366:365}function kt(B){return B%4==0&&B%100!=0||B%400==0}function vn(B,ce){if(isNaN(B)||isNaN(ce))return NaN;const Fe=function e(B,ce){return(B%ce+ce)%ce}(ce,12);return 1===Fe?kt(B+(ce-Fe)/12)?29:28:31-Fe%7%2}const St={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function De(B,ce){const Fe=Object.assign({},St,ce),Dt=B.getFullYear()+(Fe.year||0),nn=B.getMonth()+(Fe.month||0);let hi=B.getDate()+(Fe.day||0);return Fe.month&&!Fe.day&&(hi=Math.min(hi,vn(Dt,nn))),$e(Dt,nn,hi,B.getHours()+(Fe.hour||0),B.getMinutes()+(Fe.minute||0),B.getSeconds()+(Fe.seconds||0))}function ie(B,ce){return $e(je(B.getFullYear(),ce.year),je(B.getMonth(),ce.month),1,je(B.getHours(),ce.hour),je(B.getMinutes(),ce.minute),je(B.getSeconds(),ce.seconds),je(B.getMilliseconds(),ce.milliseconds))}function je(B,ce){return R(ce)?ce:B}function Ut(B,ce,Fe){const Dt=Math.min(rt(B),vn(yt(B),ce));return Fe?B.setUTCMonth(ce,Dt):B.setMonth(ce,Dt),B}function ui(B,ce,Fe){return Fe?B.setUTCDate(ce):B.setDate(ce),B}function Di(B){return new Date(B.getTime())}function Yi(B,ce,Fe){const Dt=Di(B);switch(ce){case"year":Ut(Dt,0,Fe);case"quarter":case"month":ui(Dt,1,Fe);case"week":case"isoWeek":case"day":case"date":!function hn(B,ce,Fe){Fe?B.setUTCHours(ce):B.setHours(ce)}(Dt,0,Fe);case"hours":!function Gn(B,ce,Fe){Fe?B.setUTCMinutes(ce):B.setMinutes(ce)}(Dt,0,Fe);case"minutes":!function ri(B,ce,Fe){Fe?B.setUTCSeconds(ce):B.setSeconds(ce)}(Dt,0,Fe);case"seconds":!function mi(B,ce,Fe){Fe?B.setUTCMilliseconds(ce):B.setMilliseconds(ce)}(Dt,0,Fe)}return"week"===ce&&function Ls(B,ce,Fe={}){Zt(B,ce-go(B,Fe.locale,Fe.isUTC),"day")}(Dt,0,{isUTC:Fe}),"isoWeek"===ce&&function ao(B,ce,Fe={}){const Dt=function ro(B,ce=vo()){return T(B)?ce.weekdaysParse(B)%7||7:R(B)&&isNaN(B)?null:B}(ce,Fe.locale);Ki(B,Ss(B)%7?Dt:Dt-7)}(Dt,1),"quarter"===ce&&Ut(Dt,3*Math.floor(We(Dt,Fe)/3),Fe),Dt}function ji(B,ce,Fe){let Dt=ce;return"date"===Dt&&(Dt="day"),function Rn(B,ce,Fe,Dt){return ii(B,qt(ce,Fe),-1,Dt)}(Zt(Yi(B,Dt,Fe),1,"isoWeek"===Dt?"week":Dt,Fe),1,"milliseconds",Fe)}function bs(B,ce){const Fe=+Yi(B,"day",ce),Dt=+Yi(B,"year",ce);return Math.round((Fe-Dt)/864e5)+1}function ss(B,ce,Fe){const Dt=ce-Fe+7;return-(Ze(B,0,Dt).getUTCDay()-ce+7)%7+Dt-1}function as(B,ce,Fe,Dt){const nn=ss(yt(B,Dt),ce,Fe),hi=Math.floor((bs(B,Dt)-nn-1)/7)+1;let kn,cs;return hi<1?(cs=yt(B,Dt)-1,kn=hi+ds(cs,ce,Fe)):hi>ds(yt(B,Dt),ce,Fe)?(kn=hi-ds(yt(B,Dt),ce,Fe),cs=yt(B,Dt)+1):(cs=yt(B,Dt),kn=hi),{week:kn,year:cs}}function ds(B,ce,Fe){const Dt=ss(B,ce,Fe),nn=ss(B+1,ce,Fe);return(Lt(B)-Dt+nn)/7}const Xi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,us="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ps="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_s="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ei="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),po={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ai=yi,Le=yi;class Pt{constructor(ce){ce&&this.set(ce)}set(ce){let Fe;for(Fe in ce){if(!ce.hasOwnProperty(Fe))continue;const Dt=ce[Fe];this[N(Dt)?Fe:`_${Fe}`]=Dt}this._config=ce}calendar(ce,Fe,Dt){const nn=this._calendar[ce]||this._calendar.sameElse;return N(nn)?nn.call(null,Fe,Dt):nn}longDateFormat(ce){const Fe=this._longDateFormat[ce],Dt=this._longDateFormat[ce.toUpperCase()];return Fe||!Dt?Fe:(this._longDateFormat[ce]=Dt.replace(/MMMM|MM|DD|dddd/g,function(nn){return nn.slice(1)}),this._longDateFormat[ce])}get invalidDate(){return this._invalidDate}set invalidDate(ce){this._invalidDate=ce}ordinal(ce,Fe){return this._ordinal.replace("%d",ce.toString(10))}preparse(ce,Fe){return ce}getFullYear(ce,Fe=!1){return yt(ce,Fe)}postformat(ce){return ce}relativeTime(ce,Fe,Dt,nn){const hi=this._relativeTime[Dt];return N(hi)?hi(ce,Fe,Dt,nn):hi.replace(/%d/i,ce.toString(10))}pastFuture(ce,Fe){const Dt=this._relativeTime[ce>0?"future":"past"];return N(Dt)?Dt(Fe):Dt.replace(/%s/i,Fe)}months(ce,Fe,Dt=!1){if(!ce)return P(this._months)?this._months:this._months.standalone;if(P(this._months))return this._months[We(ce,Dt)];const nn=(this._months.isFormat||Xi).test(Fe)?"format":"standalone";return this._months[nn][We(ce,Dt)]}monthsShort(ce,Fe,Dt=!1){if(!ce)return P(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(P(this._monthsShort))return this._monthsShort[We(ce,Dt)];const nn=Xi.test(Fe)?"format":"standalone";return this._monthsShort[nn][We(ce,Dt)]}monthsParse(ce,Fe,Dt){let nn,hi,kn;if(this._monthsParseExact)return this.handleMonthStrictParse(ce,Fe,Dt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),kn=0;kn<12;kn++){if(nn=new Date(Date.UTC(2e3,kn)),Dt&&!this._longMonthsParse[kn]){const cs=this.months(nn,"",!0).replace(".",""),qs=this.monthsShort(nn,"",!0).replace(".","");this._longMonthsParse[kn]=new RegExp(`^${cs}$`,"i"),this._shortMonthsParse[kn]=new RegExp(`^${qs}$`,"i")}if(!Dt&&!this._monthsParse[kn]&&(hi=`^${this.months(nn,"",!0)}|^${this.monthsShort(nn,"",!0)}`,this._monthsParse[kn]=new RegExp(hi.replace(".",""),"i")),Dt&&"MMMM"===Fe&&this._longMonthsParse[kn].test(ce)||Dt&&"MMM"===Fe&&this._shortMonthsParse[kn].test(ce)||!Dt&&this._monthsParse[kn].test(ce))return kn}}monthsRegex(ce){return this._monthsParseExact?(y(this,"_monthsRegex")||this.computeMonthsParse(),ce?this._monthsStrictRegex:this._monthsRegex):(y(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&ce?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(ce){return this._monthsParseExact?(y(this,"_monthsRegex")||this.computeMonthsParse(),ce?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&ce?this._monthsShortStrictRegex:this._monthsShortRegex)}week(ce,Fe){return as(ce,this._week.dow,this._week.doy,Fe).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(ce,Fe,Dt){if(!ce)return P(this._weekdays)?this._weekdays:this._weekdays.standalone;if(P(this._weekdays))return this._weekdays[$t(ce,Dt)];const nn=this._weekdays.isFormat.test(Fe)?"format":"standalone";return this._weekdays[nn][$t(ce,Dt)]}weekdaysMin(ce,Fe,Dt){return ce?this._weekdaysMin[$t(ce,Dt)]:this._weekdaysMin}weekdaysShort(ce,Fe,Dt){return ce?this._weekdaysShort[$t(ce,Dt)]:this._weekdaysShort}weekdaysParse(ce,Fe,Dt){let nn,hi;if(this._weekdaysParseExact)return this.handleWeekStrictParse(ce,Fe,Dt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),nn=0;nn<7;nn++){const kn=Ki(new Date(Date.UTC(2e3,1)),nn,null,!0);if(Dt&&!this._fullWeekdaysParse[nn]&&(this._fullWeekdaysParse[nn]=new RegExp(`^${this.weekdays(kn,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[nn]=new RegExp(`^${this.weekdaysShort(kn,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[nn]=new RegExp(`^${this.weekdaysMin(kn,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[nn]||(hi=`^${this.weekdays(kn,"",!0)}|^${this.weekdaysShort(kn,"",!0)}|^${this.weekdaysMin(kn,"",!0)}`,this._weekdaysParse[nn]=new RegExp(hi.replace(".",""),"i")),!(P(this._fullWeekdaysParse)&&P(this._shortWeekdaysParse)&&P(this._minWeekdaysParse)&&P(this._weekdaysParse)))return;if(Dt&&"dddd"===Fe&&this._fullWeekdaysParse[nn].test(ce))return nn;if(Dt&&"ddd"===Fe&&this._shortWeekdaysParse[nn].test(ce))return nn;if(Dt&&"dd"===Fe&&this._minWeekdaysParse[nn].test(ce))return nn;if(!Dt&&this._weekdaysParse[nn].test(ce))return nn}}weekdaysRegex(ce){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||this.computeWeekdaysParse(),ce?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=yi),this._weekdaysStrictRegex&&ce?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(ce){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||this.computeWeekdaysParse(),ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yi),this._weekdaysShortStrictRegex&&ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(ce){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||this.computeWeekdaysParse(),ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yi),this._weekdaysMinStrictRegex&&ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(ce){return"p"===ce.toLowerCase().charAt(0)}meridiem(ce,Fe,Dt){return ce>11?Dt?"pm":"PM":Dt?"am":"AM"}formatLongDate(ce){this._longDateFormat=this._longDateFormat?this._longDateFormat:po;const Fe=this._longDateFormat[ce],Dt=this._longDateFormat[ce.toUpperCase()];return Fe||!Dt?Fe:(this._longDateFormat[ce]=Dt.replace(/MMMM|MM|DD|dddd/g,nn=>nn.slice(1)),this._longDateFormat[ce])}handleMonthStrictParse(ce,Fe,Dt){const nn=ce.toLocaleLowerCase();let hi,kn,cs;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],hi=0;hi<12;++hi)cs=new Date(2e3,hi),this._shortMonthsParse[hi]=this.monthsShort(cs,"").toLocaleLowerCase(),this._longMonthsParse[hi]=this.months(cs,"").toLocaleLowerCase();return Dt?"MMM"===Fe?(kn=this._shortMonthsParse.indexOf(nn),-1!==kn?kn:null):(kn=this._longMonthsParse.indexOf(nn),-1!==kn?kn:null):"MMM"===Fe?(kn=this._shortMonthsParse.indexOf(nn),-1!==kn?kn:(kn=this._longMonthsParse.indexOf(nn),-1!==kn?kn:null)):(kn=this._longMonthsParse.indexOf(nn),-1!==kn?kn:(kn=this._shortMonthsParse.indexOf(nn),-1!==kn?kn:null))}handleWeekStrictParse(ce,Fe,Dt){let nn;const hi=ce.toLocaleLowerCase();if(!this._weekdaysParse){let kn;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],kn=0;kn<7;++kn){const cs=Ki(new Date(Date.UTC(2e3,1)),kn,null,!0);this._minWeekdaysParse[kn]=this.weekdaysMin(cs).toLocaleLowerCase(),this._shortWeekdaysParse[kn]=this.weekdaysShort(cs).toLocaleLowerCase(),this._weekdaysParse[kn]=this.weekdays(cs,"").toLocaleLowerCase()}}if(P(this._weekdaysParse)&&P(this._shortWeekdaysParse)&&P(this._minWeekdaysParse))return Dt?"dddd"===Fe?(nn=this._weekdaysParse.indexOf(hi),-1!==nn?nn:null):"ddd"===Fe?(nn=this._shortWeekdaysParse.indexOf(hi),-1!==nn?nn:null):(nn=this._minWeekdaysParse.indexOf(hi),-1!==nn?nn:null):"dddd"===Fe?(nn=this._weekdaysParse.indexOf(hi),-1!==nn||(nn=this._shortWeekdaysParse.indexOf(hi),-1!==nn)?nn:(nn=this._minWeekdaysParse.indexOf(hi),-1!==nn?nn:null)):"ddd"===Fe?(nn=this._shortWeekdaysParse.indexOf(hi),-1!==nn||(nn=this._weekdaysParse.indexOf(hi),-1!==nn)?nn:(nn=this._minWeekdaysParse.indexOf(hi),-1!==nn?nn:null)):(nn=this._minWeekdaysParse.indexOf(hi),-1!==nn||(nn=this._weekdaysParse.indexOf(hi),-1!==nn)?nn:(nn=this._shortWeekdaysParse.indexOf(hi),-1!==nn?nn:null))}computeMonthsParse(){const ce=[],Fe=[],Dt=[];let nn,hi;for(hi=0;hi<12;hi++)nn=new Date(2e3,hi),ce.push(this.monthsShort(nn,"")),Fe.push(this.months(nn,"")),Dt.push(this.months(nn,"")),Dt.push(this.monthsShort(nn,""));for(ce.sort(Be),Fe.sort(Be),Dt.sort(Be),hi=0;hi<12;hi++)ce[hi]=Sn(ce[hi]),Fe[hi]=Sn(Fe[hi]);for(hi=0;hi<24;hi++)Dt[hi]=Sn(Dt[hi]);this._monthsRegex=new RegExp(`^(${Dt.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${Fe.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${ce.join("|")})`,"i")}computeWeekdaysParse(){const ce=[],Fe=[],Dt=[],nn=[];let hi;for(hi=0;hi<7;hi++){const kn=Ki(new Date(Date.UTC(2e3,1)),hi,null,!0),cs=this.weekdaysMin(kn),qs=this.weekdaysShort(kn),xa=this.weekdays(kn);ce.push(cs),Fe.push(qs),Dt.push(xa),nn.push(cs),nn.push(qs),nn.push(xa)}for(ce.sort(Be),Fe.sort(Be),Dt.sort(Be),nn.sort(Be),hi=0;hi<7;hi++)Fe[hi]=Sn(Fe[hi]),Dt[hi]=Sn(Dt[hi]),nn[hi]=Sn(nn[hi]);this._weekdaysRegex=new RegExp(`^(${nn.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${Dt.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${Fe.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${ce.join("|")})`,"i")}}function Be(B,ce){return ce.length-B.length}const Dn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:po,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:us,monthsShort:ps,week:{dow:0,doy:6},weekdays:_s,weekdaysMin:Fs,weekdaysShort:ei,meridiemParse:/[ap]\.?m?\.?/i};function vi(B,ce,Fe){const Dt=Math.min(B.length,ce.length),nn=Math.abs(B.length-ce.length);let kn,hi=0;for(kn=0;kn<Dt;kn++)(Fe&&B[kn]!==ce[kn]||!Fe&&se(B[kn])!==se(ce[kn]))&&hi++;return hi+nn}function Wt(B,ce){Je(null,[B,B.length,!1],null,ce)}function Bn(B,ce){return Pe(B,ce.locale).toString()}function ti(B){return z(B).toString()}function Pe(B,ce=vo(),Fe){return as(B,ce.firstDayOfWeek(),ce.firstDayOfYear(),Fe).year}function z(B,ce){return as(B,1,4,ce).year}function So(B,ce){Je(B,null,null,function(Fe,Dt){let nn=function Qs(B,ce={}){return ce._isUTC?ce._offset||0:function Rr(B){return 15*-Math.round(B.getTimezoneOffset()/15)}(B)}(Fe,{_isUTC:Dt.isUTC,_offset:Dt.offset}),hi="+";return nn<0&&(nn=-nn,hi="-"),hi+Ct(~~(nn/60),2)+ce+Ct(~~nn%60,2)})}const da=/([\+\-]|\d\d)/gi;const fo={},js={};let fr;function Ws(B){return B&&B.toLowerCase().replace("_","-")}function Fr(B){return fo[B]||console.error(`Khronos locale error: please load locale "${B}" before using it`),fo[B]}function Ko(B,ce){let Fe;return B&&(ee(ce)?Fe=vo(B):T(B)&&(Fe=ms(B,ce)),Fe&&(fr=Fe)),fr&&fr._abbr}function ms(B,ce){if(null===ce)return delete fo[B],fr=vo("en"),null;if(!ce)return;let Fe=Dn;if(ce.abbr=B,null!=ce.parentLocale){if(null==fo[ce.parentLocale])return js[ce.parentLocale]||(js[ce.parentLocale]=[]),js[ce.parentLocale].push({name:B,config:ce}),null;Fe=fo[ce.parentLocale]._config}return fo[B]=new Pt(function ur(B,ce){const Fe=Object.assign({},B);for(const Dt in ce)y(ce,Dt)&&(j(B[Dt])&&j(ce[Dt])?(Fe[Dt]={},Object.assign(Fe[Dt],B[Dt]),Object.assign(Fe[Dt],ce[Dt])):null!=ce[Dt]?Fe[Dt]=ce[Dt]:delete Fe[Dt]);for(const Dt in B)y(B,Dt)&&!y(ce,Dt)&&j(B[Dt])&&(Fe[Dt]=Object.assign({},Fe[Dt]));return Fe}(Fe,ce)),js[B]&&js[B].forEach(function(Dt){ms(Dt.name,Dt.config)}),Ko(B),fo[B]}function vo(B){return function Ka(){fo.en||(Ko("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(B){const ce=B%10;return B+(1===se(B%100/10)?"th":1===ce?"st":2===ce?"nd":3===ce?"rd":"th")}}),function ni(){Je("w",["ww",2,!1],"wo",function(B,ce){return function ys(B,ce=vo(),Fe){return ce.week(B,Fe)}(B,ce.locale).toString(10)}),Je("W",["WW",2,!1],"Wo",function(B){return function bo(B,ce){return as(B,1,4,ce).week}(B).toString(10)}),te("week","w"),te("isoWeek","W"),Zn("week",5),Zn("isoWeek",5),An("w",ki),An("ww",ki,pi),An("W",ki),An("WW",ki,pi),Un(["w","ww","W","WW"],function(B,ce,Fe,Dt){return ce[Dt.substr(0,1)]=se(B),Fe})}(),function Ps(){Je(null,["gg",2,!1],null,function(B,ce){return(Pe(B,ce.locale)%100).toString()}),Je(null,["GG",2,!1],null,function(B){return(z(B)%100).toString()}),Wt("gggg",Bn),Wt("ggggg",Bn),Wt("GGGG",ti),Wt("GGGGG",ti),te("weekYear","gg"),te("isoWeekYear","GG"),Zn("weekYear",1),Zn("isoWeekYear",1),An("G",lt),An("g",lt),An("GG",ki,pi),An("gg",ki,pi),An("GGGG",Vn,gi),An("gggg",Vn,gi),An("GGGGG",ot,qn),An("ggggg",ot,qn),Un(["gggg","ggggg","GGGG","GGGGG"],function(B,ce,Fe,Dt){return ce[Dt.substr(0,2)]=se(B),Fe}),Un(["gg","GG"],function(B,ce,Fe,Dt){return ce[Dt]=gt(B),Fe})}(),function U(){Je("Y",null,null,function(B,ce){const Fe=yt(B,ce.isUTC);return Fe<=9999?Fe.toString(10):`+${Fe}`}),Je(null,["YY",2,!1],null,function(B,ce){return(yt(B,ce.isUTC)%100).toString(10)}),Je(null,["YYYY",4,!1],null,ht),Je(null,["YYYYY",5,!1],null,ht),Je(null,["YYYYYY",6,!0],null,ht),te("year","y"),Zn("year",1),An("Y",lt),An("YY",ki,pi),An("YYYY",Vn,gi),An("YYYYY",ot,qn),An("YYYYYY",ot,qn),Cn(["YYYYY","YYYYYY"],we),Cn("YYYY",function(B,ce,Fe){return ce[we]=2===B.length?gt(B):se(B),Fe}),Cn("YY",function(B,ce,Fe){return ce[we]=gt(B),Fe}),Cn("Y",function(B,ce,Fe){return ce[we]=parseInt(B,10),Fe})}(),function Fi(){Je("z",null,null,function(B,ce){return ce.isUTC?"UTC":""}),Je("zz",null,null,function(B,ce){return ce.isUTC?"Coordinated Universal Time":""})}(),function wi(){Je("X",null,null,function(B){return function It(B){return Math.floor(B.valueOf()/1e3)}(B).toString(10)}),Je("x",null,null,function(B){return B.valueOf().toString(10)}),An("x",lt),An("X",Qt),Cn("X",function(B,ce,Fe){return Fe._d=new Date(1e3*parseFloat(B)),Fe}),Cn("x",function(B,ce,Fe){return Fe._d=new Date(se(B)),Fe})}(),function Gt(){Je("s",["ss",2,!1],null,function(B,ce){return xt(B,ce.isUTC).toString(10)}),te("second","s"),Zn("second",15),An("s",ki),An("ss",ki,pi),Cn(["s","ss"],ke)}(),function _i(){Je("Q",null,"Qo",function(B,ce){return function Wi(B,ce=!1){return Math.ceil((We(B,ce)+1)/3)}(B,ce.isUTC).toString(10)}),te("quarter","Q"),Zn("quarter",7),An("Q",Mn),Cn("Q",function(B,ce,Fe){return ce[ae]=3*(se(B)-1),Fe})}(),function wo(){So("Z",":"),So("ZZ",""),An("Z",rn),An("ZZ",rn),Cn(["Z","ZZ"],function(B,ce,Fe){return Fe._useUTC=!0,Fe._tzm=function ia(B,ce){const Fe=(ce||"").match(B);if(null===Fe)return null;const nn=Fe[Fe.length-1].match(da)||["-","0","0"],hi=60*parseInt(nn[1],10)+se(nn[2]);return 0===hi?0:"+"===nn[0]?hi:-hi}(rn,B),Fe})}(),function jn(){Je("M",["MM",2,!1],"Mo",function(B,ce){return(We(B,ce.isUTC)+1).toString(10)}),Je("MMM",null,null,function(B,ce){return ce.locale.monthsShort(B,ce.format,ce.isUTC)}),Je("MMMM",null,null,function(B,ce){return ce.locale.months(B,ce.format,ce.isUTC)}),te("month","M"),Zn("month",8),An("M",ki),An("MM",ki,pi),An("MMM",function(B,ce){return ce.monthsShortRegex(B)}),An("MMMM",function(B,ce){return ce.monthsRegex(B)}),Cn(["M","MM"],function(B,ce,Fe){return ce[ae]=se(B)-1,Fe}),Cn(["MMM","MMMM"],function(B,ce,Fe,Dt){const nn=Fe._locale.monthsParse(B,Dt,Fe._strict);return null!=nn?ce[ae]=nn:wt(Fe).invalidMonth=!!B,Fe})}(),function Nr(){Je("m",["mm",2,!1],null,function(B,ce){return Nt(B,ce.isUTC).toString(10)}),te("minute","m"),Zn("minute",14),An("m",ki),An("mm",ki,pi),Cn(["m","mm"],Ee)}(),function so(){let B;for(Je("S",null,null,function(Fe,Dt){return(~~(Ot(Fe,Dt.isUTC)/100)).toString(10)}),Je(null,["SS",2,!1],null,function(Fe,Dt){return(~~(Ot(Fe,Dt.isUTC)/10)).toString(10)}),Je(null,["SSS",3,!1],null,function(Fe,Dt){return Ot(Fe,Dt.isUTC).toString(10)}),Je(null,["SSSS",4,!1],null,function(Fe,Dt){return(10*Ot(Fe,Dt.isUTC)).toString(10)}),Je(null,["SSSSS",5,!1],null,function(Fe,Dt){return(100*Ot(Fe,Dt.isUTC)).toString(10)}),Je(null,["SSSSSS",6,!1],null,function(Fe,Dt){return(1e3*Ot(Fe,Dt.isUTC)).toString(10)}),Je(null,["SSSSSSS",7,!1],null,function(Fe,Dt){return(1e4*Ot(Fe,Dt.isUTC)).toString(10)}),Je(null,["SSSSSSSS",8,!1],null,function(Fe,Dt){return(1e5*Ot(Fe,Dt.isUTC)).toString(10)}),Je(null,["SSSSSSSSS",9,!1],null,function(Fe,Dt){return(1e6*Ot(Fe,Dt.isUTC)).toString(10)}),te("millisecond","ms"),Zn("millisecond",16),An("S",pn,Mn),An("SS",pn,pi),An("SSS",pn,Yn),B="SSSS";B.length<=9;B+="S")An(B,en);function ce(Fe,Dt,nn){return Dt[Ye]=se(1e3*parseFloat(`0.${Fe}`)),nn}for(B="S";B.length<=9;B+="S")Cn(B,ce)}(),function cr(){function B(nn,hi){return Oe(nn,hi)%12||12}function Fe(nn,hi){Je(nn,null,null,function(kn,cs){return cs.locale.meridiem(Oe(kn,cs.isUTC),Nt(kn,cs.isUTC),hi)})}function Dt(nn,hi){return hi._meridiemParse}Je("H",["HH",2,!1],null,function(nn,hi){return Oe(nn,hi.isUTC).toString(10)}),Je("h",["hh",2,!1],null,function(nn,hi){return B(nn,hi.isUTC).toString(10)}),Je("k",["kk",2,!1],null,function(nn,hi){return function ce(nn,hi){return Oe(nn,hi)||24}(nn,hi.isUTC).toString(10)}),Je("hmm",null,null,function(nn,hi){return`${B(nn,hi.isUTC)}${Ct(Nt(nn,hi.isUTC),2)}`}),Je("hmmss",null,null,function(nn,hi){return`${B(nn,hi.isUTC)}${Ct(Nt(nn,hi.isUTC),2)}${Ct(xt(nn,hi.isUTC),2)}`}),Je("Hmm",null,null,function(nn,hi){return`${Oe(nn,hi.isUTC)}${Ct(Nt(nn,hi.isUTC),2)}`}),Je("Hmmss",null,null,function(nn,hi){return`${Oe(nn,hi.isUTC)}${Ct(Nt(nn,hi.isUTC),2)}${Ct(xt(nn,hi.isUTC),2)}`}),Fe("a",!0),Fe("A",!1),te("hour","h"),Zn("hour",13),An("a",Dt),An("A",Dt),An("H",ki),An("h",ki),An("k",ki),An("HH",ki,pi),An("hh",ki,pi),An("kk",ki,pi),An("hmm",Si),An("hmmss",Ni),An("Hmm",Si),An("Hmmss",Ni),Cn(["H","HH"],pe),Cn(["k","kk"],function(nn,hi,kn){const cs=se(nn);return hi[pe]=24===cs?0:cs,kn}),Cn(["a","A"],function(nn,hi,kn){return kn._isPm=kn._locale.isPM(nn),kn._meridiem=nn,kn}),Cn(["h","hh"],function(nn,hi,kn){return hi[pe]=se(nn),wt(kn).bigHour=!0,kn}),Cn("hmm",function(nn,hi,kn){const cs=nn.length-2;return hi[pe]=se(nn.substr(0,cs)),hi[Ee]=se(nn.substr(cs)),wt(kn).bigHour=!0,kn}),Cn("hmmss",function(nn,hi,kn){const cs=nn.length-4,qs=nn.length-2;return hi[pe]=se(nn.substr(0,cs)),hi[Ee]=se(nn.substr(cs,2)),hi[ke]=se(nn.substr(qs)),wt(kn).bigHour=!0,kn}),Cn("Hmm",function(nn,hi,kn){const cs=nn.length-2;return hi[pe]=se(nn.substr(0,cs)),hi[Ee]=se(nn.substr(cs)),kn}),Cn("Hmmss",function(nn,hi,kn){const cs=nn.length-4,qs=nn.length-2;return hi[pe]=se(nn.substr(0,cs)),hi[Ee]=se(nn.substr(cs,2)),hi[ke]=se(nn.substr(qs)),kn})}(),function gs(){Je("DDD",["DDDD",3,!1],"DDDo",function(B){return bs(B).toString(10)}),te("dayOfYear","DDD"),Zn("dayOfYear",4),An("DDD",pn),An("DDDD",Yn),Cn(["DDD","DDDD"],function(B,ce,Fe){return Fe._dayOfYear=se(B),Fe})}(),function $n(){Je("d",null,"do",function(B,ce){return $t(B,ce.isUTC).toString(10)}),Je("dd",null,null,function(B,ce){return ce.locale.weekdaysMin(B,ce.format,ce.isUTC)}),Je("ddd",null,null,function(B,ce){return ce.locale.weekdaysShort(B,ce.format,ce.isUTC)}),Je("dddd",null,null,function(B,ce){return ce.locale.weekdays(B,ce.format,ce.isUTC)}),Je("e",null,null,function(B,ce){return go(B,ce.locale,ce.isUTC).toString(10)}),Je("E",null,null,function(B,ce){return function Ms(B,ce){return $t(B,ce)||7}(B,ce.isUTC).toString(10)}),te("day","d"),te("weekday","e"),te("isoWeekday","E"),Zn("day",11),Zn("weekday",11),Zn("isoWeekday",11),An("d",ki),An("e",ki),An("E",ki),An("dd",function(B,ce){return ce.weekdaysMinRegex(B)}),An("ddd",function(B,ce){return ce.weekdaysShortRegex(B)}),An("dddd",function(B,ce){return ce.weekdaysRegex(B)}),Un(["dd","ddd","dddd"],function(B,ce,Fe,Dt){const nn=Fe._locale.weekdaysParse(B,Dt,Fe._strict);return null!=nn?ce.d=nn:wt(Fe).invalidWeekday=!!B,Fe}),Un(["d","e","E"],function(B,ce,Fe,Dt){return ce[Dt]=se(B),Fe})}(),function mn(){Je("D",["DD",2,!1],"Do",function(B,ce){return rt(B,ce.isUTC).toString(10)}),te("date","D"),Zn("date",9),An("D",ki),An("DD",ki,pi),An("Do",function(B,ce){return ce._dayOfMonthOrdinalParse||ce._ordinalParse}),Cn(["D","DD"],Q),Cn("Do",function(B,ce,Fe){return ce[Q]=se(B.match(ki)[0]),Fe})}())}(),B?function Lr(B){let ce,Fe,Dt=0;for(;Dt<B.length;){const nn=Ws(B[Dt]).split("-");let hi=nn.length;for(ce=Ws(B[Dt+1]),ce=ce?ce.split("-"):null;hi>0;){if(Fe=Fr(nn.slice(0,hi).join("-")),Fe)return Fe;if(ce&&ce.length>=hi&&vi(nn,ce,!0)>=hi-1)break;hi--}Dt++}return null}(P(B)?B:[B]):fr}const Gr=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],Xr=Gr.reduce((B,ce)=>(B[ce]=!0,B),{});function No(B){return B<0?Math.floor(B):Math.ceil(B)}function Er(B){return 4800*B/146097}function zr(B){return 146097*B/4800}let or=Math.round;const rr_ss=44,rr_s=45,rr_m=45,rr_h=22,rr_d=26,rr_M=11;function lo(B,ce,Fe,Dt,nn){return nn.relativeTime(ce||1,!!Fe,B,Dt)}class et{constructor(ce,Fe={}){this._data={},this._locale=vo(),this._locale=Fe&&Fe._locale||vo();const nn=ce.year||0,hi=ce.quarter||0,kn=ce.month||0,cs=ce.week||0,qs=ce.day||0,xa=ce.hours||0,Pa=ce.minutes||0,Ua=ce.seconds||0,fa=ce.milliseconds||0;return this._isValid=function uo(B){if(Object.keys(B).some(Dt=>Dt in Xr&&null===B[Dt]||isNaN(B[Dt])))return!1;let Fe=!1;for(let Dt=0;Dt<Gr.length;++Dt)if(B[Gr[Dt]]){if(Fe)return!1;B[Gr[Dt]]!==se(B[Gr[Dt]])&&(Fe=!0)}return!0}(ce),this._milliseconds=+fa+1e3*Ua+60*Pa*1e3+1e3*xa*60*60,this._days=+qs+7*cs,this._months=+kn+3*hi+12*nn,function Cr(B){let ce=B._milliseconds,Fe=B._days,Dt=B._months;const nn=B._data;ce>=0&&Fe>=0&&Dt>=0||ce<=0&&Fe<=0&&Dt<=0||(ce+=864e5*No(zr(Dt)+Fe),Fe=0,Dt=0),nn.milliseconds=ce%1e3;const hi=o(ce/1e3);nn.seconds=hi%60;const kn=o(hi/60);nn.minutes=kn%60;const cs=o(kn/60);nn.hours=cs%24,Fe+=o(cs/24);const qs=o(Er(Fe));Dt+=qs,Fe-=No(zr(qs));const xa=o(Dt/12);return Dt%=12,nn.day=Fe,nn.month=Dt,nn.year=xa,B}(this)}isValid(){return this._isValid}humanize(ce){if(!this.isValid())return this.localeData().invalidDate;const Fe=this.localeData();let Dt=function nr(B,ce,Fe){const Dt=qt(B).abs(),nn=or(Dt.as("s")),hi=or(Dt.as("m")),kn=or(Dt.as("h")),cs=or(Dt.as("d")),qs=or(Dt.as("M")),xa=or(Dt.as("y")),Pa=nn<=rr_ss&&["s",nn]||nn<rr_s&&["ss",nn]||hi<=1&&["m"]||hi<rr_m&&["mm",hi]||kn<=1&&["h"]||kn<rr_h&&["hh",kn]||cs<=1&&["d"]||cs<rr_d&&["dd",cs]||qs<=1&&["M"]||qs<rr_M&&["MM",qs]||xa<=1&&["y"]||["yy",xa];return lo.apply(null,[Pa[0],Pa[1],ce,+B>0,Fe])}(this,!ce,Fe);return ce&&(Dt=Fe.pastFuture(+this,Dt)),Fe.postformat(Dt)}localeData(){return this._locale}locale(ce){return ce?(this._locale=vo(ce)||this._locale,this):this._locale._abbr}abs(){const ce=Math.abs,Fe=this._data;return this._milliseconds=ce(this._milliseconds),this._days=ce(this._days),this._months=ce(this._months),Fe.milliseconds=ce(Fe.milliseconds),Fe.seconds=ce(Fe.seconds),Fe.minutes=ce(Fe.minutes),Fe.hours=ce(Fe.hours),Fe.month=ce(Fe.month),Fe.year=ce(Fe.year),this}as(ce){if(!this.isValid())return NaN;let Fe,Dt;const nn=this._milliseconds,hi=oe(ce);if("month"===hi||"year"===hi)return Fe=this._days+nn/864e5,Dt=this._months+Er(Fe),"month"===hi?Dt:Dt/12;switch(Fe=this._days+Math.round(zr(this._months)),hi){case"week":return Fe/7+nn/6048e5;case"day":return Fe+nn/864e5;case"hours":return 24*Fe+nn/36e5;case"minutes":return 1440*Fe+nn/6e4;case"seconds":return 86400*Fe+nn/1e3;case"milliseconds":return Math.floor(864e5*Fe)+nn;default:throw new Error(`Unknown unit ${hi}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*se(this._months/12):NaN}}function Gi(B){if(null==B._isValid){const ce=wt(B),Fe=Array.prototype.some.call(ce.parsedDateParts,function(nn){return null!=nn});let Dt=!isNaN(B._d&&B._d.getTime())&&ce.overflow<0&&!ce.empty&&!ce.invalidMonth&&!ce.invalidWeekday&&!ce.weekdayMismatch&&!ce.nullInput&&!ce.invalidFormat&&!ce.userInvalidated&&(!ce.meridiem||ce.meridiem&&Fe);if(B._strict&&(Dt=Dt&&0===ce.charsLeftOver&&0===ce.unusedTokens.length&&void 0===ce.bigHour),null!=Object.isFrozen&&Object.isFrozen(B))return Dt;B._isValid=Dt}return B._isValid}function Ys(B,ce){return B._d=new Date(NaN),Object.assign(wt(B),ce||{userInvalidated:!0}),B}const Hi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,to=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mo=/Z|[+-]\d\d(?::?\d\d)?/,Or=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],sa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aa=/^\/?Date\((\-?\d+)/i,Xa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},ar=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function qr(B){if(!T(B._i))return B;const ce=B._i,Fe=Hi.exec(ce)||to.exec(ce);let Dt,nn,hi,kn,cs,qs;if(!Fe)return B._isValid=!1,B;for(cs=0,qs=Or.length;cs<qs;cs++)if(Or[cs][1].exec(Fe[1])){nn=Or[cs][0],Dt=!1!==Or[cs][2];break}if(null==nn)return B._isValid=!1,B;if(Fe[3]){for(cs=0,qs=sa.length;cs<qs;cs++)if(sa[cs][1].exec(Fe[3])){hi=(Fe[2]||" ")+sa[cs][0];break}if(null==hi)return B._isValid=!1,B}if(!Dt&&null!=hi)return B._isValid=!1,B;if(Fe[4]){if(!mo.exec(Fe[4]))return B._isValid=!1,B;kn="Z"}return B._f=nn+(hi||"")+(kn||""),Wr(B)}function Mt(B){const ce=parseInt(B,10);return ce<=49?ce+2e3:ce}function Ci(B){if(!T(B._i))return B;const ce=ar.exec(function Xt(B){return B.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(B._i));if(!ce)return function co(B){return B._isValid=!1,B}(B);const Fe=function bt(B,ce,Fe,Dt,nn,hi){const kn=[Mt(B),ps.indexOf(ce),parseInt(Fe,10),parseInt(Dt,10),parseInt(nn,10)];return hi&&kn.push(parseInt(hi,10)),kn}(ce[4],ce[3],ce[2],ce[5],ce[6],ce[7]);return function yn(B,ce,Fe){return!B||ei.indexOf(B)===new Date(ce[0],ce[1],ce[2]).getDay()||(wt(Fe).weekdayMismatch=!0,Fe._isValid=!1,!1)}(ce[1],Fe,B)&&(B._a=Fe,B._tzm=function Qn(B,ce,Fe){if(B)return Xa[B];if(ce)return 0;{const Dt=parseInt(Fe,10),nn=Dt%100;return(Dt-nn)/100*60+nn}}(ce[8],ce[9],ce[10]),B._d=Ze.apply(null,B._a),B._d.setUTCMinutes(B._d.getUTCMinutes()-B._tzm),wt(B).rfc2822=!0),B}function Us(B,ce,Fe,Dt,nn=0){const hi=vo(Fe||"en");if(!hi)throw new Error(`Locale "${Fe}" is not defined, please add it with "defineLocale(...)"`);const cs=function Is(B,ce,Fe,Dt,nn=0){if(!F(B))return Fe.invalidDate;const hi=Ns(ce,Fe);return Ue[hi]=Ue[hi]||function Ft(B){const ce=B.match(ln),Fe=ce.length,Dt=new Array(Fe);for(let nn=0;nn<Fe;nn++)Dt[nn]=vt[ce[nn]]?vt[ce[nn]]:st(ce[nn]);return function(nn,hi,kn,cs=0){let qs="";for(let xa=0;xa<Fe;xa++)qs+=N(Dt[xa])?Dt[xa].call(null,nn,{format:B,locale:hi,isUTC:kn,offset:cs}):Dt[xa];return qs}}(hi),Ue[hi](B,Fe,Dt,nn)}(B,ce||(Dt?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),hi,Dt,nn);return cs&&hi.postformat(cs)}function Ns(B,ce){let Fe=B,Dt=5;const nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hi=kn=>ce.formatLongDate(kn)||kn;for(nn.lastIndex=0;Dt>=0&&nn.test(Fe);)Fe=Fe.replace(nn,hi),nn.lastIndex=0,Dt-=1;return Fe}function Js(B,ce,Fe){return B??ce??Fe}function mr(B){const ce=[];let Fe,Dt,nn;if(B._d)return B;const hi=function $s(B){const ce=new Date;return B._useUTC?[ce.getUTCFullYear(),ce.getUTCMonth(),ce.getUTCDate()]:[ce.getFullYear(),ce.getMonth(),ce.getDate()]}(B);for(B._w&&null==B._a[Q]&&null==B._a[ae]&&function Lo(B){let ce,Fe,Dt,nn,hi,kn,cs;const qs=B._w;if(null!=qs.GG||null!=qs.W||null!=qs.E)nn=1,hi=4,ce=Js(qs.GG,B._a[we],as(new Date,1,4).year),Fe=Js(qs.W,1),Dt=Js(qs.E,1),(Dt<1||Dt>7)&&(cs=!0);else{nn=B._locale._week.dow,hi=B._locale._week.doy;const xa=as(new Date,nn,hi);ce=Js(qs.gg,B._a[we],xa.year),Fe=Js(qs.w,xa.week),null!=qs.d?(Dt=qs.d,(Dt<0||Dt>6)&&(cs=!0)):null!=qs.e?(Dt=qs.e+nn,(qs.e<0||qs.e>6)&&(cs=!0)):Dt=nn}Fe<1||Fe>ds(ce,nn,hi)?wt(B)._overflowWeeks=!0:null!=cs?wt(B)._overflowWeekday=!0:(kn=function zi(B,ce,Fe,Dt,nn){const cs=1+7*(ce-1)+(7+Fe-Dt)%7+ss(B,Dt,nn);let qs,xa;return cs<=0?(qs=B-1,xa=Lt(qs)+cs):cs>Lt(B)?(qs=B+1,xa=cs-Lt(B)):(qs=B,xa=cs),{year:qs,dayOfYear:xa}}(ce,Fe,Dt,nn,hi),B._a[we]=kn.year,B._dayOfYear=kn.dayOfYear)}(B),null!=B._dayOfYear&&(nn=Js(B._a[we],hi[we]),(B._dayOfYear>Lt(nn)||0===B._dayOfYear)&&(wt(B)._overflowDayOfYear=!0),Dt=new Date(Date.UTC(nn,0,B._dayOfYear)),B._a[ae]=Dt.getUTCMonth(),B._a[Q]=Dt.getUTCDate()),Fe=0;Fe<3&&null==B._a[Fe];++Fe)B._a[Fe]=ce[Fe]=hi[Fe];for(;Fe<7;Fe++)B._a[Fe]=ce[Fe]=null==B._a[Fe]?2===Fe?1:0:B._a[Fe];24===B._a[pe]&&0===B._a[Ee]&&0===B._a[ke]&&0===B._a[Ye]&&(B._nextDay=!0,B._a[pe]=0),B._d=(B._useUTC?Ze:$e).apply(null,ce);const kn=B._useUTC?B._d.getUTCDay():B._d.getDay();return null!=B._tzm&&B._d.setUTCMinutes(B._d.getUTCMinutes()-B._tzm),B._nextDay&&(B._a[pe]=24),B._w&&typeof B._w.d<"u"&&B._w.d!==kn&&(wt(B).weekdayMismatch=!0),B}function yr(B){let ce;const Fe=B._a;return Fe&&-2===wt(B).overflow&&(ce=Fe[ae]<0||Fe[ae]>11?ae:Fe[Q]<1||Fe[Q]>vn(Fe[we],Fe[ae])?Q:Fe[pe]<0||Fe[pe]>24||24===Fe[pe]&&(0!==Fe[Ee]||0!==Fe[ke]||0!==Fe[Ye])?pe:Fe[Ee]<0||Fe[Ee]>59?Ee:Fe[ke]<0||Fe[ke]>59?ke:Fe[Ye]<0||Fe[Ye]>999?Ye:-1,wt(B)._overflowDayOfYear&&(ce<we||ce>Q)&&(ce=Q),wt(B)._overflowWeeks&&-1===ce&&(ce=ct),wt(B)._overflowWeekday&&-1===ce&&(ce=ut),wt(B).overflow=ce),B}const Yr="ISO_8601",Vo="RFC_2822";function Wr(B){if(B._f===Yr)return qr(B);if(B._f===Vo)return Ci(B);if(B._a=[],wt(B).empty=!0,P(B._f)||!B._i&&0!==B._i)return B;let ce=B._i.toString(),Fe=0;const Dt=ce.length,nn=Ns(B._f,B._locale).match(ln)||[];let hi,kn,cs,qs;for(hi=0;hi<nn.length;hi++)kn=nn[hi],cs=(ce.match(Ht(kn,B._locale))||[])[0],cs&&(qs=ce.substr(0,ce.indexOf(cs)),qs.length>0&&wt(B).unusedInput.push(qs),ce=ce.slice(ce.indexOf(cs)+cs.length),Fe+=cs.length),vt[kn]?(cs?wt(B).empty=!1:wt(B).unusedTokens.push(kn),fi(kn,cs,B)):B._strict&&!cs&&wt(B).unusedTokens.push(kn);return wt(B).charsLeftOver=Dt-Fe,ce.length>0&&wt(B).unusedInput.push(ce),B._a[pe]<=12&&!0===wt(B).bigHour&&B._a[pe]>0&&(wt(B).bigHour=void 0),wt(B).parsedDateParts=B._a.slice(0),wt(B).meridiem=B._meridiem,B._a[pe]=function Oo(B,ce,Fe){let Dt=ce;if(null==Fe)return Dt;if(null!=B.meridiemHour)return B.meridiemHour(Dt,Fe);if(null==B.isPM)return Dt;const nn=B.isPM(Fe);return nn&&Dt<12&&(Dt+=12),!nn&&12===Dt&&(Dt=0),Dt}(B._locale,B._a[pe],B._meridiem),mr(B),yr(B)}function la(B){const ce=yr(function Br(B){let ce=B._i;const Fe=B._f;return B._locale=B._locale||vo(B._l),null===ce||void 0===Fe&&""===ce?Ys(B,{nullInput:!0}):(T(ce)&&(B._i=ce=B._locale.preparse(ce,Fe)),A(ce)?(B._d=Di(ce),B):(P(Fe)?function Ta(B){let ce,Fe,Dt,nn,hi;if(!B._f||0===B._f.length)return wt(B).invalidFormat=!0,Ys(B);for(hi=0;hi<B._f.length;hi++)nn=0,ce=Object.assign({},B),null!=B._useUTC&&(ce._useUTC=B._useUTC),ce._f=B._f[hi],Wr(ce),Gi(ce)&&(nn+=wt(ce).charsLeftOver,nn+=10*wt(ce).unusedTokens.length,wt(ce).score=nn,(null==Dt||nn<Dt)&&(Dt=nn,Fe=ce));Object.assign(B,Fe||ce)}(B):Fe?Wr(B):function Il(B){const ce=B._i;if(ee(ce))B._d=new Date;else if(A(ce))B._d=Di(ce);else if(T(ce))!function $i(B){if(!T(B._i))return B;const ce=aa.exec(B._i);null!==ce?B._d=new Date(+ce[1]):(qr(B),!1!==B._isValid||(delete B._isValid,Ci(B),!1!==B._isValid||(delete B._isValid,Ys(B))))}(B);else if(P(ce)&&ce.length){const Fe=ce.slice(0);B._a=Fe.map(Dt=>T(Dt)?parseInt(Dt,10):Dt),mr(B)}else if(j(ce))!function ea(B){if(B._d)return B;const ce=B._i;if(j(ce)){const Fe=function q(B){const ce={};let Fe,Dt;for(Dt in B)y(B,Dt)&&(Fe=oe(Dt),Fe&&(ce[Fe]=B[Dt]));return ce}(ce);B._a=[Fe.year,Fe.month,Fe.day,Fe.hours,Fe.minutes,Fe.seconds,Fe.milliseconds].map(Dt=>T(Dt)?parseInt(Dt,10):Dt)}return mr(B)}(B);else{if(!R(ce))return Ys(B);B._d=new Date(ce)}}(B),Gi(B)||(B._d=null),B))}(B));return ce._d=new Date(null!=ce._d?ce._d.getTime():NaN),Gi(Object.assign({},ce,{_isValid:null}))||(ce._d=new Date(NaN)),ce}function wl(B,ce,Fe,Dt,nn){return A(B)?B:function br(B,ce,Fe,Dt,nn){const hi={};let kn=B;return(j(kn)&&function Y(B){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(B).length;let ce;for(ce in B)if(B.hasOwnProperty(ce))return!1;return!0}(kn)||P(kn)&&0===kn.length)&&(kn=void 0),hi._useUTC=hi._isUTC=nn,hi._l=Fe,hi._i=kn,hi._f=ce,hi._strict=Dt,la(hi)}(B,ce,Fe,Dt,nn)._d}function Ur(B){return B instanceof Date?new Date(B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate(),B.getUTCHours(),B.getUTCMinutes(),B.getUTCSeconds(),B.getUTCMilliseconds()):null}function er(B){return B<0?-1*Math.round(-1*B):Math.round(B)}function ha(B,ce,Fe="milliseconds"){return!(!B||!ce)&&("milliseconds"===Fe?B.valueOf()>ce.valueOf():ce.valueOf()<Yi(B,Fe).valueOf())}function ir(B,ce,Fe="milliseconds"){return!(!B||!ce)&&("milliseconds"===Fe?B.valueOf()<ce.valueOf():ji(B,Fe).valueOf()<ce.valueOf())}function Tl(B,ce){return!(typeof ce>"u"||!ce||!ce.length)&&ce.some(Fe=>Fe===B.getDay())}function qa(B,ce,Fe="milliseconds"){if(!B||!ce)return!1;if("milliseconds"===Fe)return B.valueOf()===ce.valueOf();const Dt=ce.valueOf();return Yi(B,Fe).valueOf()<=Dt&&Dt<=ji(B,Fe).valueOf()}const Ir=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ne=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(B,ce,Fe={}){const Dt=function V(B,ce){if(null==B)return{};if(function Tn(B){return B instanceof et}(B))return{milliseconds:B._milliseconds,day:B._days,month:B._months};if(R(B))return ce?{[ce]:B}:{milliseconds:B};if(T(B)){let Fe=Ir.exec(B);if(Fe){const Dt="-"===Fe[1]?-1:1;return{year:0,day:se(Fe[Q])*Dt,hours:se(Fe[pe])*Dt,minutes:se(Fe[Ee])*Dt,seconds:se(Fe[ke])*Dt,milliseconds:se(er(1e3*se(Fe[Ye])))*Dt}}if(Fe=ne.exec(B),Fe){const Dt="-"===Fe[1]?-1:1;return{year:re(Fe[2],Dt),month:re(Fe[3],Dt),week:re(Fe[4],Dt),day:re(Fe[5],Dt),hours:re(Fe[6],Dt),minutes:re(Fe[7],Dt),seconds:re(Fe[8],Dt)}}}if(j(B)&&("from"in B||"to"in B)){const Fe=function qe(B,ce){if(!F(B)||!F(ce))return{milliseconds:0,months:0};let Fe;const Dt=function jr(B,ce,Fe={}){if(!Fe._isUTC)return B;const Dt=Di(ce),nn=6e4*(Fe._offset||0),hi=B.valueOf()-Dt.valueOf()+nn;return Dt.setTime(Dt.valueOf()+hi),Dt}(ce,B,{_offset:B.getTimezoneOffset()});return ir(B,Dt)?Fe=Ie(B,Dt):(Fe=Ie(Dt,B),Fe.milliseconds=-Fe.milliseconds,Fe.months=-Fe.months),Fe}(wl(B.from),wl(B.to));return{milliseconds:Fe.milliseconds,month:Fe.months}}return B}(B,ce);return new et(Dt,Fe)}function re(B,ce){const Fe=B&&parseFloat(B.replace(",","."));return(isNaN(Fe)?0:Fe)*ce}function Ie(B,ce){const Fe={milliseconds:0,months:0};return Fe.months=We(ce)-We(B)+12*(yt(ce)-yt(B)),ha(Zt(Di(B),Fe.months,"month"),ce)&&--Fe.months,Fe.milliseconds=+ce-+Zt(Di(B),Fe.months,"month"),Fe}function Zt(B,ce,Fe,Dt){return ii(B,qt(ce,Fe),1,Dt)}function ii(B,ce,Fe,Dt){const nn=ce._milliseconds,hi=er(ce._days),kn=er(ce._months);return kn&&Ut(B,We(B,Dt)+kn*Fe,Dt),hi&&ui(B,rt(B,Dt)+hi*Fe,Dt),nn&&function Pi(B,ce){B.setTime(ce)}(B,function Kt(B){return B.getTime()}(B)+nn*Fe),Di(B)}function Ki(B,ce,Fe=vo(),Dt){const nn=$t(B,Dt),hi=function Ii(B,ce){if(!T(B))return B;const Fe=parseInt(B,10);if(!isNaN(Fe))return Fe;const Dt=ce.weekdaysParse(B);return R(Dt)?Dt:null}(ce,Fe);return Zt(B,hi-nn,"day")}function Ss(B,ce){return $t(B,ce)}function go(B,ce=vo(),Fe){return($t(B,Fe)+7-ce.firstDayOfWeek())%7}const yo=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},Uo={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},Xs=function(B){return function(ce,Fe){const Dt=yo(ce);let nn=Uo[B][yo(ce)];return 2===Dt&&(nn=nn[Fe?0:1]),nn.replace(/%d/i,ce.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),Xs("s"),Xs("s"),Xs("m"),Xs("m"),Xs("h"),Xs("h"),Xs("d"),Xs("d"),Xs("M"),Xs("M"),Xs("y"),Xs("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Sr="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),$r="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(B,ce){let Fe,Dt=[];for(Fe=0;Fe<12;Fe++)Dt[Fe]=new RegExp("^"+B[Fe]+"$|^"+ce[Fe]+"$","i")})(Sr,$r),function(B){let ce,Fe=[];for(ce=0;ce<12;ce++)Fe[ce]=new RegExp("^"+B[ce]+"$","i")}($r),function(B){let ce,Fe=[];for(ce=0;ce<12;ce++)Fe[ce]=new RegExp("^"+B[ce]+"$","i")}(Sr),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const Rt={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:B=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===B,meridiem:(B,ce,Fe)=>B<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(B,ce){const Fe=Rt.longDateFormat[ce]?Rt.longDateFormat[ce]:ce;return-1!==Fe.indexOf("YYYY",Fe.length-4)?B.substr(0,B.length-4)+(parseInt(B.substr(B.length-4),10)-543):B},getFullYear:(B,ce=!1)=>543+(ce?B.getUTCFullYear():B.getFullYear())};function En(B,ce,Fe){return"m"===Fe?ce?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===Fe?ce?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function zt(B,ce){let Fe=B.split("_");return ce%10==1&&ce%100!=11?Fe[0]:ce%10>=2&&ce%10<=4&&(ce%100<10||ce%100>=20)?Fe[1]:Fe[2]}({ss:ce?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:ce?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:ce?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[Fe],+B)}function Ts(B){return function(ce){return B+"\u043e"+(11===Oe(ce)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_");const fs={abbr:"uk",months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function Bi(B,ce,Fe){let Dt={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return B?Dt[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(ce)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(ce)?"genitive":"nominative"][Ss(B,Fe)]:Dt.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:Ts("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:Ts("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:Ts("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:Ts("[\u0423] dddd ["),lastWeek(B){switch(Ss(B)){case 0:case 3:case 5:case 6:return Ts("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [")(B);case 1:case 2:case 4:return Ts("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [")(B)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:En,m:En,mm:En,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:En,d:"\u0434\u0435\u043d\u044c",dd:En,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:En,y:"\u0440\u0456\u043a",yy:En},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:B=>/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B),meridiem:(B,ce,Fe)=>B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430",dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal(B,ce){const Fe=Number(B);switch(ce){case"M":case"d":case"DDD":case"w":case"W":return Fe+"-\u0439";case"D":return Fe+"-\u0433\u043e";default:return Fe.toString()}},week:{dow:1,doy:7}};"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_")},94954:(fn,ve,_)=>{"use strict";_.d(ve,{VI:()=>Nt,YI:()=>ct});var e=_(94650),o=_(61135),T=_(39646),A=_(88996),G=_(4128),F=_(54004),N=_(63900),R=_(70262),P=_(8189),y=_(50590),j=_(95577),Y=_(54482),ee=_(25403),he=_(18505),Se=_(9116);function oe(Kt){return"function"==typeof Kt}function q(Kt){if("[object Object]"!==Object.prototype.toString.call(Kt))return!1;{const $t=Object.getPrototypeOf(Kt);return null===$t||$t===Object.prototype}}function ae(Kt){return"boolean"==typeof Kt}function Ee(Kt){return function we(Kt){return!!Kt&&"string"==typeof Kt}(Kt)?[Kt]:Kt}let ke=(()=>{class Kt{constructor(){this.permissionsSource=new o.X({}),this.permissions$=this.permissionsSource.asObservable()}}return Kt.\u0275fac=function(rt){return new(rt||Kt)},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})();const Ye=new e.OlP("USE_PERMISSIONS_STORE");let ct=(()=>{class Kt{constructor(rt=!1,We){this.isolate=rt,this.permissionsStore=We,this.permissionsSource=rt?new o.X({}):We.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(rt){return!rt||Array.isArray(rt)&&0===rt.length?Promise.resolve(!0):(rt=Ee(rt),this.hasArrayPermission(rt))}loadPermissions(rt,We){const yt=rt.reduce((it,It)=>this.reducePermission(it,It,We),{});this.permissionsSource.next(yt)}addPermission(rt,We){if(Array.isArray(rt)){const yt=rt.reduce((it,It)=>this.reducePermission(it,It,We),this.permissionsSource.value);this.permissionsSource.next(yt)}else{const yt=this.reducePermission(this.permissionsSource.value,rt,We);this.permissionsSource.next(yt)}}removePermission(rt){const We={...this.permissionsSource.value};delete We[rt],this.permissionsSource.next(We)}getPermission(rt){return this.permissionsSource.value[rt]}getPermissions(){return this.permissionsSource.value}reducePermission(rt,We,yt){return yt&&oe(yt)?{...rt,[We]:{name:We,validationFunction:yt}}:{...rt,[We]:{name:We}}}hasArrayPermission(rt){const We=rt.map(yt=>{if(this.hasPermissionValidationFunction(yt)){const it=this.permissionsSource.value[yt].validationFunction,It={...this.permissionsSource.value};return(0,T.of)(null).pipe((0,F.U)(()=>it(yt,It)),(0,N.w)(Tt=>ae(Tt)?(0,T.of)(Tt):Tt),(0,R.K)(()=>(0,T.of)(!1)))}return(0,T.of)(!!this.permissionsSource.value[yt])});return(0,A.D)(We).pipe((0,P.J)(),(0,y.P)(yt=>!1!==yt,!1),(0,F.U)(yt=>!1!==yt)).toPromise().then(yt=>yt)}hasPermissionValidationFunction(rt){return!!this.permissionsSource.value[rt]&&!!this.permissionsSource.value[rt].validationFunction&&oe(this.permissionsSource.value[rt].validationFunction)}}return Kt.\u0275fac=function(rt){return new(rt||Kt)(e.LFG(Ye),e.LFG(ke))},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})(),ut=(()=>{class Kt{constructor(){this.strategiesSource=new o.X({}),this.strategies$=this.strategiesSource.asObservable()}}return Kt.\u0275fac=function(rt){return new(rt||Kt)},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})();const Ct=new e.OlP("USE_CONFIGURATION_STORE");let Ue=(()=>{class Kt{constructor(rt=!1,We){this.isolate=rt,this.configurationStore=We,this.strategiesSource=this.isolate?new o.X({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(rt){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(rt):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(rt),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(rt){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(rt):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(rt),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(rt,We){this.strategiesSource.value[rt]=We}getStrategy(rt){return this.strategiesSource.value[rt]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(rt){if(this.strategiesSource.value[rt]||this.isPredefinedStrategy(rt))return rt;throw new Error(`No ' ${rt} ' strategy is found please define one`)}isPredefinedStrategy(rt){return"show"===rt||"remove"===rt}}return Kt.\u0275fac=function(rt){return new(rt||Kt)(e.LFG(Ct),e.LFG(ut))},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})();class vt{constructor(){this.rolesSource=new o.X({}),this.roles$=this.rolesSource.asObservable()}}const ln=new e.OlP("USE_ROLES_STORE");let Je=(()=>{class Kt{constructor(rt=!1,We,yt){this.isolate=rt,this.rolesStore=We,this.permissionsService=yt,this.rolesSource=this.isolate?new o.X({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(rt,We){const yt={...this.rolesSource.value,[rt]:{name:rt,validationFunction:We}};this.rolesSource.next(yt)}addRoleWithPermissions(rt,We){this.permissionsService.addPermission(We),this.addRole(rt,We)}addRoles(rt){Object.keys(rt).forEach((We,yt)=>{this.addRole(We,rt[We])})}addRolesWithPermissions(rt){Object.keys(rt).forEach((We,yt)=>{this.addRoleWithPermissions(We,rt[We])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(rt){const We={...this.rolesSource.value};delete We[rt],this.rolesSource.next(We)}getRoles(){return this.rolesSource.value}getRole(rt){return this.rolesSource.value[rt]}hasOnlyRoles(rt){return!rt||Array.isArray(rt)&&0===rt.length?Promise.resolve(!0):(rt=Ee(rt),Promise.all([this.hasRoleKey(rt),this.hasRolePermission(this.rolesSource.value,rt)]).then(([yt,it])=>yt||it))}hasRoleKey(rt){const We=rt.map(yt=>{if(this.rolesSource.value[yt]&&this.rolesSource.value[yt].validationFunction&&oe(this.rolesSource.value[yt].validationFunction)&&!function Q(Kt){return"[object Promise]"===Object.prototype.toString.call(Kt)}(this.rolesSource.value[yt].validationFunction)){const It=this.rolesSource.value[yt].validationFunction,Tt={...this.rolesSource.value};return(0,T.of)(null).pipe((0,F.U)(()=>It(yt,Tt)),(0,N.w)(wn=>ae(wn)?(0,T.of)(wn):wn),(0,R.K)(()=>(0,T.of)(!1)))}return(0,T.of)(!1)});return(0,A.D)(We).pipe((0,P.J)(),(0,y.P)(yt=>!1!==yt,!1),(0,F.U)(yt=>!1!==yt)).toPromise().then(yt=>yt)}hasRolePermission(rt,We){return(0,A.D)(We).pipe((0,j.z)(yt=>rt[yt]&&Array.isArray(rt[yt].validationFunction)?(0,A.D)(rt[yt].validationFunction).pipe((0,j.z)(it=>this.permissionsService.hasPermission(it)),function se(Kt,$t){return(0,Y.e)((rt,We)=>{let yt=0;rt.subscribe((0,ee.x)(We,it=>{Kt.call($t,it,yt++,rt)||(We.next(!1),We.complete())},()=>{We.next(!0),We.complete()}))})}(it=>!0===it)):(0,T.of)(!1)),(0,y.P)(yt=>!0===yt,!1)).toPromise()}}return Kt.\u0275fac=function(rt){return new(rt||Kt)(e.LFG(ln),e.LFG(vt),e.LFG(ct))},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})(),Ze=(()=>{class Kt{constructor(rt,We,yt){this.permissionsService=rt,this.rolesService=We,this.router=yt}canActivate(rt,We){return this.hasPermissions(rt,We)}canActivateChild(rt,We){return this.hasPermissions(rt,We)}canLoad(rt){return this.hasPermissions(rt)}hasPermissions(rt,We){const it=this.transformPermission(rt&&rt.data?rt.data.permissions:{},rt,We);return this.isParameterAvailable(it.except)?this.passingExceptPermissionsValidation(it,rt,We):!this.isParameterAvailable(it.only)||this.passingOnlyPermissionsValidation(it,rt,We)}transformPermission(rt,We,yt){return{only:oe(rt.only)?rt.only(We,yt):Ee(rt.only),except:oe(rt.except)?rt.except(We,yt):Ee(rt.except),redirectTo:rt.redirectTo}}isParameterAvailable(rt){return!!rt&&rt.length>0}passingExceptPermissionsValidation(rt,We,yt){if(rt.redirectTo&&(oe(rt.redirectTo)||q(rt.redirectTo)&&!this.isRedirectionWithParameters(rt.redirectTo))){let it="";return(0,A.D)(rt.except).pipe((0,j.z)(It=>(0,G.D)([this.permissionsService.hasPermission(It),this.rolesService.hasOnlyRoles(It)]).pipe((0,he.b)(Tt=>{Tt.every(Nn=>!1===Nn)||(it=It)}))),(0,y.P)(It=>It.some(Tt=>!0===Tt),!1),(0,j.z)(It=>it?(this.handleRedirectOfFailedPermission(rt,it,We,yt),(0,T.of)(!1)):!It&&rt.only?this.onlyRedirectCheck(rt,We,yt):(0,T.of)(!It))).toPromise()}return Promise.all([this.permissionsService.hasPermission(rt.except),this.rolesService.hasOnlyRoles(rt.except)]).then(([it,It])=>it||It?(rt.redirectTo&&this.redirectToAnotherRoute(rt.redirectTo,We,yt),!1):!rt.only||this.checkOnlyPermissions(rt,We,yt))}redirectToAnotherRoute(rt,We,yt,it){const It=oe(rt)?rt(it,We,yt):rt;if(this.isRedirectionWithParameters(It))return It.navigationCommands=this.transformNavigationCommands(It.navigationCommands,We,yt),It.navigationExtras=this.transformNavigationExtras(It.navigationExtras,We,yt),void this.router.navigate(It.navigationCommands,It.navigationExtras);Array.isArray(It)?this.router.navigate(It):this.router.navigate([It])}isRedirectionWithParameters(rt){return q(rt)&&(!!rt.navigationCommands||!!rt.navigationExtras)}transformNavigationCommands(rt,We,yt){return oe(rt)?rt(We,yt):rt}transformNavigationExtras(rt,We,yt){return oe(rt)?rt(We,yt):rt}onlyRedirectCheck(rt,We,yt){let it="";return(0,A.D)(rt.only).pipe((0,j.z)(It=>(0,G.D)([this.permissionsService.hasPermission(It),this.rolesService.hasOnlyRoles(It)]).pipe((0,he.b)(Tt=>{Tt.every(Nn=>!1===Nn)&&(it=It)}))),(0,y.P)(It=>oe(rt.redirectTo)?It.some(Tt=>!0===Tt):It.every(Tt=>!1===Tt),!1),(0,j.z)(It=>oe(rt.redirectTo)?It?(0,T.of)(!0):(this.handleRedirectOfFailedPermission(rt,it,We,yt),(0,T.of)(!1)):(it&&this.handleRedirectOfFailedPermission(rt,it,We,yt),(0,T.of)(!It)))).toPromise()}handleRedirectOfFailedPermission(rt,We,yt,it){this.isFailedPermissionPropertyOfRedirectTo(rt,We)?this.redirectToAnotherRoute(rt.redirectTo[We],yt,it,We):oe(rt.redirectTo)?this.redirectToAnotherRoute(rt.redirectTo,yt,it,We):this.redirectToAnotherRoute(rt.redirectTo.default,yt,it,We)}isFailedPermissionPropertyOfRedirectTo(rt,We){return!!rt.redirectTo&&rt.redirectTo[We]}checkOnlyPermissions(rt,We,yt){const it={...rt};return Promise.all([this.permissionsService.hasPermission(it.only),this.rolesService.hasOnlyRoles(it.only)]).then(([It,Tt])=>!(!It&&!Tt&&(it.redirectTo&&this.redirectToAnotherRoute(it.redirectTo,We,yt),1)))}passingOnlyPermissionsValidation(rt,We,yt){return oe(rt.redirectTo)||q(rt.redirectTo)&&!this.isRedirectionWithParameters(rt.redirectTo)?this.onlyRedirectCheck(rt,We,yt):this.checkOnlyPermissions(rt,We,yt)}}return Kt.\u0275fac=function(rt){return new(rt||Kt)(e.LFG(ct),e.LFG(Je),e.LFG(Se.F0))},Kt.\u0275prov=e.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})(),Nt=(()=>{class Kt{static forRoot(rt={}){return{ngModule:Kt,providers:[ke,vt,ut,ct,Ze,Je,Ue,{provide:Ye,useValue:rt.permissionsIsolate},{provide:ln,useValue:rt.rolesIsolate},{provide:Ct,useValue:rt.configurationIsolate}]}}static forChild(rt={}){return{ngModule:Kt,providers:[{provide:Ye,useValue:rt.permissionsIsolate},{provide:ln,useValue:rt.rolesIsolate},{provide:Ct,useValue:rt.configurationIsolate},Ue,ct,Je,Ze]}}}return Kt.\u0275fac=function(rt){return new(rt||Kt)},Kt.\u0275mod=e.oAB({type:Kt}),Kt.\u0275inj=e.cJS({imports:[[]]}),Kt})()},15861:(fn,ve,_)=>{"use strict";function e(T,A,G,F,N,R,P){try{var y=T[R](P),j=y.value}catch(Y){return void G(Y)}y.done?A(j):Promise.resolve(j).then(F,N)}function o(T){return function(){var A=this,G=arguments;return new Promise(function(F,N){var R=T.apply(A,G);function P(j){e(R,F,N,P,y,"next",j)}function y(j){e(R,F,N,P,y,"throw",j)}P(void 0)})}}_.d(ve,{Z:()=>o})},97582:(fn,ve,_)=>{"use strict";function A(Ze,$e){var Oe={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&$e.indexOf(Nt)<0&&(Oe[Nt]=Ze[Nt]);if(null!=Ze&&"function"==typeof Object.getOwnPropertySymbols){var xt=0;for(Nt=Object.getOwnPropertySymbols(Ze);xt<Nt.length;xt++)$e.indexOf(Nt[xt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Nt[xt])&&(Oe[Nt[xt]]=Ze[Nt[xt]])}return Oe}function G(Ze,$e,Oe,Nt){var Kt,xt=arguments.length,Ot=xt<3?$e:null===Nt?Nt=Object.getOwnPropertyDescriptor($e,Oe):Nt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ot=Reflect.decorate(Ze,$e,Oe,Nt);else for(var $t=Ze.length-1;$t>=0;$t--)(Kt=Ze[$t])&&(Ot=(xt<3?Kt(Ot):xt>3?Kt($e,Oe,Ot):Kt($e,Oe))||Ot);return xt>3&&Ot&&Object.defineProperty($e,Oe,Ot),Ot}function j(Ze,$e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Ze,$e)}function Y(Ze,$e,Oe,Nt){return new(Oe||(Oe=Promise))(function(Ot,Kt){function $t(yt){try{We(Nt.next(yt))}catch(it){Kt(it)}}function rt(yt){try{We(Nt.throw(yt))}catch(it){Kt(it)}}function We(yt){yt.done?Ot(yt.value):function xt(Ot){return Ot instanceof Oe?Ot:new Oe(function(Kt){Kt(Ot)})}(yt.value).then($t,rt)}We((Nt=Nt.apply(Ze,$e||[])).next())})}function ae(Ze){return this instanceof ae?(this.v=Ze,this):new ae(Ze)}function Q(Ze,$e,Oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xt,Nt=Oe.apply(Ze,$e||[]),Ot=[];return xt={},Kt("next"),Kt("throw"),Kt("return"),xt[Symbol.asyncIterator]=function(){return this},xt;function Kt(It){Nt[It]&&(xt[It]=function(Tt){return new Promise(function(wn,Nn){Ot.push([It,Tt,wn,Nn])>1||$t(It,Tt)})})}function $t(It,Tt){try{!function rt(It){It.value instanceof ae?Promise.resolve(It.value.v).then(We,yt):it(Ot[0][2],It)}(Nt[It](Tt))}catch(wn){it(Ot[0][3],wn)}}function We(It){$t("next",It)}function yt(It){$t("throw",It)}function it(It,Tt){It(Tt),Ot.shift(),Ot.length&&$t(Ot[0][0],Ot[0][1])}}function Ee(Ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Oe,$e=Ze[Symbol.asyncIterator];return $e?$e.call(Ze):(Ze=function Se(Ze){var $e="function"==typeof Symbol&&Symbol.iterator,Oe=$e&&Ze[$e],Nt=0;if(Oe)return Oe.call(Ze);if(Ze&&"number"==typeof Ze.length)return{next:function(){return Ze&&Nt>=Ze.length&&(Ze=void 0),{value:Ze&&Ze[Nt++],done:!Ze}}};throw new TypeError($e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ze),Oe={},Nt("next"),Nt("throw"),Nt("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function Nt(Ot){Oe[Ot]=Ze[Ot]&&function(Kt){return new Promise(function($t,rt){!function xt(Ot,Kt,$t,rt){Promise.resolve(rt).then(function(We){Ot({value:We,done:$t})},Kt)}($t,rt,(Kt=Ze[Ot](Kt)).done,Kt.value)})}}}_.d(ve,{FC:()=>Q,KL:()=>Ee,_T:()=>A,gn:()=>G,mG:()=>Y,qq:()=>ae,w6:()=>j}),"function"==typeof SuppressedError&&SuppressedError}},fn=>{var ve=e=>fn(fn.s=e);ve(81321),ve(98159)}]);